diff --git a/CHANGELOG.md b/CHANGELOG.md
index e80e066..b0fb1fb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,36 @@
-# dbt_ad_reporting v1.10.0
+# dbt_ad_reporting v1.11.0
+
+## Breaking Changes
+
+### LinkedIn Ads
+- The `dbt_linkedin` dependency has been updated to `[">=0.10.0", "<0.11.0"]`, and the `dbt_linkedin_source` dependency has been updated to `[">=0.10.0", "<0.11.0"]`. These upstream versions introduce breaking changes. For details, refer to the [dbt_linkedin_source v0.10.0](https://github.com/fivetran/dbt_linkedin_source/releases/tag/v0.10.0) and [dbt_linkedin v0.10.0](https://github.com/fivetran/dbt_linkedin/releases/tag/v0.10.0) release notes. ([PR #120](https://github.com/fivetran/dbt_ad_reporting/pull/120))
+ - Added the `click_uri_type` field to the following models. This field allows users to differentiate which click uri type (`text_ad` or `spotlight`) was used to populate the `click_uri` field.
+ - `stg_linkedin_ads__creative_history`
+ - `linkedin_ads__creative_report`
+ - `linkedin_ads__url_report`
+ - Note: Only `text_ad` and `spotlight` click URI types are supported. To request support for additional types, submit a [Feature Request](https://github.com/fivetran/dbt_linkedin_source/issues/70).
+ - The `click_uri` field now populates values using a `COALESCE` of `text_ad_landing_page`, `spotlight_landing_page`, and `click_uri`. For details, refer to the [dbt_linkedin_source v0.10.0](https://github.com/fivetran/dbt_linkedin_source/releases/tag/v0.10.0) release notes. ([PR #120](https://github.com/fivetran/dbt_ad_reporting/pull/120))
+ - This change aligns with the [LinkedIn Ads API migration](https://learn.microsoft.com/en-us/linkedin/marketing/community-management/contentapi-migration-guide?view=li-lms-2024-05#adcreativesv2-api-creatives-api) and [Fivetran LinkedIn Ads connector update](https://fivetran.com/docs/connectors/applications/linkedin-ads/changelog#january2024), which moved `click_uri` data to `text_ad_landing_page` or `spotlight_landing_page` based on creative type.
+
+### TikTok Ads
+- The `dbt_tiktok_ads` dependency has been updated to `[">=0.7.0", "<0.8.0"]`, and the `dbt_tiktok_source` dependency has been updated to `[">=0.7.0", "<0.8.0"]`. These upstream versions introduce breaking changes. For details, refer to the [dbt_tiktok_ads_source v0.7.0](https://github.com/fivetran/dbt_tiktok_ads_source/releases/tag/v0.7.0) and [dbt_tiktok_ads v0.7.0](https://github.com/fivetran/dbt_tiktok_ads/releases/tag/v0.10.0) release notes. ([PR #127](https://github.com/fivetran/dbt_ad_reporting/pull/127))
+- The `age` column in the `ADGROUP_HISTORY` table was renamed to `age_groups` in the [July 2023 TikTok update](https://fivetran.com/docs/connectors/applications/tiktok-ads/changelog#july2023). ([PR #127](https://github.com/fivetran/dbt_ad_reporting/pull/127))
+ - Previously, the `stg_tiktok_ads__ad_group_history` model coalesced `age` and `age_groups` to handle legacy data. Due to incompatible data types (string and JSON), this coalesced field has been removed in favor of solely the `age_groups` column.
+ - To populate historical data in the `age_groups` column, perform a resync of the `ADGROUP_HISTORY` table. TikTok provides all data regardless of the previous sync state.
+ - For more details, see the [Tiktok Ads DECISIONLOG](https://github.com/fivetran/dbt_tiktok_ads_source/blob/main/DECISIONLOG.md).
+
+## Documentation Changes
+- Improved README structure by moving the Ad Reporting heading above the README tags and aligning it to the left. ([PR #124](https://github.com/fivetran/dbt_ad_reporting/pull/124))
+
+## Under the Hood
+- Added consistency validation tests for the following models to enhance integration testing (used internally by Fivetran maintainers) ([PR #127](https://github.com/fivetran/dbt_ad_reporting/pull/127)):
+ - `ad_reporting__ad_report`
+ - `ad_reporting__url_report`
+
+## Contributors
+- [@conrad-mal](https://github.com/conrad-mal) ([PR #124](https://github.com/fivetran/dbt_ad_reporting/pull/124))
+# dbt_ad_reporting v1.10.0
[PR #122](https://github.com/fivetran/dbt_ad_reporting/pull/122) introduces the following **BREAKING CHANGES:**
## Feature Updates: Native Conversion Support
diff --git a/README.md b/README.md
index 4aefda0..b814998 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,6 @@
-
+# Ad Reporting dbt Package ([Docs](https://fivetran.github.io/dbt_ad_reporting/))
+
+
@@ -10,7 +12,6 @@
-# Ad Reporting dbt Package ([Docs](https://fivetran.github.io/dbt_ad_reporting/))
## What does this dbt package do?
- Standardizes schemas from various ad platform connectors and creates reporting models for clicks, spend and impressions aggregated to the account, campaign, ad group, ad, keyword and search levels.
- Currently supports the following Fivetran ad platform connectors:
@@ -80,7 +81,7 @@ Include the following github package version in your `packages.yml`
```yaml
packages:
- package: fivetran/ad_reporting
- version: [">=1.10.0", "<1.11.0"] # we recommend using ranges to capture non-breaking changes automatically
+ version: [">=1.11.0", "<1.12.0"] # we recommend using ranges to capture non-breaking changes automatically
```
Do NOT include the individual ad platform packages in this file. The ad reporting package itself has dependencies on these packages and will install them as well.
@@ -563,11 +564,11 @@ packages:
- package: fivetran/google_ads_source
version: [">=0.11.0", "<0.12.0"]
- - package: fivetran/pinterest
- version: [">=0.11.0", "<0.12.0"]
+ - package: fivetran/linkedin
+ version: [">=0.10.0", "<0.11.0"]
- - package: fivetran/pinterest_source
- version: [">=0.11.0", "<0.12.0"]
+ - package: fivetran/linkedin_source
+ version: [">=0.10.0", "<0.11.0"]
- package: fivetran/microsoft_ads
version: [">=0.9.0", "<0.10.0"]
@@ -575,11 +576,11 @@ packages:
- package: fivetran/microsoft_ads_source
version: [">=0.10.0", "<0.11.0"]
- - package: fivetran/linkedin
- version: [">=0.9.0", "<0.10.0"]
+ - package: fivetran/pinterest
+ version: [">=0.11.0", "<0.12.0"]
- - package: fivetran/linkedin_source
- version: [">=0.9.0", "<0.10.0"]
+ - package: fivetran/pinterest_source
+ version: [">=0.11.0", "<0.12.0"]
- package: fivetran/reddit_ads
version: [">=0.3.0", "<0.4.0"]
@@ -594,10 +595,10 @@ packages:
version: [">=0.7.0", "<0.8.0"]
- package: fivetran/tiktok_ads
- version: [">=0.6.0", "<0.7.0"]
+ version: [">=0.7.0", "<0.8.0"]
- package: fivetran/tiktok_ads_source
- version: [">=0.6.0", "<0.7.0"]
+ version: [">=0.7.0", "<0.8.0"]
- package: fivetran/twitter_ads
version: [">=0.8.0", "<0.9.0"]
diff --git a/dbt_project.yml b/dbt_project.yml
index 7f49c4b..c2c25a3 100644
--- a/dbt_project.yml
+++ b/dbt_project.yml
@@ -1,5 +1,5 @@
name: 'ad_reporting'
-version: '1.10.0'
+version: '1.11.0'
config-version: 2
diff --git a/docs/catalog.json b/docs/catalog.json
index 5c74925..d4c00e6 100644
--- a/docs/catalog.json
+++ b/docs/catalog.json
@@ -1 +1 @@
-{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.8.7", "generated_at": "2024-11-18T17:46:29.019445Z", "invocation_id": "f706c1e5-c5fd-40a7-8294-6aac8cbba667", "env": {}}, "nodes": {"model.ad_reporting.ad_reporting__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "ad_reporting__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 3, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 5, "name": "account_name", "comment": null}, "clicks": {"type": "INT64", "index": 6, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "conversions": {"type": "FLOAT64", "index": 9, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 10, "name": "conversions_value", "comment": null}, "conversions_c": {"type": "FLOAT64", "index": 11, "name": "conversions_c", "comment": null}, "videos": {"type": "FLOAT64", "index": 12, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 217, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 20064, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__account_report"}, "model.ad_reporting.ad_reporting__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "ad_reporting__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 3, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 8, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 9, "name": "ad_group_name", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 12, "name": "spend", "comment": null}, "conversions": {"type": "FLOAT64", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 14, "name": "conversions_value", "comment": null}, "conversions_c": {"type": "FLOAT64", "index": 15, "name": "conversions_c", "comment": null}, "videos": {"type": "FLOAT64", "index": 16, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 309, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 46603, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__ad_group_report"}, "model.ad_reporting.ad_reporting__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "ad_reporting__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 3, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 8, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 9, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "STRING", "index": 10, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 11, "name": "ad_name", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}, "conversions": {"type": "FLOAT64", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 16, "name": "conversions_value", "comment": null}, "conversions_c": {"type": "FLOAT64", "index": 17, "name": "conversions_c", "comment": null}, "videos": {"type": "FLOAT64", "index": 18, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 667, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 102130, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__ad_report"}, "model.ad_reporting.ad_reporting__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "ad_reporting__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 3, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 10, "name": "spend", "comment": null}, "conversions": {"type": "FLOAT64", "index": 11, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 12, "name": "conversions_value", "comment": null}, "conversions_c": {"type": "FLOAT64", "index": 13, "name": "conversions_c", "comment": null}, "videos": {"type": "FLOAT64", "index": 14, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 552, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 72463, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__campaign_report"}, "model.ad_reporting.ad_reporting__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "ad_reporting__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 3, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 8, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 9, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "STRING", "index": 10, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "STRING", "index": 11, "name": "keyword_text", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 12, "name": "keyword_match_type", "comment": null}, "clicks": {"type": "INT64", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 15, "name": "spend", "comment": null}, "conversions": {"type": "FLOAT64", "index": 16, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 17, "name": "conversions_value", "comment": null}, "conversions_c": {"type": "FLOAT64", "index": 18, "name": "conversions_c", "comment": null}, "videos": {"type": "FLOAT64", "index": 19, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 182, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 31575, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__keyword_report"}, "model.ad_reporting.ad_reporting__search_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "ad_reporting__search_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 3, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 8, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 9, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "STRING", "index": 10, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "STRING", "index": 11, "name": "keyword_text", "comment": null}, "search_query": {"type": "STRING", "index": 12, "name": "search_query", "comment": null}, "search_match_type": {"type": "STRING", "index": 13, "name": "search_match_type", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}, "conversions": {"type": "FLOAT64", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 18, "name": "conversions_value", "comment": null}, "conversions_c": {"type": "FLOAT64", "index": 19, "name": "conversions_c", "comment": null}, "videos": {"type": "FLOAT64", "index": 20, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 20, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3757, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__search_report"}, "model.ad_reporting.ad_reporting__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "ad_reporting__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "platform": {"type": "STRING", "index": 3, "name": "platform", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 8, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 9, "name": "ad_group_name", "comment": null}, "base_url": {"type": "STRING", "index": 10, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 11, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 12, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 13, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 14, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 15, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 16, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 17, "name": "utm_term", "comment": null}, "clicks": {"type": "INT64", "index": 18, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 19, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 20, "name": "spend", "comment": null}, "conversions": {"type": "FLOAT64", "index": 21, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 22, "name": "conversions_value", "comment": null}, "conversions_c": {"type": "FLOAT64", "index": 23, "name": "conversions_c", "comment": null}, "videos": {"type": "FLOAT64", "index": 24, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 403, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 91364, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__url_report"}, "model.amazon_ads.amazon_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "amazon_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "country_code": {"type": "STRING", "index": 5, "name": "country_code", "comment": null}, "profile_id": {"type": "STRING", "index": 6, "name": "profile_id", "comment": null}, "cost": {"type": "FLOAT64", "index": 7, "name": "cost", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "INT64", "index": 10, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "INT64", "index": 11, "name": "sales_30_d", "comment": null}, "conversions": {"type": "FLOAT64", "index": 12, "name": "conversions", "comment": null}, "sales_30_d_alias": {"type": "FLOAT64", "index": 13, "name": "sales_30_d_alias", "comment": null}, "installs": {"type": "FLOAT64", "index": 14, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 15, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 988, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__account_report"}, "model.amazon_ads.amazon_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "amazon_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "country_code": {"type": "STRING", "index": 5, "name": "country_code", "comment": null}, "profile_id": {"type": "STRING", "index": 6, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "STRING", "index": 7, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "STRING", "index": 8, "name": "portfolio_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 9, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 10, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 11, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 12, "name": "ad_group_id", "comment": null}, "serving_status": {"type": "STRING", "index": 13, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 14, "name": "state", "comment": null}, "default_bid": {"type": "FLOAT64", "index": 15, "name": "default_bid", "comment": null}, "campaign_bidding_strategy": {"type": "STRING", "index": 16, "name": "campaign_bidding_strategy", "comment": null}, "cost": {"type": "FLOAT64", "index": 17, "name": "cost", "comment": null}, "clicks": {"type": "INT64", "index": 18, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 19, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "INT64", "index": 20, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "FLOAT64", "index": 21, "name": "sales_30_d", "comment": null}, "conversions": {"type": "FLOAT64", "index": 22, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 23, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 24, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1180, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__ad_group_report"}, "model.amazon_ads.amazon_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "amazon_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "country_code": {"type": "STRING", "index": 5, "name": "country_code", "comment": null}, "profile_id": {"type": "STRING", "index": 6, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "STRING", "index": 7, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "STRING", "index": 8, "name": "portfolio_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 9, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 10, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 11, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 12, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "STRING", "index": 13, "name": "ad_id", "comment": null}, "serving_status": {"type": "STRING", "index": 14, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 15, "name": "state", "comment": null}, "advertised_asin": {"type": "STRING", "index": 16, "name": "advertised_asin", "comment": null}, "advertised_sku": {"type": "STRING", "index": 17, "name": "advertised_sku", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 18, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 19, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 20, "name": "campaign_budget_type", "comment": null}, "cost": {"type": "FLOAT64", "index": 21, "name": "cost", "comment": null}, "clicks": {"type": "INT64", "index": 22, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 23, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "INT64", "index": 24, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "FLOAT64", "index": 25, "name": "sales_30_d", "comment": null}, "conversions": {"type": "FLOAT64", "index": 26, "name": "conversions", "comment": null}, "sales_30_d_alias": {"type": "FLOAT64", "index": 27, "name": "sales_30_d_alias", "comment": null}, "installs": {"type": "FLOAT64", "index": 28, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 29, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1880, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__ad_report"}, "model.amazon_ads.amazon_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "amazon_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "country_code": {"type": "STRING", "index": 5, "name": "country_code", "comment": null}, "profile_id": {"type": "STRING", "index": 6, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "STRING", "index": 7, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "STRING", "index": 8, "name": "portfolio_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 9, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 10, "name": "campaign_id", "comment": null}, "campaign_bidding_strategy": {"type": "STRING", "index": 11, "name": "campaign_bidding_strategy", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 12, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 13, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 14, "name": "campaign_budget_type", "comment": null}, "cost": {"type": "FLOAT64", "index": 15, "name": "cost", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "INT64", "index": 18, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "INT64", "index": 19, "name": "sales_30_d", "comment": null}, "conversions": {"type": "FLOAT64", "index": 20, "name": "conversions", "comment": null}, "sales_30_d_alias": {"type": "FLOAT64", "index": 21, "name": "sales_30_d_alias", "comment": null}, "installs": {"type": "FLOAT64", "index": 22, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 23, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1771, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__campaign_report"}, "model.amazon_ads.amazon_ads__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "amazon_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "country_code": {"type": "STRING", "index": 5, "name": "country_code", "comment": null}, "profile_id": {"type": "STRING", "index": 6, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "STRING", "index": 7, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "STRING", "index": 8, "name": "portfolio_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 9, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 10, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 11, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 12, "name": "ad_group_id", "comment": null}, "keyword_id": {"type": "STRING", "index": 13, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "STRING", "index": 14, "name": "keyword_text", "comment": null}, "serving_status": {"type": "STRING", "index": 15, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 16, "name": "state", "comment": null}, "keyword_bid": {"type": "FLOAT64", "index": 17, "name": "keyword_bid", "comment": null}, "keyword_type": {"type": "STRING", "index": 18, "name": "keyword_type", "comment": null}, "match_type": {"type": "STRING", "index": 19, "name": "match_type", "comment": null}, "cost": {"type": "FLOAT64", "index": 20, "name": "cost", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 22, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "INT64", "index": 23, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "FLOAT64", "index": 24, "name": "sales_30_d", "comment": null}, "conversions": {"type": "FLOAT64", "index": 25, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 26, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 27, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2060, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__keyword_report"}, "model.amazon_ads.amazon_ads__portfolio_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "amazon_ads__portfolio_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "country_code": {"type": "STRING", "index": 5, "name": "country_code", "comment": null}, "profile_id": {"type": "STRING", "index": 6, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "STRING", "index": 7, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "STRING", "index": 8, "name": "portfolio_id", "comment": null}, "budget_amount": {"type": "INT64", "index": 9, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "INT64", "index": 10, "name": "budget_currency_code", "comment": null}, "budget_start_date": {"type": "INT64", "index": 11, "name": "budget_start_date", "comment": null}, "budget_end_date": {"type": "INT64", "index": 12, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "INT64", "index": 13, "name": "budget_policy", "comment": null}, "in_budget": {"type": "BOOL", "index": 14, "name": "in_budget", "comment": null}, "serving_status": {"type": "STRING", "index": 15, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 16, "name": "state", "comment": null}, "cost": {"type": "FLOAT64", "index": 17, "name": "cost", "comment": null}, "clicks": {"type": "INT64", "index": 18, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 19, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "INT64", "index": 20, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "INT64", "index": 21, "name": "sales_30_d", "comment": null}, "conversions": {"type": "FLOAT64", "index": 22, "name": "conversions", "comment": null}, "sales_30_d_alias": {"type": "FLOAT64", "index": 23, "name": "sales_30_d_alias", "comment": null}, "installs": {"type": "FLOAT64", "index": 24, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 25, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1488, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__portfolio_report"}, "model.amazon_ads.amazon_ads__search_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "amazon_ads__search_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "country_code": {"type": "STRING", "index": 5, "name": "country_code", "comment": null}, "profile_id": {"type": "STRING", "index": 6, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "STRING", "index": 7, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "STRING", "index": 8, "name": "portfolio_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 9, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 10, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 11, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 12, "name": "ad_group_id", "comment": null}, "keyword_id": {"type": "STRING", "index": 13, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "STRING", "index": 14, "name": "keyword_text", "comment": null}, "match_type": {"type": "STRING", "index": 15, "name": "match_type", "comment": null}, "serving_status": {"type": "STRING", "index": 16, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 17, "name": "state", "comment": null}, "search_term": {"type": "STRING", "index": 18, "name": "search_term", "comment": null}, "targeting": {"type": "STRING", "index": 19, "name": "targeting", "comment": null}, "cost": {"type": "FLOAT64", "index": 20, "name": "cost", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 22, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "INT64", "index": 23, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "FLOAT64", "index": 24, "name": "sales_30_d", "comment": null}, "conversions": {"type": "FLOAT64", "index": 25, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 26, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 27, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2163, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__search_report"}, "model.apple_search_ads.apple_search_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "apple_search_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 3, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 4, "name": "organization_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "currency": {"type": "STRING", "index": 9, "name": "currency", "comment": null}, "ad_group_status": {"type": "STRING", "index": 10, "name": "ad_group_status", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 11, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 12, "name": "end_at", "comment": null}, "taps": {"type": "INT64", "index": 13, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 16, "name": "total_downloads", "comment": null}, "conversions": {"type": "INT64", "index": 17, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 19, "name": "spend", "comment": null}, "installs": {"type": "FLOAT64", "index": 20, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 21, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2263, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__ad_group_report"}, "model.apple_search_ads.apple_search_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "apple_search_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 3, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 4, "name": "organization_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "INT64", "index": 9, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 10, "name": "ad_name", "comment": null}, "currency": {"type": "STRING", "index": 11, "name": "currency", "comment": null}, "ad_status": {"type": "STRING", "index": 12, "name": "ad_status", "comment": null}, "taps": {"type": "INT64", "index": 13, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 16, "name": "total_downloads", "comment": null}, "conversions": {"type": "INT64", "index": 17, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 19, "name": "spend", "comment": null}, "installs": {"type": "FLOAT64", "index": 20, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 21, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__ad_report"}, "model.apple_search_ads.apple_search_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "apple_search_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 3, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 4, "name": "organization_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "campaign_status": {"type": "STRING", "index": 8, "name": "campaign_status", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 9, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 10, "name": "end_at", "comment": null}, "taps": {"type": "INT64", "index": 11, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 12, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 13, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 14, "name": "total_downloads", "comment": null}, "conversions": {"type": "INT64", "index": 15, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}, "installs": {"type": "FLOAT64", "index": 18, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 19, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__campaign_report"}, "model.apple_search_ads.apple_search_ads__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "apple_search_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 3, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 4, "name": "organization_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "INT64", "index": 9, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "STRING", "index": 10, "name": "keyword_text", "comment": null}, "match_type": {"type": "STRING", "index": 11, "name": "match_type", "comment": null}, "currency": {"type": "STRING", "index": 12, "name": "currency", "comment": null}, "keyword_status": {"type": "STRING", "index": 13, "name": "keyword_status", "comment": null}, "taps": {"type": "INT64", "index": 14, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 15, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 16, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 17, "name": "total_downloads", "comment": null}, "conversions": {"type": "INT64", "index": 18, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 19, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 20, "name": "spend", "comment": null}, "installs": {"type": "FLOAT64", "index": 21, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 22, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 99, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 18084, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__keyword_report"}, "model.apple_search_ads.apple_search_ads__organization_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "apple_search_ads__organization_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 3, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 4, "name": "organization_name", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "taps": {"type": "INT64", "index": 6, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 7, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 8, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 9, "name": "total_downloads", "comment": null}, "conversions": {"type": "INT64", "index": 10, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 12, "name": "spend", "comment": null}, "installs": {"type": "FLOAT64", "index": 13, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 14, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__organization_report"}, "model.apple_search_ads.apple_search_ads__search_term_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "apple_search_ads__search_term_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "organization_id": {"type": "INT64", "index": 3, "name": "organization_id", "comment": null}, "organization_name": {"type": "STRING", "index": 4, "name": "organization_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "INT64", "index": 9, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "STRING", "index": 10, "name": "keyword_text", "comment": null}, "search_term_text": {"type": "STRING", "index": 11, "name": "search_term_text", "comment": null}, "match_type": {"type": "STRING", "index": 12, "name": "match_type", "comment": null}, "currency": {"type": "STRING", "index": 13, "name": "currency", "comment": null}, "taps": {"type": "INT64", "index": 14, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 15, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 16, "name": "redownloads", "comment": null}, "total_downloads": {"type": "INT64", "index": 17, "name": "total_downloads", "comment": null}, "conversions": {"type": "INT64", "index": 18, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 19, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 20, "name": "spend", "comment": null}, "installs": {"type": "FLOAT64", "index": 21, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 22, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__search_term_report"}, "model.facebook_ads.facebook_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "facebook_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "account_status": {"type": "STRING", "index": 5, "name": "account_status", "comment": null}, "business_country_code": {"type": "STRING", "index": 6, "name": "business_country_code", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 7, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "timezone_name": {"type": "STRING", "index": 9, "name": "timezone_name", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 12, "name": "spend", "comment": null}, "conversions": {"type": "FLOAT64", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 14, "name": "conversions_value", "comment": null}, "reach": {"type": "FLOAT64", "index": 15, "name": "reach", "comment": null}, "fake_freq_name": {"type": "FLOAT64", "index": 16, "name": "fake_freq_name", "comment": null}, "conversion_value_inline": {"type": "FLOAT64", "index": 17, "name": "conversion_value_inline", "comment": null}, "installs": {"type": "FLOAT64", "index": 18, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 19, "name": "videos", "comment": null}, "_7_d_click": {"type": "FLOAT64", "index": 20, "name": "_7_d_click", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1188, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__account_report"}, "model.facebook_ads.facebook_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "facebook_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_set_id": {"type": "INT64", "index": 7, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "STRING", "index": 8, "name": "ad_set_name", "comment": null}, "ad_id": {"type": "INT64", "index": 9, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 10, "name": "ad_name", "comment": null}, "conversion_domain": {"type": "STRING", "index": 11, "name": "conversion_domain", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}, "conversions": {"type": "FLOAT64", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 16, "name": "conversions_value", "comment": null}, "reach": {"type": "FLOAT64", "index": 17, "name": "reach", "comment": null}, "fake_freq_name": {"type": "FLOAT64", "index": 18, "name": "fake_freq_name", "comment": null}, "conversion_value_inline": {"type": "FLOAT64", "index": 19, "name": "conversion_value_inline", "comment": null}, "installs": {"type": "FLOAT64", "index": 20, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 21, "name": "videos", "comment": null}, "_7_d_click": {"type": "FLOAT64", "index": 22, "name": "_7_d_click", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2120, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__ad_report"}, "model.facebook_ads.facebook_ads__ad_set_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "facebook_ads__ad_set_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_set_id": {"type": "INT64", "index": 7, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "STRING", "index": 8, "name": "ad_set_name", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 9, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 10, "name": "end_at", "comment": null}, "bid_strategy": {"type": "STRING", "index": 11, "name": "bid_strategy", "comment": null}, "daily_budget": {"type": "INT64", "index": 12, "name": "daily_budget", "comment": null}, "budget_remaining": {"type": "INT64", "index": 13, "name": "budget_remaining", "comment": null}, "optimization_goal": {"type": "STRING", "index": 14, "name": "optimization_goal", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}, "conversions": {"type": "FLOAT64", "index": 18, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 19, "name": "conversions_value", "comment": null}, "reach": {"type": "FLOAT64", "index": 20, "name": "reach", "comment": null}, "fake_freq_name": {"type": "FLOAT64", "index": 21, "name": "fake_freq_name", "comment": null}, "conversion_value_inline": {"type": "FLOAT64", "index": 22, "name": "conversion_value_inline", "comment": null}, "installs": {"type": "FLOAT64", "index": 23, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 24, "name": "videos", "comment": null}, "_7_d_click": {"type": "FLOAT64", "index": 25, "name": "_7_d_click", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2000, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__ad_set_report"}, "model.facebook_ads.facebook_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "facebook_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 7, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 8, "name": "end_at", "comment": null}, "status": {"type": "STRING", "index": 9, "name": "status", "comment": null}, "daily_budget": {"type": "INT64", "index": 10, "name": "daily_budget", "comment": null}, "lifetime_budget": {"type": "INT64", "index": 11, "name": "lifetime_budget", "comment": null}, "budget_remaining": {"type": "FLOAT64", "index": 12, "name": "budget_remaining", "comment": null}, "clicks": {"type": "INT64", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 15, "name": "spend", "comment": null}, "conversions": {"type": "FLOAT64", "index": 16, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 17, "name": "conversions_value", "comment": null}, "reach": {"type": "FLOAT64", "index": 18, "name": "reach", "comment": null}, "fake_freq_name": {"type": "FLOAT64", "index": 19, "name": "fake_freq_name", "comment": null}, "conversion_value_inline": {"type": "FLOAT64", "index": 20, "name": "conversion_value_inline", "comment": null}, "installs": {"type": "FLOAT64", "index": 21, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 22, "name": "videos", "comment": null}, "_7_d_click": {"type": "FLOAT64", "index": 23, "name": "_7_d_click", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1660, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__campaign_report"}, "model.facebook_ads.facebook_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "facebook_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_set_id": {"type": "INT64", "index": 7, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "STRING", "index": 8, "name": "ad_set_name", "comment": null}, "ad_id": {"type": "INT64", "index": 9, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 10, "name": "ad_name", "comment": null}, "creative_id": {"type": "INT64", "index": 11, "name": "creative_id", "comment": null}, "creative_name": {"type": "STRING", "index": 12, "name": "creative_name", "comment": null}, "base_url": {"type": "STRING", "index": 13, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 14, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 15, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 16, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 17, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 18, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 19, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 20, "name": "utm_term", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 22, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 23, "name": "spend", "comment": null}, "conversions": {"type": "FLOAT64", "index": 24, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 25, "name": "conversions_value", "comment": null}, "reach": {"type": "FLOAT64", "index": 26, "name": "reach", "comment": null}, "fake_freq_name": {"type": "FLOAT64", "index": 27, "name": "fake_freq_name", "comment": null}, "conversion_value_inline": {"type": "FLOAT64", "index": 28, "name": "conversion_value_inline", "comment": null}, "installs": {"type": "FLOAT64", "index": 29, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 30, "name": "videos", "comment": null}, "_7_d_click": {"type": "FLOAT64", "index": 31, "name": "_7_d_click", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__url_report"}, "model.facebook_ads.facebook_ads__url_tags": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "facebook_ads__url_tags", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 2, "name": "_fivetran_id", "comment": null}, "creative_id": {"type": "INT64", "index": 3, "name": "creative_id", "comment": null}, "key": {"type": "STRING", "index": 4, "name": "key", "comment": null}, "value": {"type": "STRING", "index": 5, "name": "value", "comment": null}, "type": {"type": "STRING", "index": 6, "name": "type", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 220, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14410, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__url_tags"}, "model.google_ads.google_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "google_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "auto_tagging_enabled": {"type": "BOOL", "index": 6, "name": "auto_tagging_enabled", "comment": null}, "time_zone": {"type": "INT64", "index": 7, "name": "time_zone", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}, "conversions": {"type": "INT64", "index": 11, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 12, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 13, "name": "view_through_conversions", "comment": null}, "view_through_conversions_aliased": {"type": "FLOAT64", "index": 14, "name": "view_through_conversions_aliased", "comment": null}, "installs": {"type": "FLOAT64", "index": 15, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 16, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1440, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__account_report"}, "model.google_ads.google_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "google_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 9, "name": "ad_group_id", "comment": null}, "ad_group_status": {"type": "STRING", "index": 10, "name": "ad_group_status", "comment": null}, "ad_group_type": {"type": "STRING", "index": 11, "name": "ad_group_type", "comment": null}, "spend": {"type": "FLOAT64", "index": 12, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}, "conversions": {"type": "FLOAT64", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 16, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 17, "name": "view_through_conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 18, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 19, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2085, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__ad_group_report"}, "model.google_ads.google_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "google_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 9, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 10, "name": "ad_id", "comment": null}, "ad_name": {"type": "INT64", "index": 11, "name": "ad_name", "comment": null}, "ad_status": {"type": "STRING", "index": 12, "name": "ad_status", "comment": null}, "ad_type": {"type": "INT64", "index": 13, "name": "ad_type", "comment": null}, "display_url": {"type": "INT64", "index": 14, "name": "display_url", "comment": null}, "source_final_urls": {"type": "STRING", "index": 15, "name": "source_final_urls", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "conversions": {"type": "INT64", "index": 19, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 20, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 21, "name": "view_through_conversions", "comment": null}, "view_through_conversions_aliased": {"type": "FLOAT64", "index": 22, "name": "view_through_conversions_aliased", "comment": null}, "installs": {"type": "FLOAT64", "index": 23, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 24, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1810, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__ad_report"}, "model.google_ads.google_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "google_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "advertising_channel_type": {"type": "STRING", "index": 8, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "STRING", "index": 9, "name": "advertising_channel_subtype", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "spend": {"type": "FLOAT64", "index": 11, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "conversions": {"type": "INT64", "index": 14, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 15, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 16, "name": "view_through_conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 17, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 18, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2400, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__campaign_report"}, "model.google_ads.google_ads__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "google_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 9, "name": "ad_group_id", "comment": null}, "criterion_id": {"type": "INT64", "index": 10, "name": "criterion_id", "comment": null}, "type": {"type": "STRING", "index": 11, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 12, "name": "status", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 13, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "STRING", "index": 14, "name": "keyword_text", "comment": null}, "spend": {"type": "FLOAT64", "index": 15, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "conversions": {"type": "INT64", "index": 18, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 19, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 20, "name": "view_through_conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 21, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 22, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2655, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__keyword_report"}, "model.google_ads.google_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "google_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "INT64", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 9, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 10, "name": "ad_id", "comment": null}, "base_url": {"type": "STRING", "index": 11, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 12, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 13, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 14, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 15, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 16, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 17, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 18, "name": "utm_term", "comment": null}, "spend": {"type": "FLOAT64", "index": 19, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 20, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "conversions": {"type": "INT64", "index": 22, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 23, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 24, "name": "view_through_conversions", "comment": null}, "view_through_conversions_aliased": {"type": "FLOAT64", "index": 25, "name": "view_through_conversions_aliased", "comment": null}, "installs": {"type": "FLOAT64", "index": 26, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 27, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1640, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__url_report"}, "model.amazon_ads.int_amazon_ads__portfolio_history": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "int_amazon_ads__portfolio_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "portfolio_id": {"type": "STRING", "index": 2, "name": "portfolio_id", "comment": null}, "budget_amount": {"type": "INT64", "index": 3, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "INT64", "index": 4, "name": "budget_currency_code", "comment": null}, "budget_end_date": {"type": "INT64", "index": 5, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "INT64", "index": 6, "name": "budget_policy", "comment": null}, "budget_start_date": {"type": "INT64", "index": 7, "name": "budget_start_date", "comment": null}, "creation_date": {"type": "STRING", "index": 8, "name": "creation_date", "comment": null}, "in_budget": {"type": "BOOL", "index": 9, "name": "in_budget", "comment": null}, "last_updated_date": {"type": "STRING", "index": 10, "name": "last_updated_date", "comment": null}, "portfolio_name": {"type": "STRING", "index": 11, "name": "portfolio_name", "comment": null}, "profile_id": {"type": "STRING", "index": 12, "name": "profile_id", "comment": null}, "serving_status": {"type": "STRING", "index": 13, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 14, "name": "state", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 15, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.int_amazon_ads__portfolio_history"}, "model.facebook_ads.int_facebook_ads__conversions": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "int_facebook_ads__conversions", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "date_day": {"type": "DATE", "index": 3, "name": "date_day", "comment": null}, "conversions": {"type": "FLOAT64", "index": 4, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 5, "name": "conversions_value", "comment": null}, "conversion_value_inline": {"type": "FLOAT64", "index": 6, "name": "conversion_value_inline", "comment": null}, "installs": {"type": "FLOAT64", "index": 7, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 8, "name": "videos", "comment": null}, "_7_d_click": {"type": "FLOAT64", "index": 9, "name": "_7_d_click", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.int_facebook_ads__conversions"}, "model.facebook_ads.int_facebook_ads__creative_history": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "int_facebook_ads__creative_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 2, "name": "_fivetran_id", "comment": null}, "creative_id": {"type": "INT64", "index": 3, "name": "creative_id", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "creative_name": {"type": "STRING", "index": 5, "name": "creative_name", "comment": null}, "url": {"type": "STRING", "index": 6, "name": "url", "comment": null}, "base_url": {"type": "STRING", "index": 7, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 8, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 9, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 10, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 11, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 12, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 13, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 14, "name": "utm_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.int_facebook_ads__creative_history"}, "model.linkedin.linkedin_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "linkedin_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 5, "name": "version_tag", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 8, "name": "type", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 9, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 10, "name": "created_at", "comment": null}, "total_conversions": {"type": "INT64", "index": 11, "name": "total_conversions", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "cost": {"type": "FLOAT64", "index": 14, "name": "cost", "comment": null}, "conversion_value_in_local_currency": {"type": "FLOAT64", "index": 15, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 16, "name": "external_website_conversions", "comment": null}, "conversions": {"type": "FLOAT64", "index": 17, "name": "conversions", "comment": null}, "videos": {"type": "FLOAT64", "index": 18, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 20, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2756, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__account_report"}, "model.linkedin.linkedin_ads__campaign_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "linkedin_ads__campaign_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 3, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "STRING", "index": 4, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "INT64", "index": 5, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 6, "name": "account_name", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "is_backfilled": {"type": "BOOL", "index": 9, "name": "is_backfilled", "comment": null}, "run_schedule_start_at": {"type": "TIMESTAMP", "index": 10, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "TIMESTAMP", "index": 11, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 12, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 13, "name": "created_at", "comment": null}, "total_conversions": {"type": "INT64", "index": 14, "name": "total_conversions", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "cost": {"type": "FLOAT64", "index": 17, "name": "cost", "comment": null}, "conversion_value_in_local_currency": {"type": "FLOAT64", "index": 18, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 19, "name": "external_website_conversions", "comment": null}, "conversions": {"type": "FLOAT64", "index": 20, "name": "conversions", "comment": null}, "videos": {"type": "FLOAT64", "index": 21, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 20, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3116, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__campaign_group_report"}, "model.linkedin.linkedin_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "linkedin_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 5, "name": "version_tag", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 6, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "STRING", "index": 7, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "INT64", "index": 8, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 9, "name": "account_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 10, "name": "campaign_status", "comment": null}, "campaign_group_status": {"type": "STRING", "index": 11, "name": "campaign_group_status", "comment": null}, "type": {"type": "STRING", "index": 12, "name": "type", "comment": null}, "cost_type": {"type": "STRING", "index": 13, "name": "cost_type", "comment": null}, "creative_selection": {"type": "STRING", "index": 14, "name": "creative_selection", "comment": null}, "daily_budget_amount": {"type": "FLOAT64", "index": 15, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency_code": {"type": "STRING", "index": 16, "name": "daily_budget_currency_code", "comment": null}, "unit_cost_amount": {"type": "FLOAT64", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "STRING", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "currency": {"type": "STRING", "index": 19, "name": "currency", "comment": null}, "format": {"type": "STRING", "index": 20, "name": "format", "comment": null}, "locale_country": {"type": "STRING", "index": 21, "name": "locale_country", "comment": null}, "locale_language": {"type": "STRING", "index": 22, "name": "locale_language", "comment": null}, "objective_type": {"type": "STRING", "index": 23, "name": "objective_type", "comment": null}, "optimization_target_type": {"type": "STRING", "index": 24, "name": "optimization_target_type", "comment": null}, "is_audience_expansion_enabled": {"type": "BOOL", "index": 25, "name": "is_audience_expansion_enabled", "comment": null}, "is_offsite_delivery_enabled": {"type": "BOOL", "index": 26, "name": "is_offsite_delivery_enabled", "comment": null}, "run_schedule_start_at": {"type": "TIMESTAMP", "index": 27, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "TIMESTAMP", "index": 28, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 29, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 30, "name": "created_at", "comment": null}, "total_conversions": {"type": "INT64", "index": 31, "name": "total_conversions", "comment": null}, "clicks": {"type": "INT64", "index": 32, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 33, "name": "impressions", "comment": null}, "cost": {"type": "FLOAT64", "index": 34, "name": "cost", "comment": null}, "conversion_value_in_local_currency": {"type": "FLOAT64", "index": 35, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 36, "name": "external_website_conversions", "comment": null}, "conversions": {"type": "FLOAT64", "index": 37, "name": "conversions", "comment": null}, "videos": {"type": "FLOAT64", "index": 38, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 20, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4116, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__campaign_report"}, "model.linkedin.linkedin_ads__creative_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "linkedin_ads__creative_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "creative_id": {"type": "INT64", "index": 3, "name": "creative_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 6, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "STRING", "index": 7, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "INT64", "index": 8, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 9, "name": "account_name", "comment": null}, "click_uri": {"type": "STRING", "index": 10, "name": "click_uri", "comment": null}, "creative_status": {"type": "STRING", "index": 11, "name": "creative_status", "comment": null}, "campaign_status": {"type": "STRING", "index": 12, "name": "campaign_status", "comment": null}, "campaign_group_status": {"type": "STRING", "index": 13, "name": "campaign_group_status", "comment": null}, "currency": {"type": "STRING", "index": 14, "name": "currency", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 15, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 16, "name": "created_at", "comment": null}, "total_conversions": {"type": "INT64", "index": 17, "name": "total_conversions", "comment": null}, "clicks": {"type": "INT64", "index": 18, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 19, "name": "impressions", "comment": null}, "cost": {"type": "INT64", "index": 20, "name": "cost", "comment": null}, "conversion_value_in_local_currency": {"type": "FLOAT64", "index": 21, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 22, "name": "external_website_conversions", "comment": null}, "conversions": {"type": "FLOAT64", "index": 23, "name": "conversions", "comment": null}, "videos": {"type": "FLOAT64", "index": 24, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10692, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__creative_report"}, "model.linkedin.linkedin_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "linkedin_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "click_uri": {"type": "STRING", "index": 3, "name": "click_uri", "comment": null}, "base_url": {"type": "STRING", "index": 4, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 5, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 6, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 7, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 8, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 9, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 10, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 11, "name": "utm_term", "comment": null}, "creative_id": {"type": "INT64", "index": 12, "name": "creative_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 13, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 14, "name": "campaign_name", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 15, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "STRING", "index": 16, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "INT64", "index": 17, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 18, "name": "account_name", "comment": null}, "currency": {"type": "STRING", "index": 19, "name": "currency", "comment": null}, "total_conversions": {"type": "INT64", "index": 20, "name": "total_conversions", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 22, "name": "impressions", "comment": null}, "cost": {"type": "INT64", "index": 23, "name": "cost", "comment": null}, "conversion_value_in_local_currency": {"type": "FLOAT64", "index": 24, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 25, "name": "external_website_conversions", "comment": null}, "conversions": {"type": "FLOAT64", "index": 26, "name": "conversions", "comment": null}, "videos": {"type": "FLOAT64", "index": 27, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 123, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__url_report"}, "model.ad_reporting.metricflow_time_spine": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "metricflow_time_spine", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3651, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 29208, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.metricflow_time_spine"}, "model.microsoft_ads.microsoft_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "microsoft_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "account_timezone": {"type": "STRING", "index": 5, "name": "account_timezone", "comment": null}, "device_os": {"type": "STRING", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 8, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 9, "name": "currency_code", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 12, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 14, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "INT64", "index": 15, "name": "all_conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 16, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 17, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1558, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__account_report"}, "model.microsoft_ads.microsoft_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "microsoft_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 8, "name": "ad_group_id", "comment": null}, "device_os": {"type": "STRING", "index": 9, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 10, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 11, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 12, "name": "currency_code", "comment": null}, "clicks": {"type": "INT64", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 15, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 16, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 17, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "INT64", "index": 18, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "FLOAT64", "index": 19, "name": "all_conversions_value", "comment": null}, "all_conversions_qualified": {"type": "FLOAT64", "index": 20, "name": "all_conversions_qualified", "comment": null}, "installs": {"type": "FLOAT64", "index": 21, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 22, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 182, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 41042, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__ad_group_report"}, "model.microsoft_ads.microsoft_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "microsoft_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 8, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "STRING", "index": 9, "name": "ad_name", "comment": null}, "ad_id": {"type": "INT64", "index": 10, "name": "ad_id", "comment": null}, "ad_type": {"type": "STRING", "index": 11, "name": "ad_type", "comment": null}, "device_os": {"type": "STRING", "index": 12, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 13, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 14, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 15, "name": "currency_code", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 19, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 20, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "INT64", "index": 21, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "FLOAT64", "index": 22, "name": "all_conversions_value", "comment": null}, "assists": {"type": "FLOAT64", "index": 23, "name": "assists", "comment": null}, "revenue": {"type": "FLOAT64", "index": 24, "name": "revenue", "comment": null}, "installs": {"type": "FLOAT64", "index": 25, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 26, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 312, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 73898, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__ad_report"}, "model.microsoft_ads.microsoft_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "microsoft_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "campaign_type": {"type": "STRING", "index": 7, "name": "campaign_type", "comment": null}, "campaign_timezone": {"type": "STRING", "index": 8, "name": "campaign_timezone", "comment": null}, "campaign_status": {"type": "STRING", "index": 9, "name": "campaign_status", "comment": null}, "device_os": {"type": "STRING", "index": 10, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 11, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 12, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 13, "name": "currency_code", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 18, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "INT64", "index": 19, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "FLOAT64", "index": 20, "name": "all_conversions_value", "comment": null}, "assists": {"type": "FLOAT64", "index": 21, "name": "assists", "comment": null}, "revenue": {"type": "FLOAT64", "index": 22, "name": "revenue", "comment": null}, "installs": {"type": "FLOAT64", "index": 23, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 24, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1520, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 370022, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__campaign_report"}, "model.microsoft_ads.microsoft_ads__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "microsoft_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 8, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "STRING", "index": 9, "name": "ad_name", "comment": null}, "ad_id": {"type": "INT64", "index": 10, "name": "ad_id", "comment": null}, "keyword_name": {"type": "STRING", "index": 11, "name": "keyword_name", "comment": null}, "keyword_id": {"type": "INT64", "index": 12, "name": "keyword_id", "comment": null}, "match_type": {"type": "STRING", "index": 13, "name": "match_type", "comment": null}, "device_os": {"type": "STRING", "index": 14, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 15, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 16, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 17, "name": "currency_code", "comment": null}, "clicks": {"type": "INT64", "index": 18, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 19, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 20, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 21, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 22, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "INT64", "index": 23, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "FLOAT64", "index": 24, "name": "all_conversions_value", "comment": null}, "installs": {"type": "FLOAT64", "index": 25, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 26, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 52, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10738, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__keyword_report"}, "model.microsoft_ads.microsoft_ads__search_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "microsoft_ads__search_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 8, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "STRING", "index": 9, "name": "ad_name", "comment": null}, "ad_id": {"type": "INT64", "index": 10, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 11, "name": "keyword_id", "comment": null}, "keyword_name": {"type": "STRING", "index": 12, "name": "keyword_name", "comment": null}, "match_type": {"type": "STRING", "index": 13, "name": "match_type", "comment": null}, "search_query": {"type": "STRING", "index": 14, "name": "search_query", "comment": null}, "device_os": {"type": "STRING", "index": 15, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 16, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 17, "name": "network", "comment": null}, "clicks": {"type": "INT64", "index": 18, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 19, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 20, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 21, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 22, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "INT64", "index": 23, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "FLOAT64", "index": 24, "name": "all_conversions_value", "comment": null}, "installs": {"type": "FLOAT64", "index": 25, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 26, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2546, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__search_report"}, "model.microsoft_ads.microsoft_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "microsoft_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 8, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "STRING", "index": 9, "name": "ad_name", "comment": null}, "ad_id": {"type": "INT64", "index": 10, "name": "ad_id", "comment": null}, "device_os": {"type": "STRING", "index": 11, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 12, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 13, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 14, "name": "currency_code", "comment": null}, "base_url": {"type": "STRING", "index": 15, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 16, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 17, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 18, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 19, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 20, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 21, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 22, "name": "utm_term", "comment": null}, "clicks": {"type": "INT64", "index": 23, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 24, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 25, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 26, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 27, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "INT64", "index": 28, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "FLOAT64", "index": 29, "name": "all_conversions_value", "comment": null}, "assists": {"type": "FLOAT64", "index": 30, "name": "assists", "comment": null}, "revenue": {"type": "FLOAT64", "index": 31, "name": "revenue", "comment": null}, "installs": {"type": "FLOAT64", "index": 32, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 33, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 312, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 84340, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__url_report"}, "model.pinterest.pinterest_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "pinterest_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "STRING", "index": 4, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 6, "name": "campaign_status", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 9, "name": "ad_group_id", "comment": null}, "created_at": {"type": "STRING", "index": 10, "name": "created_at", "comment": null}, "start_time": {"type": "STRING", "index": 11, "name": "start_time", "comment": null}, "end_time": {"type": "INT64", "index": 12, "name": "end_time", "comment": null}, "ad_group_status": {"type": "STRING", "index": 13, "name": "ad_group_status", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "total_conversions": {"type": "INT64", "index": 17, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 18, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "FLOAT64", "index": 19, "name": "total_conversions_value", "comment": null}, "conversions": {"type": "FLOAT64", "index": 20, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 21, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 22, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 465, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__ad_group_report"}, "model.pinterest.pinterest_ads__advertiser_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "pinterest_ads__advertiser_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "STRING", "index": 4, "name": "advertiser_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "total_conversions": {"type": "INT64", "index": 10, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 11, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "FLOAT64", "index": 12, "name": "total_conversions_value", "comment": null}, "conversions": {"type": "FLOAT64", "index": 13, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 14, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 15, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 455, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__advertiser_report"}, "model.pinterest.pinterest_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "pinterest_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "STRING", "index": 4, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "campaign_status": {"type": "STRING", "index": 7, "name": "campaign_status", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}, "total_conversions": {"type": "INT64", "index": 11, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 12, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "FLOAT64", "index": 13, "name": "total_conversions_value", "comment": null}, "paid_impression": {"type": "FLOAT64", "index": 14, "name": "paid_impression", "comment": null}, "conversions": {"type": "FLOAT64", "index": 15, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 16, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 17, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 500, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__campaign_report"}, "model.pinterest.pinterest_ads__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "pinterest_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "STRING", "index": 4, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 8, "name": "ad_group_id", "comment": null}, "keyword_id": {"type": "STRING", "index": 9, "name": "keyword_id", "comment": null}, "match_type": {"type": "STRING", "index": 10, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 11, "name": "parent_type", "comment": null}, "keyword_value": {"type": "STRING", "index": 12, "name": "keyword_value", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "total_conversions": {"type": "INT64", "index": 16, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 17, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "FLOAT64", "index": 18, "name": "total_conversions_value", "comment": null}, "conversions": {"type": "FLOAT64", "index": 19, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 20, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 21, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 6, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1406, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__keyword_report"}, "model.pinterest.pinterest_ads__pin_promotion_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "pinterest_ads__pin_promotion_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "STRING", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 4, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 7, "name": "campaign_status", "comment": null}, "ad_group_id": {"type": "STRING", "index": 8, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 9, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 10, "name": "ad_group_status", "comment": null}, "creative_type": {"type": "STRING", "index": 11, "name": "creative_type", "comment": null}, "pin_promotion_id": {"type": "STRING", "index": 12, "name": "pin_promotion_id", "comment": null}, "pin_name": {"type": "STRING", "index": 13, "name": "pin_name", "comment": null}, "pin_status": {"type": "STRING", "index": 14, "name": "pin_status", "comment": null}, "destination_url": {"type": "STRING", "index": 15, "name": "destination_url", "comment": null}, "base_url": {"type": "STRING", "index": 16, "name": "base_url", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 18, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 19, "name": "impressions", "comment": null}, "total_conversions": {"type": "INT64", "index": 20, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 21, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "FLOAT64", "index": 22, "name": "total_conversions_value", "comment": null}, "paid_impression": {"type": "FLOAT64", "index": 23, "name": "paid_impression", "comment": null}, "conversions": {"type": "FLOAT64", "index": 24, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 25, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 26, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 590, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__pin_promotion_report"}, "model.pinterest.pinterest_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "pinterest_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "STRING", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 4, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 7, "name": "campaign_status", "comment": null}, "ad_group_id": {"type": "STRING", "index": 8, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 9, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 10, "name": "ad_group_status", "comment": null}, "destination_url": {"type": "STRING", "index": 11, "name": "destination_url", "comment": null}, "creative_type": {"type": "STRING", "index": 12, "name": "creative_type", "comment": null}, "pin_promotion_id": {"type": "STRING", "index": 13, "name": "pin_promotion_id", "comment": null}, "pin_name": {"type": "STRING", "index": 14, "name": "pin_name", "comment": null}, "pin_status": {"type": "STRING", "index": 15, "name": "pin_status", "comment": null}, "base_url": {"type": "STRING", "index": 16, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 17, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 18, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 19, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 20, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 21, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 22, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 23, "name": "utm_term", "comment": null}, "spend": {"type": "FLOAT64", "index": 24, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 25, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 26, "name": "impressions", "comment": null}, "total_conversions": {"type": "INT64", "index": 27, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 28, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "FLOAT64", "index": 29, "name": "total_conversions_value", "comment": null}, "paid_impression": {"type": "FLOAT64", "index": 30, "name": "paid_impression", "comment": null}, "conversions": {"type": "FLOAT64", "index": 31, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 32, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 33, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__url_report"}, "model.reddit_ads.reddit_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "reddit_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "attribution_type": {"type": "STRING", "index": 5, "name": "attribution_type", "comment": null}, "status": {"type": "INT64", "index": 6, "name": "status", "comment": null}, "time_zone_id": {"type": "STRING", "index": 7, "name": "time_zone_id", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 10, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 11, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 12, "name": "view_through_conversions", "comment": null}, "total_value": {"type": "FLOAT64", "index": 13, "name": "total_value", "comment": null}, "total_items": {"type": "INT64", "index": 14, "name": "total_items", "comment": null}, "conversions_c": {"type": "FLOAT64", "index": 15, "name": "conversions_c", "comment": null}, "installs": {"type": "FLOAT64", "index": 16, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 17, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 56, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4960, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads.reddit_ads__account_report"}, "model.reddit_ads.reddit_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "reddit_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 4, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 11, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 12, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 13, "name": "view_through_conversions", "comment": null}, "total_value": {"type": "FLOAT64", "index": 14, "name": "total_value", "comment": null}, "total_items": {"type": "INT64", "index": 15, "name": "total_items", "comment": null}, "conversions_c": {"type": "FLOAT64", "index": 16, "name": "conversions_c", "comment": null}, "installs": {"type": "FLOAT64", "index": 17, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 18, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9416, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads.reddit_ads__ad_group_report"}, "model.reddit_ads.reddit_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "reddit_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "ad_id": {"type": "INT64", "index": 3, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 4, "name": "ad_name", "comment": null}, "account_id": {"type": "INT64", "index": 5, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 9, "name": "ad_group_id", "comment": null}, "currency": {"type": "STRING", "index": 10, "name": "currency", "comment": null}, "post_id": {"type": "STRING", "index": 11, "name": "post_id", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 15, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 16, "name": "view_through_conversions", "comment": null}, "total_value": {"type": "FLOAT64", "index": 17, "name": "total_value", "comment": null}, "total_items": {"type": "INT64", "index": 18, "name": "total_items", "comment": null}, "conversions_c": {"type": "FLOAT64", "index": 19, "name": "conversions_c", "comment": null}, "installs": {"type": "FLOAT64", "index": 20, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 21, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7100, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads.reddit_ads__ad_report"}, "model.reddit_ads.reddit_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "reddit_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 8, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 10, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 11, "name": "view_through_conversions", "comment": null}, "total_value": {"type": "FLOAT64", "index": 12, "name": "total_value", "comment": null}, "total_items": {"type": "INT64", "index": 13, "name": "total_items", "comment": null}, "conversions_c": {"type": "FLOAT64", "index": 14, "name": "conversions_c", "comment": null}, "installs": {"type": "FLOAT64", "index": 15, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 16, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 79, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6613, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads.reddit_ads__campaign_report"}, "model.reddit_ads.reddit_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "reddit_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "ad_name": {"type": "STRING", "index": 3, "name": "ad_name", "comment": null}, "ad_id": {"type": "INT64", "index": 4, "name": "ad_id", "comment": null}, "account_id": {"type": "INT64", "index": 5, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 9, "name": "ad_group_id", "comment": null}, "currency": {"type": "STRING", "index": 10, "name": "currency", "comment": null}, "post_id": {"type": "STRING", "index": 11, "name": "post_id", "comment": null}, "post_url": {"type": "INT64", "index": 12, "name": "post_url", "comment": null}, "click_url": {"type": "STRING", "index": 13, "name": "click_url", "comment": null}, "base_url": {"type": "STRING", "index": 14, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 15, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 16, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 17, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 18, "name": "utm_medium", "comment": null}, "utm_term": {"type": "STRING", "index": 19, "name": "utm_term", "comment": null}, "utm_content": {"type": "STRING", "index": 20, "name": "utm_content", "comment": null}, "utm_campaign": {"type": "STRING", "index": 21, "name": "utm_campaign", "comment": null}, "clicks": {"type": "INT64", "index": 22, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 23, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 24, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 25, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 26, "name": "view_through_conversions", "comment": null}, "total_value": {"type": "FLOAT64", "index": 27, "name": "total_value", "comment": null}, "total_items": {"type": "INT64", "index": 28, "name": "total_items", "comment": null}, "conversions_c": {"type": "FLOAT64", "index": 29, "name": "conversions_c", "comment": null}, "installs": {"type": "FLOAT64", "index": 30, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 31, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads.reddit_ads__url_report"}, "model.snapchat_ads.snapchat_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "snapchat_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "ad_account_id": {"type": "STRING", "index": 3, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 4, "name": "ad_account_name", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "swipes": {"type": "INT64", "index": 6, "name": "swipes", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "total_conversions": {"type": "INT64", "index": 9, "name": "total_conversions", "comment": null}, "conversion_purchases_value": {"type": "NUMERIC", "index": 10, "name": "conversion_purchases_value", "comment": null}, "conversion_add_billing_alias": {"type": "FLOAT64", "index": 11, "name": "conversion_add_billing_alias", "comment": null}, "conversions": {"type": "FLOAT64", "index": 12, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 13, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 14, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 648, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__account_report"}, "model.snapchat_ads.snapchat_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "snapchat_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "ad_account_id": {"type": "STRING", "index": 3, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 4, "name": "ad_account_name", "comment": null}, "ad_id": {"type": "STRING", "index": 5, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 6, "name": "ad_name", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "swipes": {"type": "INT64", "index": 8, "name": "swipes", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 10, "name": "spend", "comment": null}, "total_conversions": {"type": "INT64", "index": 11, "name": "total_conversions", "comment": null}, "conversion_purchases_value": {"type": "NUMERIC", "index": 12, "name": "conversion_purchases_value", "comment": null}, "conversion_add_billing_alias": {"type": "FLOAT64", "index": 13, "name": "conversion_add_billing_alias", "comment": null}, "conversions": {"type": "FLOAT64", "index": 14, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 15, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 16, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 70, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 16380, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__ad_report"}, "model.snapchat_ads.snapchat_ads__ad_squad_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "snapchat_ads__ad_squad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "ad_account_id": {"type": "STRING", "index": 3, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 4, "name": "ad_account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 7, "name": "ad_squad_id", "comment": null}, "ad_squad_name": {"type": "STRING", "index": 8, "name": "ad_squad_name", "comment": null}, "currency": {"type": "STRING", "index": 9, "name": "currency", "comment": null}, "swipes": {"type": "INT64", "index": 10, "name": "swipes", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 12, "name": "spend", "comment": null}, "total_conversions": {"type": "INT64", "index": 13, "name": "total_conversions", "comment": null}, "conversion_purchases_value": {"type": "NUMERIC", "index": 14, "name": "conversion_purchases_value", "comment": null}, "conversions": {"type": "FLOAT64", "index": 15, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 16, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 17, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 240, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__ad_squad_report"}, "model.snapchat_ads.snapchat_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "snapchat_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "ad_account_id": {"type": "STRING", "index": 3, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 4, "name": "ad_account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "swipes": {"type": "INT64", "index": 8, "name": "swipes", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 10, "name": "spend", "comment": null}, "total_conversions": {"type": "INT64", "index": 11, "name": "total_conversions", "comment": null}, "conversion_purchases_value": {"type": "NUMERIC", "index": 12, "name": "conversion_purchases_value", "comment": null}, "conversion_add_billing_alias": {"type": "FLOAT64", "index": 13, "name": "conversion_add_billing_alias", "comment": null}, "conversions": {"type": "FLOAT64", "index": 14, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 15, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 16, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 128, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__campaign_report"}, "model.snapchat_ads.snapchat_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "snapchat_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "ad_account_id": {"type": "STRING", "index": 3, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 4, "name": "ad_account_name", "comment": null}, "ad_id": {"type": "STRING", "index": 5, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 6, "name": "ad_name", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 7, "name": "ad_squad_id", "comment": null}, "ad_squad_name": {"type": "STRING", "index": 8, "name": "ad_squad_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 9, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 10, "name": "campaign_name", "comment": null}, "currency": {"type": "STRING", "index": 11, "name": "currency", "comment": null}, "base_url": {"type": "STRING", "index": 12, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 13, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 14, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 15, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 16, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 17, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 18, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 19, "name": "utm_term", "comment": null}, "swipes": {"type": "INT64", "index": 20, "name": "swipes", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 22, "name": "spend", "comment": null}, "total_conversions": {"type": "INT64", "index": 23, "name": "total_conversions", "comment": null}, "conversion_purchases_value": {"type": "NUMERIC", "index": 24, "name": "conversion_purchases_value", "comment": null}, "conversion_add_billing_alias": {"type": "FLOAT64", "index": 25, "name": "conversion_add_billing_alias", "comment": null}, "conversions": {"type": "FLOAT64", "index": 26, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 27, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 28, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 70, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 35992, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__url_report"}, "model.amazon_ads_source.stg_amazon_ads__ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "STRING", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 3, "name": "campaign_id", "comment": null}, "creation_date": {"type": "STRING", "index": 4, "name": "creation_date", "comment": null}, "default_bid": {"type": "FLOAT64", "index": 5, "name": "default_bid", "comment": null}, "last_updated_date": {"type": "STRING", "index": 6, "name": "last_updated_date", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "serving_status": {"type": "STRING", "index": 8, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 9, "name": "state", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 228, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history"}, "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__ad_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "STRING", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "creation_date": {"type": "STRING", "index": 5, "name": "creation_date", "comment": null}, "default_bid": {"type": "FLOAT64", "index": 6, "name": "default_bid", "comment": null}, "name": {"type": "STRING", "index": 7, "name": "name", "comment": null}, "serving_status": {"type": "STRING", "index": 8, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 9, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp"}, "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__ad_group_level_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "STRING", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_bidding_strategy": {"type": "STRING", "index": 3, "name": "campaign_bidding_strategy", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 5, "name": "cost", "comment": null}, "date_day": {"type": "DATE", "index": 6, "name": "date_day", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "INT64", "index": 8, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "FLOAT64", "index": 9, "name": "sales_30_d", "comment": null}, "conversions": {"type": "FLOAT64", "index": 10, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 11, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 12, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 710, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"}, "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__ad_group_level_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_bidding_strategy": {"type": "STRING", "index": 4, "name": "campaign_bidding_strategy", "comment": null}, "clicks": {"type": "INT64", "index": 5, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 6, "name": "cost", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp"}, "model.amazon_ads_source.stg_amazon_ads__advertised_product_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__advertised_product_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "STRING", "index": 2, "name": "ad_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 3, "name": "ad_group_id", "comment": null}, "advertised_asin": {"type": "STRING", "index": 4, "name": "advertised_asin", "comment": null}, "advertised_sku": {"type": "STRING", "index": 5, "name": "advertised_sku", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 8, "name": "campaign_budget_type", "comment": null}, "campaign_id": {"type": "STRING", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 11, "name": "cost", "comment": null}, "date_day": {"type": "DATE", "index": 12, "name": "date_day", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "INT64", "index": 14, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "FLOAT64", "index": 15, "name": "sales_30_d", "comment": null}, "conversions": {"type": "FLOAT64", "index": 16, "name": "conversions", "comment": null}, "sales_30_d_alias": {"type": "FLOAT64", "index": 17, "name": "sales_30_d_alias", "comment": null}, "installs": {"type": "FLOAT64", "index": 18, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 19, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1084, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report"}, "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__advertised_product_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 4, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 8, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 10, "name": "cost", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, " advertised_asin": {"type": "INT64", "index": 12, "name": " advertised_asin", "comment": null}, " advertised_sku": {"type": "INT64", "index": 13, "name": " advertised_sku", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp"}, "model.amazon_ads_source.stg_amazon_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "last_updated_date": {"type": "STRING", "index": 3, "name": "last_updated_date", "comment": null}, "bidding_strategy": {"type": "STRING", "index": 4, "name": "bidding_strategy", "comment": null}, "creation_date": {"type": "STRING", "index": 5, "name": "creation_date", "comment": null}, "end_date": {"type": "INT64", "index": 6, "name": "end_date", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "portfolio_id": {"type": "STRING", "index": 8, "name": "portfolio_id", "comment": null}, "profile_id": {"type": "STRING", "index": 9, "name": "profile_id", "comment": null}, "serving_status": {"type": "STRING", "index": 10, "name": "serving_status", "comment": null}, "start_date": {"type": "DATE", "index": 11, "name": "start_date", "comment": null}, "state": {"type": "STRING", "index": 12, "name": "state", "comment": null}, "targeting_type": {"type": "STRING", "index": 13, "name": "targeting_type", "comment": null}, "budget": {"type": "INT64", "index": 14, "name": "budget", "comment": null}, "budget_type": {"type": "STRING", "index": 15, "name": "budget_type", "comment": null}, "effective_budget": {"type": "INT64", "index": 16, "name": "effective_budget", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 17, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 6, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 983, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history"}, "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "STRING", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "bidding_strategy": {"type": "STRING", "index": 4, "name": "bidding_strategy", "comment": null}, "creation_date": {"type": "STRING", "index": 5, "name": "creation_date", "comment": null}, "budget": {"type": "INT64", "index": 6, "name": "budget", "comment": null}, "end_date": {"type": "INT64", "index": 7, "name": "end_date", "comment": null}, "name": {"type": "STRING", "index": 8, "name": "name", "comment": null}, "portfolio_id": {"type": "INT64", "index": 9, "name": "portfolio_id", "comment": null}, "profile_id": {"type": "INT64", "index": 10, "name": "profile_id", "comment": null}, "serving_status": {"type": "STRING", "index": 11, "name": "serving_status", "comment": null}, "start_date": {"type": "DATE", "index": 12, "name": "start_date", "comment": null}, "state": {"type": "STRING", "index": 13, "name": "state", "comment": null}, "targeting_type": {"type": "STRING", "index": 14, "name": "targeting_type", "comment": null}, "budget_type": {"type": "STRING", "index": 15, "name": "budget_type", "comment": null}, "effective_budget": {"type": "INT64", "index": 16, "name": "effective_budget", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp"}, "model.amazon_ads_source.stg_amazon_ads__campaign_level_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__campaign_level_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "campaign_applicable_budget_rule_id": {"type": "INT64", "index": 2, "name": "campaign_applicable_budget_rule_id", "comment": null}, "campaign_applicable_budget_rule_name": {"type": "INT64", "index": 3, "name": "campaign_applicable_budget_rule_name", "comment": null}, "campaign_bidding_strategy": {"type": "STRING", "index": 4, "name": "campaign_bidding_strategy", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 5, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 6, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 7, "name": "campaign_budget_type", "comment": null}, "campaign_id": {"type": "STRING", "index": 8, "name": "campaign_id", "comment": null}, "campaign_rule_based_budget_amount": {"type": "INT64", "index": 9, "name": "campaign_rule_based_budget_amount", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 11, "name": "cost", "comment": null}, "date_day": {"type": "DATE", "index": 12, "name": "date_day", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "INT64", "index": 14, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "INT64", "index": 15, "name": "sales_30_d", "comment": null}, "conversions": {"type": "FLOAT64", "index": 16, "name": "conversions", "comment": null}, "sales_30_d_alias": {"type": "FLOAT64", "index": 17, "name": "sales_30_d_alias", "comment": null}, "installs": {"type": "FLOAT64", "index": 18, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 19, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1181, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report"}, "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__campaign_level_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_applicable_budget_rule_id": {"type": "INT64", "index": 4, "name": "campaign_applicable_budget_rule_id", "comment": null}, "campaign_applicable_budget_rule_name": {"type": "INT64", "index": 5, "name": "campaign_applicable_budget_rule_name", "comment": null}, "campaign_bidding_strategy": {"type": "STRING", "index": 6, "name": "campaign_bidding_strategy", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 9, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 11, "name": "cost", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "campaign_rule_based_budget_amount": {"type": "INT64", "index": 13, "name": "campaign_rule_based_budget_amount", "comment": null}, "sales_7_d": {"type": "INT64", "index": 14, "name": "sales_7_d", "comment": null}, "purchases_30_d": {"type": "INT64", "index": 15, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "INT64", "index": 16, "name": "sales_30_d", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp"}, "model.amazon_ads_source.stg_amazon_ads__keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__keyword_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "keyword_id": {"type": "STRING", "index": 2, "name": "keyword_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 3, "name": "ad_group_id", "comment": null}, "bid": {"type": "FLOAT64", "index": 4, "name": "bid", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "creation_date": {"type": "STRING", "index": 6, "name": "creation_date", "comment": null}, "keyword_text": {"type": "STRING", "index": 7, "name": "keyword_text", "comment": null}, "last_updated_date": {"type": "STRING", "index": 8, "name": "last_updated_date", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "native_language_keyword": {"type": "INT64", "index": 10, "name": "native_language_keyword", "comment": null}, "serving_status": {"type": "STRING", "index": 11, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 12, "name": "state", "comment": null}, "native_language_locale": {"type": "INT64", "index": 13, "name": "native_language_locale", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 14, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1275, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history"}, "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__keyword_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "STRING", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "bid": {"type": "FLOAT64", "index": 5, "name": "bid", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "STRING", "index": 7, "name": "creation_date", "comment": null}, "keyword_text": {"type": "STRING", "index": 8, "name": "keyword_text", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "native_language_keyword": {"type": "INT64", "index": 10, "name": "native_language_keyword", "comment": null}, "serving_status": {"type": "STRING", "index": 11, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 12, "name": "state", "comment": null}, "native_language_locale": {"type": "INT64", "index": 13, "name": "native_language_locale", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp"}, "model.amazon_ads_source.stg_amazon_ads__portfolio_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__portfolio_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "portfolio_id": {"type": "STRING", "index": 2, "name": "portfolio_id", "comment": null}, "budget_amount": {"type": "INT64", "index": 3, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "INT64", "index": 4, "name": "budget_currency_code", "comment": null}, "budget_end_date": {"type": "INT64", "index": 5, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "INT64", "index": 6, "name": "budget_policy", "comment": null}, "budget_start_date": {"type": "INT64", "index": 7, "name": "budget_start_date", "comment": null}, "creation_date": {"type": "STRING", "index": 8, "name": "creation_date", "comment": null}, "in_budget": {"type": "BOOL", "index": 9, "name": "in_budget", "comment": null}, "last_updated_date": {"type": "STRING", "index": 10, "name": "last_updated_date", "comment": null}, "portfolio_name": {"type": "STRING", "index": 11, "name": "portfolio_name", "comment": null}, "profile_id": {"type": "STRING", "index": 12, "name": "profile_id", "comment": null}, "serving_status": {"type": "STRING", "index": 13, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 14, "name": "state", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 15, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 113, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history"}, "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__portfolio_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "STRING", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "budget_amount": {"type": "INT64", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "INT64", "index": 5, "name": "budget_currency_code", "comment": null}, "budget_end_date": {"type": "INT64", "index": 6, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "INT64", "index": 7, "name": "budget_policy", "comment": null}, "budget_start_date": {"type": "INT64", "index": 8, "name": "budget_start_date", "comment": null}, "creation_date": {"type": "STRING", "index": 9, "name": "creation_date", "comment": null}, "in_budget": {"type": "BOOL", "index": 10, "name": "in_budget", "comment": null}, "name": {"type": "STRING", "index": 11, "name": "name", "comment": null}, "profile_id": {"type": "INT64", "index": 12, "name": "profile_id", "comment": null}, "serving_status": {"type": "STRING", "index": 13, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 14, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp"}, "model.amazon_ads_source.stg_amazon_ads__product_ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__product_ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "STRING", "index": 2, "name": "ad_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 3, "name": "ad_group_id", "comment": null}, "asin": {"type": "STRING", "index": 4, "name": "asin", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "creation_date": {"type": "STRING", "index": 6, "name": "creation_date", "comment": null}, "last_updated_date": {"type": "STRING", "index": 7, "name": "last_updated_date", "comment": null}, "serving_status": {"type": "STRING", "index": 8, "name": "serving_status", "comment": null}, "sku": {"type": "INT64", "index": 9, "name": "sku", "comment": null}, "state": {"type": "STRING", "index": 10, "name": "state", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 11, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 325, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history"}, "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__product_ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "STRING", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "asin": {"type": "STRING", "index": 5, "name": "asin", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "STRING", "index": 7, "name": "creation_date", "comment": null}, "serving_status": {"type": "STRING", "index": 8, "name": "serving_status", "comment": null}, "sku": {"type": "INT64", "index": 9, "name": "sku", "comment": null}, "state": {"type": "STRING", "index": 10, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp"}, "model.amazon_ads_source.stg_amazon_ads__profile": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__profile", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "profile_id": {"type": "STRING", "index": 2, "name": "profile_id", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "account_marketplace_string_id": {"type": "STRING", "index": 4, "name": "account_marketplace_string_id", "comment": null}, "account_name": {"type": "STRING", "index": 5, "name": "account_name", "comment": null}, "account_sub_type": {"type": "INT64", "index": 6, "name": "account_sub_type", "comment": null}, "account_type": {"type": "STRING", "index": 7, "name": "account_type", "comment": null}, "account_valid_payment_method": {"type": "BOOL", "index": 8, "name": "account_valid_payment_method", "comment": null}, "country_code": {"type": "STRING", "index": 9, "name": "country_code", "comment": null}, "currency_code": {"type": "STRING", "index": 10, "name": "currency_code", "comment": null}, "daily_budget": {"type": "INT64", "index": 11, "name": "daily_budget", "comment": null}, "timezone": {"type": "STRING", "index": 12, "name": "timezone", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 13, "name": "_fivetran_deleted", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 86, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile"}, "model.amazon_ads_source.stg_amazon_ads__profile_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__profile_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "account_marketplace_string_id": {"type": "STRING", "index": 5, "name": "account_marketplace_string_id", "comment": null}, "account_name": {"type": "STRING", "index": 6, "name": "account_name", "comment": null}, "account_sub_type": {"type": "INT64", "index": 7, "name": "account_sub_type", "comment": null}, "account_type": {"type": "STRING", "index": 8, "name": "account_type", "comment": null}, "account_valid_payment_method": {"type": "BOOL", "index": 9, "name": "account_valid_payment_method", "comment": null}, "country_code": {"type": "STRING", "index": 10, "name": "country_code", "comment": null}, "currency_code": {"type": "STRING", "index": 11, "name": "currency_code", "comment": null}, "daily_budget": {"type": "INT64", "index": 12, "name": "daily_budget", "comment": null}, "timezone": {"type": "STRING", "index": 13, "name": "timezone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile_tmp"}, "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__search_term_ad_keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "STRING", "index": 2, "name": "ad_group_id", "comment": null}, "ad_keyword_status": {"type": "STRING", "index": 3, "name": "ad_keyword_status", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 4, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 5, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 6, "name": "campaign_budget_type", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 9, "name": "cost", "comment": null}, "date_day": {"type": "DATE", "index": 10, "name": "date_day", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "keyword_bid": {"type": "FLOAT64", "index": 12, "name": "keyword_bid", "comment": null}, "keyword_id": {"type": "STRING", "index": 13, "name": "keyword_id", "comment": null}, "search_term": {"type": "STRING", "index": 14, "name": "search_term", "comment": null}, "targeting": {"type": "STRING", "index": 15, "name": "targeting", "comment": null}, "purchases_30_d": {"type": "INT64", "index": 16, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "FLOAT64", "index": 17, "name": "sales_30_d", "comment": null}, "conversions": {"type": "FLOAT64", "index": 18, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 19, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 20, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1383, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"}, "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__search_term_ad_keyword_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "INT64", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 8, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 10, "name": "cost", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "keyword_bid": {"type": "FLOAT64", "index": 12, "name": "keyword_bid", "comment": null}, "search_term": {"type": "STRING", "index": 13, "name": "search_term", "comment": null}, "targeting": {"type": "STRING", "index": 14, "name": "targeting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp"}, "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__targeting_keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "STRING", "index": 2, "name": "ad_group_id", "comment": null}, "ad_keyword_status": {"type": "STRING", "index": 3, "name": "ad_keyword_status", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 4, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 5, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 6, "name": "campaign_budget_type", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 9, "name": "cost", "comment": null}, "date_day": {"type": "DATE", "index": 10, "name": "date_day", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "keyword_bid": {"type": "FLOAT64", "index": 12, "name": "keyword_bid", "comment": null}, "keyword_id": {"type": "STRING", "index": 13, "name": "keyword_id", "comment": null}, "keyword_type": {"type": "STRING", "index": 14, "name": "keyword_type", "comment": null}, "match_type": {"type": "STRING", "index": 15, "name": "match_type", "comment": null}, "targeting": {"type": "STRING", "index": 16, "name": "targeting", "comment": null}, "purchases_30_d": {"type": "INT64", "index": 17, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "FLOAT64", "index": 18, "name": "sales_30_d", "comment": null}, "conversions": {"type": "FLOAT64", "index": 19, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 20, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 21, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1500, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"}, "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__targeting_keyword_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "INT64", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}, "ad_keyword_status": {"type": "STRING", "index": 6, "name": "ad_keyword_status", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 9, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 11, "name": "cost", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "keyword_bid": {"type": "FLOAT64", "index": 13, "name": "keyword_bid", "comment": null}, "keyword_type": {"type": "STRING", "index": 14, "name": "keyword_type", "comment": null}, "match_type": {"type": "STRING", "index": 15, "name": "match_type", "comment": null}, "targeting": {"type": "STRING", "index": 16, "name": "targeting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "modified_at": {"type": "TIMESTAMP", "index": 2, "name": "modified_at", "comment": null}, "organization_id": {"type": "INT64", "index": 3, "name": "organization_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_status": {"type": "STRING", "index": 7, "name": "ad_group_status", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 8, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 9, "name": "end_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 302, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__ad_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "automated_keywords_opt_in": {"type": "BOOL", "index": 3, "name": "automated_keywords_opt_in", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "cpa_goal_amount": {"type": "INT64", "index": 5, "name": "cpa_goal_amount", "comment": null}, "cpa_goal_currency": {"type": "INT64", "index": 6, "name": "cpa_goal_currency", "comment": null}, "default_cpc_bid_amount": {"type": "INT64", "index": 7, "name": "default_cpc_bid_amount", "comment": null}, "default_cpc_bid_currency": {"type": "INT64", "index": 8, "name": "default_cpc_bid_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "name": {"type": "STRING", "index": 11, "name": "name", "comment": null}, "organization_id": {"type": "INT64", "index": 12, "name": "organization_id", "comment": null}, "serving_state_reasons": {"type": "INT64", "index": 13, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 14, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 15, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "storefronts": {"type": "INT64", "index": 17, "name": "storefronts", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "conversions": {"type": "INT64", "index": 4, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 5, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 8, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 9, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 10, "name": "taps", "comment": null}, "installs": {"type": "FLOAT64", "index": 11, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 12, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1131, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__ad_group_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 2, "name": "created_at", "comment": null}, "modified_at": {"type": "TIMESTAMP", "index": 3, "name": "modified_at", "comment": null}, "organization_id": {"type": "INT64", "index": 4, "name": "organization_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 6, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "STRING", "index": 7, "name": "ad_name", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "ad_status": {"type": "STRING", "index": 9, "name": "ad_status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 75, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creation_time": {"type": "TIMESTAMP", "index": 1, "name": "creation_time", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "org_id": {"type": "INT64", "index": 3, "name": "org_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "id": {"type": "INT64", "index": 7, "name": "id", "comment": null}, "creative_id": {"type": "INT64", "index": 8, "name": "creative_id", "comment": null}, "creative_type": {"type": "STRING", "index": 9, "name": "creative_type", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "conversions": {"type": "INT64", "index": 6, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "currency": {"type": "STRING", "index": 9, "name": "currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 10, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 11, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 12, "name": "taps", "comment": null}, "installs": {"type": "FLOAT64", "index": 13, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 14, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 190, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__ad_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 7, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 8, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 9, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 10, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 11, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "modified_at": {"type": "TIMESTAMP", "index": 2, "name": "modified_at", "comment": null}, "organization_id": {"type": "INT64", "index": 3, "name": "organization_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_status": {"type": "STRING", "index": 6, "name": "campaign_status", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 7, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 8, "name": "end_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 161, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "adam_id": {"type": "INT64", "index": 3, "name": "adam_id", "comment": null}, "budget_amount": {"type": "INT64", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency": {"type": "STRING", "index": 5, "name": "budget_currency", "comment": null}, "budget_orders": {"type": "STRING", "index": 6, "name": "budget_orders", "comment": null}, "daily_budget_amount": {"type": "INT64", "index": 7, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency": {"type": "STRING", "index": 8, "name": "daily_budget_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "loc_invoice_detail_buyer_email": {"type": "INT64", "index": 11, "name": "loc_invoice_detail_buyer_email", "comment": null}, "loc_invoice_detail_buyer_name": {"type": "INT64", "index": 12, "name": "loc_invoice_detail_buyer_name", "comment": null}, "loc_invoice_detail_client_name": {"type": "INT64", "index": 13, "name": "loc_invoice_detail_client_name", "comment": null}, "loc_invoice_detail_order_number": {"type": "INT64", "index": 14, "name": "loc_invoice_detail_order_number", "comment": null}, "name": {"type": "STRING", "index": 15, "name": "name", "comment": null}, "organiation_id": {"type": "INT64", "index": 16, "name": "organiation_id", "comment": null}, "payment_model": {"type": "STRING", "index": 17, "name": "payment_model", "comment": null}, "serving_state_reasons": {"type": "STRING", "index": 18, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 19, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 20, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 21, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "conversions": {"type": "INT64", "index": 4, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 5, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 8, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 9, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 10, "name": "taps", "comment": null}, "installs": {"type": "FLOAT64", "index": 11, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 12, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1044, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__campaign_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__keyword_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "modified_at": {"type": "TIMESTAMP", "index": 2, "name": "modified_at", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 5, "name": "keyword_id", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 6, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "STRING", "index": 7, "name": "bid_currency", "comment": null}, "match_type": {"type": "STRING", "index": 8, "name": "match_type", "comment": null}, "keyword_status": {"type": "STRING", "index": 9, "name": "keyword_status", "comment": null}, "keyword_text": {"type": "STRING", "index": 10, "name": "keyword_text", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 11, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1183, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__keyword_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 4, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "STRING", "index": 5, "name": "bid_currency", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "deleted": {"type": "BOOL", "index": 7, "name": "deleted", "comment": null}, "match_type": {"type": "STRING", "index": 8, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 9, "name": "status", "comment": null}, "text": {"type": "STRING", "index": 10, "name": "text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "keyword_id": {"type": "INT64", "index": 3, "name": "keyword_id", "comment": null}, "conversions": {"type": "INT64", "index": 4, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 5, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 8, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 9, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 10, "name": "taps", "comment": null}, "installs": {"type": "FLOAT64", "index": 11, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 12, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 99, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8613, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__keyword_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__organization": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__organization", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "organization_id": {"type": "INT64", "index": 2, "name": "organization_id", "comment": null}, "currency": {"type": "STRING", "index": 3, "name": "currency", "comment": null}, "payment_model": {"type": "STRING", "index": 4, "name": "payment_model", "comment": null}, "organization_name": {"type": "STRING", "index": 5, "name": "organization_name", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 84, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization"}, "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__organization_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "currency": {"type": "STRING", "index": 2, "name": "currency", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "payment_model": {"type": "STRING", "index": 4, "name": "payment_model", "comment": null}, "role_names": {"type": "STRING", "index": 5, "name": "role_names", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__search_term_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 3, "name": "_fivetran_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 7, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "STRING", "index": 8, "name": "bid_currency", "comment": null}, "keyword_text": {"type": "STRING", "index": 9, "name": "keyword_text", "comment": null}, "keyword_display_status": {"type": "STRING", "index": 10, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "INT64", "index": 11, "name": "keyword_id", "comment": null}, "spend": {"type": "FLOAT64", "index": 12, "name": "spend", "comment": null}, "currency": {"type": "STRING", "index": 13, "name": "currency", "comment": null}, "match_type": {"type": "STRING", "index": 14, "name": "match_type", "comment": null}, "search_term_source": {"type": "STRING", "index": 15, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "STRING", "index": 16, "name": "search_term_text", "comment": null}, "conversions": {"type": "INT64", "index": 17, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "taps": {"type": "INT64", "index": 19, "name": "taps", "comment": null}, "new_downloads": {"type": "INT64", "index": 20, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 21, "name": "redownloads", "comment": null}, "installs": {"type": "FLOAT64", "index": 22, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 23, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 150, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 29224, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report"}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__search_term_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 4, "name": "date", "comment": null}, "ad_group_deleted": {"type": "BOOL", "index": 5, "name": "ad_group_deleted", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 7, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 8, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 9, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 10, "name": "avg_cpt_currency", "comment": null}, "bid_amount_amount": {"type": "FLOAT64", "index": 11, "name": "bid_amount_amount", "comment": null}, "bid_amount_currency": {"type": "STRING", "index": 12, "name": "bid_amount_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 13, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 14, "name": "conversions", "comment": null}, "deleted": {"type": "BOOL", "index": 15, "name": "deleted", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "keyword": {"type": "STRING", "index": 17, "name": "keyword", "comment": null}, "keyword_display_status": {"type": "STRING", "index": 18, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "INT64", "index": 19, "name": "keyword_id", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 20, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 21, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 22, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 23, "name": "local_spend_currency", "comment": null}, "match_type": {"type": "STRING", "index": 24, "name": "match_type", "comment": null}, "new_downloads": {"type": "INT64", "index": 25, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 26, "name": "redownloads", "comment": null}, "search_term_source": {"type": "STRING", "index": 27, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "STRING", "index": 28, "name": "search_term_text", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 29, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 30, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp"}, "model.facebook_ads_source.stg_facebook_ads__account_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_name": {"type": "STRING", "index": 4, "name": "account_name", "comment": null}, "account_status": {"type": "STRING", "index": 5, "name": "account_status", "comment": null}, "business_country_code": {"type": "STRING", "index": 6, "name": "business_country_code", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 7, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "timezone_name": {"type": "STRING", "index": 9, "name": "timezone_name", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 59, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3658, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history"}, "model.facebook_ads_source.stg_facebook_ads__account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "ad_id": {"type": "INT64", "index": 3, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 4, "name": "ad_name", "comment": null}, "account_id": {"type": "INT64", "index": 5, "name": "account_id", "comment": null}, "ad_set_id": {"type": "INT64", "index": 6, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "creative_id": {"type": "INT64", "index": 8, "name": "creative_id", "comment": null}, "conversion_domain": {"type": "STRING", "index": 9, "name": "conversion_domain", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 660, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history"}, "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "ad_set_id": {"type": "INT64", "index": 3, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "creative_id": {"type": "INT64", "index": 5, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 8, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__ad_set_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "ad_set_id": {"type": "INT64", "index": 3, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "STRING", "index": 4, "name": "ad_set_name", "comment": null}, "account_id": {"type": "INT64", "index": 5, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 7, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 8, "name": "end_at", "comment": null}, "bid_strategy": {"type": "STRING", "index": 9, "name": "bid_strategy", "comment": null}, "daily_budget": {"type": "INT64", "index": 10, "name": "daily_budget", "comment": null}, "budget_remaining": {"type": "INT64", "index": 11, "name": "budget_remaining", "comment": null}, "status": {"type": "STRING", "index": 12, "name": "status", "comment": null}, "optimization_goal": {"type": "STRING", "index": 13, "name": "optimization_goal", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 14, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 14, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 854, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history"}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__ad_set_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 6, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 3, "name": "ad_name", "comment": null}, "ad_set_name": {"type": "STRING", "index": 4, "name": "ad_set_name", "comment": null}, "date_day": {"type": "DATE", "index": 5, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 6, "name": "account_id", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}, "frequency": {"type": "FLOAT64", "index": 10, "name": "frequency", "comment": null}, "reach": {"type": "INT64", "index": 11, "name": "reach", "comment": null}, "conversions": {"type": "STRING", "index": 12, "name": "conversions", "comment": null}, "fake_freq_name": {"type": "INT64", "index": 13, "name": "fake_freq_name", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 660, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_action_values", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "action_type": {"type": "STRING", "index": 2, "name": "action_type", "comment": null}, "ad_id": {"type": "INT64", "index": 3, "name": "ad_id", "comment": null}, "date_day": {"type": "DATE", "index": 4, "name": "date_day", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 5, "name": "conversions_value", "comment": null}, "_7_d_click": {"type": "FLOAT64", "index": 6, "name": "_7_d_click", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 82, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 5230, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_action_values_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 3, "name": "_fivetran_id", "comment": null}, "index": {"type": "INT64", "index": 4, "name": "index", "comment": null}, "action_type": {"type": "STRING", "index": 5, "name": "action_type", "comment": null}, "value": {"type": "FLOAT64", "index": 6, "name": "value", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 7, "name": "_fivetran_synced", "comment": null}, "_7_d_click": {"type": "FLOAT64", "index": 8, "name": "_7_d_click", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_actions", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "action_type": {"type": "STRING", "index": 2, "name": "action_type", "comment": null}, "ad_id": {"type": "INT64", "index": 3, "name": "ad_id", "comment": null}, "date_day": {"type": "DATE", "index": 4, "name": "date_day", "comment": null}, "conversions": {"type": "FLOAT64", "index": 5, "name": "conversions", "comment": null}, "conversion_value_inline": {"type": "FLOAT64", "index": 6, "name": "conversion_value_inline", "comment": null}, "installs": {"type": "FLOAT64", "index": 7, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 8, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 784, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_actions_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "index": {"type": "INT64", "index": 4, "name": "index", "comment": null}, "_1_d_view": {"type": "FLOAT64", "index": 5, "name": "_1_d_view", "comment": null}, "_7_d_click": {"type": "FLOAT64", "index": 6, "name": "_7_d_click", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 7, "name": "_fivetran_synced", "comment": null}, "action_type": {"type": "STRING", "index": 8, "name": "action_type", "comment": null}, "inline": {"type": "FLOAT64", "index": 9, "name": "inline", "comment": null}, "value": {"type": "FLOAT64", "index": 10, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "inline_link_clicks": {"type": "INT64", "index": 5, "name": "inline_link_clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp"}, "model.facebook_ads_source.stg_facebook_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 3, "name": "created_at", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "start_at": {"type": "TIMESTAMP", "index": 7, "name": "start_at", "comment": null}, "end_at": {"type": "TIMESTAMP", "index": 8, "name": "end_at", "comment": null}, "status": {"type": "STRING", "index": 9, "name": "status", "comment": null}, "daily_budget": {"type": "INT64", "index": 10, "name": "daily_budget", "comment": null}, "lifetime_budget": {"type": "INT64", "index": 11, "name": "lifetime_budget", "comment": null}, "budget_remaining": {"type": "FLOAT64", "index": 12, "name": "budget_remaining", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 13, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 477, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history"}, "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 5, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__creative_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__creative_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 2, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "creative_id": {"type": "INT64", "index": 4, "name": "creative_id", "comment": null}, "account_id": {"type": "INT64", "index": 5, "name": "account_id", "comment": null}, "creative_name": {"type": "STRING", "index": 6, "name": "creative_name", "comment": null}, "page_link": {"type": "STRING", "index": 7, "name": "page_link", "comment": null}, "template_page_link": {"type": "STRING", "index": 8, "name": "template_page_link", "comment": null}, "url_tags": {"type": "STRING", "index": 9, "name": "url_tags", "comment": null}, "asset_feed_spec_link_urls": {"type": "STRING", "index": 10, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "STRING", "index": 11, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "STRING", "index": 12, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "STRING", "index": 13, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "STRING", "index": 14, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "STRING", "index": 15, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "STRING", "index": 16, "name": "template_app_link_spec_ios", "comment": null}, "template_app_link_spec_ipad": {"type": "STRING", "index": 17, "name": "template_app_link_spec_ipad", "comment": null}, "template_app_link_spec_android": {"type": "STRING", "index": 18, "name": "template_app_link_spec_android", "comment": null}, "template_app_link_spec_iphone": {"type": "STRING", "index": 19, "name": "template_app_link_spec_iphone", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 20, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1000, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1418996, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history"}, "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__creative_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"page_link": {"type": "STRING", "index": 1, "name": "page_link", "comment": null}, "template_page_link": {"type": "STRING", "index": 2, "name": "template_page_link", "comment": null}, "id": {"type": "INT64", "index": 3, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "url_tags": {"type": "STRING", "index": 6, "name": "url_tags", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 7, "name": "_fivetran_synced", "comment": null}, "asset_feed_spec_link_urls": {"type": "STRING", "index": 8, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "STRING", "index": 9, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "STRING", "index": 10, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "STRING", "index": 11, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "STRING", "index": 12, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "STRING", "index": 13, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "STRING", "index": 14, "name": "template_app_link_spec_ios", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 15, "name": "_fivetran_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp"}, "model.google_ads_source.stg_google_ads__account_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 3, "name": "updated_at", "comment": null}, "currency_code": {"type": "STRING", "index": 4, "name": "currency_code", "comment": null}, "auto_tagging_enabled": {"type": "BOOL", "index": 5, "name": "auto_tagging_enabled", "comment": null}, "time_zone": {"type": "INT64", "index": 6, "name": "time_zone", "comment": null}, "account_name": {"type": "INT64", "index": 7, "name": "account_name", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 25, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_history"}, "model.google_ads_source.stg_google_ads__account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "auto_tagging_enabled": {"type": "BOOL", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "descriptive_name": {"type": "INT64", "index": 6, "name": "descriptive_name", "comment": null}, "final_url_suffix": {"type": "BOOL", "index": 7, "name": "final_url_suffix", "comment": null}, "hidden": {"type": "BOOL", "index": 8, "name": "hidden", "comment": null}, "manager": {"type": "INT64", "index": 9, "name": "manager", "comment": null}, "manager_customer_id": {"type": "FLOAT64", "index": 10, "name": "manager_customer_id", "comment": null}, "optimization_score": {"type": "STRING", "index": 11, "name": "optimization_score", "comment": null}, "pay_per_conversion_eligibility_failure_reasons": {"type": "BOOL", "index": 12, "name": "pay_per_conversion_eligibility_failure_reasons", "comment": null}, "test_account": {"type": "STRING", "index": 13, "name": "test_account", "comment": null}, "time_zone": {"type": "INT64", "index": 14, "name": "time_zone", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 15, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_history_tmp"}, "model.google_ads_source.stg_google_ads__account_stats": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__account_stats", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "date_day": {"type": "DATE", "index": 3, "name": "date_day", "comment": null}, "ad_network_type": {"type": "STRING", "index": 4, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 5, "name": "device", "comment": null}, "clicks": {"type": "INT64", "index": 6, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}, "impressions": {"type": "INT64", "index": 8, "name": "impressions", "comment": null}, "conversions": {"type": "INT64", "index": 9, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 10, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 11, "name": "view_through_conversions", "comment": null}, "view_through_conversions_aliased": {"type": "FLOAT64", "index": 12, "name": "view_through_conversions_aliased", "comment": null}, "installs": {"type": "FLOAT64", "index": 13, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 14, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 19, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1997, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_stats"}, "model.google_ads_source.stg_google_ads__account_stats_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__account_stats_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 12, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 13, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 14, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 15, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 17, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 18, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 19, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_stats_tmp"}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_group_criterion_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "criterion_id": {"type": "INT64", "index": 2, "name": "criterion_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 3, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "INT64", "index": 4, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 5, "name": "updated_at", "comment": null}, "type": {"type": "STRING", "index": 6, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 8, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "STRING", "index": 9, "name": "keyword_text", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 261, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15771, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history"}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_group_criterion_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "INT64", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "type": {"type": "STRING", "index": 6, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 8, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "STRING", "index": 9, "name": "keyword_text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp"}, "model.google_ads_source.stg_google_ads__ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "STRING", "index": 2, "name": "ad_group_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 3, "name": "updated_at", "comment": null}, "ad_group_type": {"type": "STRING", "index": 4, "name": "ad_group_type", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 8, "name": "ad_group_status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 296, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history"}, "model.google_ads_source.stg_google_ads__ad_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "type": {"type": "STRING", "index": 3, "name": "type", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history_tmp"}, "model.google_ads_source.stg_google_ads__ad_group_stats": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_group_stats", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "date_day": {"type": "DATE", "index": 3, "name": "date_day", "comment": null}, "ad_group_id": {"type": "STRING", "index": 4, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "device": {"type": "STRING", "index": 6, "name": "device", "comment": null}, "ad_network_type": {"type": "STRING", "index": 7, "name": "ad_network_type", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}, "conversions": {"type": "FLOAT64", "index": 11, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 12, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 13, "name": "view_through_conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 14, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 15, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1795, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats"}, "model.google_ads_source.stg_google_ads__ad_group_stats_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_group_stats_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_ad_group": {"type": "STRING", "index": 11, "name": "base_ad_group", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 12, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 13, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "conversions": {"type": "FLOAT64", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 16, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 17, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 18, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 19, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 20, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 21, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 22, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 23, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats_tmp"}, "model.google_ads_source.stg_google_ads__ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "STRING", "index": 2, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 3, "name": "ad_id", "comment": null}, "ad_name": {"type": "INT64", "index": 4, "name": "ad_name", "comment": null}, "updated_at": {"type": "DATETIME", "index": 5, "name": "updated_at", "comment": null}, "ad_type": {"type": "INT64", "index": 6, "name": "ad_type", "comment": null}, "ad_status": {"type": "STRING", "index": 7, "name": "ad_status", "comment": null}, "display_url": {"type": "INT64", "index": 8, "name": "display_url", "comment": null}, "source_final_urls": {"type": "STRING", "index": 9, "name": "source_final_urls", "comment": null}, "final_urls": {"type": "STRING", "index": 10, "name": "final_urls", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 11, "name": "is_most_recent_record", "comment": null}, "final_url": {"type": "STRING", "index": 12, "name": "final_url", "comment": null}, "base_url": {"type": "STRING", "index": 13, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 14, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 15, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 16, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 17, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 18, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 19, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 20, "name": "utm_term", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2096, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_history"}, "model.google_ads_source.stg_google_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "name": {"type": "INT64", "index": 3, "name": "name", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "INT64", "index": 5, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "display_url": {"type": "INT64", "index": 7, "name": "display_url", "comment": null}, "final_urls": {"type": "STRING", "index": 8, "name": "final_urls", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_history_tmp"}, "model.google_ads_source.stg_google_ads__ad_stats": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_stats", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "date_day": {"type": "DATE", "index": 3, "name": "date_day", "comment": null}, "ad_group_id": {"type": "STRING", "index": 4, "name": "ad_group_id", "comment": null}, "keyword_ad_group_criterion": {"type": "STRING", "index": 5, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "STRING", "index": 6, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 7, "name": "device", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 11, "name": "spend", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "conversions": {"type": "INT64", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 14, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 15, "name": "view_through_conversions", "comment": null}, "view_through_conversions_aliased": {"type": "FLOAT64", "index": 16, "name": "view_through_conversions_aliased", "comment": null}, "installs": {"type": "FLOAT64", "index": 17, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 18, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1965, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_stats"}, "model.google_ads_source.stg_google_ads__ad_stats_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_stats_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"customer_id": {"type": "INT64", "index": 1, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "ad_group": {"type": "STRING", "index": 4, "name": "ad_group", "comment": null}, "keyword_ad_group_criterion": {"type": "STRING", "index": 5, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "STRING", "index": 6, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 7, "name": "device", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "cost_micros": {"type": "INT64", "index": 11, "name": "cost_micros", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "conversions": {"type": "INT64", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 14, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 15, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_stats_tmp"}, "model.google_ads_source.stg_google_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 3, "name": "updated_at", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "account_id": {"type": "INT64", "index": 5, "name": "account_id", "comment": null}, "advertising_channel_type": {"type": "STRING", "index": 6, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "STRING", "index": 7, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "DATE", "index": 8, "name": "start_date", "comment": null}, "end_date": {"type": "DATE", "index": 9, "name": "end_date", "comment": null}, "serving_status": {"type": "STRING", "index": 10, "name": "serving_status", "comment": null}, "status": {"type": "STRING", "index": 11, "name": "status", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 12, "name": "tracking_url_template", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 13, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1070, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history"}, "model.google_ads_source.stg_google_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "customer_id": {"type": "INT64", "index": 4, "name": "customer_id", "comment": null}, "advertising_channel_type": {"type": "STRING", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "STRING", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "DATE", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "DATE", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "STRING", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 11, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history_tmp"}, "model.google_ads_source.stg_google_ads__campaign_stats": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__campaign_stats", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "date_day": {"type": "DATE", "index": 3, "name": "date_day", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_network_type": {"type": "STRING", "index": 5, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 6, "name": "device", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "conversions": {"type": "INT64", "index": 10, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 11, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 12, "name": "view_through_conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 13, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 14, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1696, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats"}, "model.google_ads_source.stg_google_ads__campaign_stats_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__campaign_stats_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_campaign": {"type": "STRING", "index": 11, "name": "base_campaign", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 14, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 15, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 16, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 17, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 19, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 20, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 21, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats_tmp"}, "model.google_ads_source.stg_google_ads__keyword_stats": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__keyword_stats", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "keyword_id": {"type": "STRING", "index": 2, "name": "keyword_id", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "date_day": {"type": "DATE", "index": 4, "name": "date_day", "comment": null}, "ad_group_id": {"type": "STRING", "index": 5, "name": "ad_group_id", "comment": null}, "criterion_id": {"type": "INT64", "index": 6, "name": "criterion_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}, "conversions": {"type": "INT64", "index": 11, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 12, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 13, "name": "view_through_conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 14, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 15, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2115, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats"}, "model.google_ads_source.stg_google_ads__keyword_stats_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__keyword_stats_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_group_base_ad_group": {"type": "STRING", "index": 10, "name": "ad_group_base_ad_group", "comment": null}, "ad_group_criterion_criterion_id": {"type": "INT64", "index": 11, "name": "ad_group_criterion_criterion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 12, "name": "ad_group_id", "comment": null}, "ad_network_type": {"type": "STRING", "index": 13, "name": "ad_network_type", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 14, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 15, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 18, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 19, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 20, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 22, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 23, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 24, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats_tmp"}, "model.linkedin_source.stg_linkedin_ads__account_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 5, "name": "version_tag", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 7, "name": "type", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 8, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 9, "name": "created_at", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 10, "name": "is_latest_version", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 14, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1036, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history"}, "model.linkedin_source.stg_linkedin_ads__account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history_tmp"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__ad_analytics_by_campaign", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 5, "name": "impressions", "comment": null}, "cost": {"type": "FLOAT64", "index": 6, "name": "cost", "comment": null}, "conversion_value_in_local_currency": {"type": "FLOAT64", "index": 7, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 8, "name": "external_website_conversions", "comment": null}, "one_click_leads": {"type": "INT64", "index": 9, "name": "one_click_leads", "comment": null}, "conversions": {"type": "FLOAT64", "index": 10, "name": "conversions", "comment": null}, "videos": {"type": "FLOAT64", "index": 11, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 20, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1496, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "day": {"type": "TIMESTAMP", "index": 2, "name": "day", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "action_clicks": {"type": "INT64", "index": 4, "name": "action_clicks", "comment": null}, "ad_unit_clicks": {"type": "INT64", "index": 5, "name": "ad_unit_clicks", "comment": null}, "approximate_unique_impressions": {"type": "INT64", "index": 6, "name": "approximate_unique_impressions", "comment": null}, "card_clicks": {"type": "INT64", "index": 7, "name": "card_clicks", "comment": null}, "card_impressions": {"type": "INT64", "index": 8, "name": "card_impressions", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "comment_likes": {"type": "INT64", "index": 10, "name": "comment_likes", "comment": null}, "comments": {"type": "INT64", "index": 11, "name": "comments", "comment": null}, "company_page_clicks": {"type": "INT64", "index": 12, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "INT64", "index": 13, "name": "conversion_value_in_local_currency", "comment": null}, "cost_in_local_currency": {"type": "FLOAT64", "index": 14, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "FLOAT64", "index": 15, "name": "cost_in_usd", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 16, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "INT64", "index": 17, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "INT64", "index": 18, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "INT64", "index": 19, "name": "follows", "comment": null}, "full_screen_plays": {"type": "INT64", "index": 20, "name": "full_screen_plays", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "landing_page_clicks": {"type": "INT64", "index": 22, "name": "landing_page_clicks", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "INT64", "index": 23, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "INT64", "index": 24, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "INT64", "index": 25, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "INT64", "index": 26, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "INT64", "index": 27, "name": "one_click_leads", "comment": null}, "opens": {"type": "INT64", "index": 28, "name": "opens", "comment": null}, "other_engagements": {"type": "INT64", "index": 29, "name": "other_engagements", "comment": null}, "shares": {"type": "INT64", "index": 30, "name": "shares", "comment": null}, "text_url_clicks": {"type": "INT64", "index": 31, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "INT64", "index": 32, "name": "total_engagements", "comment": null}, "video_completions": {"type": "INT64", "index": 33, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "INT64", "index": 34, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "INT64", "index": 35, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "INT64", "index": 36, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "INT64", "index": 37, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "INT64", "index": 38, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "INT64", "index": 39, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "INT64", "index": 40, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "INT64", "index": 41, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "INT64", "index": 42, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "INT64", "index": 43, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "INT64", "index": 44, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "INT64", "index": 45, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "INT64", "index": 46, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "INT64", "index": 47, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "INT64", "index": 48, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "INT64", "index": 49, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "INT64", "index": 50, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "INT64", "index": 51, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "INT64", "index": 52, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "INT64", "index": 53, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "INT64", "index": 54, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "INT64", "index": 55, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "INT64", "index": 56, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "INT64", "index": 57, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "INT64", "index": 58, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "INT64", "index": 59, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "INT64", "index": 60, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "INT64", "index": 61, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "INT64", "index": 62, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "INT64", "index": 63, "name": "viral_video_views", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__ad_analytics_by_creative", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "creative_id": {"type": "INT64", "index": 3, "name": "creative_id", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 5, "name": "impressions", "comment": null}, "cost": {"type": "INT64", "index": 6, "name": "cost", "comment": null}, "conversion_value_in_local_currency": {"type": "FLOAT64", "index": 7, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 8, "name": "external_website_conversions", "comment": null}, "one_click_leads": {"type": "INT64", "index": 9, "name": "one_click_leads", "comment": null}, "conversions": {"type": "FLOAT64", "index": 10, "name": "conversions", "comment": null}, "videos": {"type": "FLOAT64", "index": 11, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7504, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "INT64", "index": 1, "name": "creative_id", "comment": null}, "day": {"type": "TIMESTAMP", "index": 2, "name": "day", "comment": null}, "action_clicks": {"type": "INT64", "index": 3, "name": "action_clicks", "comment": null}, "card_clicks": {"type": "INT64", "index": 4, "name": "card_clicks", "comment": null}, "ad_unit_clicks": {"type": "INT64", "index": 5, "name": "ad_unit_clicks", "comment": null}, "landing_page_clicks": {"type": "INT64", "index": 6, "name": "landing_page_clicks", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "approximate_unique_impressions": {"type": "INT64", "index": 8, "name": "approximate_unique_impressions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "card_impressions": {"type": "INT64", "index": 10, "name": "card_impressions", "comment": null}, "cost_in_local_currency": {"type": "INT64", "index": 11, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "INT64", "index": 12, "name": "cost_in_usd", "comment": null}, "comment_likes": {"type": "INT64", "index": 13, "name": "comment_likes", "comment": null}, "comments": {"type": "INT64", "index": 14, "name": "comments", "comment": null}, "company_page_clicks": {"type": "INT64", "index": 15, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "INT64", "index": 16, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 17, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "INT64", "index": 18, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "INT64", "index": 19, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "INT64", "index": 20, "name": "follows", "comment": null}, "full_screen_plays": {"type": "INT64", "index": 21, "name": "full_screen_plays", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "INT64", "index": 22, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "INT64", "index": 23, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "INT64", "index": 24, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "INT64", "index": 25, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "INT64", "index": 26, "name": "one_click_leads", "comment": null}, "opens": {"type": "INT64", "index": 27, "name": "opens", "comment": null}, "other_engagements": {"type": "INT64", "index": 28, "name": "other_engagements", "comment": null}, "shares": {"type": "INT64", "index": 29, "name": "shares", "comment": null}, "text_url_clicks": {"type": "INT64", "index": 30, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "INT64", "index": 31, "name": "total_engagements", "comment": null}, "video_completions": {"type": "INT64", "index": 32, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "INT64", "index": 33, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "INT64", "index": 34, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "INT64", "index": 35, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "INT64", "index": 36, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "INT64", "index": 37, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "INT64", "index": 38, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "INT64", "index": 39, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "INT64", "index": 40, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "INT64", "index": 41, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "INT64", "index": 42, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "INT64", "index": 43, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "INT64", "index": 44, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "INT64", "index": 45, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "INT64", "index": 46, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "INT64", "index": 47, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "INT64", "index": 48, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "INT64", "index": 49, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "INT64", "index": 50, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "INT64", "index": 51, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "INT64", "index": 52, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "INT64", "index": 53, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "INT64", "index": 54, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "INT64", "index": 55, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "INT64", "index": 56, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "INT64", "index": 57, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "INT64", "index": 58, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "INT64", "index": 59, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "INT64", "index": 60, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "INT64", "index": 61, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "INT64", "index": 62, "name": "viral_video_views", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp"}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__campaign_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 2, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "STRING", "index": 3, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "status": {"type": "STRING", "index": 5, "name": "status", "comment": null}, "is_backfilled": {"type": "BOOL", "index": 6, "name": "is_backfilled", "comment": null}, "run_schedule_start_at": {"type": "TIMESTAMP", "index": 7, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "TIMESTAMP", "index": 8, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 9, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 10, "name": "created_at", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 11, "name": "is_latest_version", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 244, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history"}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__campaign_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 4, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"}, "model.linkedin_source.stg_linkedin_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 3, "name": "campaign_name", "comment": null}, "version_tag": {"type": "NUMERIC", "index": 4, "name": "version_tag", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 5, "name": "campaign_group_id", "comment": null}, "account_id": {"type": "INT64", "index": 6, "name": "account_id", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 8, "name": "type", "comment": null}, "cost_type": {"type": "STRING", "index": 9, "name": "cost_type", "comment": null}, "creative_selection": {"type": "STRING", "index": 10, "name": "creative_selection", "comment": null}, "daily_budget_amount": {"type": "FLOAT64", "index": 11, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency_code": {"type": "STRING", "index": 12, "name": "daily_budget_currency_code", "comment": null}, "unit_cost_amount": {"type": "FLOAT64", "index": 13, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "STRING", "index": 14, "name": "unit_cost_currency_code", "comment": null}, "format": {"type": "STRING", "index": 15, "name": "format", "comment": null}, "locale_country": {"type": "STRING", "index": 16, "name": "locale_country", "comment": null}, "locale_language": {"type": "STRING", "index": 17, "name": "locale_language", "comment": null}, "objective_type": {"type": "STRING", "index": 18, "name": "objective_type", "comment": null}, "optimization_target_type": {"type": "STRING", "index": 19, "name": "optimization_target_type", "comment": null}, "is_audience_expansion_enabled": {"type": "BOOL", "index": 20, "name": "is_audience_expansion_enabled", "comment": null}, "is_offsite_delivery_enabled": {"type": "BOOL", "index": 21, "name": "is_offsite_delivery_enabled", "comment": null}, "run_schedule_start_at": {"type": "TIMESTAMP", "index": 22, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "TIMESTAMP", "index": 23, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 24, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 25, "name": "created_at", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 26, "name": "is_latest_version", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8500, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history"}, "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 4, "name": "campaign_group_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 5, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "version_tag": {"type": "INT64", "index": 7, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"}, "model.linkedin_source.stg_linkedin_ads__creative_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__creative_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "creative_id": {"type": "INT64", "index": 2, "name": "creative_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "status": {"type": "STRING", "index": 4, "name": "status", "comment": null}, "click_uri": {"type": "STRING", "index": 5, "name": "click_uri", "comment": null}, "last_modified_at": {"type": "TIMESTAMP", "index": 6, "name": "last_modified_at", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 7, "name": "created_at", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 8, "name": "is_latest_version", "comment": null}, "base_url": {"type": "STRING", "index": 9, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 10, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 11, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 12, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 13, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 14, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 15, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 16, "name": "utm_term", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4374, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history"}, "model.linkedin_source.stg_linkedin_ads__creative_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__creative_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "click_uri": {"type": "STRING", "index": 8, "name": "click_uri", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__account_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "device_os": {"type": "STRING", "index": 4, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 5, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 6, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 7, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "STRING", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 11, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 14, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 16, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "INT64", "index": 17, "name": "all_conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 18, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 19, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1583, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__account_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "STRING", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "STRING", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 14, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 15, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 16, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 17, "name": "all_conversions_qualified", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__account_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 3, "name": "account_name", "comment": null}, "modified_at": {"type": "DATETIME", "index": 4, "name": "modified_at", "comment": null}, "time_zone": {"type": "STRING", "index": 5, "name": "time_zone", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 186, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history"}, "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "last_modified_time": {"type": "DATETIME", "index": 3, "name": "last_modified_time", "comment": null}, "time_zone": {"type": "STRING", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__ad_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 6, "name": "ad_id", "comment": null}, "currency_code": {"type": "STRING", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 19, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 20, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "INT64", "index": 21, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "FLOAT64", "index": 22, "name": "all_conversions_value", "comment": null}, "assists": {"type": "FLOAT64", "index": 23, "name": "assists", "comment": null}, "revenue": {"type": "FLOAT64", "index": 24, "name": "revenue", "comment": null}, "installs": {"type": "FLOAT64", "index": 25, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 26, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 401, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 95458, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__ad_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 9, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 18, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 19, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 20, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 21, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "INT64", "index": 22, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 23, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__ad_group_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 9, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 18, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 19, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "INT64", "index": 20, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "FLOAT64", "index": 21, "name": "all_conversions_value", "comment": null}, "multipled_all_conversions": {"type": "FLOAT64", "index": 22, "name": "multipled_all_conversions", "comment": null}, "all_conversions_qualified": {"type": "FLOAT64", "index": 23, "name": "all_conversions_qualified", "comment": null}, "installs": {"type": "FLOAT64", "index": 24, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 25, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 229, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 53584, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__ad_group_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 8, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 17, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 18, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 19, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 20, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "INT64", "index": 21, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 22, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 3, "name": "ad_group_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "modified_at": {"type": "DATETIME", "index": 5, "name": "modified_at", "comment": null}, "start_date": {"type": "DATE", "index": 6, "name": "start_date", "comment": null}, "end_date": {"type": "INT64", "index": 7, "name": "end_date", "comment": null}, "status": {"type": "STRING", "index": 8, "name": "status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 688, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__ad_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "start_date": {"type": "DATE", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "INT64", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 3, "name": "ad_name", "comment": null}, "final_url": {"type": "STRING", "index": 4, "name": "final_url", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "modified_at": {"type": "TIMESTAMP", "index": 6, "name": "modified_at", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 8, "name": "type", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1155, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "title_part_1": {"type": "STRING", "index": 2, "name": "title_part_1", "comment": null}, "final_url": {"type": "STRING", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 5, "name": "modified_time", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 7, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__campaign_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 8, "name": "network", "comment": null}, "ad_distribution": {"type": "STRING", "index": 9, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 10, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 11, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 12, "name": "top_vs_other", "comment": null}, "budget_association_status": {"type": "STRING", "index": 13, "name": "budget_association_status", "comment": null}, "budget_name": {"type": "STRING", "index": 14, "name": "budget_name", "comment": null}, "budget_status": {"type": "STRING", "index": 15, "name": "budget_status", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 19, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 20, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "INT64", "index": 21, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "FLOAT64", "index": 22, "name": "all_conversions_value", "comment": null}, "assists": {"type": "FLOAT64", "index": 23, "name": "assists", "comment": null}, "revenue": {"type": "FLOAT64", "index": 24, "name": "revenue", "comment": null}, "installs": {"type": "FLOAT64", "index": 25, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 26, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2630, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 639050, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__campaign_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "STRING", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "STRING", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 11, "name": "top_vs_other", "comment": null}, "budget_association_status": {"type": "STRING", "index": 12, "name": "budget_association_status", "comment": null}, "budget_name": {"type": "STRING", "index": 13, "name": "budget_name", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 17, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 18, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 19, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 20, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "INT64", "index": 21, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 22, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 3, "name": "campaign_name", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "modified_at": {"type": "DATETIME", "index": 5, "name": "modified_at", "comment": null}, "type": {"type": "STRING", "index": 6, "name": "type", "comment": null}, "time_zone": {"type": "STRING", "index": 7, "name": "time_zone", "comment": null}, "status": {"type": "STRING", "index": 8, "name": "status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 970, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__keyword_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 6, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 7, "name": "keyword_id", "comment": null}, "currency_code": {"type": "STRING", "index": 8, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 9, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 10, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 11, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 12, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 13, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 14, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 15, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 16, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 19, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 20, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 21, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "INT64", "index": 22, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "FLOAT64", "index": 23, "name": "all_conversions_value", "comment": null}, "installs": {"type": "FLOAT64", "index": 24, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 25, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 53, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12252, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__keyword_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "STRING", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 19, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 20, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 21, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 22, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "INT64", "index": 23, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 24, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__keyword_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "keyword_id": {"type": "INT64", "index": 2, "name": "keyword_id", "comment": null}, "keyword_name": {"type": "STRING", "index": 3, "name": "keyword_name", "comment": null}, "modified_at": {"type": "TIMESTAMP", "index": 4, "name": "modified_at", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "match_type": {"type": "STRING", "index": 6, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 625, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__keyword_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 3, "name": "modified_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "STRING", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__search_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 6, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 7, "name": "keyword_id", "comment": null}, "search_query": {"type": "STRING", "index": 8, "name": "search_query", "comment": null}, "device_os": {"type": "STRING", "index": 9, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 10, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 11, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 12, "name": "language", "comment": null}, "bid_match_type": {"type": "STRING", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}, "conversions": {"type": "INT64", "index": 19, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 20, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "INT64", "index": 21, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "FLOAT64", "index": 22, "name": "all_conversions_value", "comment": null}, "installs": {"type": "FLOAT64", "index": 23, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 24, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2626, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__search_daily_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "STRING", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 18, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 19, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 20, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 21, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "INT64", "index": 22, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 23, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "STRING", "index": 2, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 3, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 4, "name": "ad_group_status", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 6, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "created_at": {"type": "STRING", "index": 8, "name": "created_at", "comment": null}, "end_time": {"type": "INT64", "index": 9, "name": "end_time", "comment": null}, "pacing_delivery_type": {"type": "STRING", "index": 10, "name": "pacing_delivery_type", "comment": null}, "placement_group": {"type": "STRING", "index": 11, "name": "placement_group", "comment": null}, "start_time": {"type": "STRING", "index": 12, "name": "start_time", "comment": null}, "summary_status": {"type": "STRING", "index": 13, "name": "summary_status", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 14, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 729, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history"}, "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__ad_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 5, "name": "status", "comment": null}, "start_time": {"type": "STRING", "index": 6, "name": "start_time", "comment": null}, "end_time": {"type": "INT64", "index": 7, "name": "end_time", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 8, "name": "_fivetran_synced", "comment": null}, "pacing_delivery_type": {"type": "STRING", "index": 9, "name": "pacing_delivery_type", "comment": null}, "placement_group": {"type": "STRING", "index": 10, "name": "placement_group", "comment": null}, "summary_status": {"type": "STRING", "index": 11, "name": "summary_status", "comment": null}, "ad_account_id": {"type": "INT64", "index": 12, "name": "ad_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "ad_group_id": {"type": "STRING", "index": 3, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 4, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 5, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "STRING", "index": 7, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 8, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 10, "name": "spend", "comment": null}, "total_conversions": {"type": "INT64", "index": 11, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 12, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "FLOAT64", "index": 13, "name": "total_conversions_value", "comment": null}, "conversions": {"type": "FLOAT64", "index": 14, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 15, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 16, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 705, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report"}, "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__ad_group_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 3, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 4, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 6, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 7, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 8, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 9, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 10, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 11, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 12, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "INT64", "index": 13, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 14, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "INT64", "index": 15, "name": "total_conversions_value_in_micro_dollar", "comment": null}, "total_view_checkout": {"type": "INT64", "index": 16, "name": "total_view_checkout", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__advertiser_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__advertiser_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "advertiser_id": {"type": "STRING", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "country": {"type": "STRING", "index": 4, "name": "country", "comment": null}, "created_at": {"type": "DATETIME", "index": 5, "name": "created_at", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "owner_user_id": {"type": "INT64", "index": 7, "name": "owner_user_id", "comment": null}, "owner_username": {"type": "STRING", "index": 8, "name": "owner_username", "comment": null}, "advertiser_permissions": {"type": "STRING", "index": 9, "name": "advertiser_permissions", "comment": null}, "updated_at": {"type": "DATETIME", "index": 10, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 11, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 99, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history"}, "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__advertiser_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "DATETIME", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "billing_profile_status": {"type": "STRING", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "STRING", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "created_time": {"type": "DATETIME", "index": 7, "name": "created_time", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "merchant_id": {"type": "INT64", "index": 9, "name": "merchant_id", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "owner_user_id": {"type": "INT64", "index": 11, "name": "owner_user_id", "comment": null}, "status": {"type": "STRING", "index": 12, "name": "status", "comment": null}, "owner_username": {"type": "STRING", "index": 13, "name": "owner_username", "comment": null}, "permissions": {"type": "STRING", "index": 14, "name": "permissions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__advertiser_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__advertiser_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "STRING", "index": 3, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 5, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}, "total_conversions": {"type": "INT64", "index": 7, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 8, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "FLOAT64", "index": 9, "name": "total_conversions_value", "comment": null}, "conversions": {"type": "FLOAT64", "index": 10, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 11, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 12, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 455, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report"}, "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__advertiser_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 4, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 5, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 6, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 7, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 8, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "INT64", "index": 9, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 10, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "INT64", "index": 11, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 3, "name": "campaign_name", "comment": null}, "advertiser_id": {"type": "STRING", "index": 4, "name": "advertiser_id", "comment": null}, "default_ad_group_budget_in_micro_currency": {"type": "INT64", "index": 5, "name": "default_ad_group_budget_in_micro_currency", "comment": null}, "is_automated_campaign": {"type": "BOOL", "index": 6, "name": "is_automated_campaign", "comment": null}, "is_campaign_budget_optimization": {"type": "BOOL", "index": 7, "name": "is_campaign_budget_optimization", "comment": null}, "is_flexible_daily_budgets": {"type": "BOOL", "index": 8, "name": "is_flexible_daily_budgets", "comment": null}, "campaign_status": {"type": "STRING", "index": 9, "name": "campaign_status", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 10, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "STRING", "index": 11, "name": "created_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 139, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history"}, "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "created_time": {"type": "STRING", "index": 2, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 4, "name": "status", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "advertiser_id": {"type": "INT64", "index": 6, "name": "advertiser_id", "comment": null}, "default_ad_group_budget_in_micro_currency": {"type": "INT64", "index": 7, "name": "default_ad_group_budget_in_micro_currency", "comment": null}, "is_automated_campaign": {"type": "BOOL", "index": 8, "name": "is_automated_campaign", "comment": null}, "is_campaign_budget_optimization": {"type": "BOOL", "index": 9, "name": "is_campaign_budget_optimization", "comment": null}, "is_flexible_daily_budgets": {"type": "BOOL", "index": 10, "name": "is_flexible_daily_budgets", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "campaign_id": {"type": "STRING", "index": 3, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 5, "name": "campaign_status", "comment": null}, "advertiser_id": {"type": "STRING", "index": 6, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}, "total_conversions": {"type": "INT64", "index": 10, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 11, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "FLOAT64", "index": 12, "name": "total_conversions_value", "comment": null}, "paid_impression": {"type": "FLOAT64", "index": 13, "name": "paid_impression", "comment": null}, "conversions": {"type": "FLOAT64", "index": 14, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 15, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 16, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 720, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report"}, "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__campaign_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 3, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 4, "name": "campaign_status", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 11, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "INT64", "index": 12, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 13, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "INT64", "index": 14, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__keyword_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "keyword_id": {"type": "STRING", "index": 2, "name": "keyword_id", "comment": null}, "keyword_value": {"type": "STRING", "index": 3, "name": "keyword_value", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 4, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "STRING", "index": 6, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "STRING", "index": 7, "name": "advertiser_id", "comment": null}, "archived": {"type": "BOOL", "index": 8, "name": "archived", "comment": null}, "bid": {"type": "INT64", "index": 9, "name": "bid", "comment": null}, "campaign_id": {"type": "STRING", "index": 10, "name": "campaign_id", "comment": null}, "match_type": {"type": "STRING", "index": 11, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 12, "name": "parent_type", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 13, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1171, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history"}, "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__keyword_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 4, "name": "advertiser_id", "comment": null}, "archived": {"type": "BOOL", "index": 5, "name": "archived", "comment": null}, "bid": {"type": "INT64", "index": 6, "name": "bid", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "id": {"type": "INT64", "index": 8, "name": "id", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 10, "name": "parent_type", "comment": null}, "value": {"type": "STRING", "index": 11, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "keyword_id": {"type": "STRING", "index": 3, "name": "keyword_id", "comment": null}, "pin_promotion_id": {"type": "STRING", "index": 4, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 5, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 7, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "STRING", "index": 8, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "STRING", "index": 9, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 12, "name": "spend", "comment": null}, "total_conversions": {"type": "INT64", "index": 13, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 14, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "FLOAT64", "index": 15, "name": "total_conversions_value", "comment": null}, "conversions": {"type": "FLOAT64", "index": 16, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 17, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 18, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 6, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1068, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report"}, "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__keyword_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "keyword_id": {"type": "INT64", "index": 2, "name": "keyword_id", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 3, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 8, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 9, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 10, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 11, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 13, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 14, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "INT64", "index": 15, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 16, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "INT64", "index": 17, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__pin_promotion_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "pin_promotion_id": {"type": "STRING", "index": 2, "name": "pin_promotion_id", "comment": null}, "advertiser_id": {"type": "STRING", "index": 3, "name": "advertiser_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 4, "name": "ad_group_id", "comment": null}, "created_at": {"type": "STRING", "index": 5, "name": "created_at", "comment": null}, "destination_url": {"type": "STRING", "index": 6, "name": "destination_url", "comment": null}, "base_url": {"type": "STRING", "index": 7, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 8, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 9, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 10, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 11, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 12, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 13, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 14, "name": "utm_term", "comment": null}, "pin_name": {"type": "STRING", "index": 15, "name": "pin_name", "comment": null}, "pin_id": {"type": "STRING", "index": 16, "name": "pin_id", "comment": null}, "pin_status": {"type": "STRING", "index": 17, "name": "pin_status", "comment": null}, "creative_type": {"type": "STRING", "index": 18, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 19, "name": "_fivetran_synced", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 20, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2694, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__pin_promotion_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "destination_url": {"type": "STRING", "index": 4, "name": "destination_url", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "pin_id": {"type": "INT64", "index": 6, "name": "pin_id", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "creative_type": {"type": "STRING", "index": 8, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 9, "name": "_fivetran_synced", "comment": null}, "ad_account_id": {"type": "INT64", "index": 10, "name": "ad_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__pin_promotion_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "pin_promotion_id": {"type": "STRING", "index": 3, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 4, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "STRING", "index": 6, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}, "total_conversions": {"type": "INT64", "index": 10, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 11, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "FLOAT64", "index": 12, "name": "total_conversions_value", "comment": null}, "paid_impression": {"type": "FLOAT64", "index": 13, "name": "paid_impression", "comment": null}, "conversions": {"type": "FLOAT64", "index": 14, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 15, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 16, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 645, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__pin_promotion_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 11, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "INT64", "index": 12, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 13, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "INT64", "index": 14, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__account": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__account", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "attribution_type": {"type": "STRING", "index": 2, "name": "attribution_type", "comment": null}, "click_attribution_window": {"type": "STRING", "index": 3, "name": "click_attribution_window", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 4, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "account_id": {"type": "INT64", "index": 6, "name": "account_id", "comment": null}, "status": {"type": "INT64", "index": 7, "name": "status", "comment": null}, "time_zone_id": {"type": "STRING", "index": 8, "name": "time_zone_id", "comment": null}, "view_attribution_window": {"type": "STRING", "index": 9, "name": "view_attribution_window", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 56, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account"}, "model.reddit_ads_source.stg_reddit_ads__account_conversions_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__account_conversions_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "date_day": {"type": "DATE", "index": 4, "name": "date_day", "comment": null}, "event_name": {"type": "STRING", "index": 5, "name": "event_name", "comment": null}, "total_items": {"type": "INT64", "index": 6, "name": "total_items", "comment": null}, "total_value": {"type": "FLOAT64", "index": 7, "name": "total_value", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 9, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 8, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 544, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_conversions_report"}, "model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__account_conversions_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "DATETIME", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "avg_value": {"type": "FLOAT64", "index": 3, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "INT64", "index": 4, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "INT64", "index": 5, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "INT64", "index": 6, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "DATE", "index": 7, "name": "date", "comment": null}, "event_name": {"type": "STRING", "index": 8, "name": "event_name", "comment": null}, "total_items": {"type": "INT64", "index": 9, "name": "total_items", "comment": null}, "total_value": {"type": "FLOAT64", "index": 10, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "INT64", "index": 11, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "INT64", "index": 12, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "INT64", "index": 13, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "clicks": {"type": "INT64", "index": 3, "name": "clicks", "comment": null}, "date_day": {"type": "DATE", "index": 4, "name": "date_day", "comment": null}, "impressions": {"type": "INT64", "index": 5, "name": "impressions", "comment": null}, "region": {"type": "INT64", "index": 6, "name": "region", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}, "conversions": {"type": "STRING", "index": 8, "name": "conversions", "comment": null}, "installs": {"type": "INT64", "index": 9, "name": "installs", "comment": null}, "videos": {"type": "INT64", "index": 10, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 56, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3248, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_report"}, "model.reddit_ads_source.stg_reddit_ads__account_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__account_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 4, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 6, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 7, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 8, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 9, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 10, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 11, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 12, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 13, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 15, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 17, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 18, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 19, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "INT64", "index": 20, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 21, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 22, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 23, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "INT64", "index": 24, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "INT64", "index": 25, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 26, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 27, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 30, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "INT64", "index": 33, "name": "priority", "comment": null}, "region": {"type": "INT64", "index": 34, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 35, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 36, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 37, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 38, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 39, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 40, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 41, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 42, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 43, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 44, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 45, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 46, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 47, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 48, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 49, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 50, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__account_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__account_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "attribution_type": {"type": "STRING", "index": 3, "name": "attribution_type", "comment": null}, "click_attribution_window": {"type": "STRING", "index": 4, "name": "click_attribution_window", "comment": null}, "created_at": {"type": "DATETIME", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "status": {"type": "INT64", "index": 7, "name": "status", "comment": null}, "time_zone_id": {"type": "STRING", "index": 8, "name": "time_zone_id", "comment": null}, "view_attribution_window": {"type": "STRING", "index": 9, "name": "view_attribution_window", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_tmp"}, "model.reddit_ads_source.stg_reddit_ads__ad": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "click_url": {"type": "STRING", "index": 5, "name": "click_url", "comment": null}, "configured_status": {"type": "STRING", "index": 6, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 7, "name": "effective_status", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "is_processing": {"type": "BOOL", "index": 9, "name": "is_processing", "comment": null}, "ad_name": {"type": "STRING", "index": 10, "name": "ad_name", "comment": null}, "post_id": {"type": "STRING", "index": 11, "name": "post_id", "comment": null}, "post_url": {"type": "INT64", "index": 12, "name": "post_url", "comment": null}, "rejection_reason": {"type": "INT64", "index": 13, "name": "rejection_reason", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1093, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad"}, "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_conversions_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "ad_id": {"type": "INT64", "index": 4, "name": "ad_id", "comment": null}, "date_day": {"type": "DATE", "index": 5, "name": "date_day", "comment": null}, "event_name": {"type": "STRING", "index": 6, "name": "event_name", "comment": null}, "total_items": {"type": "INT64", "index": 7, "name": "total_items", "comment": null}, "total_value": {"type": "FLOAT64", "index": 8, "name": "total_value", "comment": null}, "conversions": {"type": "INT64", "index": 9, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 10, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 8, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 608, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report"}, "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_conversions_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "DATETIME", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "ad_id": {"type": "INT64", "index": 3, "name": "ad_id", "comment": null}, "avg_value": {"type": "FLOAT64", "index": 4, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "INT64", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "INT64", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "INT64", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "DATE", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "STRING", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "INT64", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "FLOAT64", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "INT64", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "INT64", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "INT64", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__ad_group": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_group", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "bid_strategy": {"type": "STRING", "index": 3, "name": "bid_strategy", "comment": null}, "bid_value": {"type": "INT64", "index": 4, "name": "bid_value", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "configured_status": {"type": "STRING", "index": 6, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 7, "name": "effective_status", "comment": null}, "end_time_at": {"type": "TIMESTAMP", "index": 8, "name": "end_time_at", "comment": null}, "expand_targeting": {"type": "BOOL", "index": 9, "name": "expand_targeting", "comment": null}, "goal_type": {"type": "STRING", "index": 10, "name": "goal_type", "comment": null}, "goal_value": {"type": "INT64", "index": 11, "name": "goal_value", "comment": null}, "ad_group_id": {"type": "INT64", "index": 12, "name": "ad_group_id", "comment": null}, "is_processing": {"type": "BOOL", "index": 13, "name": "is_processing", "comment": null}, "ad_group_name": {"type": "STRING", "index": 14, "name": "ad_group_name", "comment": null}, "optimization_strategy_type": {"type": "INT64", "index": 15, "name": "optimization_strategy_type", "comment": null}, "start_time_at": {"type": "TIMESTAMP", "index": 16, "name": "start_time_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 19, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2211, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group"}, "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_conversions_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "date_day": {"type": "DATE", "index": 5, "name": "date_day", "comment": null}, "event_name": {"type": "STRING", "index": 6, "name": "event_name", "comment": null}, "total_items": {"type": "INT64", "index": 7, "name": "total_items", "comment": null}, "total_value": {"type": "FLOAT64", "index": 8, "name": "total_value", "comment": null}, "conversions": {"type": "INT64", "index": 9, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 10, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 8, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 608, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report"}, "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_conversions_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "DATETIME", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "avg_value": {"type": "FLOAT64", "index": 4, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "INT64", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "INT64", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "INT64", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "DATE", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "STRING", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "INT64", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "FLOAT64", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "INT64", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "INT64", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "INT64", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "date_day": {"type": "DATE", "index": 5, "name": "date_day", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "region": {"type": "INT64", "index": 7, "name": "region", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "conversions": {"type": "STRING", "index": 9, "name": "conversions", "comment": null}, "installs": {"type": "INT64", "index": 10, "name": "installs", "comment": null}, "videos": {"type": "INT64", "index": 11, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6600, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_report"}, "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "INT64", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "INT64", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "INT64", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "INT64", "index": 34, "name": "priority", "comment": null}, "region": {"type": "INT64", "index": 35, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "bid_strategy": {"type": "STRING", "index": 4, "name": "bid_strategy", "comment": null}, "bid_value": {"type": "INT64", "index": 5, "name": "bid_value", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "configured_status": {"type": "STRING", "index": 7, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 8, "name": "effective_status", "comment": null}, "end_time": {"type": "DATETIME", "index": 9, "name": "end_time", "comment": null}, "expand_targeting": {"type": "BOOL", "index": 10, "name": "expand_targeting", "comment": null}, "goal_type": {"type": "STRING", "index": 11, "name": "goal_type", "comment": null}, "goal_value": {"type": "INT64", "index": 12, "name": "goal_value", "comment": null}, "is_processing": {"type": "BOOL", "index": 13, "name": "is_processing", "comment": null}, "name": {"type": "STRING", "index": 14, "name": "name", "comment": null}, "optimization_strategy_type": {"type": "INT64", "index": 15, "name": "optimization_strategy_type", "comment": null}, "start_time": {"type": "DATETIME", "index": 16, "name": "start_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp"}, "model.reddit_ads_source.stg_reddit_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "ad_id": {"type": "INT64", "index": 3, "name": "ad_id", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "date_day": {"type": "DATE", "index": 5, "name": "date_day", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "region": {"type": "INT64", "index": 7, "name": "region", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "conversions": {"type": "STRING", "index": 9, "name": "conversions", "comment": null}, "installs": {"type": "INT64", "index": 10, "name": "installs", "comment": null}, "videos": {"type": "INT64", "index": 11, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6600, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_report"}, "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "INT64", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "INT64", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "INT64", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "INT64", "index": 34, "name": "priority", "comment": null}, "region": {"type": "INT64", "index": 35, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__ad_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "click_url": {"type": "STRING", "index": 6, "name": "click_url", "comment": null}, "configured_status": {"type": "STRING", "index": 7, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 8, "name": "effective_status", "comment": null}, "is_processing": {"type": "BOOL", "index": 9, "name": "is_processing", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "post_id": {"type": "STRING", "index": 11, "name": "post_id", "comment": null}, "post_url": {"type": "INT64", "index": 12, "name": "post_url", "comment": null}, "preview_expiry": {"type": "INT64", "index": 13, "name": "preview_expiry", "comment": null}, "preview_url": {"type": "INT64", "index": 14, "name": "preview_url", "comment": null}, "rejection_reason": {"type": "INT64", "index": 15, "name": "rejection_reason", "comment": null}, "search_term": {"type": "INT64", "index": 16, "name": "search_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_tmp"}, "model.reddit_ads_source.stg_reddit_ads__campaign": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__campaign", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "configured_status": {"type": "STRING", "index": 3, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 4, "name": "effective_status", "comment": null}, "funding_instrument_id": {"type": "INT64", "index": 5, "name": "funding_instrument_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "is_processing": {"type": "BOOL", "index": 7, "name": "is_processing", "comment": null}, "campaign_name": {"type": "STRING", "index": 8, "name": "campaign_name", "comment": null}, "objective": {"type": "STRING", "index": 9, "name": "objective", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 654, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign"}, "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__campaign_conversions_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "date_day": {"type": "DATE", "index": 5, "name": "date_day", "comment": null}, "event_name": {"type": "STRING", "index": 6, "name": "event_name", "comment": null}, "total_items": {"type": "INT64", "index": 7, "name": "total_items", "comment": null}, "total_value": {"type": "FLOAT64", "index": 8, "name": "total_value", "comment": null}, "conversions": {"type": "INT64", "index": 9, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 10, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 8, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 608, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report"}, "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__campaign_conversions_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "DATETIME", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "avg_value": {"type": "FLOAT64", "index": 3, "name": "avg_value", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "INT64", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "INT64", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "INT64", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "DATE", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "STRING", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "INT64", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "FLOAT64", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "INT64", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "INT64", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "INT64", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "date_day": {"type": "DATE", "index": 5, "name": "date_day", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "region": {"type": "INT64", "index": 7, "name": "region", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "conversions": {"type": "STRING", "index": 9, "name": "conversions", "comment": null}, "installs": {"type": "INT64", "index": 10, "name": "installs", "comment": null}, "videos": {"type": "INT64", "index": 11, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 79, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 5214, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_report"}, "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__campaign_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "INT64", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "INT64", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "INT64", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "INT64", "index": 34, "name": "priority", "comment": null}, "region": {"type": "INT64", "index": 35, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__campaign_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__campaign_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "configured_status": {"type": "STRING", "index": 4, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 5, "name": "effective_status", "comment": null}, "funding_instrument_id": {"type": "INT64", "index": 6, "name": "funding_instrument_id", "comment": null}, "is_processing": {"type": "BOOL", "index": 7, "name": "is_processing", "comment": null}, "name": {"type": "STRING", "index": 8, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 9, "name": "objective", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "STRING", "index": 3, "name": "ad_account_name", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 4, "name": "created_at", "comment": null}, "advertiser": {"type": "STRING", "index": 5, "name": "advertiser", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "timezone": {"type": "STRING", "index": 7, "name": "timezone", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 8, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 9, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 111, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9213, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "STRING", "index": 2, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 3, "name": "ad_name", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 4, "name": "created_at", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 5, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "STRING", "index": 6, "name": "creative_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 8, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 320, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 50880, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 2, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "STRING", "index": 3, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_hourly_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "STRING", "index": 2, "name": "ad_id", "comment": null}, "date_hour": {"type": "TIMESTAMP", "index": 3, "name": "date_hour", "comment": null}, "attachment_quartile_1": {"type": "NUMERIC", "index": 4, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "NUMERIC", "index": 5, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "NUMERIC", "index": 6, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time": {"type": "NUMERIC", "index": 7, "name": "attachment_total_view_time", "comment": null}, "attachment_view_completion": {"type": "NUMERIC", "index": 8, "name": "attachment_view_completion", "comment": null}, "quartile_1": {"type": "NUMERIC", "index": 9, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "NUMERIC", "index": 10, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "NUMERIC", "index": 11, "name": "quartile_3", "comment": null}, "saves": {"type": "NUMERIC", "index": 12, "name": "saves", "comment": null}, "shares": {"type": "NUMERIC", "index": 13, "name": "shares", "comment": null}, "screen_time": {"type": "NUMERIC", "index": 14, "name": "screen_time", "comment": null}, "video_views": {"type": "NUMERIC", "index": 15, "name": "video_views", "comment": null}, "view_completion": {"type": "NUMERIC", "index": 16, "name": "view_completion", "comment": null}, "view_time": {"type": "NUMERIC", "index": 17, "name": "view_time", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 19, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 20, "name": "swipes", "comment": null}, "conversion_purchases_value": {"type": "FLOAT64", "index": 21, "name": "conversion_purchases_value", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 22, "name": "conversion_purchases", "comment": null}, "conversion_add_billing_alias": {"type": "FLOAT64", "index": 23, "name": "conversion_add_billing_alias", "comment": null}, "conversions": {"type": "FLOAT64", "index": 24, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 25, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 26, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1212, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 145440, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_hourly_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "STRING", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 2, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "INT64", "index": 4, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 5, "name": "swipes", "comment": null}, "conversion_purchases_value": {"type": "FLOAT64", "index": 6, "name": "conversion_purchases_value", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 7, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 8, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 9, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 10, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 11, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 12, "name": "conversion_purchases", "comment": null}, "conversion_save": {"type": "INT64", "index": 13, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 14, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 15, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 16, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 17, "name": "conversion_view_content", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_squad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 2, "name": "ad_squad_id", "comment": null}, "ad_squad_name": {"type": "STRING", "index": 3, "name": "ad_squad_name", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 4, "name": "created_at", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 7, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 228, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 27588, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_squad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_squad_hourly_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 2, "name": "ad_squad_id", "comment": null}, "date_hour": {"type": "TIMESTAMP", "index": 3, "name": "date_hour", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 4, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 5, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 6, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time": {"type": "FLOAT64", "index": 7, "name": "attachment_total_view_time", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 8, "name": "attachment_view_completion", "comment": null}, "quartile_1": {"type": "INT64", "index": 9, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 10, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 11, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 12, "name": "saves", "comment": null}, "shares": {"type": "INT64", "index": 13, "name": "shares", "comment": null}, "screen_time": {"type": "FLOAT64", "index": 14, "name": "screen_time", "comment": null}, "video_views": {"type": "INT64", "index": 15, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 16, "name": "view_completion", "comment": null}, "view_time": {"type": "FLOAT64", "index": 17, "name": "view_time", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 19, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 20, "name": "swipes", "comment": null}, "conversion_purchases_value": {"type": "FLOAT64", "index": 21, "name": "conversion_purchases_value", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 22, "name": "conversion_purchases", "comment": null}, "conversions": {"type": "FLOAT64", "index": 23, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 24, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 25, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2240, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_squad_id": {"type": "STRING", "index": 1, "name": "ad_squad_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "FLOAT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 3, "name": "ad_account_id", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 4, "name": "created_at", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 7, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 58, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7018, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__campaign_hourly_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "date_hour": {"type": "TIMESTAMP", "index": 3, "name": "date_hour", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 4, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 5, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 6, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time": {"type": "FLOAT64", "index": 7, "name": "attachment_total_view_time", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 8, "name": "attachment_view_completion", "comment": null}, "quartile_1": {"type": "INT64", "index": 9, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 10, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 11, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 12, "name": "saves", "comment": null}, "shares": {"type": "INT64", "index": 13, "name": "shares", "comment": null}, "screen_time": {"type": "FLOAT64", "index": 14, "name": "screen_time", "comment": null}, "video_views": {"type": "INT64", "index": 15, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 16, "name": "view_completion", "comment": null}, "view_time": {"type": "FLOAT64", "index": 17, "name": "view_time", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 19, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 20, "name": "swipes", "comment": null}, "conversion_purchases_value": {"type": "FLOAT64", "index": 21, "name": "conversion_purchases_value", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 22, "name": "conversion_purchases", "comment": null}, "conversion_add_billing_alias": {"type": "FLOAT64", "index": 23, "name": "conversion_add_billing_alias", "comment": null}, "conversions": {"type": "FLOAT64", "index": 24, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 25, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 26, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2320, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__campaign_hourly_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "STRING", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "FLOAT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__creative_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "creative_id": {"type": "STRING", "index": 2, "name": "creative_id", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 3, "name": "created_at", "comment": null}, "ad_account_id": {"type": "STRING", "index": 4, "name": "ad_account_id", "comment": null}, "creative_name": {"type": "STRING", "index": 5, "name": "creative_name", "comment": null}, "url": {"type": "STRING", "index": 6, "name": "url", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 8, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 119, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 17136, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__creative_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "web_view_url": {"type": "STRING", "index": 4, "name": "web_view_url", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__creative_url_tag_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "creative_id": {"type": "STRING", "index": 2, "name": "creative_id", "comment": null}, "param_key": {"type": "STRING", "index": 3, "name": "param_key", "comment": null}, "param_value": {"type": "STRING", "index": 4, "name": "param_value", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 5, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 6, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 383, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 36051, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__creative_url_tag_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "STRING", "index": 1, "name": "creative_id", "comment": null}, "key": {"type": "STRING", "index": 2, "name": "key", "comment": null}, "value": {"type": "STRING", "index": 3, "name": "value", "comment": null}, "updated_at": {"type": "STRING", "index": 4, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 3, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 4, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "action_days": {"type": "INT64", "index": 6, "name": "action_days", "comment": null}, "action_categories": {"type": "STRING", "index": 7, "name": "action_categories", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "age_groups": {"type": "STRING", "index": 9, "name": "age_groups", "comment": null}, "audience_type": {"type": "INT64", "index": 10, "name": "audience_type", "comment": null}, "budget": {"type": "INT64", "index": 11, "name": "budget", "comment": null}, "category": {"type": "INT64", "index": 12, "name": "category", "comment": null}, "display_name": {"type": "INT64", "index": 13, "name": "display_name", "comment": null}, "interest_category": {"type": "STRING", "index": 14, "name": "interest_category", "comment": null}, "frequency": {"type": "INT64", "index": 15, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "INT64", "index": 16, "name": "frequency_schedule", "comment": null}, "gender": {"type": "STRING", "index": 17, "name": "gender", "comment": null}, "languages": {"type": "STRING", "index": 18, "name": "languages", "comment": null}, "landing_page_url": {"type": "INT64", "index": 19, "name": "landing_page_url", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 20, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 751, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__ad_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"adgroup_id": {"type": "INT64", "index": 1, "name": "adgroup_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 5, "name": "create_time", "comment": null}, "adgroup_name": {"type": "STRING", "index": 6, "name": "adgroup_name", "comment": null}, "placement_type": {"type": "STRING", "index": 7, "name": "placement_type", "comment": null}, "profile_image": {"type": "INT64", "index": 8, "name": "profile_image", "comment": null}, "landing_page_url": {"type": "INT64", "index": 9, "name": "landing_page_url", "comment": null}, "display_name": {"type": "INT64", "index": 10, "name": "display_name", "comment": null}, "app_type": {"type": "INT64", "index": 11, "name": "app_type", "comment": null}, "app_download_url": {"type": "INT64", "index": 12, "name": "app_download_url", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "optimization_event": {"type": "STRING", "index": 14, "name": "optimization_event", "comment": null}, "secondary_optimization_event": {"type": "INT64", "index": 15, "name": "secondary_optimization_event", "comment": null}, "creative_material_mode": {"type": "STRING", "index": 16, "name": "creative_material_mode", "comment": null}, "audience_type": {"type": "INT64", "index": 17, "name": "audience_type", "comment": null}, "gender": {"type": "STRING", "index": 18, "name": "gender", "comment": null}, "min_android_version": {"type": "INT64", "index": 19, "name": "min_android_version", "comment": null}, "min_ios_version": {"type": "INT64", "index": 20, "name": "min_ios_version", "comment": null}, "budget_mode": {"type": "STRING", "index": 21, "name": "budget_mode", "comment": null}, "schedule_type": {"type": "STRING", "index": 22, "name": "schedule_type", "comment": null}, "dayparting": {"type": "INT64", "index": 23, "name": "dayparting", "comment": null}, "optimization_goal": {"type": "STRING", "index": 24, "name": "optimization_goal", "comment": null}, "cpv_video_duration": {"type": "INT64", "index": 25, "name": "cpv_video_duration", "comment": null}, "pacing": {"type": "STRING", "index": 26, "name": "pacing", "comment": null}, "billing_event": {"type": "STRING", "index": 27, "name": "billing_event", "comment": null}, "bid_type": {"type": "STRING", "index": 28, "name": "bid_type", "comment": null}, "deep_bid_type": {"type": "INT64", "index": 29, "name": "deep_bid_type", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 30, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 31, "name": "click_tracking_url", "comment": null}, "secondary_status": {"type": "STRING", "index": 32, "name": "secondary_status", "comment": null}, "operation_status": {"type": "STRING", "index": 33, "name": "operation_status", "comment": null}, "statistic_type": {"type": "INT64", "index": 34, "name": "statistic_type", "comment": null}, "video_download": {"type": "STRING", "index": 35, "name": "video_download", "comment": null}, "open_url": {"type": "INT64", "index": 36, "name": "open_url", "comment": null}, "open_url_type": {"type": "INT64", "index": 37, "name": "open_url_type", "comment": null}, "fallback_type": {"type": "INT64", "index": 38, "name": "fallback_type", "comment": null}, "budget": {"type": "INT64", "index": 39, "name": "budget", "comment": null}, "bid_price": {"type": "INT64", "index": 40, "name": "bid_price", "comment": null}, "conversion_bid_price": {"type": "INT64", "index": 41, "name": "conversion_bid_price", "comment": null}, "deep_cpa_bid": {"type": "INT64", "index": 42, "name": "deep_cpa_bid", "comment": null}, "schedule_start_time": {"type": "STRING", "index": 43, "name": "schedule_start_time", "comment": null}, "schedule_end_time": {"type": "STRING", "index": 44, "name": "schedule_end_time", "comment": null}, "app_id": {"type": "INT64", "index": 45, "name": "app_id", "comment": null}, "pixel_id": {"type": "INT64", "index": 46, "name": "pixel_id", "comment": null}, "inventory_filter_enabled": {"type": "BOOL", "index": 47, "name": "inventory_filter_enabled", "comment": null}, "is_hfss": {"type": "BOOL", "index": 48, "name": "is_hfss", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 49, "name": "is_new_structure", "comment": null}, "category": {"type": "INT64", "index": 50, "name": "category", "comment": null}, "is_comment_disable": {"type": "INT64", "index": 51, "name": "is_comment_disable", "comment": null}, "skip_learning_phase": {"type": "INT64", "index": 52, "name": "skip_learning_phase", "comment": null}, "frequency": {"type": "INT64", "index": 53, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "INT64", "index": 54, "name": "frequency_schedule", "comment": null}, "action_days": {"type": "INT64", "index": 55, "name": "action_days", "comment": null}, "audience": {"type": "STRING", "index": 56, "name": "audience", "comment": null}, "excluded_audience": {"type": "STRING", "index": 57, "name": "excluded_audience", "comment": null}, "location": {"type": "STRING", "index": 58, "name": "location", "comment": null}, "interest_category_v_2": {"type": "STRING", "index": 59, "name": "interest_category_v_2", "comment": null}, "pangle_block_app_list_id": {"type": "STRING", "index": 60, "name": "pangle_block_app_list_id", "comment": null}, "action_categories": {"type": "STRING", "index": 61, "name": "action_categories", "comment": null}, "placements": {"type": "STRING", "index": 62, "name": "placements", "comment": null}, "keywords": {"type": "INT64", "index": 63, "name": "keywords", "comment": null}, "age_groups": {"type": "STRING", "index": 64, "name": "age_groups", "comment": null}, "languages": {"type": "STRING", "index": 65, "name": "languages", "comment": null}, "operating_systems": {"type": "STRING", "index": 66, "name": "operating_systems", "comment": null}, "network_types": {"type": "STRING", "index": 67, "name": "network_types", "comment": null}, "carriers": {"type": "STRING", "index": 68, "name": "carriers", "comment": null}, "video_actions": {"type": "STRING", "index": 69, "name": "video_actions", "comment": null}, "package": {"type": "INT64", "index": 70, "name": "package", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 71, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__ad_group_report_hourly", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "stat_time_hour": {"type": "TIMESTAMP", "index": 3, "name": "stat_time_hour", "comment": null}, "cpc": {"type": "FLOAT64", "index": 4, "name": "cpc", "comment": null}, "cpm": {"type": "FLOAT64", "index": 5, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 6, "name": "ctr", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 10, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 11, "name": "conversion", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 12, "name": "cost_per_conversion", "comment": null}, "conversion_rate": {"type": "INT64", "index": 13, "name": "conversion_rate", "comment": null}, "likes": {"type": "INT64", "index": 14, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 15, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 16, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 17, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 18, "name": "follows", "comment": null}, "video_play_actions": {"type": "INT64", "index": 19, "name": "video_play_actions", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 20, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 21, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 22, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 23, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 24, "name": "video_views_p_75", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 25, "name": "average_video_play", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 26, "name": "average_video_play_per_user", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 27, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "FLOAT64", "index": 28, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "FLOAT64", "index": 29, "name": "total_sales_lead_value", "comment": null}, "real_time_conversions": {"type": "FLOAT64", "index": 30, "name": "real_time_conversions", "comment": null}, "conversions": {"type": "FLOAT64", "index": 31, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 32, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 33, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1032, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__ad_group_report_hourly_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ADGROUP_ID": {"type": "INT64", "index": 1, "name": "ADGROUP_ID", "comment": null}, "STAT_TIME_HOUR": {"type": "DATETIME", "index": 2, "name": "STAT_TIME_HOUR", "comment": null}, "COST_PER_CONVERSION": {"type": "FLOAT64", "index": 3, "name": "COST_PER_CONVERSION", "comment": null}, "CPC": {"type": "FLOAT64", "index": 4, "name": "CPC", "comment": null}, "VIDEO_PLAY_ACTIONS": {"type": "INT64", "index": 5, "name": "VIDEO_PLAY_ACTIONS", "comment": null}, "CONVERSION_RATE": {"type": "INT64", "index": 6, "name": "CONVERSION_RATE", "comment": null}, "VIDEO_VIEWS_P_75": {"type": "INT64", "index": 7, "name": "VIDEO_VIEWS_P_75", "comment": null}, "RESULT": {"type": "INT64", "index": 8, "name": "RESULT", "comment": null}, "VIDEO_VIEWS_P_50": {"type": "INT64", "index": 9, "name": "VIDEO_VIEWS_P_50", "comment": null}, "IMPRESSIONS": {"type": "INT64", "index": 10, "name": "IMPRESSIONS", "comment": null}, "COMMENTS": {"type": "INT64", "index": 11, "name": "COMMENTS", "comment": null}, "REAL_TIME_COST_PER_RESULT": {"type": "FLOAT64", "index": 12, "name": "REAL_TIME_COST_PER_RESULT", "comment": null}, "CONVERSION": {"type": "INT64", "index": 13, "name": "CONVERSION", "comment": null}, "REAL_TIME_RESULT": {"type": "INT64", "index": 14, "name": "REAL_TIME_RESULT", "comment": null}, "VIDEO_VIEWS_P_100": {"type": "INT64", "index": 15, "name": "VIDEO_VIEWS_P_100", "comment": null}, "SHARES": {"type": "INT64", "index": 16, "name": "SHARES", "comment": null}, "REAL_TIME_CONVERSION_RATE": {"type": "FLOAT64", "index": 17, "name": "REAL_TIME_CONVERSION_RATE", "comment": null}, "COST_PER_SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 18, "name": "COST_PER_SECONDARY_GOAL_RESULT", "comment": null}, "SECONDARY_GOAL_RESULT_RATE": {"type": "STRING", "index": 19, "name": "SECONDARY_GOAL_RESULT_RATE", "comment": null}, "CLICKS": {"type": "INT64", "index": 20, "name": "CLICKS", "comment": null}, "COST_PER_1000_REACHED": {"type": "FLOAT64", "index": 21, "name": "COST_PER_1000_REACHED", "comment": null}, "VIDEO_VIEWS_P_25": {"type": "INT64", "index": 22, "name": "VIDEO_VIEWS_P_25", "comment": null}, "REACH": {"type": "INT64", "index": 23, "name": "REACH", "comment": null}, "REAL_TIME_COST_PER_CONVERSION": {"type": "FLOAT64", "index": 24, "name": "REAL_TIME_COST_PER_CONVERSION", "comment": null}, "PROFILE_VISITS_RATE": {"type": "INT64", "index": 25, "name": "PROFILE_VISITS_RATE", "comment": null}, "AVERAGE_VIDEO_PLAY": {"type": "FLOAT64", "index": 26, "name": "AVERAGE_VIDEO_PLAY", "comment": null}, "PROFILE_VISITS": {"type": "INT64", "index": 27, "name": "PROFILE_VISITS", "comment": null}, "CPM": {"type": "FLOAT64", "index": 28, "name": "CPM", "comment": null}, "CTR": {"type": "FLOAT64", "index": 29, "name": "CTR", "comment": null}, "VIDEO_WATCHED_2_S": {"type": "INT64", "index": 30, "name": "VIDEO_WATCHED_2_S", "comment": null}, "FOLLOWS": {"type": "INT64", "index": 31, "name": "FOLLOWS", "comment": null}, "RESULT_RATE": {"type": "FLOAT64", "index": 32, "name": "RESULT_RATE", "comment": null}, "VIDEO_WATCHED_6_S": {"type": "INT64", "index": 33, "name": "VIDEO_WATCHED_6_S", "comment": null}, "SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 34, "name": "SECONDARY_GOAL_RESULT", "comment": null}, "COST_PER_RESULT": {"type": "FLOAT64", "index": 35, "name": "COST_PER_RESULT", "comment": null}, "AVERAGE_VIDEO_PLAY_PER_USER": {"type": "FLOAT64", "index": 36, "name": "AVERAGE_VIDEO_PLAY_PER_USER", "comment": null}, "REAL_TIME_RESULT_RATE": {"type": "FLOAT64", "index": 37, "name": "REAL_TIME_RESULT_RATE", "comment": null}, "SPEND": {"type": "FLOAT64", "index": 38, "name": "SPEND", "comment": null}, "LIKES": {"type": "INT64", "index": 39, "name": "LIKES", "comment": null}, "REAL_TIME_CONVERSION": {"type": "INT64", "index": 40, "name": "REAL_TIME_CONVERSION", "comment": null}, "TOTAL_PURCHASE_VALUE": {"type": "FLOAT64", "index": 41, "name": "TOTAL_PURCHASE_VALUE", "comment": null}, "TOTAL_SALES_LEAD_VALUE": {"type": "FLOAT64", "index": 42, "name": "TOTAL_SALES_LEAD_VALUE", "comment": null}, "_FIVETRAN_SYNCED": {"type": "STRING", "index": 43, "name": "_FIVETRAN_SYNCED", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 3, "name": "updated_at", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "ad_name": {"type": "STRING", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "STRING", "index": 8, "name": "call_to_action", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 9, "name": "click_tracking_url", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 10, "name": "impression_tracking_url", "comment": null}, "base_url": {"type": "STRING", "index": 11, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 12, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 13, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 14, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 15, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 16, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 17, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 18, "name": "utm_term", "comment": null}, "landing_page_url": {"type": "STRING", "index": 19, "name": "landing_page_url", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 20, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 640, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__ad_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "INT64", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "STRING", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "STRING", "index": 8, "name": "call_to_action", "comment": null}, "secondary_status": {"type": "STRING", "index": 9, "name": "secondary_status", "comment": null}, "operation_status": {"type": "STRING", "index": 10, "name": "operation_status", "comment": null}, "ad_text": {"type": "STRING", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "STRING", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "deeplink": {"type": "INT64", "index": 14, "name": "deeplink", "comment": null}, "landing_page_url": {"type": "STRING", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "STRING", "index": 16, "name": "display_name", "comment": null}, "profile_image_url": {"type": "INT64", "index": 17, "name": "profile_image_url", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "INT64", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "BOOL", "index": 21, "name": "is_aco", "comment": null}, "creative_authorized": {"type": "BOOL", "index": 22, "name": "creative_authorized", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "STRING", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__ad_report_hourly", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "stat_time_hour": {"type": "TIMESTAMP", "index": 3, "name": "stat_time_hour", "comment": null}, "cpc": {"type": "FLOAT64", "index": 4, "name": "cpc", "comment": null}, "cpm": {"type": "FLOAT64", "index": 5, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 6, "name": "ctr", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 10, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 11, "name": "conversion", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 12, "name": "cost_per_conversion", "comment": null}, "conversion_rate": {"type": "INT64", "index": 13, "name": "conversion_rate", "comment": null}, "likes": {"type": "INT64", "index": 14, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 15, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 16, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 17, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 18, "name": "follows", "comment": null}, "video_play_actions": {"type": "INT64", "index": 19, "name": "video_play_actions", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 20, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 21, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 22, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 23, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 24, "name": "video_views_p_75", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 25, "name": "average_video_play", "comment": null}, "average_video_play_per_user": {"type": "INT64", "index": 26, "name": "average_video_play_per_user", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 27, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "FLOAT64", "index": 28, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "FLOAT64", "index": 29, "name": "total_sales_lead_value", "comment": null}, "real_time_conversions": {"type": "FLOAT64", "index": 30, "name": "real_time_conversions", "comment": null}, "conversions": {"type": "FLOAT64", "index": 31, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 32, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 33, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1032, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__ad_report_hourly_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"AD_ID": {"type": "INT64", "index": 1, "name": "AD_ID", "comment": null}, "STAT_TIME_HOUR": {"type": "DATETIME", "index": 2, "name": "STAT_TIME_HOUR", "comment": null}, "COST_PER_CONVERSION": {"type": "FLOAT64", "index": 3, "name": "COST_PER_CONVERSION", "comment": null}, "CPC": {"type": "FLOAT64", "index": 4, "name": "CPC", "comment": null}, "VIDEO_PLAY_ACTIONS": {"type": "INT64", "index": 5, "name": "VIDEO_PLAY_ACTIONS", "comment": null}, "CONVERSION_RATE": {"type": "INT64", "index": 6, "name": "CONVERSION_RATE", "comment": null}, "VIDEO_VIEWS_P_75": {"type": "INT64", "index": 7, "name": "VIDEO_VIEWS_P_75", "comment": null}, "RESULT": {"type": "INT64", "index": 8, "name": "RESULT", "comment": null}, "VIDEO_VIEWS_P_50": {"type": "INT64", "index": 9, "name": "VIDEO_VIEWS_P_50", "comment": null}, "IMPRESSIONS": {"type": "INT64", "index": 10, "name": "IMPRESSIONS", "comment": null}, "COMMENTS": {"type": "INT64", "index": 11, "name": "COMMENTS", "comment": null}, "REAL_TIME_COST_PER_RESULT": {"type": "FLOAT64", "index": 12, "name": "REAL_TIME_COST_PER_RESULT", "comment": null}, "CONVERSION": {"type": "INT64", "index": 13, "name": "CONVERSION", "comment": null}, "REAL_TIME_RESULT": {"type": "INT64", "index": 14, "name": "REAL_TIME_RESULT", "comment": null}, "VIDEO_VIEWS_P_100": {"type": "INT64", "index": 15, "name": "VIDEO_VIEWS_P_100", "comment": null}, "SHARES": {"type": "INT64", "index": 16, "name": "SHARES", "comment": null}, "REAL_TIME_CONVERSION_RATE": {"type": "INT64", "index": 17, "name": "REAL_TIME_CONVERSION_RATE", "comment": null}, "COST_PER_SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 18, "name": "COST_PER_SECONDARY_GOAL_RESULT", "comment": null}, "SECONDARY_GOAL_RESULT_RATE": {"type": "STRING", "index": 19, "name": "SECONDARY_GOAL_RESULT_RATE", "comment": null}, "CLICKS": {"type": "INT64", "index": 20, "name": "CLICKS", "comment": null}, "COST_PER_1000_REACHED": {"type": "INT64", "index": 21, "name": "COST_PER_1000_REACHED", "comment": null}, "VIDEO_VIEWS_P_25": {"type": "INT64", "index": 22, "name": "VIDEO_VIEWS_P_25", "comment": null}, "REACH": {"type": "INT64", "index": 23, "name": "REACH", "comment": null}, "REAL_TIME_COST_PER_CONVERSION": {"type": "FLOAT64", "index": 24, "name": "REAL_TIME_COST_PER_CONVERSION", "comment": null}, "PROFILE_VISITS_RATE": {"type": "INT64", "index": 25, "name": "PROFILE_VISITS_RATE", "comment": null}, "AVERAGE_VIDEO_PLAY": {"type": "FLOAT64", "index": 26, "name": "AVERAGE_VIDEO_PLAY", "comment": null}, "PROFILE_VISITS": {"type": "INT64", "index": 27, "name": "PROFILE_VISITS", "comment": null}, "CPM": {"type": "FLOAT64", "index": 28, "name": "CPM", "comment": null}, "CTR": {"type": "FLOAT64", "index": 29, "name": "CTR", "comment": null}, "VIDEO_WATCHED_2_S": {"type": "INT64", "index": 30, "name": "VIDEO_WATCHED_2_S", "comment": null}, "FOLLOWS": {"type": "INT64", "index": 31, "name": "FOLLOWS", "comment": null}, "RESULT_RATE": {"type": "INT64", "index": 32, "name": "RESULT_RATE", "comment": null}, "VIDEO_WATCHED_6_S": {"type": "INT64", "index": 33, "name": "VIDEO_WATCHED_6_S", "comment": null}, "SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 34, "name": "SECONDARY_GOAL_RESULT", "comment": null}, "COST_PER_RESULT": {"type": "FLOAT64", "index": 35, "name": "COST_PER_RESULT", "comment": null}, "AVERAGE_VIDEO_PLAY_PER_USER": {"type": "INT64", "index": 36, "name": "AVERAGE_VIDEO_PLAY_PER_USER", "comment": null}, "REAL_TIME_RESULT_RATE": {"type": "INT64", "index": 37, "name": "REAL_TIME_RESULT_RATE", "comment": null}, "SPEND": {"type": "FLOAT64", "index": 38, "name": "SPEND", "comment": null}, "LIKES": {"type": "INT64", "index": 39, "name": "LIKES", "comment": null}, "REAL_TIME_CONVERSION": {"type": "INT64", "index": 40, "name": "REAL_TIME_CONVERSION", "comment": null}, "TOTAL_PURCHASE_VALUE": {"type": "FLOAT64", "index": 41, "name": "TOTAL_PURCHASE_VALUE", "comment": null}, "TOTAL_SALES_LEAD_VALUE": {"type": "FLOAT64", "index": 42, "name": "TOTAL_SALES_LEAD_VALUE", "comment": null}, "_FIVETRAN_SYNCED": {"type": "STRING", "index": 43, "name": "_FIVETRAN_SYNCED", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__advertiser", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "address": {"type": "STRING", "index": 3, "name": "address", "comment": null}, "balance": {"type": "FLOAT64", "index": 4, "name": "balance", "comment": null}, "company": {"type": "STRING", "index": 5, "name": "company", "comment": null}, "contacter": {"type": "INT64", "index": 6, "name": "contacter", "comment": null}, "country": {"type": "STRING", "index": 7, "name": "country", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "description": {"type": "STRING", "index": 9, "name": "description", "comment": null}, "email": {"type": "STRING", "index": 10, "name": "email", "comment": null}, "industry": {"type": "INT64", "index": 11, "name": "industry", "comment": null}, "language": {"type": "STRING", "index": 12, "name": "language", "comment": null}, "advertiser_name": {"type": "STRING", "index": 13, "name": "advertiser_name", "comment": null}, "cellphone_number": {"type": "STRING", "index": 14, "name": "cellphone_number", "comment": null}, "telephone_number": {"type": "STRING", "index": 15, "name": "telephone_number", "comment": null}, "timezone": {"type": "STRING", "index": 16, "name": "timezone", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 287, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser"}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__advertiser_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "address": {"type": "STRING", "index": 3, "name": "address", "comment": null}, "company": {"type": "STRING", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "INT64", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "description": {"type": "STRING", "index": 8, "name": "description", "comment": null}, "email": {"type": "STRING", "index": 9, "name": "email", "comment": null}, "industry": {"type": "INT64", "index": 10, "name": "industry", "comment": null}, "license_no": {"type": "INT64", "index": 11, "name": "license_no", "comment": null}, "license_url": {"type": "INT64", "index": 12, "name": "license_url", "comment": null}, "promotion_area": {"type": "INT64", "index": 13, "name": "promotion_area", "comment": null}, "rejected_reason": {"type": "INT64", "index": 14, "name": "rejected_reason", "comment": null}, "role": {"type": "STRING", "index": 15, "name": "role", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "telephone_number": {"type": "STRING", "index": 17, "name": "telephone_number", "comment": null}, "timezone": {"type": "STRING", "index": 18, "name": "timezone", "comment": null}, "balance": {"type": "FLOAT64", "index": 19, "name": "balance", "comment": null}, "create_time": {"type": "STRING", "index": 20, "name": "create_time", "comment": null}, "language": {"type": "STRING", "index": 21, "name": "language", "comment": null}, "cellphone_number": {"type": "STRING", "index": 22, "name": "cellphone_number", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 23, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 3, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 4, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_type": {"type": "STRING", "index": 6, "name": "campaign_type", "comment": null}, "split_test_variable": {"type": "STRING", "index": 7, "name": "split_test_variable", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 108, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "INT64", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "STRING", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "STRING", "index": 8, "name": "call_to_action", "comment": null}, "secondary_status": {"type": "STRING", "index": 9, "name": "secondary_status", "comment": null}, "operation_status": {"type": "STRING", "index": 10, "name": "operation_status", "comment": null}, "ad_text": {"type": "STRING", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "STRING", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "deeplink": {"type": "INT64", "index": 14, "name": "deeplink", "comment": null}, "landing_page_url": {"type": "STRING", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "STRING", "index": 16, "name": "display_name", "comment": null}, "profile_image_url": {"type": "INT64", "index": 17, "name": "profile_image_url", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "INT64", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "BOOL", "index": 21, "name": "is_aco", "comment": null}, "creative_authorized": {"type": "BOOL", "index": 22, "name": "creative_authorized", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "STRING", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__campaign_report_hourly", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "stat_time_hour": {"type": "TIMESTAMP", "index": 3, "name": "stat_time_hour", "comment": null}, "cpc": {"type": "FLOAT64", "index": 4, "name": "cpc", "comment": null}, "cpm": {"type": "FLOAT64", "index": 5, "name": "cpm", "comment": null}, "ctr": {"type": "FLOAT64", "index": 6, "name": "ctr", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 10, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 11, "name": "conversion", "comment": null}, "cost_per_conversion": {"type": "FLOAT64", "index": 12, "name": "cost_per_conversion", "comment": null}, "conversion_rate": {"type": "INT64", "index": 13, "name": "conversion_rate", "comment": null}, "likes": {"type": "INT64", "index": 14, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 15, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 16, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 17, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 18, "name": "follows", "comment": null}, "video_play_actions": {"type": "INT64", "index": 19, "name": "video_play_actions", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 20, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 21, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 22, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 23, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 24, "name": "video_views_p_75", "comment": null}, "average_video_play": {"type": "FLOAT64", "index": 25, "name": "average_video_play", "comment": null}, "average_video_play_per_user": {"type": "FLOAT64", "index": 26, "name": "average_video_play_per_user", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 27, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "FLOAT64", "index": 28, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "FLOAT64", "index": 29, "name": "total_sales_lead_value", "comment": null}, "real_time_conversions": {"type": "FLOAT64", "index": 30, "name": "real_time_conversions", "comment": null}, "conversions": {"type": "FLOAT64", "index": 31, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 32, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 33, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1032, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__campaign_report_hourly_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"CAMPAIGN_ID": {"type": "INT64", "index": 1, "name": "CAMPAIGN_ID", "comment": null}, "STAT_TIME_HOUR": {"type": "DATETIME", "index": 2, "name": "STAT_TIME_HOUR", "comment": null}, "COST_PER_CONVERSION": {"type": "FLOAT64", "index": 3, "name": "COST_PER_CONVERSION", "comment": null}, "CPC": {"type": "FLOAT64", "index": 4, "name": "CPC", "comment": null}, "VIDEO_PLAY_ACTIONS": {"type": "INT64", "index": 5, "name": "VIDEO_PLAY_ACTIONS", "comment": null}, "CONVERSION_RATE": {"type": "INT64", "index": 6, "name": "CONVERSION_RATE", "comment": null}, "VIDEO_VIEWS_P_75": {"type": "INT64", "index": 7, "name": "VIDEO_VIEWS_P_75", "comment": null}, "RESULT": {"type": "INT64", "index": 8, "name": "RESULT", "comment": null}, "VIDEO_VIEWS_P_50": {"type": "INT64", "index": 9, "name": "VIDEO_VIEWS_P_50", "comment": null}, "IMPRESSIONS": {"type": "INT64", "index": 10, "name": "IMPRESSIONS", "comment": null}, "COMMENTS": {"type": "INT64", "index": 11, "name": "COMMENTS", "comment": null}, "REAL_TIME_COST_PER_RESULT": {"type": "FLOAT64", "index": 12, "name": "REAL_TIME_COST_PER_RESULT", "comment": null}, "CONVERSION": {"type": "INT64", "index": 13, "name": "CONVERSION", "comment": null}, "REAL_TIME_RESULT": {"type": "INT64", "index": 14, "name": "REAL_TIME_RESULT", "comment": null}, "VIDEO_VIEWS_P_100": {"type": "INT64", "index": 15, "name": "VIDEO_VIEWS_P_100", "comment": null}, "SHARES": {"type": "INT64", "index": 16, "name": "SHARES", "comment": null}, "REAL_TIME_CONVERSION_RATE": {"type": "FLOAT64", "index": 17, "name": "REAL_TIME_CONVERSION_RATE", "comment": null}, "COST_PER_SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 18, "name": "COST_PER_SECONDARY_GOAL_RESULT", "comment": null}, "SECONDARY_GOAL_RESULT_RATE": {"type": "STRING", "index": 19, "name": "SECONDARY_GOAL_RESULT_RATE", "comment": null}, "CLICKS": {"type": "INT64", "index": 20, "name": "CLICKS", "comment": null}, "COST_PER_1000_REACHED": {"type": "FLOAT64", "index": 21, "name": "COST_PER_1000_REACHED", "comment": null}, "VIDEO_VIEWS_P_25": {"type": "INT64", "index": 22, "name": "VIDEO_VIEWS_P_25", "comment": null}, "REACH": {"type": "INT64", "index": 23, "name": "REACH", "comment": null}, "REAL_TIME_COST_PER_CONVERSION": {"type": "FLOAT64", "index": 24, "name": "REAL_TIME_COST_PER_CONVERSION", "comment": null}, "PROFILE_VISITS_RATE": {"type": "INT64", "index": 25, "name": "PROFILE_VISITS_RATE", "comment": null}, "AVERAGE_VIDEO_PLAY": {"type": "FLOAT64", "index": 26, "name": "AVERAGE_VIDEO_PLAY", "comment": null}, "PROFILE_VISITS": {"type": "INT64", "index": 27, "name": "PROFILE_VISITS", "comment": null}, "CPM": {"type": "FLOAT64", "index": 28, "name": "CPM", "comment": null}, "CTR": {"type": "FLOAT64", "index": 29, "name": "CTR", "comment": null}, "VIDEO_WATCHED_2_S": {"type": "INT64", "index": 30, "name": "VIDEO_WATCHED_2_S", "comment": null}, "FOLLOWS": {"type": "INT64", "index": 31, "name": "FOLLOWS", "comment": null}, "RESULT_RATE": {"type": "FLOAT64", "index": 32, "name": "RESULT_RATE", "comment": null}, "VIDEO_WATCHED_6_S": {"type": "INT64", "index": 33, "name": "VIDEO_WATCHED_6_S", "comment": null}, "SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 34, "name": "SECONDARY_GOAL_RESULT", "comment": null}, "COST_PER_RESULT": {"type": "FLOAT64", "index": 35, "name": "COST_PER_RESULT", "comment": null}, "AVERAGE_VIDEO_PLAY_PER_USER": {"type": "FLOAT64", "index": 36, "name": "AVERAGE_VIDEO_PLAY_PER_USER", "comment": null}, "REAL_TIME_RESULT_RATE": {"type": "FLOAT64", "index": 37, "name": "REAL_TIME_RESULT_RATE", "comment": null}, "SPEND": {"type": "FLOAT64", "index": 38, "name": "SPEND", "comment": null}, "LIKES": {"type": "INT64", "index": 39, "name": "LIKES", "comment": null}, "REAL_TIME_CONVERSION": {"type": "INT64", "index": 40, "name": "REAL_TIME_CONVERSION", "comment": null}, "TOTAL_PURCHASE_VALUE": {"type": "FLOAT64", "index": 41, "name": "TOTAL_PURCHASE_VALUE", "comment": null}, "TOTAL_SALES_LEAD_VALUE": {"type": "FLOAT64", "index": 42, "name": "TOTAL_SALES_LEAD_VALUE", "comment": null}, "_FIVETRAN_SYNCED": {"type": "STRING", "index": 43, "name": "_FIVETRAN_SYNCED", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp"}, "model.twitter_ads_source.stg_twitter_ads__account_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "business_id": {"type": "INT64", "index": 3, "name": "business_id", "comment": null}, "business_name": {"type": "INT64", "index": 4, "name": "business_name", "comment": null}, "created_timestamp": {"type": "STRING", "index": 5, "name": "created_timestamp", "comment": null}, "is_deleted": {"type": "BOOL", "index": 6, "name": "is_deleted", "comment": null}, "account_id": {"type": "STRING", "index": 7, "name": "account_id", "comment": null}, "industry_type": {"type": "INT64", "index": 8, "name": "industry_type", "comment": null}, "name": {"type": "STRING", "index": 9, "name": "name", "comment": null}, "salt": {"type": "INT64", "index": 10, "name": "salt", "comment": null}, "timezone": {"type": "STRING", "index": 11, "name": "timezone", "comment": null}, "timezone_switched_timestamp": {"type": "STRING", "index": 12, "name": "timezone_switched_timestamp", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 13, "name": "updated_timestamp", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 14, "name": "is_latest_version", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 133, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history"}, "model.twitter_ads_source.stg_twitter_ads__account_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__account_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "business_id": {"type": "INT64", "index": 3, "name": "business_id", "comment": null}, "business_name": {"type": "INT64", "index": 4, "name": "business_name", "comment": null}, "created_at": {"type": "STRING", "index": 5, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "id": {"type": "STRING", "index": 7, "name": "id", "comment": null}, "industry_type": {"type": "INT64", "index": 8, "name": "industry_type", "comment": null}, "name": {"type": "STRING", "index": 9, "name": "name", "comment": null}, "salt": {"type": "INT64", "index": 10, "name": "salt", "comment": null}, "timezone": {"type": "STRING", "index": 11, "name": "timezone", "comment": null}, "timezone_switch_at": {"type": "STRING", "index": 12, "name": "timezone_switch_at", "comment": null}, "updated_at": {"type": "STRING", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "created_timestamp": {"type": "STRING", "index": 3, "name": "created_timestamp", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "INT64", "index": 5, "name": "daily_budget_amount_local_micro", "comment": null}, "is_deleted": {"type": "BOOL", "index": 6, "name": "is_deleted", "comment": null}, "duration_in_days": {"type": "INT64", "index": 7, "name": "duration_in_days", "comment": null}, "end_timestamp": {"type": "STRING", "index": 8, "name": "end_timestamp", "comment": null}, "entity_status": {"type": "STRING", "index": 9, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "INT64", "index": 10, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 11, "name": "funding_instrument_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 12, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 13, "name": "campaign_name", "comment": null}, "is_servable": {"type": "BOOL", "index": 14, "name": "is_servable", "comment": null}, "is_standard_delivery": {"type": "BOOL", "index": 15, "name": "is_standard_delivery", "comment": null}, "start_timestamp": {"type": "STRING", "index": 16, "name": "start_timestamp", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 17, "name": "total_budget_amount_local_micro", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 18, "name": "updated_timestamp", "comment": null}, "daily_budget_amount": {"type": "FLOAT64", "index": 19, "name": "daily_budget_amount", "comment": null}, "total_budget_amount": {"type": "FLOAT64", "index": 20, "name": "total_budget_amount", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 21, "name": "is_latest_version", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2683, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history"}, "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "INT64", "index": 5, "name": "daily_budget_amount_local_micro", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "duration_in_days": {"type": "INT64", "index": 7, "name": "duration_in_days", "comment": null}, "end_time": {"type": "STRING", "index": 8, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 9, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "INT64", "index": 10, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 11, "name": "funding_instrument_id", "comment": null}, "id": {"type": "STRING", "index": 12, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 13, "name": "name", "comment": null}, "servable": {"type": "BOOL", "index": 14, "name": "servable", "comment": null}, "standard_delivery": {"type": "BOOL", "index": 15, "name": "standard_delivery", "comment": null}, "start_time": {"type": "STRING", "index": 16, "name": "start_time", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 17, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 18, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 4, "name": "campaign_id", "comment": null}, "placement": {"type": "STRING", "index": 5, "name": "placement", "comment": null}, "clicks": {"type": "INT64", "index": 6, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "spend_micro": {"type": "INT64", "index": 8, "name": "spend_micro", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}, "url_clicks": {"type": "INT64", "index": 10, "name": "url_clicks", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 11, "name": "conversion_purchases_metric", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "FLOAT64", "index": 13, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "FLOAT64", "index": 14, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "FLOAT64", "index": 15, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversions": {"type": "FLOAT64", "index": 16, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 17, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 18, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 606, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report"}, "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__campaign_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp"}, "model.twitter_ads_source.stg_twitter_ads__line_item_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__line_item_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "advertiser_domain": {"type": "STRING", "index": 2, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "INT64", "index": 3, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "BOOL", "index": 4, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "INT64", "index": 5, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "STRING", "index": 6, "name": "bid_type", "comment": null}, "bid_unit": {"type": "STRING", "index": 7, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "STRING", "index": 8, "name": "campaign_id", "comment": null}, "charge_by": {"type": "STRING", "index": 9, "name": "charge_by", "comment": null}, "created_timestamp": {"type": "STRING", "index": 10, "name": "created_timestamp", "comment": null}, "creative_source": {"type": "STRING", "index": 11, "name": "creative_source", "comment": null}, "currency": {"type": "STRING", "index": 12, "name": "currency", "comment": null}, "is_deleted": {"type": "BOOL", "index": 13, "name": "is_deleted", "comment": null}, "end_timestamp": {"type": "INT64", "index": 14, "name": "end_timestamp", "comment": null}, "entity_status": {"type": "STRING", "index": 15, "name": "entity_status", "comment": null}, "line_item_id": {"type": "STRING", "index": 16, "name": "line_item_id", "comment": null}, "name": {"type": "STRING", "index": 17, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 18, "name": "objective", "comment": null}, "optimization": {"type": "STRING", "index": 19, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "INT64", "index": 20, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "STRING", "index": 21, "name": "product_type", "comment": null}, "start_timestamp": {"type": "INT64", "index": 22, "name": "start_timestamp", "comment": null}, "target_cpa_local_micro": {"type": "INT64", "index": 23, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 24, "name": "total_budget_amount_local_micro", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 25, "name": "updated_timestamp", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 26, "name": "bid_amount", "comment": null}, "total_budget_amount": {"type": "FLOAT64", "index": 27, "name": "total_budget_amount", "comment": null}, "target_cpa": {"type": "FLOAT64", "index": 28, "name": "target_cpa", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 29, "name": "is_latest_version", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3108, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history"}, "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__line_item_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_domain": {"type": "STRING", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "INT64", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "BOOL", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "INT64", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "STRING", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "STRING", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "STRING", "index": 8, "name": "charge_by", "comment": null}, "created_at": {"type": "STRING", "index": 9, "name": "created_at", "comment": null}, "creative_source": {"type": "STRING", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "STRING", "index": 11, "name": "currency", "comment": null}, "deleted": {"type": "BOOL", "index": 12, "name": "deleted", "comment": null}, "end_time": {"type": "INT64", "index": 13, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 14, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 15, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 16, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "STRING", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "INT64", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "STRING", "index": 20, "name": "product_type", "comment": null}, "start_time": {"type": "INT64", "index": 21, "name": "start_time", "comment": null}, "target_cpa_local_micro": {"type": "INT64", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 24, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__line_item_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__line_item_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "line_item_id": {"type": "STRING", "index": 4, "name": "line_item_id", "comment": null}, "placement": {"type": "STRING", "index": 5, "name": "placement", "comment": null}, "clicks": {"type": "INT64", "index": 6, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "spend_micro": {"type": "INT64", "index": 8, "name": "spend_micro", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}, "url_clicks": {"type": "INT64", "index": 10, "name": "url_clicks", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 11, "name": "conversion_purchases_metric", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "FLOAT64", "index": 13, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "FLOAT64", "index": 14, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "FLOAT64", "index": 15, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversions": {"type": "FLOAT64", "index": 16, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 17, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 18, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 600, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report"}, "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__line_item_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "STRING", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__promoted_tweet_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "created_timestamp": {"type": "STRING", "index": 3, "name": "created_timestamp", "comment": null}, "is_deleted": {"type": "BOOL", "index": 4, "name": "is_deleted", "comment": null}, "entity_status": {"type": "STRING", "index": 5, "name": "entity_status", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 6, "name": "promoted_tweet_id", "comment": null}, "line_item_id": {"type": "STRING", "index": 7, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 8, "name": "tweet_id", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 9, "name": "updated_timestamp", "comment": null}, "is_latest_version": {"type": "BOOL", "index": 10, "name": "is_latest_version", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 21, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1995, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__promoted_tweet_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 4, "name": "deleted", "comment": null}, "entity_status": {"type": "STRING", "index": 5, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 6, "name": "id", "comment": null}, "line_item_id": {"type": "STRING", "index": 7, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 8, "name": "tweet_id", "comment": null}, "updated_at": {"type": "STRING", "index": 9, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__promoted_tweet_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 4, "name": "promoted_tweet_id", "comment": null}, "placement": {"type": "STRING", "index": 5, "name": "placement", "comment": null}, "clicks": {"type": "INT64", "index": 6, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "spend_micro": {"type": "INT64", "index": 8, "name": "spend_micro", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}, "url_clicks": {"type": "INT64", "index": 10, "name": "url_clicks", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 11, "name": "conversion_purchases_metric", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "FLOAT64", "index": 13, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "FLOAT64", "index": 14, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "FLOAT64", "index": 15, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversions": {"type": "FLOAT64", "index": 16, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 17, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 18, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15400, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__promoted_tweet_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 3, "name": "billed_charge_local_micro", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "date": {"type": "DATETIME", "index": 5, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 7, "name": "promoted_tweet_id", "comment": null}, "url_clicks": {"type": "INT64", "index": 8, "name": "url_clicks", "comment": null}, "placement": {"type": "STRING", "index": 9, "name": "placement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp"}, "model.twitter_ads_source.stg_twitter_ads__tweet": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__tweet", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 3, "name": "tweet_id", "comment": null}, "name": {"type": "INT64", "index": 4, "name": "name", "comment": null}, "full_text": {"type": "STRING", "index": 5, "name": "full_text", "comment": null}, "language": {"type": "STRING", "index": 6, "name": "language", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 728, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet"}, "model.twitter_ads_source.stg_twitter_ads__tweet_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__tweet_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "card_uri": {"type": "INT64", "index": 4, "name": "card_uri", "comment": null}, "coordinates_coordinates": {"type": "INT64", "index": 5, "name": "coordinates_coordinates", "comment": null}, "coordinates_type": {"type": "INT64", "index": 6, "name": "coordinates_type", "comment": null}, "created_at": {"type": "STRING", "index": 7, "name": "created_at", "comment": null}, "favorite_count": {"type": "INT64", "index": 8, "name": "favorite_count", "comment": null}, "favorited": {"type": "BOOL", "index": 9, "name": "favorited", "comment": null}, "followers": {"type": "INT64", "index": 10, "name": "followers", "comment": null}, "full_text": {"type": "STRING", "index": 11, "name": "full_text", "comment": null}, "geo_coordinates": {"type": "INT64", "index": 12, "name": "geo_coordinates", "comment": null}, "geo_type": {"type": "INT64", "index": 13, "name": "geo_type", "comment": null}, "in_reply_to_screen_name": {"type": "INT64", "index": 14, "name": "in_reply_to_screen_name", "comment": null}, "in_reply_to_status_id": {"type": "INT64", "index": 15, "name": "in_reply_to_status_id", "comment": null}, "in_reply_to_user_id": {"type": "INT64", "index": 16, "name": "in_reply_to_user_id", "comment": null}, "lang": {"type": "STRING", "index": 17, "name": "lang", "comment": null}, "media_key": {"type": "INT64", "index": 18, "name": "media_key", "comment": null}, "retweet_count": {"type": "INT64", "index": 19, "name": "retweet_count", "comment": null}, "retweeted": {"type": "BOOL", "index": 20, "name": "retweeted", "comment": null}, "source": {"type": "STRING", "index": 21, "name": "source", "comment": null}, "truncated": {"type": "BOOL", "index": 22, "name": "truncated", "comment": null}, "tweet_type": {"type": "STRING", "index": 23, "name": "tweet_type", "comment": null}, "user_id": {"type": "INT64", "index": 24, "name": "user_id", "comment": null}, "name": {"type": "INT64", "index": 25, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_tmp"}, "model.twitter_ads_source.stg_twitter_ads__tweet_url": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__tweet_url", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "display_url": {"type": "STRING", "index": 2, "name": "display_url", "comment": null}, "expanded_url": {"type": "STRING", "index": 3, "name": "expanded_url", "comment": null}, "index": {"type": "INT64", "index": 4, "name": "index", "comment": null}, "indices": {"type": "STRING", "index": 5, "name": "indices", "comment": null}, "tweet_id": {"type": "INT64", "index": 6, "name": "tweet_id", "comment": null}, "url": {"type": "STRING", "index": 7, "name": "url", "comment": null}, "base_url": {"type": "STRING", "index": 8, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 9, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 10, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 11, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 12, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 13, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 14, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 15, "name": "utm_term", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 24566, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url"}, "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp": {"metadata": {"type": "view", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__tweet_url_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "display_url": {"type": "STRING", "index": 2, "name": "display_url", "comment": null}, "expanded_url": {"type": "STRING", "index": 3, "name": "expanded_url", "comment": null}, "index": {"type": "INT64", "index": 4, "name": "index", "comment": null}, "indices": {"type": "STRING", "index": 5, "name": "indices", "comment": null}, "tweet_id": {"type": "INT64", "index": 6, "name": "tweet_id", "comment": null}, "url": {"type": "STRING", "index": 7, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp"}, "model.tiktok_ads.tiktok_ads__ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "tiktok_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 4, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "currency": {"type": "STRING", "index": 9, "name": "currency", "comment": null}, "category": {"type": "INT64", "index": 10, "name": "category", "comment": null}, "gender": {"type": "STRING", "index": 11, "name": "gender", "comment": null}, "audience_type": {"type": "INT64", "index": 12, "name": "audience_type", "comment": null}, "budget": {"type": "INT64", "index": 13, "name": "budget", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 17, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 18, "name": "conversion", "comment": null}, "likes": {"type": "INT64", "index": 19, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 20, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 21, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 22, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 23, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 24, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 25, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 26, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 27, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 28, "name": "video_views_p_75", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 29, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "FLOAT64", "index": 30, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "FLOAT64", "index": 31, "name": "total_sales_lead_value", "comment": null}, "total_conversion_value": {"type": "FLOAT64", "index": 32, "name": "total_conversion_value", "comment": null}, "daily_cpc": {"type": "FLOAT64", "index": 33, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "FLOAT64", "index": 34, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "FLOAT64", "index": 35, "name": "daily_ctr", "comment": null}, "real_time_conversions": {"type": "FLOAT64", "index": 36, "name": "real_time_conversions", "comment": null}, "conversions": {"type": "FLOAT64", "index": 37, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 38, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 39, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1127, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__ad_group_report"}, "model.tiktok_ads.tiktok_ads__ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "tiktok_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 4, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "INT64", "index": 9, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 10, "name": "ad_name", "comment": null}, "currency": {"type": "STRING", "index": 11, "name": "currency", "comment": null}, "category": {"type": "INT64", "index": 12, "name": "category", "comment": null}, "gender": {"type": "STRING", "index": 13, "name": "gender", "comment": null}, "audience_type": {"type": "INT64", "index": 14, "name": "audience_type", "comment": null}, "budget": {"type": "INT64", "index": 15, "name": "budget", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 19, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 20, "name": "conversion", "comment": null}, "likes": {"type": "INT64", "index": 21, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 22, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 23, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 24, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 25, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 26, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 27, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 28, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 29, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 30, "name": "video_views_p_75", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 31, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "FLOAT64", "index": 32, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "FLOAT64", "index": 33, "name": "total_sales_lead_value", "comment": null}, "total_conversion_value": {"type": "FLOAT64", "index": 34, "name": "total_conversion_value", "comment": null}, "daily_cpc": {"type": "FLOAT64", "index": 35, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "FLOAT64", "index": 36, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "FLOAT64", "index": 37, "name": "daily_ctr", "comment": null}, "real_time_conversions": {"type": "FLOAT64", "index": 38, "name": "real_time_conversions", "comment": null}, "conversions": {"type": "FLOAT64", "index": 39, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 40, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 41, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1268, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__ad_report"}, "model.tiktok_ads.tiktok_ads__advertiser_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "tiktok_ads__advertiser_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 4, "name": "advertiser_name", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "clicks": {"type": "INT64", "index": 6, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 9, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 10, "name": "conversion", "comment": null}, "likes": {"type": "INT64", "index": 11, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 12, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 13, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 14, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 15, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 16, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 17, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 18, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 19, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 20, "name": "video_views_p_75", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 21, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "FLOAT64", "index": 22, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "FLOAT64", "index": 23, "name": "total_sales_lead_value", "comment": null}, "total_conversion_value": {"type": "FLOAT64", "index": 24, "name": "total_conversion_value", "comment": null}, "daily_cpc": {"type": "FLOAT64", "index": 25, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "FLOAT64", "index": 26, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "FLOAT64", "index": 27, "name": "daily_ctr", "comment": null}, "real_time_conversions": {"type": "FLOAT64", "index": 28, "name": "real_time_conversions", "comment": null}, "conversions": {"type": "FLOAT64", "index": 29, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 30, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 31, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 902, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__advertiser_report"}, "model.tiktok_ads.tiktok_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "tiktok_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 4, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "impressions": {"type": "INT64", "index": 8, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 10, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 11, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 12, "name": "conversion", "comment": null}, "likes": {"type": "INT64", "index": 13, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 14, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 15, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 16, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 17, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 18, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 19, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 20, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 21, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 22, "name": "video_views_p_75", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 23, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "FLOAT64", "index": 24, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "FLOAT64", "index": 25, "name": "total_sales_lead_value", "comment": null}, "total_conversion_value": {"type": "FLOAT64", "index": 26, "name": "total_conversion_value", "comment": null}, "daily_cpc": {"type": "FLOAT64", "index": 27, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "FLOAT64", "index": 28, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "FLOAT64", "index": 29, "name": "daily_ctr", "comment": null}, "real_time_conversions": {"type": "FLOAT64", "index": 30, "name": "real_time_conversions", "comment": null}, "conversions": {"type": "FLOAT64", "index": 31, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 32, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 33, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 926, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__campaign_report"}, "model.tiktok_ads.tiktok_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "tiktok_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "DATE", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 4, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "INT64", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "INT64", "index": 9, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 10, "name": "ad_name", "comment": null}, "base_url": {"type": "STRING", "index": 11, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 12, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 13, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 14, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 15, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 16, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 17, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 18, "name": "utm_term", "comment": null}, "currency": {"type": "STRING", "index": 19, "name": "currency", "comment": null}, "category": {"type": "INT64", "index": 20, "name": "category", "comment": null}, "gender": {"type": "STRING", "index": 21, "name": "gender", "comment": null}, "audience_type": {"type": "INT64", "index": 22, "name": "audience_type", "comment": null}, "budget": {"type": "INT64", "index": 23, "name": "budget", "comment": null}, "impressions": {"type": "INT64", "index": 24, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 25, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 26, "name": "spend", "comment": null}, "reach": {"type": "INT64", "index": 27, "name": "reach", "comment": null}, "conversion": {"type": "INT64", "index": 28, "name": "conversion", "comment": null}, "likes": {"type": "INT64", "index": 29, "name": "likes", "comment": null}, "comments": {"type": "INT64", "index": 30, "name": "comments", "comment": null}, "shares": {"type": "INT64", "index": 31, "name": "shares", "comment": null}, "profile_visits": {"type": "INT64", "index": 32, "name": "profile_visits", "comment": null}, "follows": {"type": "INT64", "index": 33, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "INT64", "index": 34, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "INT64", "index": 35, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "INT64", "index": 36, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "INT64", "index": 37, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "INT64", "index": 38, "name": "video_views_p_75", "comment": null}, "real_time_conversion": {"type": "INT64", "index": 39, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "FLOAT64", "index": 40, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "FLOAT64", "index": 41, "name": "total_sales_lead_value", "comment": null}, "total_conversion_value": {"type": "FLOAT64", "index": 42, "name": "total_conversion_value", "comment": null}, "daily_cpc": {"type": "FLOAT64", "index": 43, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "FLOAT64", "index": 44, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "FLOAT64", "index": 45, "name": "daily_ctr", "comment": null}, "real_time_conversions": {"type": "FLOAT64", "index": 46, "name": "real_time_conversions", "comment": null}, "conversions": {"type": "FLOAT64", "index": 47, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 48, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 49, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1515, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__url_report"}, "model.twitter_ads.twitter_ads__account_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "twitter_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "placement": {"type": "STRING", "index": 3, "name": "placement", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 5, "name": "account_name", "comment": null}, "is_deleted": {"type": "BOOL", "index": 6, "name": "is_deleted", "comment": null}, "timezone": {"type": "STRING", "index": 7, "name": "timezone", "comment": null}, "industry_type": {"type": "INT64", "index": 8, "name": "industry_type", "comment": null}, "approval_status": {"type": "STRING", "index": 9, "name": "approval_status", "comment": null}, "business_name": {"type": "INT64", "index": 10, "name": "business_name", "comment": null}, "business_id": {"type": "INT64", "index": 11, "name": "business_id", "comment": null}, "created_timestamp": {"type": "STRING", "index": 12, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 13, "name": "updated_timestamp", "comment": null}, "timezone_switched_timestamp": {"type": "STRING", "index": 14, "name": "timezone_switched_timestamp", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}, "spend_micro": {"type": "INT64", "index": 18, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "INT64", "index": 19, "name": "url_clicks", "comment": null}, "total_conversions": {"type": "INT64", "index": 20, "name": "total_conversions", "comment": null}, "total_conversions_sale_amount": {"type": "FLOAT64", "index": 21, "name": "total_conversions_sale_amount", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 22, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "FLOAT64", "index": 23, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "FLOAT64", "index": 24, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "FLOAT64", "index": 25, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversions": {"type": "FLOAT64", "index": 26, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 27, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 28, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 85, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 23035, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__account_report"}, "model.twitter_ads.twitter_ads__campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "twitter_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "placement": {"type": "STRING", "index": 3, "name": "placement", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "is_deleted": {"type": "BOOL", "index": 8, "name": "is_deleted", "comment": null}, "campaign_status": {"type": "STRING", "index": 9, "name": "campaign_status", "comment": null}, "currency": {"type": "STRING", "index": 10, "name": "currency", "comment": null}, "is_servable": {"type": "BOOL", "index": 11, "name": "is_servable", "comment": null}, "is_standard_delivery": {"type": "BOOL", "index": 12, "name": "is_standard_delivery", "comment": null}, "frequency_cap": {"type": "INT64", "index": 13, "name": "frequency_cap", "comment": null}, "start_timestamp": {"type": "STRING", "index": 14, "name": "start_timestamp", "comment": null}, "end_timestamp": {"type": "STRING", "index": 15, "name": "end_timestamp", "comment": null}, "created_timestamp": {"type": "STRING", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 17, "name": "updated_timestamp", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 18, "name": "funding_instrument_id", "comment": null}, "daily_budget_amount": {"type": "FLOAT64", "index": 19, "name": "daily_budget_amount", "comment": null}, "total_budget_amount": {"type": "FLOAT64", "index": 20, "name": "total_budget_amount", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 22, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 23, "name": "spend", "comment": null}, "spend_micro": {"type": "INT64", "index": 24, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "INT64", "index": 25, "name": "url_clicks", "comment": null}, "total_conversions": {"type": "INT64", "index": 26, "name": "total_conversions", "comment": null}, "total_conversions_sale_amount": {"type": "FLOAT64", "index": 27, "name": "total_conversions_sale_amount", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 28, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "FLOAT64", "index": 29, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "FLOAT64", "index": 30, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "FLOAT64", "index": 31, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversions": {"type": "FLOAT64", "index": 32, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 33, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 34, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 678, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__campaign_report"}, "model.twitter_ads.twitter_ads__line_item_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "twitter_ads__line_item_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "placement": {"type": "STRING", "index": 3, "name": "placement", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "line_item_id": {"type": "STRING", "index": 8, "name": "line_item_id", "comment": null}, "line_item_name": {"type": "STRING", "index": 9, "name": "line_item_name", "comment": null}, "is_deleted": {"type": "BOOL", "index": 10, "name": "is_deleted", "comment": null}, "line_item_status": {"type": "STRING", "index": 11, "name": "line_item_status", "comment": null}, "campaign_status": {"type": "STRING", "index": 12, "name": "campaign_status", "comment": null}, "currency": {"type": "STRING", "index": 13, "name": "currency", "comment": null}, "advertiser_domain": {"type": "STRING", "index": 14, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "INT64", "index": 15, "name": "advertiser_user_id", "comment": null}, "bid_type": {"type": "STRING", "index": 16, "name": "bid_type", "comment": null}, "bid_unit": {"type": "STRING", "index": 17, "name": "bid_unit", "comment": null}, "charge_by": {"type": "STRING", "index": 18, "name": "charge_by", "comment": null}, "objective": {"type": "STRING", "index": 19, "name": "objective", "comment": null}, "optimization": {"type": "STRING", "index": 20, "name": "optimization", "comment": null}, "product_type": {"type": "STRING", "index": 21, "name": "product_type", "comment": null}, "primary_web_event_tag": {"type": "INT64", "index": 22, "name": "primary_web_event_tag", "comment": null}, "creative_source": {"type": "STRING", "index": 23, "name": "creative_source", "comment": null}, "start_timestamp": {"type": "INT64", "index": 24, "name": "start_timestamp", "comment": null}, "end_timestamp": {"type": "INT64", "index": 25, "name": "end_timestamp", "comment": null}, "created_timestamp": {"type": "STRING", "index": 26, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 27, "name": "updated_timestamp", "comment": null}, "target_cpa": {"type": "FLOAT64", "index": 28, "name": "target_cpa", "comment": null}, "total_budget_amount": {"type": "FLOAT64", "index": 29, "name": "total_budget_amount", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 30, "name": "bid_amount", "comment": null}, "clicks": {"type": "INT64", "index": 31, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 32, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 33, "name": "spend", "comment": null}, "spend_micro": {"type": "INT64", "index": 34, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "INT64", "index": 35, "name": "url_clicks", "comment": null}, "total_conversions": {"type": "INT64", "index": 36, "name": "total_conversions", "comment": null}, "total_conversions_sale_amount": {"type": "FLOAT64", "index": 37, "name": "total_conversions_sale_amount", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 38, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "FLOAT64", "index": 39, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "FLOAT64", "index": 40, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "FLOAT64", "index": 41, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversions": {"type": "FLOAT64", "index": 42, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 43, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 44, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1437, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__line_item_report"}, "model.twitter_ads.twitter_ads__promoted_tweet_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "twitter_ads__promoted_tweet_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "placement": {"type": "STRING", "index": 3, "name": "placement", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "line_item_id": {"type": "STRING", "index": 8, "name": "line_item_id", "comment": null}, "line_item_name": {"type": "STRING", "index": 9, "name": "line_item_name", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 10, "name": "promoted_tweet_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 11, "name": "tweet_id", "comment": null}, "tweet_name": {"type": "INT64", "index": 12, "name": "tweet_name", "comment": null}, "full_text": {"type": "STRING", "index": 13, "name": "full_text", "comment": null}, "is_deleted": {"type": "BOOL", "index": 14, "name": "is_deleted", "comment": null}, "promoted_tweet_status": {"type": "STRING", "index": 15, "name": "promoted_tweet_status", "comment": null}, "campaign_status": {"type": "STRING", "index": 16, "name": "campaign_status", "comment": null}, "line_item_status": {"type": "STRING", "index": 17, "name": "line_item_status", "comment": null}, "language": {"type": "STRING", "index": 18, "name": "language", "comment": null}, "currency": {"type": "STRING", "index": 19, "name": "currency", "comment": null}, "approval_status": {"type": "STRING", "index": 20, "name": "approval_status", "comment": null}, "created_timestamp": {"type": "STRING", "index": 21, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "STRING", "index": 22, "name": "updated_timestamp", "comment": null}, "clicks": {"type": "INT64", "index": 23, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 24, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 25, "name": "spend", "comment": null}, "spend_micro": {"type": "INT64", "index": 26, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "INT64", "index": 27, "name": "url_clicks", "comment": null}, "total_conversions": {"type": "INT64", "index": 28, "name": "total_conversions", "comment": null}, "total_conversions_sale_amount": {"type": "FLOAT64", "index": 29, "name": "total_conversions_sale_amount", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 30, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "FLOAT64", "index": 31, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "FLOAT64", "index": 32, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "FLOAT64", "index": 33, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversions": {"type": "FLOAT64", "index": 34, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 35, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 36, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 33600, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__promoted_tweet_report"}, "model.twitter_ads.twitter_ads__url_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "twitter_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "TIMESTAMP", "index": 2, "name": "date_day", "comment": null}, "placement": {"type": "STRING", "index": 3, "name": "placement", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "STRING", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "line_item_id": {"type": "STRING", "index": 8, "name": "line_item_id", "comment": null}, "line_item_name": {"type": "STRING", "index": 9, "name": "line_item_name", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 10, "name": "promoted_tweet_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 11, "name": "tweet_id", "comment": null}, "tweet_name": {"type": "INT64", "index": 12, "name": "tweet_name", "comment": null}, "tweet_full_text": {"type": "STRING", "index": 13, "name": "tweet_full_text", "comment": null}, "base_url": {"type": "STRING", "index": 14, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 15, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 16, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 17, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 18, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 19, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 20, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 21, "name": "utm_term", "comment": null}, "expanded_url": {"type": "STRING", "index": 22, "name": "expanded_url", "comment": null}, "display_url": {"type": "STRING", "index": 23, "name": "display_url", "comment": null}, "currency": {"type": "STRING", "index": 24, "name": "currency", "comment": null}, "clicks": {"type": "INT64", "index": 25, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 26, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 27, "name": "spend", "comment": null}, "spend_micro": {"type": "INT64", "index": 28, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "INT64", "index": 29, "name": "url_clicks", "comment": null}, "total_conversions": {"type": "INT64", "index": 30, "name": "total_conversions", "comment": null}, "total_conversions_sale_amount": {"type": "FLOAT64", "index": 31, "name": "total_conversions_sale_amount", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 32, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "FLOAT64", "index": 33, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "FLOAT64", "index": 34, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "FLOAT64", "index": 35, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversions": {"type": "FLOAT64", "index": 36, "name": "conversions", "comment": null}, "installs": {"type": "FLOAT64", "index": 37, "name": "installs", "comment": null}, "videos": {"type": "FLOAT64", "index": 38, "name": "videos", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 72, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 24734, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__url_report"}, "seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "STRING", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "creation_date": {"type": "STRING", "index": 5, "name": "creation_date", "comment": null}, "default_bid": {"type": "FLOAT64", "index": 6, "name": "default_bid", "comment": null}, "name": {"type": "STRING", "index": 7, "name": "name", "comment": null}, "serving_status": {"type": "STRING", "index": 8, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 9, "name": "state", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 288, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data"}, "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_ad_group_level_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_bidding_strategy": {"type": "STRING", "index": 4, "name": "campaign_bidding_strategy", "comment": null}, "clicks": {"type": "INT64", "index": 5, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 6, "name": "cost", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 760, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data"}, "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_advertised_product_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 4, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 8, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 10, "name": "cost", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, " advertised_asin": {"type": "INT64", "index": 12, "name": " advertised_asin", "comment": null}, " advertised_sku": {"type": "INT64", "index": 13, "name": " advertised_sku", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 910, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data"}, "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "STRING", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "bidding_strategy": {"type": "STRING", "index": 4, "name": "bidding_strategy", "comment": null}, "creation_date": {"type": "STRING", "index": 5, "name": "creation_date", "comment": null}, "budget": {"type": "INT64", "index": 6, "name": "budget", "comment": null}, "end_date": {"type": "INT64", "index": 7, "name": "end_date", "comment": null}, "name": {"type": "STRING", "index": 8, "name": "name", "comment": null}, "portfolio_id": {"type": "INT64", "index": 9, "name": "portfolio_id", "comment": null}, "profile_id": {"type": "INT64", "index": 10, "name": "profile_id", "comment": null}, "serving_status": {"type": "STRING", "index": 11, "name": "serving_status", "comment": null}, "start_date": {"type": "DATE", "index": 12, "name": "start_date", "comment": null}, "state": {"type": "STRING", "index": 13, "name": "state", "comment": null}, "targeting_type": {"type": "STRING", "index": 14, "name": "targeting_type", "comment": null}, "budget_type": {"type": "STRING", "index": 15, "name": "budget_type", "comment": null}, "effective_budget": {"type": "INT64", "index": 16, "name": "effective_budget", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 6, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1181, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_campaign_level_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_applicable_budget_rule_id": {"type": "INT64", "index": 4, "name": "campaign_applicable_budget_rule_id", "comment": null}, "campaign_applicable_budget_rule_name": {"type": "INT64", "index": 5, "name": "campaign_applicable_budget_rule_name", "comment": null}, "campaign_bidding_strategy": {"type": "STRING", "index": 6, "name": "campaign_bidding_strategy", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 9, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 11, "name": "cost", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "campaign_rule_based_budget_amount": {"type": "INT64", "index": 13, "name": "campaign_rule_based_budget_amount", "comment": null}, "sales_7_d": {"type": "INT64", "index": 14, "name": "sales_7_d", "comment": null}, "purchases_30_d": {"type": "INT64", "index": 15, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "INT64", "index": 16, "name": "sales_30_d", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 981, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data"}, "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "STRING", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "bid": {"type": "FLOAT64", "index": 5, "name": "bid", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "STRING", "index": 7, "name": "creation_date", "comment": null}, "keyword_text": {"type": "STRING", "index": 8, "name": "keyword_text", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "native_language_keyword": {"type": "INT64", "index": 10, "name": "native_language_keyword", "comment": null}, "serving_status": {"type": "STRING", "index": 11, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 12, "name": "state", "comment": null}, "native_language_locale": {"type": "INT64", "index": 13, "name": "native_language_locale", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1545, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data"}, "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_portfolio_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "STRING", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "budget_amount": {"type": "INT64", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "INT64", "index": 5, "name": "budget_currency_code", "comment": null}, "budget_end_date": {"type": "INT64", "index": 6, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "INT64", "index": 7, "name": "budget_policy", "comment": null}, "budget_start_date": {"type": "INT64", "index": 8, "name": "budget_start_date", "comment": null}, "creation_date": {"type": "STRING", "index": 9, "name": "creation_date", "comment": null}, "in_budget": {"type": "BOOL", "index": 10, "name": "in_budget", "comment": null}, "name": {"type": "STRING", "index": 11, "name": "name", "comment": null}, "profile_id": {"type": "INT64", "index": 12, "name": "profile_id", "comment": null}, "serving_status": {"type": "STRING", "index": 13, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 14, "name": "state", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 144, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data"}, "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_product_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "STRING", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "asin": {"type": "STRING", "index": 5, "name": "asin", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "STRING", "index": 7, "name": "creation_date", "comment": null}, "serving_status": {"type": "STRING", "index": 8, "name": "serving_status", "comment": null}, "sku": {"type": "INT64", "index": 9, "name": "sku", "comment": null}, "state": {"type": "STRING", "index": 10, "name": "state", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 425, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data"}, "seed.ad_reporting_integration_tests.amazon_ads_profile_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_profile_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "account_marketplace_string_id": {"type": "STRING", "index": 5, "name": "account_marketplace_string_id", "comment": null}, "account_name": {"type": "STRING", "index": 6, "name": "account_name", "comment": null}, "account_sub_type": {"type": "INT64", "index": 7, "name": "account_sub_type", "comment": null}, "account_type": {"type": "STRING", "index": 8, "name": "account_type", "comment": null}, "account_valid_payment_method": {"type": "BOOL", "index": 9, "name": "account_valid_payment_method", "comment": null}, "country_code": {"type": "STRING", "index": 10, "name": "country_code", "comment": null}, "currency_code": {"type": "STRING", "index": 11, "name": "currency_code", "comment": null}, "daily_budget": {"type": "INT64", "index": 12, "name": "daily_budget", "comment": null}, "timezone": {"type": "STRING", "index": 13, "name": "timezone", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 116, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_profile_data"}, "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_search_term_ad_keyword_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "INT64", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 8, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 10, "name": "cost", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "keyword_bid": {"type": "FLOAT64", "index": 12, "name": "keyword_bid", "comment": null}, "search_term": {"type": "STRING", "index": 13, "name": "search_term", "comment": null}, "targeting": {"type": "STRING", "index": 14, "name": "targeting", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1270, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data"}, "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_targeting_keyword_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "INT64", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}, "ad_keyword_status": {"type": "STRING", "index": 6, "name": "ad_keyword_status", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 9, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 11, "name": "cost", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "keyword_bid": {"type": "FLOAT64", "index": 13, "name": "keyword_bid", "comment": null}, "keyword_type": {"type": "STRING", "index": 14, "name": "keyword_type", "comment": null}, "match_type": {"type": "STRING", "index": 15, "name": "match_type", "comment": null}, "targeting": {"type": "STRING", "index": 16, "name": "targeting", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1360, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "automated_keywords_opt_in": {"type": "BOOL", "index": 3, "name": "automated_keywords_opt_in", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "cpa_goal_amount": {"type": "INT64", "index": 5, "name": "cpa_goal_amount", "comment": null}, "cpa_goal_currency": {"type": "INT64", "index": 6, "name": "cpa_goal_currency", "comment": null}, "default_cpc_bid_amount": {"type": "INT64", "index": 7, "name": "default_cpc_bid_amount", "comment": null}, "default_cpc_bid_currency": {"type": "INT64", "index": 8, "name": "default_cpc_bid_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "name": {"type": "STRING", "index": 11, "name": "name", "comment": null}, "organization_id": {"type": "INT64", "index": 12, "name": "organization_id", "comment": null}, "serving_state_reasons": {"type": "INT64", "index": 13, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 14, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 15, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "storefronts": {"type": "INT64", "index": 17, "name": "storefronts", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 334, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_ad_group_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1651, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creation_time": {"type": "TIMESTAMP", "index": 1, "name": "creation_time", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "org_id": {"type": "INT64", "index": 3, "name": "org_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "id": {"type": "INT64", "index": 7, "name": "id", "comment": null}, "creative_id": {"type": "INT64", "index": 8, "name": "creative_id", "comment": null}, "creative_type": {"type": "STRING", "index": 9, "name": "creative_type", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 101, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_history_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_ad_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 7, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 8, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 9, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 10, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 11, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 170, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_report_data"}, "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "adam_id": {"type": "INT64", "index": 3, "name": "adam_id", "comment": null}, "budget_amount": {"type": "INT64", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency": {"type": "STRING", "index": 5, "name": "budget_currency", "comment": null}, "budget_orders": {"type": "STRING", "index": 6, "name": "budget_orders", "comment": null}, "daily_budget_amount": {"type": "INT64", "index": 7, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency": {"type": "STRING", "index": 8, "name": "daily_budget_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "loc_invoice_detail_buyer_email": {"type": "INT64", "index": 11, "name": "loc_invoice_detail_buyer_email", "comment": null}, "loc_invoice_detail_buyer_name": {"type": "INT64", "index": 12, "name": "loc_invoice_detail_buyer_name", "comment": null}, "loc_invoice_detail_client_name": {"type": "INT64", "index": 13, "name": "loc_invoice_detail_client_name", "comment": null}, "loc_invoice_detail_order_number": {"type": "INT64", "index": 14, "name": "loc_invoice_detail_order_number", "comment": null}, "name": {"type": "STRING", "index": 15, "name": "name", "comment": null}, "organiation_id": {"type": "INT64", "index": 16, "name": "organiation_id", "comment": null}, "payment_model": {"type": "STRING", "index": 17, "name": "payment_model", "comment": null}, "serving_state_reasons": {"type": "STRING", "index": 18, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 19, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 20, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 21, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 419, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_history_data"}, "seed.ad_reporting_integration_tests.apple_search_campaign_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1524, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_report_data"}, "seed.ad_reporting_integration_tests.apple_search_keyword_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 4, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "STRING", "index": 5, "name": "bid_currency", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "deleted": {"type": "BOOL", "index": 7, "name": "deleted", "comment": null}, "match_type": {"type": "STRING", "index": 8, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 9, "name": "status", "comment": null}, "text": {"type": "STRING", "index": 10, "name": "text", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1151, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_history_data"}, "seed.ad_reporting_integration_tests.apple_search_keyword_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_keyword_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 99, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12573, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_report_data"}, "seed.ad_reporting_integration_tests.apple_search_organization_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_organization_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "currency": {"type": "STRING", "index": 2, "name": "currency", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "payment_model": {"type": "STRING", "index": 4, "name": "payment_model", "comment": null}, "role_names": {"type": "STRING", "index": 5, "name": "role_names", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 132, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_organization_data"}, "seed.ad_reporting_integration_tests.apple_search_search_term_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_search_term_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 4, "name": "date", "comment": null}, "ad_group_deleted": {"type": "BOOL", "index": 5, "name": "ad_group_deleted", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 7, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 8, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 9, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 10, "name": "avg_cpt_currency", "comment": null}, "bid_amount_amount": {"type": "FLOAT64", "index": 11, "name": "bid_amount_amount", "comment": null}, "bid_amount_currency": {"type": "STRING", "index": 12, "name": "bid_amount_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 13, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 14, "name": "conversions", "comment": null}, "deleted": {"type": "BOOL", "index": 15, "name": "deleted", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "keyword": {"type": "STRING", "index": 17, "name": "keyword", "comment": null}, "keyword_display_status": {"type": "STRING", "index": 18, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "INT64", "index": 19, "name": "keyword_id", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 20, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 21, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 22, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 23, "name": "local_spend_currency", "comment": null}, "match_type": {"type": "STRING", "index": 24, "name": "match_type", "comment": null}, "new_downloads": {"type": "INT64", "index": 25, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 26, "name": "redownloads", "comment": null}, "search_term_source": {"type": "STRING", "index": 27, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "STRING", "index": 28, "name": "search_term_text", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 29, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 30, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 150, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 35485, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_search_term_report_data"}, "seed.ad_reporting_integration_tests.facebook_ads_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "facebook_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 59, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3481, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_account_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "facebook_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "ad_set_id": {"type": "INT64", "index": 3, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "creative_id": {"type": "INT64", "index": 5, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 8, "name": "updated_time", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 720, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "facebook_ads_ad_set_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 6, "name": "updated_time", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 14, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 924, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_action_values_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "facebook_ads_basic_ad_action_values_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 3, "name": "_fivetran_id", "comment": null}, "index": {"type": "INT64", "index": 4, "name": "index", "comment": null}, "action_type": {"type": "STRING", "index": 5, "name": "action_type", "comment": null}, "value": {"type": "FLOAT64", "index": 6, "name": "value", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 7, "name": "_fivetran_synced", "comment": null}, "_7_d_click": {"type": "FLOAT64", "index": 8, "name": "_7_d_click", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 82, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8838, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_action_values_data"}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_actions_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "facebook_ads_basic_ad_actions_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "index": {"type": "INT64", "index": 4, "name": "index", "comment": null}, "_1_d_view": {"type": "FLOAT64", "index": 5, "name": "_1_d_view", "comment": null}, "_7_d_click": {"type": "FLOAT64", "index": 6, "name": "_7_d_click", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 7, "name": "_fivetran_synced", "comment": null}, "action_type": {"type": "STRING", "index": 8, "name": "action_type", "comment": null}, "inline": {"type": "FLOAT64", "index": 9, "name": "inline", "comment": null}, "value": {"type": "FLOAT64", "index": 10, "name": "value", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1264, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_actions_data"}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "facebook_ads_basic_ad_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "inline_link_clicks": {"type": "INT64", "index": 5, "name": "inline_link_clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 480, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data"}, "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "facebook_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 5, "name": "updated_time", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 522, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "facebook_ads_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"page_link": {"type": "STRING", "index": 1, "name": "page_link", "comment": null}, "template_page_link": {"type": "STRING", "index": 2, "name": "template_page_link", "comment": null}, "id": {"type": "INT64", "index": 3, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "url_tags": {"type": "STRING", "index": 6, "name": "url_tags", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 7, "name": "_fivetran_synced", "comment": null}, "asset_feed_spec_link_urls": {"type": "STRING", "index": 8, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "STRING", "index": 9, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "STRING", "index": 10, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "STRING", "index": 11, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "STRING", "index": 12, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "STRING", "index": 13, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "STRING", "index": 14, "name": "template_app_link_spec_ios", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 15, "name": "_fivetran_id", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1000, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1415996, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data"}, "seed.ad_reporting_integration_tests.google_ads_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "auto_tagging_enabled": {"type": "BOOL", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "descriptive_name": {"type": "INT64", "index": 6, "name": "descriptive_name", "comment": null}, "final_url_suffix": {"type": "BOOL", "index": 7, "name": "final_url_suffix", "comment": null}, "hidden": {"type": "BOOL", "index": 8, "name": "hidden", "comment": null}, "manager": {"type": "INT64", "index": 9, "name": "manager", "comment": null}, "manager_customer_id": {"type": "FLOAT64", "index": 10, "name": "manager_customer_id", "comment": null}, "optimization_score": {"type": "STRING", "index": 11, "name": "optimization_score", "comment": null}, "pay_per_conversion_eligibility_failure_reasons": {"type": "BOOL", "index": 12, "name": "pay_per_conversion_eligibility_failure_reasons", "comment": null}, "test_account": {"type": "STRING", "index": 13, "name": "test_account", "comment": null}, "time_zone": {"type": "INT64", "index": 14, "name": "time_zone", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 15, "name": "tracking_url_template", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 66, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_history_data"}, "seed.ad_reporting_integration_tests.google_ads_account_stats_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_account_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 12, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 13, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 14, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 15, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 17, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 18, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 19, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 19, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3500, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_stats_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_ad_group_criterion_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "INT64", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "type": {"type": "STRING", "index": 6, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 8, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "STRING", "index": 9, "name": "keyword_text", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 261, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15771, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "type": {"type": "STRING", "index": 3, "name": "type", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 272, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_ad_group_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_ad_group": {"type": "STRING", "index": 11, "name": "base_ad_group", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 12, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 13, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "conversions": {"type": "FLOAT64", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 16, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 17, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 18, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 19, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 20, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 21, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 22, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 23, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4150, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "name": {"type": "INT64", "index": 3, "name": "name", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "INT64", "index": 5, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "display_url": {"type": "INT64", "index": 7, "name": "display_url", "comment": null}, "final_urls": {"type": "STRING", "index": 8, "name": "final_urls", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 713, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_history_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_stats_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_ad_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"customer_id": {"type": "INT64", "index": 1, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "ad_group": {"type": "STRING", "index": 4, "name": "ad_group", "comment": null}, "keyword_ad_group_criterion": {"type": "STRING", "index": 5, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "STRING", "index": 6, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 7, "name": "device", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "cost_micros": {"type": "INT64", "index": 11, "name": "cost_micros", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "conversions": {"type": "INT64", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 14, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 15, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2005, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_stats_data"}, "seed.ad_reporting_integration_tests.google_ads_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "customer_id": {"type": "INT64", "index": 4, "name": "customer_id", "comment": null}, "advertising_channel_type": {"type": "STRING", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "STRING", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "DATE", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "DATE", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "STRING", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 11, "name": "tracking_url_template", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1040, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_campaign_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_campaign": {"type": "STRING", "index": 11, "name": "base_campaign", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 14, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 15, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 16, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 17, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 19, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 20, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 21, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3590, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data"}, "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_keyword_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_group_base_ad_group": {"type": "STRING", "index": 10, "name": "ad_group_base_ad_group", "comment": null}, "ad_group_criterion_criterion_id": {"type": "INT64", "index": 11, "name": "ad_group_criterion_criterion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 12, "name": "ad_group_id", "comment": null}, "ad_network_type": {"type": "STRING", "index": 13, "name": "ad_network_type", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 14, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 15, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 18, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 19, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 20, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 22, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 23, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 24, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4260, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "linkedin_ad_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 14, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 882, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "linkedin_ad_analytics_by_campaign_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "day": {"type": "TIMESTAMP", "index": 2, "name": "day", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "action_clicks": {"type": "INT64", "index": 4, "name": "action_clicks", "comment": null}, "ad_unit_clicks": {"type": "INT64", "index": 5, "name": "ad_unit_clicks", "comment": null}, "approximate_unique_impressions": {"type": "INT64", "index": 6, "name": "approximate_unique_impressions", "comment": null}, "card_clicks": {"type": "INT64", "index": 7, "name": "card_clicks", "comment": null}, "card_impressions": {"type": "INT64", "index": 8, "name": "card_impressions", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "comment_likes": {"type": "INT64", "index": 10, "name": "comment_likes", "comment": null}, "comments": {"type": "INT64", "index": 11, "name": "comments", "comment": null}, "company_page_clicks": {"type": "INT64", "index": 12, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "INT64", "index": 13, "name": "conversion_value_in_local_currency", "comment": null}, "cost_in_local_currency": {"type": "FLOAT64", "index": 14, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "FLOAT64", "index": 15, "name": "cost_in_usd", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 16, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "INT64", "index": 17, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "INT64", "index": 18, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "INT64", "index": 19, "name": "follows", "comment": null}, "full_screen_plays": {"type": "INT64", "index": 20, "name": "full_screen_plays", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "landing_page_clicks": {"type": "INT64", "index": 22, "name": "landing_page_clicks", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "INT64", "index": 23, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "INT64", "index": 24, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "INT64", "index": 25, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "INT64", "index": 26, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "INT64", "index": 27, "name": "one_click_leads", "comment": null}, "opens": {"type": "INT64", "index": 28, "name": "opens", "comment": null}, "other_engagements": {"type": "INT64", "index": 29, "name": "other_engagements", "comment": null}, "shares": {"type": "INT64", "index": 30, "name": "shares", "comment": null}, "text_url_clicks": {"type": "INT64", "index": 31, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "INT64", "index": 32, "name": "total_engagements", "comment": null}, "video_completions": {"type": "INT64", "index": 33, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "INT64", "index": 34, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "INT64", "index": 35, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "INT64", "index": 36, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "INT64", "index": 37, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "INT64", "index": 38, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "INT64", "index": 39, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "INT64", "index": 40, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "INT64", "index": 41, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "INT64", "index": 42, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "INT64", "index": 43, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "INT64", "index": 44, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "INT64", "index": 45, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "INT64", "index": 46, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "INT64", "index": 47, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "INT64", "index": 48, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "INT64", "index": 49, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "INT64", "index": 50, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "INT64", "index": 51, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "INT64", "index": 52, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "INT64", "index": 53, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "INT64", "index": 54, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "INT64", "index": 55, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "INT64", "index": 56, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "INT64", "index": 57, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "INT64", "index": 58, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "INT64", "index": 59, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "INT64", "index": 60, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "INT64", "index": 61, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "INT64", "index": 62, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "INT64", "index": 63, "name": "viral_video_views", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 20, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7252, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "linkedin_ad_analytics_by_creative_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "INT64", "index": 1, "name": "creative_id", "comment": null}, "day": {"type": "TIMESTAMP", "index": 2, "name": "day", "comment": null}, "action_clicks": {"type": "INT64", "index": 3, "name": "action_clicks", "comment": null}, "card_clicks": {"type": "INT64", "index": 4, "name": "card_clicks", "comment": null}, "ad_unit_clicks": {"type": "INT64", "index": 5, "name": "ad_unit_clicks", "comment": null}, "landing_page_clicks": {"type": "INT64", "index": 6, "name": "landing_page_clicks", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "approximate_unique_impressions": {"type": "INT64", "index": 8, "name": "approximate_unique_impressions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "card_impressions": {"type": "INT64", "index": 10, "name": "card_impressions", "comment": null}, "cost_in_local_currency": {"type": "INT64", "index": 11, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "INT64", "index": 12, "name": "cost_in_usd", "comment": null}, "comment_likes": {"type": "INT64", "index": 13, "name": "comment_likes", "comment": null}, "comments": {"type": "INT64", "index": 14, "name": "comments", "comment": null}, "company_page_clicks": {"type": "INT64", "index": 15, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "INT64", "index": 16, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 17, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "INT64", "index": 18, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "INT64", "index": 19, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "INT64", "index": 20, "name": "follows", "comment": null}, "full_screen_plays": {"type": "INT64", "index": 21, "name": "full_screen_plays", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "INT64", "index": 22, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "INT64", "index": 23, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "INT64", "index": 24, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "INT64", "index": 25, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "INT64", "index": 26, "name": "one_click_leads", "comment": null}, "opens": {"type": "INT64", "index": 27, "name": "opens", "comment": null}, "other_engagements": {"type": "INT64", "index": 28, "name": "other_engagements", "comment": null}, "shares": {"type": "INT64", "index": 29, "name": "shares", "comment": null}, "text_url_clicks": {"type": "INT64", "index": 30, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "INT64", "index": 31, "name": "total_engagements", "comment": null}, "video_completions": {"type": "INT64", "index": 32, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "INT64", "index": 33, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "INT64", "index": 34, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "INT64", "index": 35, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "INT64", "index": 36, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "INT64", "index": 37, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "INT64", "index": 38, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "INT64", "index": 39, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "INT64", "index": 40, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "INT64", "index": 41, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "INT64", "index": 42, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "INT64", "index": 43, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "INT64", "index": 44, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "INT64", "index": 45, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "INT64", "index": 46, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "INT64", "index": 47, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "INT64", "index": 48, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "INT64", "index": 49, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "INT64", "index": 50, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "INT64", "index": 51, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "INT64", "index": 52, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "INT64", "index": 53, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "INT64", "index": 54, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "INT64", "index": 55, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "INT64", "index": 56, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "INT64", "index": 57, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "INT64", "index": 58, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "INT64", "index": 59, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "INT64", "index": 60, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "INT64", "index": 61, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "INT64", "index": 62, "name": "viral_video_views", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 43112, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "linkedin_ad_campaign_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 4, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 232, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "linkedin_ad_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 4, "name": "campaign_group_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 5, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "version_tag": {"type": "INT64", "index": 7, "name": "version_tag", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7400, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "linkedin_ad_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "click_uri": {"type": "STRING", "index": 8, "name": "click_uri", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7263, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "last_modified_time": {"type": "DATETIME", "index": 3, "name": "last_modified_time", "comment": null}, "time_zone": {"type": "STRING", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 177, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_account_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "STRING", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "STRING", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 14, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 15, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 16, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 17, "name": "all_conversions_qualified", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1451, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "start_date": {"type": "DATE", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "INT64", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 658, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_ad_group_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 8, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 17, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 18, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 19, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 20, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "INT64", "index": 21, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 22, "name": "all_revenue", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 229, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 49406, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "title_part_1": {"type": "STRING", "index": 2, "name": "title_part_1", "comment": null}, "final_url": {"type": "STRING", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 5, "name": "modified_time", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 7, "name": "type", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1125, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_ad_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 9, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 18, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 19, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 20, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 21, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "INT64", "index": 22, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 23, "name": "all_revenue", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 401, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 88192, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 940, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_campaign_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "STRING", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "STRING", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 11, "name": "top_vs_other", "comment": null}, "budget_association_status": {"type": "STRING", "index": 12, "name": "budget_association_status", "comment": null}, "budget_name": {"type": "STRING", "index": 13, "name": "budget_name", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 17, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 18, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 19, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 20, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "INT64", "index": 21, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 22, "name": "all_revenue", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2630, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 591662, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 3, "name": "modified_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "STRING", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 595, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_keyword_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "STRING", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 19, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 20, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 21, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 22, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "INT64", "index": 23, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 24, "name": "all_revenue", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 53, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12098, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_search_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "STRING", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 18, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 19, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 20, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 21, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "INT64", "index": 22, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 23, "name": "all_revenue", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2558, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.pinterest_ad_group_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 5, "name": "status", "comment": null}, "start_time": {"type": "STRING", "index": 6, "name": "start_time", "comment": null}, "end_time": {"type": "INT64", "index": 7, "name": "end_time", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 8, "name": "_fivetran_synced", "comment": null}, "pacing_delivery_type": {"type": "STRING", "index": 9, "name": "pacing_delivery_type", "comment": null}, "placement_group": {"type": "STRING", "index": 10, "name": "placement_group", "comment": null}, "summary_status": {"type": "STRING", "index": 11, "name": "summary_status", "comment": null}, "ad_account_id": {"type": "INT64", "index": 12, "name": "ad_account_id", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 665, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ad_group_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ad_group_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_ad_group_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 3, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 4, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 6, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 7, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 8, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 9, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 10, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 11, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 12, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "INT64", "index": 13, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 14, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "INT64", "index": 15, "name": "total_conversions_value_in_micro_dollar", "comment": null}, "total_view_checkout": {"type": "INT64", "index": 16, "name": "total_view_checkout", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 680, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ad_group_report_data"}, "seed.ad_reporting_integration_tests.pinterest_advertiser_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_advertiser_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "DATETIME", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "billing_profile_status": {"type": "STRING", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "STRING", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "created_time": {"type": "DATETIME", "index": 7, "name": "created_time", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "merchant_id": {"type": "INT64", "index": 9, "name": "merchant_id", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "owner_user_id": {"type": "INT64", "index": 11, "name": "owner_user_id", "comment": null}, "status": {"type": "STRING", "index": 12, "name": "status", "comment": null}, "owner_username": {"type": "STRING", "index": 13, "name": "owner_username", "comment": null}, "permissions": {"type": "STRING", "index": 14, "name": "permissions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 125, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_advertiser_history_data"}, "seed.ad_reporting_integration_tests.pinterest_advertiser_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_advertiser_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 4, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 5, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 6, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 7, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 8, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "INT64", "index": 9, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 10, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "INT64", "index": 11, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 440, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_advertiser_report_data"}, "seed.ad_reporting_integration_tests.pinterest_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "created_time": {"type": "STRING", "index": 2, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 4, "name": "status", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "advertiser_id": {"type": "INT64", "index": 6, "name": "advertiser_id", "comment": null}, "default_ad_group_budget_in_micro_currency": {"type": "INT64", "index": 7, "name": "default_ad_group_budget_in_micro_currency", "comment": null}, "is_automated_campaign": {"type": "BOOL", "index": 8, "name": "is_automated_campaign", "comment": null}, "is_campaign_budget_optimization": {"type": "BOOL", "index": 9, "name": "is_campaign_budget_optimization", "comment": null}, "is_flexible_daily_budgets": {"type": "BOOL", "index": 10, "name": "is_flexible_daily_budgets", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 124, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_campaign_history_data"}, "seed.ad_reporting_integration_tests.pinterest_campaign_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 3, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 4, "name": "campaign_status", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 11, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "INT64", "index": 12, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 13, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "INT64", "index": 14, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 655, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_campaign_report_data"}, "seed.ad_reporting_integration_tests.pinterest_keyword_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 4, "name": "advertiser_id", "comment": null}, "archived": {"type": "BOOL", "index": 5, "name": "archived", "comment": null}, "bid": {"type": "INT64", "index": 6, "name": "bid", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "id": {"type": "INT64", "index": 8, "name": "id", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 10, "name": "parent_type", "comment": null}, "value": {"type": "STRING", "index": 11, "name": "value", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 941, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_keyword_history_data"}, "seed.ad_reporting_integration_tests.pinterest_keyword_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_keyword_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "keyword_id": {"type": "INT64", "index": 2, "name": "keyword_id", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 3, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 8, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 9, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 10, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 11, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 13, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 14, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "INT64", "index": 15, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 16, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "INT64", "index": 17, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 6, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 864, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_keyword_report_data"}, "seed.ad_reporting_integration_tests.pinterest_pin_promotion_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_pin_promotion_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "destination_url": {"type": "STRING", "index": 4, "name": "destination_url", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "pin_id": {"type": "INT64", "index": 6, "name": "pin_id", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "creative_type": {"type": "STRING", "index": 8, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 9, "name": "_fivetran_synced", "comment": null}, "ad_account_id": {"type": "INT64", "index": 10, "name": "ad_account_id", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1693, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_pin_promotion_history_data"}, "seed.ad_reporting_integration_tests.pinterest_pin_promotion_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_pin_promotion_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 11, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "INT64", "index": 12, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 13, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "INT64", "index": 14, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 560, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_pin_promotion_report_data"}, "seed.ad_reporting_integration_tests.reddit_ads_account_conversions": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_account_conversions", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "DATETIME", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "avg_value": {"type": "FLOAT64", "index": 3, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "INT64", "index": 4, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "INT64", "index": 5, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "INT64", "index": 6, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "DATE", "index": 7, "name": "date", "comment": null}, "event_name": {"type": "STRING", "index": 8, "name": "event_name", "comment": null}, "total_items": {"type": "INT64", "index": 9, "name": "total_items", "comment": null}, "total_value": {"type": "FLOAT64", "index": 10, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "INT64", "index": 11, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "INT64", "index": 12, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "INT64", "index": 13, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 8, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 848, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_account_conversions"}, "seed.ad_reporting_integration_tests.reddit_ads_account_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_account_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "attribution_type": {"type": "STRING", "index": 3, "name": "attribution_type", "comment": null}, "click_attribution_window": {"type": "STRING", "index": 4, "name": "click_attribution_window", "comment": null}, "created_at": {"type": "DATETIME", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "status": {"type": "INT64", "index": 7, "name": "status", "comment": null}, "time_zone_id": {"type": "STRING", "index": 8, "name": "time_zone_id", "comment": null}, "view_attribution_window": {"type": "STRING", "index": 9, "name": "view_attribution_window", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 62, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_account_data"}, "seed.ad_reporting_integration_tests.reddit_ads_account_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_account_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 4, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 6, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 7, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 8, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 9, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 10, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 11, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 12, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 13, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 15, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 17, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 18, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 19, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "INT64", "index": 20, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 21, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 22, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 23, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "INT64", "index": 24, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "INT64", "index": 25, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 26, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 27, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 30, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "INT64", "index": 33, "name": "priority", "comment": null}, "region": {"type": "INT64", "index": 34, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 35, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 36, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 37, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 38, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 39, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 40, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 41, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 42, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 43, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 44, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 45, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 46, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 47, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 48, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 49, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 50, "name": "viewer_comments", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 56, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15232, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_account_report_data"}, "seed.ad_reporting_integration_tests.reddit_ads_ad_conversions": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_conversions", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "DATETIME", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "ad_id": {"type": "INT64", "index": 3, "name": "ad_id", "comment": null}, "avg_value": {"type": "FLOAT64", "index": 4, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "INT64", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "INT64", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "INT64", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "DATE", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "STRING", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "INT64", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "FLOAT64", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "INT64", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "INT64", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "INT64", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 8, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 912, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_conversions"}, "seed.ad_reporting_integration_tests.reddit_ads_ad_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "click_url": {"type": "STRING", "index": 6, "name": "click_url", "comment": null}, "configured_status": {"type": "STRING", "index": 7, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 8, "name": "effective_status", "comment": null}, "is_processing": {"type": "BOOL", "index": 9, "name": "is_processing", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "post_id": {"type": "STRING", "index": 11, "name": "post_id", "comment": null}, "post_url": {"type": "INT64", "index": 12, "name": "post_url", "comment": null}, "preview_expiry": {"type": "INT64", "index": 13, "name": "preview_expiry", "comment": null}, "preview_url": {"type": "INT64", "index": 14, "name": "preview_url", "comment": null}, "rejection_reason": {"type": "INT64", "index": 15, "name": "rejection_reason", "comment": null}, "search_term": {"type": "INT64", "index": 16, "name": "search_term", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1243, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_data"}, "seed.ad_reporting_integration_tests.reddit_ads_ad_group_conversions": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_group_conversions", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "DATETIME", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "avg_value": {"type": "FLOAT64", "index": 4, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "INT64", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "INT64", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "INT64", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "DATE", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "STRING", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "INT64", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "FLOAT64", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "INT64", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "INT64", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "INT64", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 8, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 912, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_group_conversions"}, "seed.ad_reporting_integration_tests.reddit_ads_ad_group_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_group_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "bid_strategy": {"type": "STRING", "index": 4, "name": "bid_strategy", "comment": null}, "bid_value": {"type": "INT64", "index": 5, "name": "bid_value", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "configured_status": {"type": "STRING", "index": 7, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 8, "name": "effective_status", "comment": null}, "end_time": {"type": "DATETIME", "index": 9, "name": "end_time", "comment": null}, "expand_targeting": {"type": "BOOL", "index": 10, "name": "expand_targeting", "comment": null}, "goal_type": {"type": "STRING", "index": 11, "name": "goal_type", "comment": null}, "goal_value": {"type": "INT64", "index": 12, "name": "goal_value", "comment": null}, "is_processing": {"type": "BOOL", "index": 13, "name": "is_processing", "comment": null}, "name": {"type": "STRING", "index": 14, "name": "name", "comment": null}, "optimization_strategy_type": {"type": "INT64", "index": 15, "name": "optimization_strategy_type", "comment": null}, "start_time": {"type": "DATETIME", "index": 16, "name": "start_time", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 19, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2325, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_group_data"}, "seed.ad_reporting_integration_tests.reddit_ads_ad_group_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_group_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "INT64", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "INT64", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "INT64", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "INT64", "index": 34, "name": "priority", "comment": null}, "region": {"type": "INT64", "index": 35, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 28000, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_group_report_data"}, "seed.ad_reporting_integration_tests.reddit_ads_ad_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "INT64", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "INT64", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "INT64", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "INT64", "index": 34, "name": "priority", "comment": null}, "region": {"type": "INT64", "index": 35, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 28000, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_report_data"}, "seed.ad_reporting_integration_tests.reddit_ads_campaign_conversions": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_campaign_conversions", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "DATETIME", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "avg_value": {"type": "FLOAT64", "index": 3, "name": "avg_value", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "INT64", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "INT64", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "INT64", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "DATE", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "STRING", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "INT64", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "FLOAT64", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "INT64", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "INT64", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "INT64", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 8, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 912, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_campaign_conversions"}, "seed.ad_reporting_integration_tests.reddit_ads_campaign_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_campaign_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "configured_status": {"type": "STRING", "index": 4, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 5, "name": "effective_status", "comment": null}, "funding_instrument_id": {"type": "INT64", "index": 6, "name": "funding_instrument_id", "comment": null}, "is_processing": {"type": "BOOL", "index": 7, "name": "is_processing", "comment": null}, "name": {"type": "STRING", "index": 8, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 9, "name": "objective", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 714, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_campaign_data"}, "seed.ad_reporting_integration_tests.reddit_ads_campaign_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "INT64", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "INT64", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "INT64", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "INT64", "index": 34, "name": "priority", "comment": null}, "region": {"type": "INT64", "index": 35, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 79, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 22120, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_campaign_report_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_ad_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 111, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10767, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 2, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "STRING", "index": 3, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 320, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 55360, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_history_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_ad_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "STRING", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 2, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "INT64", "index": 4, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 5, "name": "swipes", "comment": null}, "conversion_purchases_value": {"type": "FLOAT64", "index": 6, "name": "conversion_purchases_value", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 7, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 8, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 9, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 10, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 11, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 12, "name": "conversion_purchases", "comment": null}, "conversion_save": {"type": "INT64", "index": 13, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 14, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 15, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 16, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 17, "name": "conversion_view_content", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1212, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 201176, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_ad_squad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 228, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 30780, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_ad_squad_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_squad_id": {"type": "STRING", "index": 1, "name": "ad_squad_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "FLOAT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3580, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data"}, "seed.ad_reporting_integration_tests.snapchat_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 58, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7830, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_history_data"}, "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_campaign_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "STRING", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "FLOAT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3580, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data"}, "seed.ad_reporting_integration_tests.snapchat_creative_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "web_view_url": {"type": "STRING", "index": 4, "name": "web_view_url", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 119, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 18802, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_history_data"}, "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_creative_url_tag_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "STRING", "index": 1, "name": "creative_id", "comment": null}, "key": {"type": "STRING", "index": 2, "name": "key", "comment": null}, "value": {"type": "STRING", "index": 3, "name": "value", "comment": null}, "updated_at": {"type": "STRING", "index": 4, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 383, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 41413, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data"}, "seed.ad_reporting_integration_tests.tiktok_ad_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "tiktok_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "INT64", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "STRING", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "STRING", "index": 8, "name": "call_to_action", "comment": null}, "secondary_status": {"type": "STRING", "index": 9, "name": "secondary_status", "comment": null}, "operation_status": {"type": "STRING", "index": 10, "name": "operation_status", "comment": null}, "ad_text": {"type": "STRING", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "STRING", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "deeplink": {"type": "INT64", "index": 14, "name": "deeplink", "comment": null}, "landing_page_url": {"type": "STRING", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "STRING", "index": 16, "name": "display_name", "comment": null}, "profile_image_url": {"type": "INT64", "index": 17, "name": "profile_image_url", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "INT64", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "BOOL", "index": 21, "name": "is_aco", "comment": null}, "creative_authorized": {"type": "BOOL", "index": 22, "name": "creative_authorized", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "STRING", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1072, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_history_data"}, "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "tiktok_ad_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"AD_ID": {"type": "INT64", "index": 1, "name": "AD_ID", "comment": null}, "STAT_TIME_HOUR": {"type": "DATETIME", "index": 2, "name": "STAT_TIME_HOUR", "comment": null}, "COST_PER_CONVERSION": {"type": "FLOAT64", "index": 3, "name": "COST_PER_CONVERSION", "comment": null}, "CPC": {"type": "FLOAT64", "index": 4, "name": "CPC", "comment": null}, "VIDEO_PLAY_ACTIONS": {"type": "INT64", "index": 5, "name": "VIDEO_PLAY_ACTIONS", "comment": null}, "CONVERSION_RATE": {"type": "INT64", "index": 6, "name": "CONVERSION_RATE", "comment": null}, "VIDEO_VIEWS_P_75": {"type": "INT64", "index": 7, "name": "VIDEO_VIEWS_P_75", "comment": null}, "RESULT": {"type": "INT64", "index": 8, "name": "RESULT", "comment": null}, "VIDEO_VIEWS_P_50": {"type": "INT64", "index": 9, "name": "VIDEO_VIEWS_P_50", "comment": null}, "IMPRESSIONS": {"type": "INT64", "index": 10, "name": "IMPRESSIONS", "comment": null}, "COMMENTS": {"type": "INT64", "index": 11, "name": "COMMENTS", "comment": null}, "REAL_TIME_COST_PER_RESULT": {"type": "FLOAT64", "index": 12, "name": "REAL_TIME_COST_PER_RESULT", "comment": null}, "CONVERSION": {"type": "INT64", "index": 13, "name": "CONVERSION", "comment": null}, "REAL_TIME_RESULT": {"type": "INT64", "index": 14, "name": "REAL_TIME_RESULT", "comment": null}, "VIDEO_VIEWS_P_100": {"type": "INT64", "index": 15, "name": "VIDEO_VIEWS_P_100", "comment": null}, "SHARES": {"type": "INT64", "index": 16, "name": "SHARES", "comment": null}, "REAL_TIME_CONVERSION_RATE": {"type": "INT64", "index": 17, "name": "REAL_TIME_CONVERSION_RATE", "comment": null}, "COST_PER_SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 18, "name": "COST_PER_SECONDARY_GOAL_RESULT", "comment": null}, "SECONDARY_GOAL_RESULT_RATE": {"type": "STRING", "index": 19, "name": "SECONDARY_GOAL_RESULT_RATE", "comment": null}, "CLICKS": {"type": "INT64", "index": 20, "name": "CLICKS", "comment": null}, "COST_PER_1000_REACHED": {"type": "INT64", "index": 21, "name": "COST_PER_1000_REACHED", "comment": null}, "VIDEO_VIEWS_P_25": {"type": "INT64", "index": 22, "name": "VIDEO_VIEWS_P_25", "comment": null}, "REACH": {"type": "INT64", "index": 23, "name": "REACH", "comment": null}, "REAL_TIME_COST_PER_CONVERSION": {"type": "FLOAT64", "index": 24, "name": "REAL_TIME_COST_PER_CONVERSION", "comment": null}, "PROFILE_VISITS_RATE": {"type": "INT64", "index": 25, "name": "PROFILE_VISITS_RATE", "comment": null}, "AVERAGE_VIDEO_PLAY": {"type": "FLOAT64", "index": 26, "name": "AVERAGE_VIDEO_PLAY", "comment": null}, "PROFILE_VISITS": {"type": "INT64", "index": 27, "name": "PROFILE_VISITS", "comment": null}, "CPM": {"type": "FLOAT64", "index": 28, "name": "CPM", "comment": null}, "CTR": {"type": "FLOAT64", "index": 29, "name": "CTR", "comment": null}, "VIDEO_WATCHED_2_S": {"type": "INT64", "index": 30, "name": "VIDEO_WATCHED_2_S", "comment": null}, "FOLLOWS": {"type": "INT64", "index": 31, "name": "FOLLOWS", "comment": null}, "RESULT_RATE": {"type": "INT64", "index": 32, "name": "RESULT_RATE", "comment": null}, "VIDEO_WATCHED_6_S": {"type": "INT64", "index": 33, "name": "VIDEO_WATCHED_6_S", "comment": null}, "SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 34, "name": "SECONDARY_GOAL_RESULT", "comment": null}, "COST_PER_RESULT": {"type": "FLOAT64", "index": 35, "name": "COST_PER_RESULT", "comment": null}, "AVERAGE_VIDEO_PLAY_PER_USER": {"type": "INT64", "index": 36, "name": "AVERAGE_VIDEO_PLAY_PER_USER", "comment": null}, "REAL_TIME_RESULT_RATE": {"type": "INT64", "index": 37, "name": "REAL_TIME_RESULT_RATE", "comment": null}, "SPEND": {"type": "FLOAT64", "index": 38, "name": "SPEND", "comment": null}, "LIKES": {"type": "INT64", "index": 39, "name": "LIKES", "comment": null}, "REAL_TIME_CONVERSION": {"type": "INT64", "index": 40, "name": "REAL_TIME_CONVERSION", "comment": null}, "TOTAL_PURCHASE_VALUE": {"type": "FLOAT64", "index": 41, "name": "TOTAL_PURCHASE_VALUE", "comment": null}, "TOTAL_SALES_LEAD_VALUE": {"type": "FLOAT64", "index": 42, "name": "TOTAL_SALES_LEAD_VALUE", "comment": null}, "_FIVETRAN_SYNCED": {"type": "STRING", "index": 43, "name": "_FIVETRAN_SYNCED", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1384, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data"}, "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "tiktok_adgroup_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"adgroup_id": {"type": "INT64", "index": 1, "name": "adgroup_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 5, "name": "create_time", "comment": null}, "adgroup_name": {"type": "STRING", "index": 6, "name": "adgroup_name", "comment": null}, "placement_type": {"type": "STRING", "index": 7, "name": "placement_type", "comment": null}, "profile_image": {"type": "INT64", "index": 8, "name": "profile_image", "comment": null}, "landing_page_url": {"type": "INT64", "index": 9, "name": "landing_page_url", "comment": null}, "display_name": {"type": "INT64", "index": 10, "name": "display_name", "comment": null}, "app_type": {"type": "INT64", "index": 11, "name": "app_type", "comment": null}, "app_download_url": {"type": "INT64", "index": 12, "name": "app_download_url", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "optimization_event": {"type": "STRING", "index": 14, "name": "optimization_event", "comment": null}, "secondary_optimization_event": {"type": "INT64", "index": 15, "name": "secondary_optimization_event", "comment": null}, "creative_material_mode": {"type": "STRING", "index": 16, "name": "creative_material_mode", "comment": null}, "audience_type": {"type": "INT64", "index": 17, "name": "audience_type", "comment": null}, "gender": {"type": "STRING", "index": 18, "name": "gender", "comment": null}, "min_android_version": {"type": "INT64", "index": 19, "name": "min_android_version", "comment": null}, "min_ios_version": {"type": "INT64", "index": 20, "name": "min_ios_version", "comment": null}, "budget_mode": {"type": "STRING", "index": 21, "name": "budget_mode", "comment": null}, "schedule_type": {"type": "STRING", "index": 22, "name": "schedule_type", "comment": null}, "dayparting": {"type": "INT64", "index": 23, "name": "dayparting", "comment": null}, "optimization_goal": {"type": "STRING", "index": 24, "name": "optimization_goal", "comment": null}, "cpv_video_duration": {"type": "INT64", "index": 25, "name": "cpv_video_duration", "comment": null}, "pacing": {"type": "STRING", "index": 26, "name": "pacing", "comment": null}, "billing_event": {"type": "STRING", "index": 27, "name": "billing_event", "comment": null}, "bid_type": {"type": "STRING", "index": 28, "name": "bid_type", "comment": null}, "deep_bid_type": {"type": "INT64", "index": 29, "name": "deep_bid_type", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 30, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 31, "name": "click_tracking_url", "comment": null}, "secondary_status": {"type": "STRING", "index": 32, "name": "secondary_status", "comment": null}, "operation_status": {"type": "STRING", "index": 33, "name": "operation_status", "comment": null}, "statistic_type": {"type": "INT64", "index": 34, "name": "statistic_type", "comment": null}, "video_download": {"type": "STRING", "index": 35, "name": "video_download", "comment": null}, "open_url": {"type": "INT64", "index": 36, "name": "open_url", "comment": null}, "open_url_type": {"type": "INT64", "index": 37, "name": "open_url_type", "comment": null}, "fallback_type": {"type": "INT64", "index": 38, "name": "fallback_type", "comment": null}, "budget": {"type": "INT64", "index": 39, "name": "budget", "comment": null}, "bid_price": {"type": "INT64", "index": 40, "name": "bid_price", "comment": null}, "conversion_bid_price": {"type": "INT64", "index": 41, "name": "conversion_bid_price", "comment": null}, "deep_cpa_bid": {"type": "INT64", "index": 42, "name": "deep_cpa_bid", "comment": null}, "schedule_start_time": {"type": "STRING", "index": 43, "name": "schedule_start_time", "comment": null}, "schedule_end_time": {"type": "STRING", "index": 44, "name": "schedule_end_time", "comment": null}, "app_id": {"type": "INT64", "index": 45, "name": "app_id", "comment": null}, "pixel_id": {"type": "INT64", "index": 46, "name": "pixel_id", "comment": null}, "inventory_filter_enabled": {"type": "BOOL", "index": 47, "name": "inventory_filter_enabled", "comment": null}, "is_hfss": {"type": "BOOL", "index": 48, "name": "is_hfss", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 49, "name": "is_new_structure", "comment": null}, "category": {"type": "INT64", "index": 50, "name": "category", "comment": null}, "is_comment_disable": {"type": "INT64", "index": 51, "name": "is_comment_disable", "comment": null}, "skip_learning_phase": {"type": "INT64", "index": 52, "name": "skip_learning_phase", "comment": null}, "frequency": {"type": "INT64", "index": 53, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "INT64", "index": 54, "name": "frequency_schedule", "comment": null}, "action_days": {"type": "INT64", "index": 55, "name": "action_days", "comment": null}, "audience": {"type": "STRING", "index": 56, "name": "audience", "comment": null}, "excluded_audience": {"type": "STRING", "index": 57, "name": "excluded_audience", "comment": null}, "location": {"type": "STRING", "index": 58, "name": "location", "comment": null}, "interest_category_v_2": {"type": "STRING", "index": 59, "name": "interest_category_v_2", "comment": null}, "pangle_block_app_list_id": {"type": "STRING", "index": 60, "name": "pangle_block_app_list_id", "comment": null}, "action_categories": {"type": "STRING", "index": 61, "name": "action_categories", "comment": null}, "placements": {"type": "STRING", "index": 62, "name": "placements", "comment": null}, "keywords": {"type": "INT64", "index": 63, "name": "keywords", "comment": null}, "age_groups": {"type": "STRING", "index": 64, "name": "age_groups", "comment": null}, "languages": {"type": "STRING", "index": 65, "name": "languages", "comment": null}, "operating_systems": {"type": "STRING", "index": 66, "name": "operating_systems", "comment": null}, "network_types": {"type": "STRING", "index": 67, "name": "network_types", "comment": null}, "carriers": {"type": "STRING", "index": 68, "name": "carriers", "comment": null}, "video_actions": {"type": "STRING", "index": 69, "name": "video_actions", "comment": null}, "package": {"type": "INT64", "index": 70, "name": "package", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 71, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2527, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data"}, "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "tiktok_adgroup_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ADGROUP_ID": {"type": "INT64", "index": 1, "name": "ADGROUP_ID", "comment": null}, "STAT_TIME_HOUR": {"type": "DATETIME", "index": 2, "name": "STAT_TIME_HOUR", "comment": null}, "COST_PER_CONVERSION": {"type": "FLOAT64", "index": 3, "name": "COST_PER_CONVERSION", "comment": null}, "CPC": {"type": "FLOAT64", "index": 4, "name": "CPC", "comment": null}, "VIDEO_PLAY_ACTIONS": {"type": "INT64", "index": 5, "name": "VIDEO_PLAY_ACTIONS", "comment": null}, "CONVERSION_RATE": {"type": "INT64", "index": 6, "name": "CONVERSION_RATE", "comment": null}, "VIDEO_VIEWS_P_75": {"type": "INT64", "index": 7, "name": "VIDEO_VIEWS_P_75", "comment": null}, "RESULT": {"type": "INT64", "index": 8, "name": "RESULT", "comment": null}, "VIDEO_VIEWS_P_50": {"type": "INT64", "index": 9, "name": "VIDEO_VIEWS_P_50", "comment": null}, "IMPRESSIONS": {"type": "INT64", "index": 10, "name": "IMPRESSIONS", "comment": null}, "COMMENTS": {"type": "INT64", "index": 11, "name": "COMMENTS", "comment": null}, "REAL_TIME_COST_PER_RESULT": {"type": "FLOAT64", "index": 12, "name": "REAL_TIME_COST_PER_RESULT", "comment": null}, "CONVERSION": {"type": "INT64", "index": 13, "name": "CONVERSION", "comment": null}, "REAL_TIME_RESULT": {"type": "INT64", "index": 14, "name": "REAL_TIME_RESULT", "comment": null}, "VIDEO_VIEWS_P_100": {"type": "INT64", "index": 15, "name": "VIDEO_VIEWS_P_100", "comment": null}, "SHARES": {"type": "INT64", "index": 16, "name": "SHARES", "comment": null}, "REAL_TIME_CONVERSION_RATE": {"type": "FLOAT64", "index": 17, "name": "REAL_TIME_CONVERSION_RATE", "comment": null}, "COST_PER_SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 18, "name": "COST_PER_SECONDARY_GOAL_RESULT", "comment": null}, "SECONDARY_GOAL_RESULT_RATE": {"type": "STRING", "index": 19, "name": "SECONDARY_GOAL_RESULT_RATE", "comment": null}, "CLICKS": {"type": "INT64", "index": 20, "name": "CLICKS", "comment": null}, "COST_PER_1000_REACHED": {"type": "FLOAT64", "index": 21, "name": "COST_PER_1000_REACHED", "comment": null}, "VIDEO_VIEWS_P_25": {"type": "INT64", "index": 22, "name": "VIDEO_VIEWS_P_25", "comment": null}, "REACH": {"type": "INT64", "index": 23, "name": "REACH", "comment": null}, "REAL_TIME_COST_PER_CONVERSION": {"type": "FLOAT64", "index": 24, "name": "REAL_TIME_COST_PER_CONVERSION", "comment": null}, "PROFILE_VISITS_RATE": {"type": "INT64", "index": 25, "name": "PROFILE_VISITS_RATE", "comment": null}, "AVERAGE_VIDEO_PLAY": {"type": "FLOAT64", "index": 26, "name": "AVERAGE_VIDEO_PLAY", "comment": null}, "PROFILE_VISITS": {"type": "INT64", "index": 27, "name": "PROFILE_VISITS", "comment": null}, "CPM": {"type": "FLOAT64", "index": 28, "name": "CPM", "comment": null}, "CTR": {"type": "FLOAT64", "index": 29, "name": "CTR", "comment": null}, "VIDEO_WATCHED_2_S": {"type": "INT64", "index": 30, "name": "VIDEO_WATCHED_2_S", "comment": null}, "FOLLOWS": {"type": "INT64", "index": 31, "name": "FOLLOWS", "comment": null}, "RESULT_RATE": {"type": "FLOAT64", "index": 32, "name": "RESULT_RATE", "comment": null}, "VIDEO_WATCHED_6_S": {"type": "INT64", "index": 33, "name": "VIDEO_WATCHED_6_S", "comment": null}, "SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 34, "name": "SECONDARY_GOAL_RESULT", "comment": null}, "COST_PER_RESULT": {"type": "FLOAT64", "index": 35, "name": "COST_PER_RESULT", "comment": null}, "AVERAGE_VIDEO_PLAY_PER_USER": {"type": "FLOAT64", "index": 36, "name": "AVERAGE_VIDEO_PLAY_PER_USER", "comment": null}, "REAL_TIME_RESULT_RATE": {"type": "FLOAT64", "index": 37, "name": "REAL_TIME_RESULT_RATE", "comment": null}, "SPEND": {"type": "FLOAT64", "index": 38, "name": "SPEND", "comment": null}, "LIKES": {"type": "INT64", "index": 39, "name": "LIKES", "comment": null}, "REAL_TIME_CONVERSION": {"type": "INT64", "index": 40, "name": "REAL_TIME_CONVERSION", "comment": null}, "TOTAL_PURCHASE_VALUE": {"type": "FLOAT64", "index": 41, "name": "TOTAL_PURCHASE_VALUE", "comment": null}, "TOTAL_SALES_LEAD_VALUE": {"type": "FLOAT64", "index": 42, "name": "TOTAL_SALES_LEAD_VALUE", "comment": null}, "_FIVETRAN_SYNCED": {"type": "STRING", "index": 43, "name": "_FIVETRAN_SYNCED", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1384, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data"}, "seed.ad_reporting_integration_tests.tiktok_advertiser_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "tiktok_advertiser_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "address": {"type": "STRING", "index": 3, "name": "address", "comment": null}, "company": {"type": "STRING", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "INT64", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "description": {"type": "STRING", "index": 8, "name": "description", "comment": null}, "email": {"type": "STRING", "index": 9, "name": "email", "comment": null}, "industry": {"type": "INT64", "index": 10, "name": "industry", "comment": null}, "license_no": {"type": "INT64", "index": 11, "name": "license_no", "comment": null}, "license_url": {"type": "INT64", "index": 12, "name": "license_url", "comment": null}, "promotion_area": {"type": "INT64", "index": 13, "name": "promotion_area", "comment": null}, "rejected_reason": {"type": "INT64", "index": 14, "name": "rejected_reason", "comment": null}, "role": {"type": "STRING", "index": 15, "name": "role", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "telephone_number": {"type": "STRING", "index": 17, "name": "telephone_number", "comment": null}, "timezone": {"type": "STRING", "index": 18, "name": "timezone", "comment": null}, "balance": {"type": "FLOAT64", "index": 19, "name": "balance", "comment": null}, "create_time": {"type": "STRING", "index": 20, "name": "create_time", "comment": null}, "language": {"type": "STRING", "index": 21, "name": "language", "comment": null}, "cellphone_number": {"type": "STRING", "index": 22, "name": "cellphone_number", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 23, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 463, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_advertiser_data"}, "seed.ad_reporting_integration_tests.tiktok_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "tiktok_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "INT64", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "STRING", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "STRING", "index": 8, "name": "call_to_action", "comment": null}, "secondary_status": {"type": "STRING", "index": 9, "name": "secondary_status", "comment": null}, "operation_status": {"type": "STRING", "index": 10, "name": "operation_status", "comment": null}, "ad_text": {"type": "STRING", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "STRING", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "deeplink": {"type": "INT64", "index": 14, "name": "deeplink", "comment": null}, "landing_page_url": {"type": "STRING", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "STRING", "index": 16, "name": "display_name", "comment": null}, "profile_image_url": {"type": "INT64", "index": 17, "name": "profile_image_url", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "INT64", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "BOOL", "index": 21, "name": "is_aco", "comment": null}, "creative_authorized": {"type": "BOOL", "index": 22, "name": "creative_authorized", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "STRING", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1072, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_history_data"}, "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "tiktok_campaign_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"CAMPAIGN_ID": {"type": "INT64", "index": 1, "name": "CAMPAIGN_ID", "comment": null}, "STAT_TIME_HOUR": {"type": "DATETIME", "index": 2, "name": "STAT_TIME_HOUR", "comment": null}, "COST_PER_CONVERSION": {"type": "FLOAT64", "index": 3, "name": "COST_PER_CONVERSION", "comment": null}, "CPC": {"type": "FLOAT64", "index": 4, "name": "CPC", "comment": null}, "VIDEO_PLAY_ACTIONS": {"type": "INT64", "index": 5, "name": "VIDEO_PLAY_ACTIONS", "comment": null}, "CONVERSION_RATE": {"type": "INT64", "index": 6, "name": "CONVERSION_RATE", "comment": null}, "VIDEO_VIEWS_P_75": {"type": "INT64", "index": 7, "name": "VIDEO_VIEWS_P_75", "comment": null}, "RESULT": {"type": "INT64", "index": 8, "name": "RESULT", "comment": null}, "VIDEO_VIEWS_P_50": {"type": "INT64", "index": 9, "name": "VIDEO_VIEWS_P_50", "comment": null}, "IMPRESSIONS": {"type": "INT64", "index": 10, "name": "IMPRESSIONS", "comment": null}, "COMMENTS": {"type": "INT64", "index": 11, "name": "COMMENTS", "comment": null}, "REAL_TIME_COST_PER_RESULT": {"type": "FLOAT64", "index": 12, "name": "REAL_TIME_COST_PER_RESULT", "comment": null}, "CONVERSION": {"type": "INT64", "index": 13, "name": "CONVERSION", "comment": null}, "REAL_TIME_RESULT": {"type": "INT64", "index": 14, "name": "REAL_TIME_RESULT", "comment": null}, "VIDEO_VIEWS_P_100": {"type": "INT64", "index": 15, "name": "VIDEO_VIEWS_P_100", "comment": null}, "SHARES": {"type": "INT64", "index": 16, "name": "SHARES", "comment": null}, "REAL_TIME_CONVERSION_RATE": {"type": "FLOAT64", "index": 17, "name": "REAL_TIME_CONVERSION_RATE", "comment": null}, "COST_PER_SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 18, "name": "COST_PER_SECONDARY_GOAL_RESULT", "comment": null}, "SECONDARY_GOAL_RESULT_RATE": {"type": "STRING", "index": 19, "name": "SECONDARY_GOAL_RESULT_RATE", "comment": null}, "CLICKS": {"type": "INT64", "index": 20, "name": "CLICKS", "comment": null}, "COST_PER_1000_REACHED": {"type": "FLOAT64", "index": 21, "name": "COST_PER_1000_REACHED", "comment": null}, "VIDEO_VIEWS_P_25": {"type": "INT64", "index": 22, "name": "VIDEO_VIEWS_P_25", "comment": null}, "REACH": {"type": "INT64", "index": 23, "name": "REACH", "comment": null}, "REAL_TIME_COST_PER_CONVERSION": {"type": "FLOAT64", "index": 24, "name": "REAL_TIME_COST_PER_CONVERSION", "comment": null}, "PROFILE_VISITS_RATE": {"type": "INT64", "index": 25, "name": "PROFILE_VISITS_RATE", "comment": null}, "AVERAGE_VIDEO_PLAY": {"type": "FLOAT64", "index": 26, "name": "AVERAGE_VIDEO_PLAY", "comment": null}, "PROFILE_VISITS": {"type": "INT64", "index": 27, "name": "PROFILE_VISITS", "comment": null}, "CPM": {"type": "FLOAT64", "index": 28, "name": "CPM", "comment": null}, "CTR": {"type": "FLOAT64", "index": 29, "name": "CTR", "comment": null}, "VIDEO_WATCHED_2_S": {"type": "INT64", "index": 30, "name": "VIDEO_WATCHED_2_S", "comment": null}, "FOLLOWS": {"type": "INT64", "index": 31, "name": "FOLLOWS", "comment": null}, "RESULT_RATE": {"type": "FLOAT64", "index": 32, "name": "RESULT_RATE", "comment": null}, "VIDEO_WATCHED_6_S": {"type": "INT64", "index": 33, "name": "VIDEO_WATCHED_6_S", "comment": null}, "SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 34, "name": "SECONDARY_GOAL_RESULT", "comment": null}, "COST_PER_RESULT": {"type": "FLOAT64", "index": 35, "name": "COST_PER_RESULT", "comment": null}, "AVERAGE_VIDEO_PLAY_PER_USER": {"type": "FLOAT64", "index": 36, "name": "AVERAGE_VIDEO_PLAY_PER_USER", "comment": null}, "REAL_TIME_RESULT_RATE": {"type": "FLOAT64", "index": 37, "name": "REAL_TIME_RESULT_RATE", "comment": null}, "SPEND": {"type": "FLOAT64", "index": 38, "name": "SPEND", "comment": null}, "LIKES": {"type": "INT64", "index": 39, "name": "LIKES", "comment": null}, "REAL_TIME_CONVERSION": {"type": "INT64", "index": 40, "name": "REAL_TIME_CONVERSION", "comment": null}, "TOTAL_PURCHASE_VALUE": {"type": "FLOAT64", "index": 41, "name": "TOTAL_PURCHASE_VALUE", "comment": null}, "TOTAL_SALES_LEAD_VALUE": {"type": "FLOAT64", "index": 42, "name": "TOTAL_SALES_LEAD_VALUE", "comment": null}, "_FIVETRAN_SYNCED": {"type": "STRING", "index": 43, "name": "_FIVETRAN_SYNCED", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1384, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data"}, "seed.ad_reporting_integration_tests.twitter_account_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "business_id": {"type": "INT64", "index": 3, "name": "business_id", "comment": null}, "business_name": {"type": "INT64", "index": 4, "name": "business_name", "comment": null}, "created_at": {"type": "STRING", "index": 5, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "id": {"type": "STRING", "index": 7, "name": "id", "comment": null}, "industry_type": {"type": "INT64", "index": 8, "name": "industry_type", "comment": null}, "name": {"type": "STRING", "index": 9, "name": "name", "comment": null}, "salt": {"type": "INT64", "index": 10, "name": "salt", "comment": null}, "timezone": {"type": "STRING", "index": 11, "name": "timezone", "comment": null}, "timezone_switch_at": {"type": "STRING", "index": 12, "name": "timezone_switch_at", "comment": null}, "updated_at": {"type": "STRING", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 159, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_history_data"}, "seed.ad_reporting_integration_tests.twitter_account_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_account_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "placement": {"type": "STRING", "index": 3, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}, "engagements": {"type": "INT64", "index": 5, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 6, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 8, "name": "likes", "comment": null}, "replies": {"type": "INT64", "index": 9, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 10, "name": "retweets", "comment": null}, "unfollows": {"type": "INT64", "index": 11, "name": "unfollows", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 472, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_report_data"}, "seed.ad_reporting_integration_tests.twitter_campaign_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "INT64", "index": 5, "name": "daily_budget_amount_local_micro", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "duration_in_days": {"type": "INT64", "index": 7, "name": "duration_in_days", "comment": null}, "end_time": {"type": "STRING", "index": 8, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 9, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "INT64", "index": 10, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 11, "name": "funding_instrument_id", "comment": null}, "id": {"type": "STRING", "index": 12, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 13, "name": "name", "comment": null}, "servable": {"type": "BOOL", "index": 14, "name": "servable", "comment": null}, "standard_delivery": {"type": "BOOL", "index": 15, "name": "standard_delivery", "comment": null}, "start_time": {"type": "STRING", "index": 16, "name": "start_time", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 17, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 18, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2971, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_history_data"}, "seed.ad_reporting_integration_tests.twitter_campaign_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8091, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_report_data"}, "seed.ad_reporting_integration_tests.twitter_line_item_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_line_item_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_domain": {"type": "STRING", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "INT64", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "BOOL", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "INT64", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "STRING", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "STRING", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "STRING", "index": 8, "name": "charge_by", "comment": null}, "created_at": {"type": "STRING", "index": 9, "name": "created_at", "comment": null}, "creative_source": {"type": "STRING", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "STRING", "index": 11, "name": "currency", "comment": null}, "deleted": {"type": "BOOL", "index": 12, "name": "deleted", "comment": null}, "end_time": {"type": "INT64", "index": 13, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 14, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 15, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 16, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "STRING", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "INT64", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "STRING", "index": 20, "name": "product_type", "comment": null}, "start_time": {"type": "INT64", "index": 21, "name": "start_time", "comment": null}, "target_cpa_local_micro": {"type": "INT64", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 24, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2973, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_history_data"}, "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_line_item_keywords_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "STRING", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "segment": {"type": "STRING", "index": 5, "name": "segment", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 6, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 7, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 8, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 9, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 10, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 11, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 13, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 16, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 17, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 18, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 21, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 22, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 25, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 27, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 30, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 31, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 32, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 35, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 37, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 40, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 50, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 51, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 54, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 56, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 59, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 60, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 61, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 62, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 63, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 64, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 65, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 70, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 80, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 85, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 90, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 94, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 99, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 100, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 101, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 106, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 107, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 108, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 111, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 112, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 165, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 167, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 170, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 171, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 172, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 175, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 176, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 177, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 180, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 181, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 182, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 183, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 184, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 210, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 211, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 212, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 213, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 214, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 229, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 230, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 231, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 232, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 233, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 234, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 235, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 236, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 237, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 238, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 239, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 240, "name": "url_clicks", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 241, "name": "video_15_s_views", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 242, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 243, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 244, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 245, "name": "video_cta_clicks", "comment": null}, "video_total_views": {"type": "INT64", "index": 246, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 247, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 248, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 249, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 250, "name": "video_views_75", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8100, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data"}, "seed.ad_reporting_integration_tests.twitter_line_item_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_line_item_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "STRING", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8084, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_report_data"}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_promoted_tweet_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 4, "name": "deleted", "comment": null}, "entity_status": {"type": "STRING", "index": 5, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 6, "name": "id", "comment": null}, "line_item_id": {"type": "STRING", "index": 7, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 8, "name": "tweet_id", "comment": null}, "updated_at": {"type": "STRING", "index": 9, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 21, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2541, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data"}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_promoted_tweet_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 3, "name": "billed_charge_local_micro", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "date": {"type": "DATETIME", "index": 5, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 7, "name": "promoted_tweet_id", "comment": null}, "url_clicks": {"type": "INT64", "index": 8, "name": "url_clicks", "comment": null}, "placement": {"type": "STRING", "index": 9, "name": "placement", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10500, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data"}, "seed.ad_reporting_integration_tests.twitter_tweet_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_tweet_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "card_uri": {"type": "INT64", "index": 4, "name": "card_uri", "comment": null}, "coordinates_coordinates": {"type": "INT64", "index": 5, "name": "coordinates_coordinates", "comment": null}, "coordinates_type": {"type": "INT64", "index": 6, "name": "coordinates_type", "comment": null}, "created_at": {"type": "STRING", "index": 7, "name": "created_at", "comment": null}, "favorite_count": {"type": "INT64", "index": 8, "name": "favorite_count", "comment": null}, "favorited": {"type": "BOOL", "index": 9, "name": "favorited", "comment": null}, "followers": {"type": "INT64", "index": 10, "name": "followers", "comment": null}, "full_text": {"type": "STRING", "index": 11, "name": "full_text", "comment": null}, "geo_coordinates": {"type": "INT64", "index": 12, "name": "geo_coordinates", "comment": null}, "geo_type": {"type": "INT64", "index": 13, "name": "geo_type", "comment": null}, "in_reply_to_screen_name": {"type": "INT64", "index": 14, "name": "in_reply_to_screen_name", "comment": null}, "in_reply_to_status_id": {"type": "INT64", "index": 15, "name": "in_reply_to_status_id", "comment": null}, "in_reply_to_user_id": {"type": "INT64", "index": 16, "name": "in_reply_to_user_id", "comment": null}, "lang": {"type": "STRING", "index": 17, "name": "lang", "comment": null}, "media_key": {"type": "INT64", "index": 18, "name": "media_key", "comment": null}, "retweet_count": {"type": "INT64", "index": 19, "name": "retweet_count", "comment": null}, "retweeted": {"type": "BOOL", "index": 20, "name": "retweeted", "comment": null}, "source": {"type": "STRING", "index": 21, "name": "source", "comment": null}, "truncated": {"type": "BOOL", "index": 22, "name": "truncated", "comment": null}, "tweet_type": {"type": "STRING", "index": 23, "name": "tweet_type", "comment": null}, "user_id": {"type": "INT64", "index": 24, "name": "user_id", "comment": null}, "name": {"type": "INT64", "index": 25, "name": "name", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1312, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_data"}, "seed.ad_reporting_integration_tests.twitter_tweet_url_data": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_tweet_url_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "display_url": {"type": "STRING", "index": 2, "name": "display_url", "comment": null}, "expanded_url": {"type": "STRING", "index": 3, "name": "expanded_url", "comment": null}, "index": {"type": "INT64", "index": 4, "name": "index", "comment": null}, "indices": {"type": "STRING", "index": 5, "name": "indices", "comment": null}, "tweet_id": {"type": "INT64", "index": 6, "name": "tweet_id", "comment": null}, "url": {"type": "STRING", "index": 7, "name": "url", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 16671, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_url_data"}}, "sources": {"source.amazon_ads_source.amazon_ads.ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "STRING", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "creation_date": {"type": "STRING", "index": 5, "name": "creation_date", "comment": null}, "default_bid": {"type": "FLOAT64", "index": 6, "name": "default_bid", "comment": null}, "name": {"type": "STRING", "index": 7, "name": "name", "comment": null}, "serving_status": {"type": "STRING", "index": 8, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 9, "name": "state", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 288, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.ad_group_history"}, "source.amazon_ads_source.amazon_ads.ad_group_level_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_ad_group_level_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_bidding_strategy": {"type": "STRING", "index": 4, "name": "campaign_bidding_strategy", "comment": null}, "clicks": {"type": "INT64", "index": 5, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 6, "name": "cost", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 760, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.ad_group_level_report"}, "source.amazon_ads_source.amazon_ads.advertised_product_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_advertised_product_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 4, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 8, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 10, "name": "cost", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, " advertised_asin": {"type": "INT64", "index": 12, "name": " advertised_asin", "comment": null}, " advertised_sku": {"type": "INT64", "index": 13, "name": " advertised_sku", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 910, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.advertised_product_report"}, "source.amazon_ads_source.amazon_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "STRING", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "bidding_strategy": {"type": "STRING", "index": 4, "name": "bidding_strategy", "comment": null}, "creation_date": {"type": "STRING", "index": 5, "name": "creation_date", "comment": null}, "budget": {"type": "INT64", "index": 6, "name": "budget", "comment": null}, "end_date": {"type": "INT64", "index": 7, "name": "end_date", "comment": null}, "name": {"type": "STRING", "index": 8, "name": "name", "comment": null}, "portfolio_id": {"type": "INT64", "index": 9, "name": "portfolio_id", "comment": null}, "profile_id": {"type": "INT64", "index": 10, "name": "profile_id", "comment": null}, "serving_status": {"type": "STRING", "index": 11, "name": "serving_status", "comment": null}, "start_date": {"type": "DATE", "index": 12, "name": "start_date", "comment": null}, "state": {"type": "STRING", "index": 13, "name": "state", "comment": null}, "targeting_type": {"type": "STRING", "index": 14, "name": "targeting_type", "comment": null}, "budget_type": {"type": "STRING", "index": 15, "name": "budget_type", "comment": null}, "effective_budget": {"type": "INT64", "index": 16, "name": "effective_budget", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 6, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1181, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.campaign_history"}, "source.amazon_ads_source.amazon_ads.campaign_level_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_campaign_level_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_applicable_budget_rule_id": {"type": "INT64", "index": 4, "name": "campaign_applicable_budget_rule_id", "comment": null}, "campaign_applicable_budget_rule_name": {"type": "INT64", "index": 5, "name": "campaign_applicable_budget_rule_name", "comment": null}, "campaign_bidding_strategy": {"type": "STRING", "index": 6, "name": "campaign_bidding_strategy", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 9, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 11, "name": "cost", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "campaign_rule_based_budget_amount": {"type": "INT64", "index": 13, "name": "campaign_rule_based_budget_amount", "comment": null}, "sales_7_d": {"type": "INT64", "index": 14, "name": "sales_7_d", "comment": null}, "purchases_30_d": {"type": "INT64", "index": 15, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "INT64", "index": 16, "name": "sales_30_d", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 981, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.campaign_level_report"}, "source.amazon_ads_source.amazon_ads.keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "STRING", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "bid": {"type": "FLOAT64", "index": 5, "name": "bid", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "STRING", "index": 7, "name": "creation_date", "comment": null}, "keyword_text": {"type": "STRING", "index": 8, "name": "keyword_text", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "native_language_keyword": {"type": "INT64", "index": 10, "name": "native_language_keyword", "comment": null}, "serving_status": {"type": "STRING", "index": 11, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 12, "name": "state", "comment": null}, "native_language_locale": {"type": "INT64", "index": 13, "name": "native_language_locale", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1545, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.keyword_history"}, "source.amazon_ads_source.amazon_ads.portfolio_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_portfolio_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "STRING", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "budget_amount": {"type": "INT64", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "INT64", "index": 5, "name": "budget_currency_code", "comment": null}, "budget_end_date": {"type": "INT64", "index": 6, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "INT64", "index": 7, "name": "budget_policy", "comment": null}, "budget_start_date": {"type": "INT64", "index": 8, "name": "budget_start_date", "comment": null}, "creation_date": {"type": "STRING", "index": 9, "name": "creation_date", "comment": null}, "in_budget": {"type": "BOOL", "index": 10, "name": "in_budget", "comment": null}, "name": {"type": "STRING", "index": 11, "name": "name", "comment": null}, "profile_id": {"type": "INT64", "index": 12, "name": "profile_id", "comment": null}, "serving_status": {"type": "STRING", "index": 13, "name": "serving_status", "comment": null}, "state": {"type": "STRING", "index": 14, "name": "state", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 144, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.portfolio_history"}, "source.amazon_ads_source.amazon_ads.product_ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_product_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "STRING", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "asin": {"type": "STRING", "index": 5, "name": "asin", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "STRING", "index": 7, "name": "creation_date", "comment": null}, "serving_status": {"type": "STRING", "index": 8, "name": "serving_status", "comment": null}, "sku": {"type": "INT64", "index": 9, "name": "sku", "comment": null}, "state": {"type": "STRING", "index": 10, "name": "state", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 425, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.product_ad_history"}, "source.amazon_ads_source.amazon_ads.profile": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_profile_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "account_marketplace_string_id": {"type": "STRING", "index": 5, "name": "account_marketplace_string_id", "comment": null}, "account_name": {"type": "STRING", "index": 6, "name": "account_name", "comment": null}, "account_sub_type": {"type": "INT64", "index": 7, "name": "account_sub_type", "comment": null}, "account_type": {"type": "STRING", "index": 8, "name": "account_type", "comment": null}, "account_valid_payment_method": {"type": "BOOL", "index": 9, "name": "account_valid_payment_method", "comment": null}, "country_code": {"type": "STRING", "index": 10, "name": "country_code", "comment": null}, "currency_code": {"type": "STRING", "index": 11, "name": "currency_code", "comment": null}, "daily_budget": {"type": "INT64", "index": 12, "name": "daily_budget", "comment": null}, "timezone": {"type": "STRING", "index": 13, "name": "timezone", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 116, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.profile"}, "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_search_term_ad_keyword_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "INT64", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 8, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 10, "name": "cost", "comment": null}, "impressions": {"type": "INT64", "index": 11, "name": "impressions", "comment": null}, "keyword_bid": {"type": "FLOAT64", "index": 12, "name": "keyword_bid", "comment": null}, "search_term": {"type": "STRING", "index": 13, "name": "search_term", "comment": null}, "targeting": {"type": "STRING", "index": 14, "name": "targeting", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1270, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report"}, "source.amazon_ads_source.amazon_ads.targeting_keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "amazon_ads_targeting_keyword_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "INT64", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}, "ad_keyword_status": {"type": "STRING", "index": 6, "name": "ad_keyword_status", "comment": null}, "campaign_budget_amount": {"type": "FLOAT64", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "STRING", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "STRING", "index": 9, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "FLOAT64", "index": 11, "name": "cost", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "keyword_bid": {"type": "FLOAT64", "index": 13, "name": "keyword_bid", "comment": null}, "keyword_type": {"type": "STRING", "index": 14, "name": "keyword_type", "comment": null}, "match_type": {"type": "STRING", "index": 15, "name": "match_type", "comment": null}, "targeting": {"type": "STRING", "index": 16, "name": "targeting", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1360, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.targeting_keyword_report"}, "source.apple_search_ads_source.apple_search_ads.ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "automated_keywords_opt_in": {"type": "BOOL", "index": 3, "name": "automated_keywords_opt_in", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "cpa_goal_amount": {"type": "INT64", "index": 5, "name": "cpa_goal_amount", "comment": null}, "cpa_goal_currency": {"type": "INT64", "index": 6, "name": "cpa_goal_currency", "comment": null}, "default_cpc_bid_amount": {"type": "INT64", "index": 7, "name": "default_cpc_bid_amount", "comment": null}, "default_cpc_bid_currency": {"type": "INT64", "index": 8, "name": "default_cpc_bid_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "name": {"type": "STRING", "index": 11, "name": "name", "comment": null}, "organization_id": {"type": "INT64", "index": 12, "name": "organization_id", "comment": null}, "serving_state_reasons": {"type": "INT64", "index": 13, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 14, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 15, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "storefronts": {"type": "INT64", "index": 17, "name": "storefronts", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 334, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_history"}, "source.apple_search_ads_source.apple_search_ads.ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_ad_group_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1651, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_report"}, "source.apple_search_ads_source.apple_search_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creation_time": {"type": "TIMESTAMP", "index": 1, "name": "creation_time", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "org_id": {"type": "INT64", "index": 3, "name": "org_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "id": {"type": "INT64", "index": 7, "name": "id", "comment": null}, "creative_id": {"type": "INT64", "index": 8, "name": "creative_id", "comment": null}, "creative_type": {"type": "STRING", "index": 9, "name": "creative_type", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 101, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_history"}, "source.apple_search_ads_source.apple_search_ads.ad_level_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_ad_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 7, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 8, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 9, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 10, "name": "redownloads", "comment": null}, "taps": {"type": "INT64", "index": 11, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 170, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_level_report"}, "source.apple_search_ads_source.apple_search_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "adam_id": {"type": "INT64", "index": 3, "name": "adam_id", "comment": null}, "budget_amount": {"type": "INT64", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency": {"type": "STRING", "index": 5, "name": "budget_currency", "comment": null}, "budget_orders": {"type": "STRING", "index": 6, "name": "budget_orders", "comment": null}, "daily_budget_amount": {"type": "INT64", "index": 7, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency": {"type": "STRING", "index": 8, "name": "daily_budget_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "loc_invoice_detail_buyer_email": {"type": "INT64", "index": 11, "name": "loc_invoice_detail_buyer_email", "comment": null}, "loc_invoice_detail_buyer_name": {"type": "INT64", "index": 12, "name": "loc_invoice_detail_buyer_name", "comment": null}, "loc_invoice_detail_client_name": {"type": "INT64", "index": 13, "name": "loc_invoice_detail_client_name", "comment": null}, "loc_invoice_detail_order_number": {"type": "INT64", "index": 14, "name": "loc_invoice_detail_order_number", "comment": null}, "name": {"type": "STRING", "index": 15, "name": "name", "comment": null}, "organiation_id": {"type": "INT64", "index": 16, "name": "organiation_id", "comment": null}, "payment_model": {"type": "STRING", "index": 17, "name": "payment_model", "comment": null}, "serving_state_reasons": {"type": "STRING", "index": 18, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 19, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 20, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 21, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 419, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_history"}, "source.apple_search_ads_source.apple_search_ads.campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1524, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_report"}, "source.apple_search_ads_source.apple_search_ads.keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "TIMESTAMP", "index": 2, "name": "modification_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "bid_amount": {"type": "FLOAT64", "index": 4, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "STRING", "index": 5, "name": "bid_currency", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "deleted": {"type": "BOOL", "index": 7, "name": "deleted", "comment": null}, "match_type": {"type": "STRING", "index": 8, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 9, "name": "status", "comment": null}, "text": {"type": "STRING", "index": 10, "name": "text", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1151, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_history"}, "source.apple_search_ads_source.apple_search_ads.keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_keyword_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 17, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 99, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12573, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_report"}, "source.apple_search_ads_source.apple_search_ads.organization": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_organization_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "currency": {"type": "STRING", "index": 2, "name": "currency", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "payment_model": {"type": "STRING", "index": 4, "name": "payment_model", "comment": null}, "role_names": {"type": "STRING", "index": 5, "name": "role_names", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 132, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.organization"}, "source.apple_search_ads_source.apple_search_ads.search_term_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "apple_search_search_term_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 4, "name": "date", "comment": null}, "ad_group_deleted": {"type": "BOOL", "index": 5, "name": "ad_group_deleted", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "avg_cpa_amount": {"type": "FLOAT64", "index": 7, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 8, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "FLOAT64", "index": 9, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 10, "name": "avg_cpt_currency", "comment": null}, "bid_amount_amount": {"type": "FLOAT64", "index": 11, "name": "bid_amount_amount", "comment": null}, "bid_amount_currency": {"type": "STRING", "index": 12, "name": "bid_amount_currency", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 13, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 14, "name": "conversions", "comment": null}, "deleted": {"type": "BOOL", "index": 15, "name": "deleted", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "keyword": {"type": "STRING", "index": 17, "name": "keyword", "comment": null}, "keyword_display_status": {"type": "STRING", "index": 18, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "INT64", "index": 19, "name": "keyword_id", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 20, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 21, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "FLOAT64", "index": 22, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 23, "name": "local_spend_currency", "comment": null}, "match_type": {"type": "STRING", "index": 24, "name": "match_type", "comment": null}, "new_downloads": {"type": "INT64", "index": 25, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 26, "name": "redownloads", "comment": null}, "search_term_source": {"type": "STRING", "index": 27, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "STRING", "index": 28, "name": "search_term_text", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 29, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 30, "name": "taps", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 150, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 35485, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.search_term_report"}, "source.facebook_ads_source.facebook_ads.account_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "facebook_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 59, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3481, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.account_history"}, "source.facebook_ads_source.facebook_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "facebook_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "ad_set_id": {"type": "INT64", "index": 3, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "creative_id": {"type": "INT64", "index": 5, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 8, "name": "updated_time", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 720, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.ad_history"}, "source.facebook_ads_source.facebook_ads.ad_set_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "facebook_ads_ad_set_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 6, "name": "updated_time", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 14, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 924, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.ad_set_history"}, "source.facebook_ads_source.facebook_ads.basic_ad_action_values": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "facebook_ads_basic_ad_action_values_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 3, "name": "_fivetran_id", "comment": null}, "index": {"type": "INT64", "index": 4, "name": "index", "comment": null}, "action_type": {"type": "STRING", "index": 5, "name": "action_type", "comment": null}, "value": {"type": "FLOAT64", "index": 6, "name": "value", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 7, "name": "_fivetran_synced", "comment": null}, "_7_d_click": {"type": "FLOAT64", "index": 8, "name": "_7_d_click", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 82, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8838, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad_action_values"}, "source.facebook_ads_source.facebook_ads.basic_ad_actions": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "facebook_ads_basic_ad_actions_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "index": {"type": "INT64", "index": 4, "name": "index", "comment": null}, "_1_d_view": {"type": "FLOAT64", "index": 5, "name": "_1_d_view", "comment": null}, "_7_d_click": {"type": "FLOAT64", "index": 6, "name": "_7_d_click", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 7, "name": "_fivetran_synced", "comment": null}, "action_type": {"type": "STRING", "index": 8, "name": "action_type", "comment": null}, "inline": {"type": "FLOAT64", "index": 9, "name": "inline", "comment": null}, "value": {"type": "FLOAT64", "index": 10, "name": "value", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1264, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad_actions"}, "source.facebook_ads_source.facebook_ads.basic_ad": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "facebook_ads_basic_ad_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "inline_link_clicks": {"type": "INT64", "index": 5, "name": "inline_link_clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 480, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad"}, "source.facebook_ads_source.facebook_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "facebook_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "DATETIME", "index": 5, "name": "updated_time", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 522, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.campaign_history"}, "source.facebook_ads_source.facebook_ads.creative_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "facebook_ads_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"page_link": {"type": "STRING", "index": 1, "name": "page_link", "comment": null}, "template_page_link": {"type": "STRING", "index": 2, "name": "template_page_link", "comment": null}, "id": {"type": "INT64", "index": 3, "name": "id", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "url_tags": {"type": "STRING", "index": 6, "name": "url_tags", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 7, "name": "_fivetran_synced", "comment": null}, "asset_feed_spec_link_urls": {"type": "STRING", "index": 8, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "STRING", "index": 9, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "STRING", "index": 10, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "STRING", "index": 11, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "STRING", "index": 12, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "STRING", "index": 13, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "STRING", "index": 14, "name": "template_app_link_spec_ios", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 15, "name": "_fivetran_id", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1000, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1415996, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.creative_history"}, "source.google_ads_source.google_ads.account_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "auto_tagging_enabled": {"type": "BOOL", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "descriptive_name": {"type": "INT64", "index": 6, "name": "descriptive_name", "comment": null}, "final_url_suffix": {"type": "BOOL", "index": 7, "name": "final_url_suffix", "comment": null}, "hidden": {"type": "BOOL", "index": 8, "name": "hidden", "comment": null}, "manager": {"type": "INT64", "index": 9, "name": "manager", "comment": null}, "manager_customer_id": {"type": "FLOAT64", "index": 10, "name": "manager_customer_id", "comment": null}, "optimization_score": {"type": "STRING", "index": 11, "name": "optimization_score", "comment": null}, "pay_per_conversion_eligibility_failure_reasons": {"type": "BOOL", "index": 12, "name": "pay_per_conversion_eligibility_failure_reasons", "comment": null}, "test_account": {"type": "STRING", "index": 13, "name": "test_account", "comment": null}, "time_zone": {"type": "INT64", "index": 14, "name": "time_zone", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 15, "name": "tracking_url_template", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 66, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.account_history"}, "source.google_ads_source.google_ads.account_stats": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_account_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 12, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 13, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 14, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 15, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 17, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 18, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 19, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 19, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3500, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.account_stats"}, "source.google_ads_source.google_ads.ad_group_criterion_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_ad_group_criterion_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "INT64", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 5, "name": "_fivetran_synced", "comment": null}, "type": {"type": "STRING", "index": 6, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "keyword_match_type": {"type": "STRING", "index": 8, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "STRING", "index": 9, "name": "keyword_text", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 261, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15771, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_group_criterion_history"}, "source.google_ads_source.google_ads.ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "type": {"type": "STRING", "index": 3, "name": "type", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 272, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_group_history"}, "source.google_ads_source.google_ads.ad_group_stats": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_ad_group_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_ad_group": {"type": "STRING", "index": 11, "name": "base_ad_group", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 12, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 13, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "conversions": {"type": "FLOAT64", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 16, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 17, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 18, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 19, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 20, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 21, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 22, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 23, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4150, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_group_stats"}, "source.google_ads_source.google_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "name": {"type": "INT64", "index": 3, "name": "name", "comment": null}, "updated_at": {"type": "DATETIME", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "INT64", "index": 5, "name": "type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "display_url": {"type": "INT64", "index": 7, "name": "display_url", "comment": null}, "final_urls": {"type": "STRING", "index": 8, "name": "final_urls", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 713, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_history"}, "source.google_ads_source.google_ads.ad_stats": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_ad_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"customer_id": {"type": "INT64", "index": 1, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "ad_group": {"type": "STRING", "index": 4, "name": "ad_group", "comment": null}, "keyword_ad_group_criterion": {"type": "STRING", "index": 5, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "STRING", "index": 6, "name": "ad_network_type", "comment": null}, "device": {"type": "STRING", "index": 7, "name": "device", "comment": null}, "ad_id": {"type": "INT64", "index": 8, "name": "ad_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "cost_micros": {"type": "INT64", "index": 11, "name": "cost_micros", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "conversions": {"type": "INT64", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "FLOAT64", "index": 14, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 15, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2005, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_stats"}, "source.google_ads_source.google_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "DATETIME", "index": 2, "name": "updated_at", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "customer_id": {"type": "INT64", "index": 4, "name": "customer_id", "comment": null}, "advertising_channel_type": {"type": "STRING", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "STRING", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "DATE", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "DATE", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "STRING", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "INT64", "index": 11, "name": "tracking_url_template", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1040, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.campaign_history"}, "source.google_ads_source.google_ads.campaign_stats": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_campaign_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "STRING", "index": 10, "name": "ad_network_type", "comment": null}, "base_campaign": {"type": "STRING", "index": 11, "name": "base_campaign", "comment": null}, "clicks": {"type": "INT64", "index": 12, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 14, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 15, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 16, "name": "device", "comment": null}, "id": {"type": "INT64", "index": 17, "name": "id", "comment": null}, "impressions": {"type": "INT64", "index": 18, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 19, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 20, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 21, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3590, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.campaign_stats"}, "source.google_ads_source.google_ads.keyword_stats": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "google_ads_keyword_stats_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "INT64", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "INT64", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "INT64", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "INT64", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "INT64", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "INT64", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_group_base_ad_group": {"type": "STRING", "index": 10, "name": "ad_group_base_ad_group", "comment": null}, "ad_group_criterion_criterion_id": {"type": "INT64", "index": 11, "name": "ad_group_criterion_criterion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 12, "name": "ad_group_id", "comment": null}, "ad_network_type": {"type": "STRING", "index": 13, "name": "ad_network_type", "comment": null}, "campaign_base_campaign": {"type": "STRING", "index": 14, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "INT64", "index": 15, "name": "campaign_id", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "conversions": {"type": "INT64", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "INT64", "index": 18, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "INT64", "index": 19, "name": "cost_micros", "comment": null}, "device": {"type": "STRING", "index": 20, "name": "device", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "STRING", "index": 22, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "INT64", "index": 23, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 24, "name": "view_through_conversions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 15, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4260, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.keyword_stats"}, "source.linkedin_source.linkedin_ads.account_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "linkedin_ad_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 14, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 882, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin_ads.account_history"}, "source.linkedin_source.linkedin_ads.ad_analytics_by_campaign": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "linkedin_ad_analytics_by_campaign_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "day": {"type": "TIMESTAMP", "index": 2, "name": "day", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}, "action_clicks": {"type": "INT64", "index": 4, "name": "action_clicks", "comment": null}, "ad_unit_clicks": {"type": "INT64", "index": 5, "name": "ad_unit_clicks", "comment": null}, "approximate_unique_impressions": {"type": "INT64", "index": 6, "name": "approximate_unique_impressions", "comment": null}, "card_clicks": {"type": "INT64", "index": 7, "name": "card_clicks", "comment": null}, "card_impressions": {"type": "INT64", "index": 8, "name": "card_impressions", "comment": null}, "clicks": {"type": "INT64", "index": 9, "name": "clicks", "comment": null}, "comment_likes": {"type": "INT64", "index": 10, "name": "comment_likes", "comment": null}, "comments": {"type": "INT64", "index": 11, "name": "comments", "comment": null}, "company_page_clicks": {"type": "INT64", "index": 12, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "INT64", "index": 13, "name": "conversion_value_in_local_currency", "comment": null}, "cost_in_local_currency": {"type": "FLOAT64", "index": 14, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "FLOAT64", "index": 15, "name": "cost_in_usd", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 16, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "INT64", "index": 17, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "INT64", "index": 18, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "INT64", "index": 19, "name": "follows", "comment": null}, "full_screen_plays": {"type": "INT64", "index": 20, "name": "full_screen_plays", "comment": null}, "impressions": {"type": "INT64", "index": 21, "name": "impressions", "comment": null}, "landing_page_clicks": {"type": "INT64", "index": 22, "name": "landing_page_clicks", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "INT64", "index": 23, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "INT64", "index": 24, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "INT64", "index": 25, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "INT64", "index": 26, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "INT64", "index": 27, "name": "one_click_leads", "comment": null}, "opens": {"type": "INT64", "index": 28, "name": "opens", "comment": null}, "other_engagements": {"type": "INT64", "index": 29, "name": "other_engagements", "comment": null}, "shares": {"type": "INT64", "index": 30, "name": "shares", "comment": null}, "text_url_clicks": {"type": "INT64", "index": 31, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "INT64", "index": 32, "name": "total_engagements", "comment": null}, "video_completions": {"type": "INT64", "index": 33, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "INT64", "index": 34, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "INT64", "index": 35, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "INT64", "index": 36, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "INT64", "index": 37, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "INT64", "index": 38, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "INT64", "index": 39, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "INT64", "index": 40, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "INT64", "index": 41, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "INT64", "index": 42, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "INT64", "index": 43, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "INT64", "index": 44, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "INT64", "index": 45, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "INT64", "index": 46, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "INT64", "index": 47, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "INT64", "index": 48, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "INT64", "index": 49, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "INT64", "index": 50, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "INT64", "index": 51, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "INT64", "index": 52, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "INT64", "index": 53, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "INT64", "index": 54, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "INT64", "index": 55, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "INT64", "index": 56, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "INT64", "index": 57, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "INT64", "index": 58, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "INT64", "index": 59, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "INT64", "index": 60, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "INT64", "index": 61, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "INT64", "index": 62, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "INT64", "index": 63, "name": "viral_video_views", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 20, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7252, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin_ads.ad_analytics_by_campaign"}, "source.linkedin_source.linkedin_ads.ad_analytics_by_creative": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "linkedin_ad_analytics_by_creative_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "INT64", "index": 1, "name": "creative_id", "comment": null}, "day": {"type": "TIMESTAMP", "index": 2, "name": "day", "comment": null}, "action_clicks": {"type": "INT64", "index": 3, "name": "action_clicks", "comment": null}, "card_clicks": {"type": "INT64", "index": 4, "name": "card_clicks", "comment": null}, "ad_unit_clicks": {"type": "INT64", "index": 5, "name": "ad_unit_clicks", "comment": null}, "landing_page_clicks": {"type": "INT64", "index": 6, "name": "landing_page_clicks", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "approximate_unique_impressions": {"type": "INT64", "index": 8, "name": "approximate_unique_impressions", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "card_impressions": {"type": "INT64", "index": 10, "name": "card_impressions", "comment": null}, "cost_in_local_currency": {"type": "INT64", "index": 11, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "INT64", "index": 12, "name": "cost_in_usd", "comment": null}, "comment_likes": {"type": "INT64", "index": 13, "name": "comment_likes", "comment": null}, "comments": {"type": "INT64", "index": 14, "name": "comments", "comment": null}, "company_page_clicks": {"type": "INT64", "index": 15, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "INT64", "index": 16, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 17, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "INT64", "index": 18, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "INT64", "index": 19, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "INT64", "index": 20, "name": "follows", "comment": null}, "full_screen_plays": {"type": "INT64", "index": 21, "name": "full_screen_plays", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "INT64", "index": 22, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "INT64", "index": 23, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "INT64", "index": 24, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "INT64", "index": 25, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "INT64", "index": 26, "name": "one_click_leads", "comment": null}, "opens": {"type": "INT64", "index": 27, "name": "opens", "comment": null}, "other_engagements": {"type": "INT64", "index": 28, "name": "other_engagements", "comment": null}, "shares": {"type": "INT64", "index": 29, "name": "shares", "comment": null}, "text_url_clicks": {"type": "INT64", "index": 30, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "INT64", "index": 31, "name": "total_engagements", "comment": null}, "video_completions": {"type": "INT64", "index": 32, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "INT64", "index": 33, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "INT64", "index": 34, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "INT64", "index": 35, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "INT64", "index": 36, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "INT64", "index": 37, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "INT64", "index": 38, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "INT64", "index": 39, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "INT64", "index": 40, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "INT64", "index": 41, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "INT64", "index": 42, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "INT64", "index": 43, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "INT64", "index": 44, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "INT64", "index": 45, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "INT64", "index": 46, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "INT64", "index": 47, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "INT64", "index": 48, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "INT64", "index": 49, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "INT64", "index": 50, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "INT64", "index": 51, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "INT64", "index": 52, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "INT64", "index": 53, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "INT64", "index": 54, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "INT64", "index": 55, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "INT64", "index": 56, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "INT64", "index": 57, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "INT64", "index": 58, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "INT64", "index": 59, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "INT64", "index": 60, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "INT64", "index": 61, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "INT64", "index": 62, "name": "viral_video_views", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 43112, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin_ads.ad_analytics_by_creative"}, "source.linkedin_source.linkedin_ads.campaign_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "linkedin_ad_campaign_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 4, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 232, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin_ads.campaign_group_history"}, "source.linkedin_source.linkedin_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "linkedin_ad_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 4, "name": "campaign_group_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 5, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "version_tag": {"type": "INT64", "index": 7, "name": "version_tag", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7400, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin_ads.campaign_history"}, "source.linkedin_source.linkedin_ads.creative_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "linkedin_ad_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "TIMESTAMP", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 3, "name": "created_time", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "version_tag": {"type": "INT64", "index": 6, "name": "version_tag", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "click_uri": {"type": "STRING", "index": 8, "name": "click_uri", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7263, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin_ads.creative_history"}, "source.microsoft_ads_source.microsoft_ads.account_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "last_modified_time": {"type": "DATETIME", "index": 3, "name": "last_modified_time", "comment": null}, "time_zone": {"type": "STRING", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 177, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.account_history"}, "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_account_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "STRING", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "STRING", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 14, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 15, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 16, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 17, "name": "all_conversions_qualified", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1451, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "start_date": {"type": "DATE", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "INT64", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 658, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_history"}, "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_ad_group_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 8, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 17, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 18, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 19, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 20, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "INT64", "index": 21, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 22, "name": "all_revenue", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 229, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 49406, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "title_part_1": {"type": "STRING", "index": 2, "name": "title_part_1", "comment": null}, "final_url": {"type": "STRING", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 5, "name": "modified_time", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 7, "name": "type", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1125, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_history"}, "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_ad_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 9, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 18, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 19, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 20, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 21, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "INT64", "index": 22, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 23, "name": "all_revenue", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 401, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 88192, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "modified_time": {"type": "DATETIME", "index": 4, "name": "modified_time", "comment": null}, "type": {"type": "STRING", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "STRING", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 940, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_history"}, "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_campaign_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "STRING", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "STRING", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 11, "name": "top_vs_other", "comment": null}, "budget_association_status": {"type": "STRING", "index": 12, "name": "budget_association_status", "comment": null}, "budget_name": {"type": "STRING", "index": 13, "name": "budget_name", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 16, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 17, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 18, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 19, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 20, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "INT64", "index": 21, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 22, "name": "all_revenue", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2630, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 591662, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 3, "name": "modified_time", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "STRING", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 595, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_history"}, "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_keyword_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "STRING", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "STRING", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 19, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 20, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 21, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 22, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "INT64", "index": 23, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 24, "name": "all_revenue", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 53, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12098, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "microsoft_ads_search_performance_daily_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "INT64", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "STRING", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "STRING", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "STRING", "index": 10, "name": "network", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "STRING", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 17, "name": "spend", "comment": null}, "conversions_qualified": {"type": "INT64", "index": 18, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "INT64", "index": 19, "name": "conversions", "comment": null}, "revenue": {"type": "FLOAT64", "index": 20, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "INT64", "index": 21, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "INT64", "index": 22, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 23, "name": "all_revenue", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2558, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report"}, "source.pinterest_source.pinterest_ads.ad_group_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_ad_group_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 5, "name": "status", "comment": null}, "start_time": {"type": "STRING", "index": 6, "name": "start_time", "comment": null}, "end_time": {"type": "INT64", "index": 7, "name": "end_time", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 8, "name": "_fivetran_synced", "comment": null}, "pacing_delivery_type": {"type": "STRING", "index": 9, "name": "pacing_delivery_type", "comment": null}, "placement_group": {"type": "STRING", "index": 10, "name": "placement_group", "comment": null}, "summary_status": {"type": "STRING", "index": 11, "name": "summary_status", "comment": null}, "ad_account_id": {"type": "INT64", "index": 12, "name": "ad_account_id", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 665, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.ad_group_history"}, "source.pinterest_source.pinterest_ads.ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_ad_group_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 3, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 4, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 6, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 7, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 8, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 9, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 10, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 11, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 12, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "INT64", "index": 13, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 14, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "INT64", "index": 15, "name": "total_conversions_value_in_micro_dollar", "comment": null}, "total_view_checkout": {"type": "INT64", "index": 16, "name": "total_view_checkout", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 680, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.ad_group_report"}, "source.pinterest_source.pinterest_ads.advertiser_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_advertiser_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "DATETIME", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "billing_profile_status": {"type": "STRING", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "STRING", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "created_time": {"type": "DATETIME", "index": 7, "name": "created_time", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "merchant_id": {"type": "INT64", "index": 9, "name": "merchant_id", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "owner_user_id": {"type": "INT64", "index": 11, "name": "owner_user_id", "comment": null}, "status": {"type": "STRING", "index": 12, "name": "status", "comment": null}, "owner_username": {"type": "STRING", "index": 13, "name": "owner_username", "comment": null}, "permissions": {"type": "STRING", "index": 14, "name": "permissions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 125, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.advertiser_history"}, "source.pinterest_source.pinterest_ads.advertiser_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_advertiser_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "advertiser_id": {"type": "INT64", "index": 2, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 4, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 5, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 6, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 7, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 8, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "INT64", "index": 9, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 10, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "INT64", "index": 11, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 440, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.advertiser_report"}, "source.pinterest_source.pinterest_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "created_time": {"type": "STRING", "index": 2, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "status": {"type": "STRING", "index": 4, "name": "status", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "advertiser_id": {"type": "INT64", "index": 6, "name": "advertiser_id", "comment": null}, "default_ad_group_budget_in_micro_currency": {"type": "INT64", "index": 7, "name": "default_ad_group_budget_in_micro_currency", "comment": null}, "is_automated_campaign": {"type": "BOOL", "index": 8, "name": "is_automated_campaign", "comment": null}, "is_campaign_budget_optimization": {"type": "BOOL", "index": 9, "name": "is_campaign_budget_optimization", "comment": null}, "is_flexible_daily_budgets": {"type": "BOOL", "index": 10, "name": "is_flexible_daily_budgets", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 124, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.campaign_history"}, "source.pinterest_source.pinterest_ads.campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 3, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 4, "name": "campaign_status", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 11, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "INT64", "index": 12, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 13, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "INT64", "index": 14, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 655, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.campaign_report"}, "source.pinterest_source.pinterest_ads.keyword_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_keyword_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 4, "name": "advertiser_id", "comment": null}, "archived": {"type": "BOOL", "index": 5, "name": "archived", "comment": null}, "bid": {"type": "INT64", "index": 6, "name": "bid", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "id": {"type": "INT64", "index": 8, "name": "id", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 10, "name": "parent_type", "comment": null}, "value": {"type": "STRING", "index": 11, "name": "value", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 941, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.keyword_history"}, "source.pinterest_source.pinterest_ads.keyword_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_keyword_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "keyword_id": {"type": "INT64", "index": 2, "name": "keyword_id", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 3, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 8, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 9, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 10, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 11, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 13, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 14, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "INT64", "index": 15, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 16, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "INT64", "index": 17, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 6, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 864, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.keyword_report"}, "source.pinterest_source.pinterest_ads.pin_promotion_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_pin_promotion_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "created_time": {"type": "STRING", "index": 3, "name": "created_time", "comment": null}, "destination_url": {"type": "STRING", "index": 4, "name": "destination_url", "comment": null}, "name": {"type": "STRING", "index": 5, "name": "name", "comment": null}, "pin_id": {"type": "INT64", "index": 6, "name": "pin_id", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "creative_type": {"type": "STRING", "index": 8, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 9, "name": "_fivetran_synced", "comment": null}, "ad_account_id": {"type": "INT64", "index": 10, "name": "ad_account_id", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1693, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_history"}, "source.pinterest_source.pinterest_ads.pin_promotion_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "pinterest_pin_promotion_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date": {"type": "DATE", "index": 1, "name": "date", "comment": null}, "pin_promotion_id": {"type": "INT64", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "INT64", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "INT64", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "INT64", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "INT64", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 11, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "INT64", "index": 12, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "INT64", "index": 13, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "INT64", "index": 14, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 560, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_report"}, "source.reddit_ads_source.reddit_ads.account_conversions_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_account_conversions", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "DATETIME", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "avg_value": {"type": "FLOAT64", "index": 3, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "INT64", "index": 4, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "INT64", "index": 5, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "INT64", "index": 6, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "DATE", "index": 7, "name": "date", "comment": null}, "event_name": {"type": "STRING", "index": 8, "name": "event_name", "comment": null}, "total_items": {"type": "INT64", "index": 9, "name": "total_items", "comment": null}, "total_value": {"type": "FLOAT64", "index": 10, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "INT64", "index": 11, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "INT64", "index": 12, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "INT64", "index": 13, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 8, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 848, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.account_conversions_report"}, "source.reddit_ads_source.reddit_ads.account": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_account_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "attribution_type": {"type": "STRING", "index": 3, "name": "attribution_type", "comment": null}, "click_attribution_window": {"type": "STRING", "index": 4, "name": "click_attribution_window", "comment": null}, "created_at": {"type": "DATETIME", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "status": {"type": "INT64", "index": 7, "name": "status", "comment": null}, "time_zone_id": {"type": "STRING", "index": 8, "name": "time_zone_id", "comment": null}, "view_attribution_window": {"type": "STRING", "index": 9, "name": "view_attribution_window", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 62, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.account"}, "source.reddit_ads_source.reddit_ads.account_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_account_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 4, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 6, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 7, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 8, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 9, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 10, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 11, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 12, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 13, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 15, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 17, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 18, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 19, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "INT64", "index": 20, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 21, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 22, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 23, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "INT64", "index": 24, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "INT64", "index": 25, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 26, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 27, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 30, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "INT64", "index": 33, "name": "priority", "comment": null}, "region": {"type": "INT64", "index": 34, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 35, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 36, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 37, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 38, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 39, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 40, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 41, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 42, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 43, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 44, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 45, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 46, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 47, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 48, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 49, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 50, "name": "viewer_comments", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 56, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15232, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.account_report"}, "source.reddit_ads_source.reddit_ads.ad_conversions_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_conversions", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "DATETIME", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "ad_id": {"type": "INT64", "index": 3, "name": "ad_id", "comment": null}, "avg_value": {"type": "FLOAT64", "index": 4, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "INT64", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "INT64", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "INT64", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "DATE", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "STRING", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "INT64", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "FLOAT64", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "INT64", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "INT64", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "INT64", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 8, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 912, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.ad_conversions_report"}, "source.reddit_ads_source.reddit_ads.ad": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "click_url": {"type": "STRING", "index": 6, "name": "click_url", "comment": null}, "configured_status": {"type": "STRING", "index": 7, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 8, "name": "effective_status", "comment": null}, "is_processing": {"type": "BOOL", "index": 9, "name": "is_processing", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "post_id": {"type": "STRING", "index": 11, "name": "post_id", "comment": null}, "post_url": {"type": "INT64", "index": 12, "name": "post_url", "comment": null}, "preview_expiry": {"type": "INT64", "index": 13, "name": "preview_expiry", "comment": null}, "preview_url": {"type": "INT64", "index": 14, "name": "preview_url", "comment": null}, "rejection_reason": {"type": "INT64", "index": 15, "name": "rejection_reason", "comment": null}, "search_term": {"type": "INT64", "index": 16, "name": "search_term", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1243, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.ad"}, "source.reddit_ads_source.reddit_ads.ad_group_conversions_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_group_conversions", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "DATETIME", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "avg_value": {"type": "FLOAT64", "index": 4, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "INT64", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "INT64", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "INT64", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "DATE", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "STRING", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "INT64", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "FLOAT64", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "INT64", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "INT64", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "INT64", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 8, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 912, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.ad_group_conversions_report"}, "source.reddit_ads_source.reddit_ads.ad_group": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_group_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "id": {"type": "INT64", "index": 2, "name": "id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "bid_strategy": {"type": "STRING", "index": 4, "name": "bid_strategy", "comment": null}, "bid_value": {"type": "INT64", "index": 5, "name": "bid_value", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "configured_status": {"type": "STRING", "index": 7, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 8, "name": "effective_status", "comment": null}, "end_time": {"type": "DATETIME", "index": 9, "name": "end_time", "comment": null}, "expand_targeting": {"type": "BOOL", "index": 10, "name": "expand_targeting", "comment": null}, "goal_type": {"type": "STRING", "index": 11, "name": "goal_type", "comment": null}, "goal_value": {"type": "INT64", "index": 12, "name": "goal_value", "comment": null}, "is_processing": {"type": "BOOL", "index": 13, "name": "is_processing", "comment": null}, "name": {"type": "STRING", "index": 14, "name": "name", "comment": null}, "optimization_strategy_type": {"type": "INT64", "index": 15, "name": "optimization_strategy_type", "comment": null}, "start_time": {"type": "DATETIME", "index": 16, "name": "start_time", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 19, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2325, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.ad_group"}, "source.reddit_ads_source.reddit_ads.ad_group_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_group_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "INT64", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "INT64", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "INT64", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "INT64", "index": 34, "name": "priority", "comment": null}, "region": {"type": "INT64", "index": 35, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 28000, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.ad_group_report"}, "source.reddit_ads_source.reddit_ads.ad_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "INT64", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "INT64", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "INT64", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "INT64", "index": 34, "name": "priority", "comment": null}, "region": {"type": "INT64", "index": 35, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 28000, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.ad_report"}, "source.reddit_ads_source.reddit_ads.campaign_conversions_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_campaign_conversions", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "DATETIME", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 2, "name": "account_id", "comment": null}, "avg_value": {"type": "FLOAT64", "index": 3, "name": "avg_value", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "INT64", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "INT64", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "INT64", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "DATE", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "STRING", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "INT64", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "FLOAT64", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "INT64", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "INT64", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "INT64", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 8, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 912, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.campaign_conversions_report"}, "source.reddit_ads_source.reddit_ads.campaign": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_campaign_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 3, "name": "account_id", "comment": null}, "configured_status": {"type": "STRING", "index": 4, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 5, "name": "effective_status", "comment": null}, "funding_instrument_id": {"type": "INT64", "index": 6, "name": "funding_instrument_id", "comment": null}, "is_processing": {"type": "BOOL", "index": 7, "name": "is_processing", "comment": null}, "name": {"type": "STRING", "index": 8, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 9, "name": "objective", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 714, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.campaign"}, "source.reddit_ads_source.reddit_ads.campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "reddit_ads_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "INT64", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "INT64", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "INT64", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "INT64", "index": 34, "name": "priority", "comment": null}, "region": {"type": "INT64", "index": 35, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 79, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 22120, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.campaign_report"}, "source.snapchat_ads_source.snapchat_ads.ad_account_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_ad_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 111, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10767, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_account_history"}, "source.snapchat_ads_source.snapchat_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 2, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "STRING", "index": 3, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 320, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 55360, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_history"}, "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_ad_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "STRING", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 2, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "INT64", "index": 4, "name": "spend", "comment": null}, "swipes": {"type": "INT64", "index": 5, "name": "swipes", "comment": null}, "conversion_purchases_value": {"type": "FLOAT64", "index": 6, "name": "conversion_purchases_value", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 7, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 8, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 9, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 10, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 11, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 12, "name": "conversion_purchases", "comment": null}, "conversion_save": {"type": "INT64", "index": 13, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 14, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 15, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 16, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 17, "name": "conversion_view_content", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1212, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 201176, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_hourly_report"}, "source.snapchat_ads_source.snapchat_ads.ad_squad_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_ad_squad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 228, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 30780, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_history"}, "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_ad_squad_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_squad_id": {"type": "STRING", "index": 1, "name": "ad_squad_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "FLOAT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3580, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report"}, "source.snapchat_ads_source.snapchat_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 58, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7830, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_history"}, "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_campaign_hourly_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "STRING", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "DATETIME", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "INT64", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "INT64", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "FLOAT64", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "INT64", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "INT64", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3580, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report"}, "source.snapchat_ads_source.snapchat_ads.creative_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_creative_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "STRING", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "web_view_url": {"type": "STRING", "index": 4, "name": "web_view_url", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 119, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 18802, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_history"}, "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "snapchat_creative_url_tag_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"creative_id": {"type": "STRING", "index": 1, "name": "creative_id", "comment": null}, "key": {"type": "STRING", "index": 2, "name": "key", "comment": null}, "value": {"type": "STRING", "index": 3, "name": "value", "comment": null}, "updated_at": {"type": "STRING", "index": 4, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 383, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 41413, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history"}, "source.tiktok_ads_source.tiktok_ads.ad_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "tiktok_ad_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "INT64", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "STRING", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "STRING", "index": 8, "name": "call_to_action", "comment": null}, "secondary_status": {"type": "STRING", "index": 9, "name": "secondary_status", "comment": null}, "operation_status": {"type": "STRING", "index": 10, "name": "operation_status", "comment": null}, "ad_text": {"type": "STRING", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "STRING", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "deeplink": {"type": "INT64", "index": 14, "name": "deeplink", "comment": null}, "landing_page_url": {"type": "STRING", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "STRING", "index": 16, "name": "display_name", "comment": null}, "profile_image_url": {"type": "INT64", "index": 17, "name": "profile_image_url", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "INT64", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "BOOL", "index": 21, "name": "is_aco", "comment": null}, "creative_authorized": {"type": "BOOL", "index": 22, "name": "creative_authorized", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "STRING", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1072, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_history"}, "source.tiktok_ads_source.tiktok_ads.ad_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "tiktok_ad_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"AD_ID": {"type": "INT64", "index": 1, "name": "AD_ID", "comment": null}, "STAT_TIME_HOUR": {"type": "DATETIME", "index": 2, "name": "STAT_TIME_HOUR", "comment": null}, "COST_PER_CONVERSION": {"type": "FLOAT64", "index": 3, "name": "COST_PER_CONVERSION", "comment": null}, "CPC": {"type": "FLOAT64", "index": 4, "name": "CPC", "comment": null}, "VIDEO_PLAY_ACTIONS": {"type": "INT64", "index": 5, "name": "VIDEO_PLAY_ACTIONS", "comment": null}, "CONVERSION_RATE": {"type": "INT64", "index": 6, "name": "CONVERSION_RATE", "comment": null}, "VIDEO_VIEWS_P_75": {"type": "INT64", "index": 7, "name": "VIDEO_VIEWS_P_75", "comment": null}, "RESULT": {"type": "INT64", "index": 8, "name": "RESULT", "comment": null}, "VIDEO_VIEWS_P_50": {"type": "INT64", "index": 9, "name": "VIDEO_VIEWS_P_50", "comment": null}, "IMPRESSIONS": {"type": "INT64", "index": 10, "name": "IMPRESSIONS", "comment": null}, "COMMENTS": {"type": "INT64", "index": 11, "name": "COMMENTS", "comment": null}, "REAL_TIME_COST_PER_RESULT": {"type": "FLOAT64", "index": 12, "name": "REAL_TIME_COST_PER_RESULT", "comment": null}, "CONVERSION": {"type": "INT64", "index": 13, "name": "CONVERSION", "comment": null}, "REAL_TIME_RESULT": {"type": "INT64", "index": 14, "name": "REAL_TIME_RESULT", "comment": null}, "VIDEO_VIEWS_P_100": {"type": "INT64", "index": 15, "name": "VIDEO_VIEWS_P_100", "comment": null}, "SHARES": {"type": "INT64", "index": 16, "name": "SHARES", "comment": null}, "REAL_TIME_CONVERSION_RATE": {"type": "INT64", "index": 17, "name": "REAL_TIME_CONVERSION_RATE", "comment": null}, "COST_PER_SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 18, "name": "COST_PER_SECONDARY_GOAL_RESULT", "comment": null}, "SECONDARY_GOAL_RESULT_RATE": {"type": "STRING", "index": 19, "name": "SECONDARY_GOAL_RESULT_RATE", "comment": null}, "CLICKS": {"type": "INT64", "index": 20, "name": "CLICKS", "comment": null}, "COST_PER_1000_REACHED": {"type": "INT64", "index": 21, "name": "COST_PER_1000_REACHED", "comment": null}, "VIDEO_VIEWS_P_25": {"type": "INT64", "index": 22, "name": "VIDEO_VIEWS_P_25", "comment": null}, "REACH": {"type": "INT64", "index": 23, "name": "REACH", "comment": null}, "REAL_TIME_COST_PER_CONVERSION": {"type": "FLOAT64", "index": 24, "name": "REAL_TIME_COST_PER_CONVERSION", "comment": null}, "PROFILE_VISITS_RATE": {"type": "INT64", "index": 25, "name": "PROFILE_VISITS_RATE", "comment": null}, "AVERAGE_VIDEO_PLAY": {"type": "FLOAT64", "index": 26, "name": "AVERAGE_VIDEO_PLAY", "comment": null}, "PROFILE_VISITS": {"type": "INT64", "index": 27, "name": "PROFILE_VISITS", "comment": null}, "CPM": {"type": "FLOAT64", "index": 28, "name": "CPM", "comment": null}, "CTR": {"type": "FLOAT64", "index": 29, "name": "CTR", "comment": null}, "VIDEO_WATCHED_2_S": {"type": "INT64", "index": 30, "name": "VIDEO_WATCHED_2_S", "comment": null}, "FOLLOWS": {"type": "INT64", "index": 31, "name": "FOLLOWS", "comment": null}, "RESULT_RATE": {"type": "INT64", "index": 32, "name": "RESULT_RATE", "comment": null}, "VIDEO_WATCHED_6_S": {"type": "INT64", "index": 33, "name": "VIDEO_WATCHED_6_S", "comment": null}, "SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 34, "name": "SECONDARY_GOAL_RESULT", "comment": null}, "COST_PER_RESULT": {"type": "FLOAT64", "index": 35, "name": "COST_PER_RESULT", "comment": null}, "AVERAGE_VIDEO_PLAY_PER_USER": {"type": "INT64", "index": 36, "name": "AVERAGE_VIDEO_PLAY_PER_USER", "comment": null}, "REAL_TIME_RESULT_RATE": {"type": "INT64", "index": 37, "name": "REAL_TIME_RESULT_RATE", "comment": null}, "SPEND": {"type": "FLOAT64", "index": 38, "name": "SPEND", "comment": null}, "LIKES": {"type": "INT64", "index": 39, "name": "LIKES", "comment": null}, "REAL_TIME_CONVERSION": {"type": "INT64", "index": 40, "name": "REAL_TIME_CONVERSION", "comment": null}, "TOTAL_PURCHASE_VALUE": {"type": "FLOAT64", "index": 41, "name": "TOTAL_PURCHASE_VALUE", "comment": null}, "TOTAL_SALES_LEAD_VALUE": {"type": "FLOAT64", "index": 42, "name": "TOTAL_SALES_LEAD_VALUE", "comment": null}, "_FIVETRAN_SYNCED": {"type": "STRING", "index": 43, "name": "_FIVETRAN_SYNCED", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1384, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_report_hourly"}, "source.tiktok_ads_source.tiktok_ads.adgroup_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "tiktok_adgroup_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"adgroup_id": {"type": "INT64", "index": 1, "name": "adgroup_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 5, "name": "create_time", "comment": null}, "adgroup_name": {"type": "STRING", "index": 6, "name": "adgroup_name", "comment": null}, "placement_type": {"type": "STRING", "index": 7, "name": "placement_type", "comment": null}, "profile_image": {"type": "INT64", "index": 8, "name": "profile_image", "comment": null}, "landing_page_url": {"type": "INT64", "index": 9, "name": "landing_page_url", "comment": null}, "display_name": {"type": "INT64", "index": 10, "name": "display_name", "comment": null}, "app_type": {"type": "INT64", "index": 11, "name": "app_type", "comment": null}, "app_download_url": {"type": "INT64", "index": 12, "name": "app_download_url", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "optimization_event": {"type": "STRING", "index": 14, "name": "optimization_event", "comment": null}, "secondary_optimization_event": {"type": "INT64", "index": 15, "name": "secondary_optimization_event", "comment": null}, "creative_material_mode": {"type": "STRING", "index": 16, "name": "creative_material_mode", "comment": null}, "audience_type": {"type": "INT64", "index": 17, "name": "audience_type", "comment": null}, "gender": {"type": "STRING", "index": 18, "name": "gender", "comment": null}, "min_android_version": {"type": "INT64", "index": 19, "name": "min_android_version", "comment": null}, "min_ios_version": {"type": "INT64", "index": 20, "name": "min_ios_version", "comment": null}, "budget_mode": {"type": "STRING", "index": 21, "name": "budget_mode", "comment": null}, "schedule_type": {"type": "STRING", "index": 22, "name": "schedule_type", "comment": null}, "dayparting": {"type": "INT64", "index": 23, "name": "dayparting", "comment": null}, "optimization_goal": {"type": "STRING", "index": 24, "name": "optimization_goal", "comment": null}, "cpv_video_duration": {"type": "INT64", "index": 25, "name": "cpv_video_duration", "comment": null}, "pacing": {"type": "STRING", "index": 26, "name": "pacing", "comment": null}, "billing_event": {"type": "STRING", "index": 27, "name": "billing_event", "comment": null}, "bid_type": {"type": "STRING", "index": 28, "name": "bid_type", "comment": null}, "deep_bid_type": {"type": "INT64", "index": 29, "name": "deep_bid_type", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 30, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 31, "name": "click_tracking_url", "comment": null}, "secondary_status": {"type": "STRING", "index": 32, "name": "secondary_status", "comment": null}, "operation_status": {"type": "STRING", "index": 33, "name": "operation_status", "comment": null}, "statistic_type": {"type": "INT64", "index": 34, "name": "statistic_type", "comment": null}, "video_download": {"type": "STRING", "index": 35, "name": "video_download", "comment": null}, "open_url": {"type": "INT64", "index": 36, "name": "open_url", "comment": null}, "open_url_type": {"type": "INT64", "index": 37, "name": "open_url_type", "comment": null}, "fallback_type": {"type": "INT64", "index": 38, "name": "fallback_type", "comment": null}, "budget": {"type": "INT64", "index": 39, "name": "budget", "comment": null}, "bid_price": {"type": "INT64", "index": 40, "name": "bid_price", "comment": null}, "conversion_bid_price": {"type": "INT64", "index": 41, "name": "conversion_bid_price", "comment": null}, "deep_cpa_bid": {"type": "INT64", "index": 42, "name": "deep_cpa_bid", "comment": null}, "schedule_start_time": {"type": "STRING", "index": 43, "name": "schedule_start_time", "comment": null}, "schedule_end_time": {"type": "STRING", "index": 44, "name": "schedule_end_time", "comment": null}, "app_id": {"type": "INT64", "index": 45, "name": "app_id", "comment": null}, "pixel_id": {"type": "INT64", "index": 46, "name": "pixel_id", "comment": null}, "inventory_filter_enabled": {"type": "BOOL", "index": 47, "name": "inventory_filter_enabled", "comment": null}, "is_hfss": {"type": "BOOL", "index": 48, "name": "is_hfss", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 49, "name": "is_new_structure", "comment": null}, "category": {"type": "INT64", "index": 50, "name": "category", "comment": null}, "is_comment_disable": {"type": "INT64", "index": 51, "name": "is_comment_disable", "comment": null}, "skip_learning_phase": {"type": "INT64", "index": 52, "name": "skip_learning_phase", "comment": null}, "frequency": {"type": "INT64", "index": 53, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "INT64", "index": 54, "name": "frequency_schedule", "comment": null}, "action_days": {"type": "INT64", "index": 55, "name": "action_days", "comment": null}, "audience": {"type": "STRING", "index": 56, "name": "audience", "comment": null}, "excluded_audience": {"type": "STRING", "index": 57, "name": "excluded_audience", "comment": null}, "location": {"type": "STRING", "index": 58, "name": "location", "comment": null}, "interest_category_v_2": {"type": "STRING", "index": 59, "name": "interest_category_v_2", "comment": null}, "pangle_block_app_list_id": {"type": "STRING", "index": 60, "name": "pangle_block_app_list_id", "comment": null}, "action_categories": {"type": "STRING", "index": 61, "name": "action_categories", "comment": null}, "placements": {"type": "STRING", "index": 62, "name": "placements", "comment": null}, "keywords": {"type": "INT64", "index": 63, "name": "keywords", "comment": null}, "age_groups": {"type": "STRING", "index": 64, "name": "age_groups", "comment": null}, "languages": {"type": "STRING", "index": 65, "name": "languages", "comment": null}, "operating_systems": {"type": "STRING", "index": 66, "name": "operating_systems", "comment": null}, "network_types": {"type": "STRING", "index": 67, "name": "network_types", "comment": null}, "carriers": {"type": "STRING", "index": 68, "name": "carriers", "comment": null}, "video_actions": {"type": "STRING", "index": 69, "name": "video_actions", "comment": null}, "package": {"type": "INT64", "index": 70, "name": "package", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 71, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2527, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_history"}, "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "tiktok_adgroup_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ADGROUP_ID": {"type": "INT64", "index": 1, "name": "ADGROUP_ID", "comment": null}, "STAT_TIME_HOUR": {"type": "DATETIME", "index": 2, "name": "STAT_TIME_HOUR", "comment": null}, "COST_PER_CONVERSION": {"type": "FLOAT64", "index": 3, "name": "COST_PER_CONVERSION", "comment": null}, "CPC": {"type": "FLOAT64", "index": 4, "name": "CPC", "comment": null}, "VIDEO_PLAY_ACTIONS": {"type": "INT64", "index": 5, "name": "VIDEO_PLAY_ACTIONS", "comment": null}, "CONVERSION_RATE": {"type": "INT64", "index": 6, "name": "CONVERSION_RATE", "comment": null}, "VIDEO_VIEWS_P_75": {"type": "INT64", "index": 7, "name": "VIDEO_VIEWS_P_75", "comment": null}, "RESULT": {"type": "INT64", "index": 8, "name": "RESULT", "comment": null}, "VIDEO_VIEWS_P_50": {"type": "INT64", "index": 9, "name": "VIDEO_VIEWS_P_50", "comment": null}, "IMPRESSIONS": {"type": "INT64", "index": 10, "name": "IMPRESSIONS", "comment": null}, "COMMENTS": {"type": "INT64", "index": 11, "name": "COMMENTS", "comment": null}, "REAL_TIME_COST_PER_RESULT": {"type": "FLOAT64", "index": 12, "name": "REAL_TIME_COST_PER_RESULT", "comment": null}, "CONVERSION": {"type": "INT64", "index": 13, "name": "CONVERSION", "comment": null}, "REAL_TIME_RESULT": {"type": "INT64", "index": 14, "name": "REAL_TIME_RESULT", "comment": null}, "VIDEO_VIEWS_P_100": {"type": "INT64", "index": 15, "name": "VIDEO_VIEWS_P_100", "comment": null}, "SHARES": {"type": "INT64", "index": 16, "name": "SHARES", "comment": null}, "REAL_TIME_CONVERSION_RATE": {"type": "FLOAT64", "index": 17, "name": "REAL_TIME_CONVERSION_RATE", "comment": null}, "COST_PER_SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 18, "name": "COST_PER_SECONDARY_GOAL_RESULT", "comment": null}, "SECONDARY_GOAL_RESULT_RATE": {"type": "STRING", "index": 19, "name": "SECONDARY_GOAL_RESULT_RATE", "comment": null}, "CLICKS": {"type": "INT64", "index": 20, "name": "CLICKS", "comment": null}, "COST_PER_1000_REACHED": {"type": "FLOAT64", "index": 21, "name": "COST_PER_1000_REACHED", "comment": null}, "VIDEO_VIEWS_P_25": {"type": "INT64", "index": 22, "name": "VIDEO_VIEWS_P_25", "comment": null}, "REACH": {"type": "INT64", "index": 23, "name": "REACH", "comment": null}, "REAL_TIME_COST_PER_CONVERSION": {"type": "FLOAT64", "index": 24, "name": "REAL_TIME_COST_PER_CONVERSION", "comment": null}, "PROFILE_VISITS_RATE": {"type": "INT64", "index": 25, "name": "PROFILE_VISITS_RATE", "comment": null}, "AVERAGE_VIDEO_PLAY": {"type": "FLOAT64", "index": 26, "name": "AVERAGE_VIDEO_PLAY", "comment": null}, "PROFILE_VISITS": {"type": "INT64", "index": 27, "name": "PROFILE_VISITS", "comment": null}, "CPM": {"type": "FLOAT64", "index": 28, "name": "CPM", "comment": null}, "CTR": {"type": "FLOAT64", "index": 29, "name": "CTR", "comment": null}, "VIDEO_WATCHED_2_S": {"type": "INT64", "index": 30, "name": "VIDEO_WATCHED_2_S", "comment": null}, "FOLLOWS": {"type": "INT64", "index": 31, "name": "FOLLOWS", "comment": null}, "RESULT_RATE": {"type": "FLOAT64", "index": 32, "name": "RESULT_RATE", "comment": null}, "VIDEO_WATCHED_6_S": {"type": "INT64", "index": 33, "name": "VIDEO_WATCHED_6_S", "comment": null}, "SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 34, "name": "SECONDARY_GOAL_RESULT", "comment": null}, "COST_PER_RESULT": {"type": "FLOAT64", "index": 35, "name": "COST_PER_RESULT", "comment": null}, "AVERAGE_VIDEO_PLAY_PER_USER": {"type": "FLOAT64", "index": 36, "name": "AVERAGE_VIDEO_PLAY_PER_USER", "comment": null}, "REAL_TIME_RESULT_RATE": {"type": "FLOAT64", "index": 37, "name": "REAL_TIME_RESULT_RATE", "comment": null}, "SPEND": {"type": "FLOAT64", "index": 38, "name": "SPEND", "comment": null}, "LIKES": {"type": "INT64", "index": 39, "name": "LIKES", "comment": null}, "REAL_TIME_CONVERSION": {"type": "INT64", "index": 40, "name": "REAL_TIME_CONVERSION", "comment": null}, "TOTAL_PURCHASE_VALUE": {"type": "FLOAT64", "index": 41, "name": "TOTAL_PURCHASE_VALUE", "comment": null}, "TOTAL_SALES_LEAD_VALUE": {"type": "FLOAT64", "index": 42, "name": "TOTAL_SALES_LEAD_VALUE", "comment": null}, "_FIVETRAN_SYNCED": {"type": "STRING", "index": 43, "name": "_FIVETRAN_SYNCED", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1384, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly"}, "source.tiktok_ads_source.tiktok_ads.advertiser": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "tiktok_advertiser_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 2, "name": "name", "comment": null}, "address": {"type": "STRING", "index": 3, "name": "address", "comment": null}, "company": {"type": "STRING", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "INT64", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "description": {"type": "STRING", "index": 8, "name": "description", "comment": null}, "email": {"type": "STRING", "index": 9, "name": "email", "comment": null}, "industry": {"type": "INT64", "index": 10, "name": "industry", "comment": null}, "license_no": {"type": "INT64", "index": 11, "name": "license_no", "comment": null}, "license_url": {"type": "INT64", "index": 12, "name": "license_url", "comment": null}, "promotion_area": {"type": "INT64", "index": 13, "name": "promotion_area", "comment": null}, "rejected_reason": {"type": "INT64", "index": 14, "name": "rejected_reason", "comment": null}, "role": {"type": "STRING", "index": 15, "name": "role", "comment": null}, "status": {"type": "STRING", "index": 16, "name": "status", "comment": null}, "telephone_number": {"type": "STRING", "index": 17, "name": "telephone_number", "comment": null}, "timezone": {"type": "STRING", "index": 18, "name": "timezone", "comment": null}, "balance": {"type": "FLOAT64", "index": 19, "name": "balance", "comment": null}, "create_time": {"type": "STRING", "index": 20, "name": "create_time", "comment": null}, "language": {"type": "STRING", "index": 21, "name": "language", "comment": null}, "cellphone_number": {"type": "STRING", "index": 22, "name": "cellphone_number", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 23, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 463, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.advertiser"}, "source.tiktok_ads_source.tiktok_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "tiktok_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_id": {"type": "INT64", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "STRING", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "INT64", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "INT64", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "STRING", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "STRING", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "STRING", "index": 8, "name": "call_to_action", "comment": null}, "secondary_status": {"type": "STRING", "index": 9, "name": "secondary_status", "comment": null}, "operation_status": {"type": "STRING", "index": 10, "name": "operation_status", "comment": null}, "ad_text": {"type": "STRING", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "STRING", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "INT64", "index": 13, "name": "app_name", "comment": null}, "deeplink": {"type": "INT64", "index": 14, "name": "deeplink", "comment": null}, "landing_page_url": {"type": "STRING", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "STRING", "index": 16, "name": "display_name", "comment": null}, "profile_image_url": {"type": "INT64", "index": 17, "name": "profile_image_url", "comment": null}, "impression_tracking_url": {"type": "INT64", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "INT64", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "INT64", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "BOOL", "index": 21, "name": "is_aco", "comment": null}, "creative_authorized": {"type": "BOOL", "index": 22, "name": "creative_authorized", "comment": null}, "is_new_structure": {"type": "BOOL", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "STRING", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1072, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_history"}, "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "tiktok_campaign_report_hourly_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"CAMPAIGN_ID": {"type": "INT64", "index": 1, "name": "CAMPAIGN_ID", "comment": null}, "STAT_TIME_HOUR": {"type": "DATETIME", "index": 2, "name": "STAT_TIME_HOUR", "comment": null}, "COST_PER_CONVERSION": {"type": "FLOAT64", "index": 3, "name": "COST_PER_CONVERSION", "comment": null}, "CPC": {"type": "FLOAT64", "index": 4, "name": "CPC", "comment": null}, "VIDEO_PLAY_ACTIONS": {"type": "INT64", "index": 5, "name": "VIDEO_PLAY_ACTIONS", "comment": null}, "CONVERSION_RATE": {"type": "INT64", "index": 6, "name": "CONVERSION_RATE", "comment": null}, "VIDEO_VIEWS_P_75": {"type": "INT64", "index": 7, "name": "VIDEO_VIEWS_P_75", "comment": null}, "RESULT": {"type": "INT64", "index": 8, "name": "RESULT", "comment": null}, "VIDEO_VIEWS_P_50": {"type": "INT64", "index": 9, "name": "VIDEO_VIEWS_P_50", "comment": null}, "IMPRESSIONS": {"type": "INT64", "index": 10, "name": "IMPRESSIONS", "comment": null}, "COMMENTS": {"type": "INT64", "index": 11, "name": "COMMENTS", "comment": null}, "REAL_TIME_COST_PER_RESULT": {"type": "FLOAT64", "index": 12, "name": "REAL_TIME_COST_PER_RESULT", "comment": null}, "CONVERSION": {"type": "INT64", "index": 13, "name": "CONVERSION", "comment": null}, "REAL_TIME_RESULT": {"type": "INT64", "index": 14, "name": "REAL_TIME_RESULT", "comment": null}, "VIDEO_VIEWS_P_100": {"type": "INT64", "index": 15, "name": "VIDEO_VIEWS_P_100", "comment": null}, "SHARES": {"type": "INT64", "index": 16, "name": "SHARES", "comment": null}, "REAL_TIME_CONVERSION_RATE": {"type": "FLOAT64", "index": 17, "name": "REAL_TIME_CONVERSION_RATE", "comment": null}, "COST_PER_SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 18, "name": "COST_PER_SECONDARY_GOAL_RESULT", "comment": null}, "SECONDARY_GOAL_RESULT_RATE": {"type": "STRING", "index": 19, "name": "SECONDARY_GOAL_RESULT_RATE", "comment": null}, "CLICKS": {"type": "INT64", "index": 20, "name": "CLICKS", "comment": null}, "COST_PER_1000_REACHED": {"type": "FLOAT64", "index": 21, "name": "COST_PER_1000_REACHED", "comment": null}, "VIDEO_VIEWS_P_25": {"type": "INT64", "index": 22, "name": "VIDEO_VIEWS_P_25", "comment": null}, "REACH": {"type": "INT64", "index": 23, "name": "REACH", "comment": null}, "REAL_TIME_COST_PER_CONVERSION": {"type": "FLOAT64", "index": 24, "name": "REAL_TIME_COST_PER_CONVERSION", "comment": null}, "PROFILE_VISITS_RATE": {"type": "INT64", "index": 25, "name": "PROFILE_VISITS_RATE", "comment": null}, "AVERAGE_VIDEO_PLAY": {"type": "FLOAT64", "index": 26, "name": "AVERAGE_VIDEO_PLAY", "comment": null}, "PROFILE_VISITS": {"type": "INT64", "index": 27, "name": "PROFILE_VISITS", "comment": null}, "CPM": {"type": "FLOAT64", "index": 28, "name": "CPM", "comment": null}, "CTR": {"type": "FLOAT64", "index": 29, "name": "CTR", "comment": null}, "VIDEO_WATCHED_2_S": {"type": "INT64", "index": 30, "name": "VIDEO_WATCHED_2_S", "comment": null}, "FOLLOWS": {"type": "INT64", "index": 31, "name": "FOLLOWS", "comment": null}, "RESULT_RATE": {"type": "FLOAT64", "index": 32, "name": "RESULT_RATE", "comment": null}, "VIDEO_WATCHED_6_S": {"type": "INT64", "index": 33, "name": "VIDEO_WATCHED_6_S", "comment": null}, "SECONDARY_GOAL_RESULT": {"type": "STRING", "index": 34, "name": "SECONDARY_GOAL_RESULT", "comment": null}, "COST_PER_RESULT": {"type": "FLOAT64", "index": 35, "name": "COST_PER_RESULT", "comment": null}, "AVERAGE_VIDEO_PLAY_PER_USER": {"type": "FLOAT64", "index": 36, "name": "AVERAGE_VIDEO_PLAY_PER_USER", "comment": null}, "REAL_TIME_RESULT_RATE": {"type": "FLOAT64", "index": 37, "name": "REAL_TIME_RESULT_RATE", "comment": null}, "SPEND": {"type": "FLOAT64", "index": 38, "name": "SPEND", "comment": null}, "LIKES": {"type": "INT64", "index": 39, "name": "LIKES", "comment": null}, "REAL_TIME_CONVERSION": {"type": "INT64", "index": 40, "name": "REAL_TIME_CONVERSION", "comment": null}, "TOTAL_PURCHASE_VALUE": {"type": "FLOAT64", "index": 41, "name": "TOTAL_PURCHASE_VALUE", "comment": null}, "TOTAL_SALES_LEAD_VALUE": {"type": "FLOAT64", "index": 42, "name": "TOTAL_SALES_LEAD_VALUE", "comment": null}, "_FIVETRAN_SYNCED": {"type": "STRING", "index": 43, "name": "_FIVETRAN_SYNCED", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1384, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly"}, "source.twitter_ads_source.twitter_ads.account_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_account_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "business_id": {"type": "INT64", "index": 3, "name": "business_id", "comment": null}, "business_name": {"type": "INT64", "index": 4, "name": "business_name", "comment": null}, "created_at": {"type": "STRING", "index": 5, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "id": {"type": "STRING", "index": 7, "name": "id", "comment": null}, "industry_type": {"type": "INT64", "index": 8, "name": "industry_type", "comment": null}, "name": {"type": "STRING", "index": 9, "name": "name", "comment": null}, "salt": {"type": "INT64", "index": 10, "name": "salt", "comment": null}, "timezone": {"type": "STRING", "index": 11, "name": "timezone", "comment": null}, "timezone_switch_at": {"type": "STRING", "index": 12, "name": "timezone_switch_at", "comment": null}, "updated_at": {"type": "STRING", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 159, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.account_history"}, "source.twitter_ads_source.twitter_ads.campaign_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_campaign_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "INT64", "index": 5, "name": "daily_budget_amount_local_micro", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "duration_in_days": {"type": "INT64", "index": 7, "name": "duration_in_days", "comment": null}, "end_time": {"type": "STRING", "index": 8, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 9, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "INT64", "index": 10, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 11, "name": "funding_instrument_id", "comment": null}, "id": {"type": "STRING", "index": 12, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 13, "name": "name", "comment": null}, "servable": {"type": "BOOL", "index": 14, "name": "servable", "comment": null}, "standard_delivery": {"type": "BOOL", "index": 15, "name": "standard_delivery", "comment": null}, "start_time": {"type": "STRING", "index": 16, "name": "start_time", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 17, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 18, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 16, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2971, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.campaign_history"}, "source.twitter_ads_source.twitter_ads.campaign_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_campaign_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "DATETIME", "index": 3, "name": "date", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8091, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.campaign_report"}, "source.twitter_ads_source.twitter_ads.line_item_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_line_item_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_domain": {"type": "STRING", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "INT64", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "BOOL", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "INT64", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "STRING", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "STRING", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "STRING", "index": 8, "name": "charge_by", "comment": null}, "created_at": {"type": "STRING", "index": 9, "name": "created_at", "comment": null}, "creative_source": {"type": "STRING", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "STRING", "index": 11, "name": "currency", "comment": null}, "deleted": {"type": "BOOL", "index": 12, "name": "deleted", "comment": null}, "end_time": {"type": "INT64", "index": 13, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 14, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 15, "name": "id", "comment": null}, "name": {"type": "STRING", "index": 16, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "STRING", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "INT64", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "STRING", "index": 20, "name": "product_type", "comment": null}, "start_time": {"type": "INT64", "index": 21, "name": "start_time", "comment": null}, "target_cpa_local_micro": {"type": "INT64", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "STRING", "index": 24, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2973, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.line_item_history"}, "source.twitter_ads_source.twitter_ads.line_item_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_line_item_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATETIME", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "STRING", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "INT64", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "INT64", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "INT64", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "INT64", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "INT64", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "INT64", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "INT64", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "INT64", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "INT64", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "INT64", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "INT64", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "INT64", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "INT64", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "INT64", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "INT64", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "INT64", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "INT64", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "INT64", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "INT64", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "INT64", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "INT64", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "INT64", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "INT64", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "INT64", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "INT64", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "INT64", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "INT64", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "INT64", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "INT64", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "INT64", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "INT64", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "INT64", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "INT64", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "INT64", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "INT64", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "INT64", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "INT64", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "INT64", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "INT64", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "INT64", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "INT64", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "INT64", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "INT64", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "INT64", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "INT64", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "INT64", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "INT64", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "INT64", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "INT64", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "INT64", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "INT64", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "INT64", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "INT64", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "INT64", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "INT64", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "INT64", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "INT64", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "INT64", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "INT64", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "INT64", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "INT64", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "INT64", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "INT64", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "INT64", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "INT64", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "INT64", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "INT64", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "INT64", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "INT64", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "INT64", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "INT64", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "INT64", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "INT64", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "INT64", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "INT64", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "INT64", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "INT64", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "INT64", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "INT64", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "INT64", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "INT64", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "INT64", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "INT64", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "INT64", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "INT64", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "INT64", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "INT64", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "INT64", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "INT64", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "INT64", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "INT64", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "INT64", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "INT64", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "INT64", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "INT64", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "INT64", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "INT64", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "INT64", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "INT64", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "INT64", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "INT64", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "INT64", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "INT64", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "INT64", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "INT64", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity": {"type": "INT64", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount": {"type": "INT64", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "INT64", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "INT64", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "INT64", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "INT64", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity": {"type": "INT64", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "INT64", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "INT64", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity": {"type": "INT64", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount": {"type": "INT64", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "INT64", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "INT64", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "INT64", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "INT64", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "INT64", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "INT64", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "INT64", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "INT64", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "INT64", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "INT64", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "INT64", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "INT64", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "INT64", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_quantity": {"type": "INT64", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_amount": {"type": "INT64", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "INT64", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "INT64", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "INT64", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "INT64", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "INT64", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "INT64", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "INT64", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "INT64", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "INT64", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "INT64", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "INT64", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "INT64", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "INT64", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "INT64", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "INT64", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "INT64", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "INT64", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "INT64", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "INT64", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "INT64", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "INT64", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "INT64", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quantity": {"type": "INT64", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amount": {"type": "INT64", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "INT64", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "INT64", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "INT64", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "INT64", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "INT64", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "INT64", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "INT64", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "INT64", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "INT64", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "INT64", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "INT64", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "INT64", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "INT64", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "INT64", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "INT64", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "INT64", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "INT64", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "INT64", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "INT64", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "INT64", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "INT64", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "INT64", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "INT64", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "INT64", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "INT64", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "INT64", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "INT64", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "INT64", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "INT64", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "INT64", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "INT64", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "INT64", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "INT64", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "INT64", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "INT64", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "INT64", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "INT64", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "INT64", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "INT64", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "INT64", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "INT64", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "INT64", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "INT64", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "INT64", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "INT64", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "INT64", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "INT64", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "INT64", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "INT64", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "INT64", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "INT64", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "INT64", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "INT64", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "INT64", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "INT64", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "INT64", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "INT64", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "INT64", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "INT64", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "INT64", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "INT64", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "INT64", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "INT64", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "INT64", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "INT64", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "INT64", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "INT64", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "INT64", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "INT64", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "INT64", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "INT64", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "INT64", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "INT64", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "INT64", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "INT64", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "INT64", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "INT64", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "INT64", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "INT64", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "INT64", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "INT64", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "INT64", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "INT64", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "INT64", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "INT64", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "INT64", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "INT64", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "INT64", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "INT64", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "INT64", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "INT64", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8084, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.line_item_report"}, "source.twitter_ads_source.twitter_ads.promoted_tweet_history": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_promoted_tweet_history_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 2, "name": "approval_status", "comment": null}, "created_at": {"type": "STRING", "index": 3, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 4, "name": "deleted", "comment": null}, "entity_status": {"type": "STRING", "index": 5, "name": "entity_status", "comment": null}, "id": {"type": "STRING", "index": 6, "name": "id", "comment": null}, "line_item_id": {"type": "STRING", "index": 7, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "INT64", "index": 8, "name": "tweet_id", "comment": null}, "updated_at": {"type": "STRING", "index": 9, "name": "updated_at", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 21, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2541, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_history"}, "source.twitter_ads_source.twitter_ads.promoted_tweet_report": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_promoted_tweet_report_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "billed_charge_local_micro": {"type": "INT64", "index": 3, "name": "billed_charge_local_micro", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "date": {"type": "DATETIME", "index": 5, "name": "date", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 7, "name": "promoted_tweet_id", "comment": null}, "url_clicks": {"type": "INT64", "index": 8, "name": "url_clicks", "comment": null}, "placement": {"type": "STRING", "index": 9, "name": "placement", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10500, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_report"}, "source.twitter_ads_source.twitter_ads.tweet": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_tweet_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "card_uri": {"type": "INT64", "index": 4, "name": "card_uri", "comment": null}, "coordinates_coordinates": {"type": "INT64", "index": 5, "name": "coordinates_coordinates", "comment": null}, "coordinates_type": {"type": "INT64", "index": 6, "name": "coordinates_type", "comment": null}, "created_at": {"type": "STRING", "index": 7, "name": "created_at", "comment": null}, "favorite_count": {"type": "INT64", "index": 8, "name": "favorite_count", "comment": null}, "favorited": {"type": "BOOL", "index": 9, "name": "favorited", "comment": null}, "followers": {"type": "INT64", "index": 10, "name": "followers", "comment": null}, "full_text": {"type": "STRING", "index": 11, "name": "full_text", "comment": null}, "geo_coordinates": {"type": "INT64", "index": 12, "name": "geo_coordinates", "comment": null}, "geo_type": {"type": "INT64", "index": 13, "name": "geo_type", "comment": null}, "in_reply_to_screen_name": {"type": "INT64", "index": 14, "name": "in_reply_to_screen_name", "comment": null}, "in_reply_to_status_id": {"type": "INT64", "index": 15, "name": "in_reply_to_status_id", "comment": null}, "in_reply_to_user_id": {"type": "INT64", "index": 16, "name": "in_reply_to_user_id", "comment": null}, "lang": {"type": "STRING", "index": 17, "name": "lang", "comment": null}, "media_key": {"type": "INT64", "index": 18, "name": "media_key", "comment": null}, "retweet_count": {"type": "INT64", "index": 19, "name": "retweet_count", "comment": null}, "retweeted": {"type": "BOOL", "index": 20, "name": "retweeted", "comment": null}, "source": {"type": "STRING", "index": 21, "name": "source", "comment": null}, "truncated": {"type": "BOOL", "index": 22, "name": "truncated", "comment": null}, "tweet_type": {"type": "STRING", "index": 23, "name": "tweet_type", "comment": null}, "user_id": {"type": "INT64", "index": 24, "name": "user_id", "comment": null}, "name": {"type": "INT64", "index": 25, "name": "name", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1312, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.tweet"}, "source.twitter_ads_source.twitter_ads.tweet_url": {"metadata": {"type": "table", "schema": "ad_reporting_tests", "name": "twitter_tweet_url_data", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "index": 1, "name": "_fivetran_synced", "comment": null}, "display_url": {"type": "STRING", "index": 2, "name": "display_url", "comment": null}, "expanded_url": {"type": "STRING", "index": 3, "name": "expanded_url", "comment": null}, "index": {"type": "INT64", "index": 4, "name": "index", "comment": null}, "indices": {"type": "STRING", "index": 5, "name": "indices", "comment": null}, "tweet_id": {"type": "INT64", "index": 6, "name": "tweet_id", "comment": null}, "url": {"type": "STRING", "index": 7, "name": "url", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 16671, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.tweet_url"}}, "errors": null}
\ No newline at end of file
+{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.8.8", "generated_at": "2024-12-17T19:03:57.210166Z", "invocation_id": "c493fc99-5634-4fd2-8d12-e56e7830ca01", "env": {}}, "nodes": {"seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 5, "name": "creation_date", "comment": null}, "default_bid": {"type": "double precision", "index": 6, "name": "default_bid", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "serving_status": {"type": "text", "index": 8, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 9, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data"}, "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_ad_group_level_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 4, "name": "campaign_bidding_strategy", "comment": null}, "clicks": {"type": "integer", "index": 5, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 6, "name": "cost", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data"}, "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_advertised_product_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "integer", "index": 2, "name": "ad_id", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 4, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 8, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 10, "name": "cost", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "advertised_asin": {"type": "integer", "index": 12, "name": "advertised_asin", "comment": null}, "advertised_sku": {"type": "integer", "index": 13, "name": "advertised_sku", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data"}, "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "bidding_strategy": {"type": "text", "index": 4, "name": "bidding_strategy", "comment": null}, "creation_date": {"type": "text", "index": 5, "name": "creation_date", "comment": null}, "budget": {"type": "integer", "index": 6, "name": "budget", "comment": null}, "end_date": {"type": "integer", "index": 7, "name": "end_date", "comment": null}, "name": {"type": "text", "index": 8, "name": "name", "comment": null}, "portfolio_id": {"type": "integer", "index": 9, "name": "portfolio_id", "comment": null}, "profile_id": {"type": "integer", "index": 10, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 11, "name": "serving_status", "comment": null}, "start_date": {"type": "date", "index": 12, "name": "start_date", "comment": null}, "state": {"type": "text", "index": 13, "name": "state", "comment": null}, "targeting_type": {"type": "text", "index": 14, "name": "targeting_type", "comment": null}, "budget_type": {"type": "text", "index": 15, "name": "budget_type", "comment": null}, "effective_budget": {"type": "integer", "index": 16, "name": "effective_budget", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_campaign_level_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_applicable_budget_rule_id": {"type": "integer", "index": 4, "name": "campaign_applicable_budget_rule_id", "comment": null}, "campaign_applicable_budget_rule_name": {"type": "integer", "index": 5, "name": "campaign_applicable_budget_rule_name", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 6, "name": "campaign_bidding_strategy", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 9, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 11, "name": "cost", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "campaign_rule_based_budget_amount": {"type": "integer", "index": 13, "name": "campaign_rule_based_budget_amount", "comment": null}, "sales_7_d": {"type": "integer", "index": 14, "name": "sales_7_d", "comment": null}, "purchases_30_d": {"type": "integer", "index": 15, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "integer", "index": 16, "name": "sales_30_d", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data"}, "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_keyword_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "bid": {"type": "double precision", "index": 5, "name": "bid", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 7, "name": "creation_date", "comment": null}, "keyword_text": {"type": "text", "index": 8, "name": "keyword_text", "comment": null}, "match_type": {"type": "text", "index": 9, "name": "match_type", "comment": null}, "native_language_keyword": {"type": "integer", "index": 10, "name": "native_language_keyword", "comment": null}, "serving_status": {"type": "text", "index": 11, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 12, "name": "state", "comment": null}, "native_language_locale": {"type": "integer", "index": 13, "name": "native_language_locale", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data"}, "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_portfolio_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "budget_amount": {"type": "integer", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "integer", "index": 5, "name": "budget_currency_code", "comment": null}, "budget_end_date": {"type": "integer", "index": 6, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "integer", "index": 7, "name": "budget_policy", "comment": null}, "budget_start_date": {"type": "integer", "index": 8, "name": "budget_start_date", "comment": null}, "creation_date": {"type": "text", "index": 9, "name": "creation_date", "comment": null}, "in_budget": {"type": "boolean", "index": 10, "name": "in_budget", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "profile_id": {"type": "integer", "index": 12, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 13, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data"}, "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_product_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "asin": {"type": "text", "index": 5, "name": "asin", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 7, "name": "creation_date", "comment": null}, "serving_status": {"type": "text", "index": 8, "name": "serving_status", "comment": null}, "sku": {"type": "integer", "index": 9, "name": "sku", "comment": null}, "state": {"type": "text", "index": 10, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data"}, "seed.ad_reporting_integration_tests.amazon_ads_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_marketplace_string_id": {"type": "text", "index": 5, "name": "account_marketplace_string_id", "comment": null}, "account_name": {"type": "text", "index": 6, "name": "account_name", "comment": null}, "account_sub_type": {"type": "integer", "index": 7, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_valid_payment_method": {"type": "boolean", "index": 9, "name": "account_valid_payment_method", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "currency_code": {"type": "text", "index": 11, "name": "currency_code", "comment": null}, "daily_budget": {"type": "integer", "index": 12, "name": "daily_budget", "comment": null}, "timezone": {"type": "text", "index": 13, "name": "timezone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_profile_data"}, "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_search_term_ad_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "integer", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 8, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 10, "name": "cost", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "keyword_bid": {"type": "double precision", "index": 12, "name": "keyword_bid", "comment": null}, "search_term": {"type": "text", "index": 13, "name": "search_term", "comment": null}, "targeting": {"type": "text", "index": 14, "name": "targeting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data"}, "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_targeting_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "integer", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "ad_keyword_status": {"type": "text", "index": 6, "name": "ad_keyword_status", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 9, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 11, "name": "cost", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "keyword_bid": {"type": "double precision", "index": 13, "name": "keyword_bid", "comment": null}, "keyword_type": {"type": "text", "index": 14, "name": "keyword_type", "comment": null}, "match_type": {"type": "text", "index": 15, "name": "match_type", "comment": null}, "targeting": {"type": "text", "index": 16, "name": "targeting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "automated_keywords_opt_in": {"type": "boolean", "index": 3, "name": "automated_keywords_opt_in", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "cpa_goal_amount": {"type": "integer", "index": 5, "name": "cpa_goal_amount", "comment": null}, "cpa_goal_currency": {"type": "integer", "index": 6, "name": "cpa_goal_currency", "comment": null}, "default_cpc_bid_amount": {"type": "integer", "index": 7, "name": "default_cpc_bid_amount", "comment": null}, "default_cpc_bid_currency": {"type": "integer", "index": 8, "name": "default_cpc_bid_currency", "comment": null}, "deleted": {"type": "boolean", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 10, "name": "end_time", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "organization_id": {"type": "integer", "index": 12, "name": "organization_id", "comment": null}, "serving_state_reasons": {"type": "integer", "index": 13, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "text", "index": 14, "name": "serving_status", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 15, "name": "start_time", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "storefronts": {"type": "integer", "index": 17, "name": "storefronts", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_ad_group_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creation_time": {"type": "timestamp without time zone", "index": 1, "name": "creation_time", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "org_id": {"type": "integer", "index": 3, "name": "org_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 5, "name": "ad_group_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "creative_id": {"type": "integer", "index": 8, "name": "creative_id", "comment": null}, "creative_type": {"type": "text", "index": 9, "name": "creative_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_history_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_ad_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "integer", "index": 5, "name": "ad_id", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 7, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 8, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 9, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 10, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 11, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_report_data"}, "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "adam_id": {"type": "integer", "index": 3, "name": "adam_id", "comment": null}, "budget_amount": {"type": "integer", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency": {"type": "text", "index": 5, "name": "budget_currency", "comment": null}, "budget_orders": {"type": "text", "index": 6, "name": "budget_orders", "comment": null}, "daily_budget_amount": {"type": "integer", "index": 7, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency": {"type": "text", "index": 8, "name": "daily_budget_currency", "comment": null}, "deleted": {"type": "boolean", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 10, "name": "end_time", "comment": null}, "loc_invoice_detail_buyer_email": {"type": "integer", "index": 11, "name": "loc_invoice_detail_buyer_email", "comment": null}, "loc_invoice_detail_buyer_name": {"type": "integer", "index": 12, "name": "loc_invoice_detail_buyer_name", "comment": null}, "loc_invoice_detail_client_name": {"type": "integer", "index": 13, "name": "loc_invoice_detail_client_name", "comment": null}, "loc_invoice_detail_order_number": {"type": "integer", "index": 14, "name": "loc_invoice_detail_order_number", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "organiation_id": {"type": "integer", "index": 16, "name": "organiation_id", "comment": null}, "payment_model": {"type": "text", "index": 17, "name": "payment_model", "comment": null}, "serving_state_reasons": {"type": "text", "index": 18, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "text", "index": 19, "name": "serving_status", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 20, "name": "start_time", "comment": null}, "status": {"type": "text", "index": 21, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_history_data"}, "seed.ad_reporting_integration_tests.apple_search_campaign_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_report_data"}, "seed.ad_reporting_integration_tests.apple_search_keyword_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_keyword_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "ad_group_id": {"type": "integer", "index": 3, "name": "ad_group_id", "comment": null}, "bid_amount": {"type": "double precision", "index": 4, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "text", "index": 5, "name": "bid_currency", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "deleted": {"type": "boolean", "index": 7, "name": "deleted", "comment": null}, "match_type": {"type": "text", "index": 8, "name": "match_type", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "text": {"type": "text", "index": 10, "name": "text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_history_data"}, "seed.ad_reporting_integration_tests.apple_search_keyword_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_report_data"}, "seed.ad_reporting_integration_tests.apple_search_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "currency": {"type": "text", "index": 2, "name": "currency", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "payment_model": {"type": "text", "index": 4, "name": "payment_model", "comment": null}, "role_names": {"type": "text", "index": 5, "name": "role_names", "comment": null}, "time_zone": {"type": "text", "index": 6, "name": "time_zone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_organization_data"}, "seed.ad_reporting_integration_tests.apple_search_search_term_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_search_term_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 4, "name": "date", "comment": null}, "ad_group_deleted": {"type": "boolean", "index": 5, "name": "ad_group_deleted", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 7, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 8, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 9, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 10, "name": "avg_cpt_currency", "comment": null}, "bid_amount_amount": {"type": "double precision", "index": 11, "name": "bid_amount_amount", "comment": null}, "bid_amount_currency": {"type": "text", "index": 12, "name": "bid_amount_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 13, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 14, "name": "conversions", "comment": null}, "deleted": {"type": "boolean", "index": 15, "name": "deleted", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "keyword": {"type": "text", "index": 17, "name": "keyword", "comment": null}, "keyword_display_status": {"type": "text", "index": 18, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "integer", "index": 19, "name": "keyword_id", "comment": null}, "lat_off_installs": {"type": "integer", "index": 20, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 21, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 22, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 23, "name": "local_spend_currency", "comment": null}, "match_type": {"type": "text", "index": 24, "name": "match_type", "comment": null}, "new_downloads": {"type": "integer", "index": 25, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 26, "name": "redownloads", "comment": null}, "search_term_source": {"type": "text", "index": 27, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "text", "index": 28, "name": "search_term_text", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 29, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 30, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_search_term_report_data"}, "seed.ad_reporting_integration_tests.facebook_ads_account_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "facebook_ads_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "character varying", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_account_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "facebook_ads_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "ad_set_id": {"type": "bigint", "index": 3, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "creative_id": {"type": "bigint", "index": 5, "name": "creative_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 8, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "facebook_ads_ad_set_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 6, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_action_values_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "facebook_ads_basic_ad_action_values_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_id": {"type": "text", "index": 3, "name": "_fivetran_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "action_type": {"type": "text", "index": 5, "name": "action_type", "comment": null}, "value": {"type": "double precision", "index": 6, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "_7_d_click": {"type": "double precision", "index": 8, "name": "_7_d_click", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_action_values_data"}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_actions_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "facebook_ads_basic_ad_actions_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_id": {"type": "integer", "index": 2, "name": "ad_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "_1_d_view": {"type": "double precision", "index": 5, "name": "_1_d_view", "comment": null}, "_7_d_click": {"type": "double precision", "index": 6, "name": "_7_d_click", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "action_type": {"type": "text", "index": 8, "name": "action_type", "comment": null}, "inline": {"type": "double precision", "index": 9, "name": "inline", "comment": null}, "value": {"type": "double precision", "index": 10, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_actions_data"}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "facebook_ads_basic_ad_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "bigint", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "inline_link_clicks": {"type": "integer", "index": 5, "name": "inline_link_clicks", "comment": null}, "spend": {"type": "double precision", "index": 6, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data"}, "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "facebook_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 5, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "facebook_ads_creative_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"page_link": {"type": "character varying", "index": 1, "name": "page_link", "comment": null}, "template_page_link": {"type": "character varying", "index": 2, "name": "template_page_link", "comment": null}, "id": {"type": "bigint", "index": 3, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "url_tags": {"type": "text", "index": 6, "name": "url_tags", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "asset_feed_spec_link_urls": {"type": "text", "index": 8, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "text", "index": 9, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "text", "index": 10, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "text", "index": 11, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "text", "index": 12, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "text", "index": 13, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "text", "index": 14, "name": "template_app_link_spec_ios", "comment": null}, "_fivetran_id": {"type": "text", "index": 15, "name": "_fivetran_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data"}, "seed.ad_reporting_integration_tests.google_ads_account_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "auto_tagging_enabled": {"type": "boolean", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "descriptive_name": {"type": "integer", "index": 6, "name": "descriptive_name", "comment": null}, "final_url_suffix": {"type": "boolean", "index": 7, "name": "final_url_suffix", "comment": null}, "hidden": {"type": "boolean", "index": 8, "name": "hidden", "comment": null}, "manager": {"type": "integer", "index": 9, "name": "manager", "comment": null}, "manager_customer_id": {"type": "double precision", "index": 10, "name": "manager_customer_id", "comment": null}, "optimization_score": {"type": "text", "index": 11, "name": "optimization_score", "comment": null}, "pay_per_conversion_eligibility_failure_reasons": {"type": "boolean", "index": 12, "name": "pay_per_conversion_eligibility_failure_reasons", "comment": null}, "test_account": {"type": "text", "index": 13, "name": "test_account", "comment": null}, "time_zone": {"type": "integer", "index": 14, "name": "time_zone", "comment": null}, "tracking_url_template": {"type": "integer", "index": 15, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_history_data"}, "seed.ad_reporting_integration_tests.google_ads_account_stats_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_account_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 12, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 13, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 14, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 15, "name": "device", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 17, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 18, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 19, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_stats_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_ad_group_criterion_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "bigint", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "keyword_match_type": {"type": "text", "index": 8, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "text", "index": 9, "name": "keyword_text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_ad_group_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "base_ad_group": {"type": "text", "index": 11, "name": "base_ad_group", "comment": null}, "campaign_base_campaign": {"type": "text", "index": 12, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "bigint", "index": 13, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 14, "name": "clicks", "comment": null}, "conversions": {"type": "double precision", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 16, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 17, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 18, "name": "device", "comment": null}, "id": {"type": "bigint", "index": 19, "name": "id", "comment": null}, "impressions": {"type": "integer", "index": 20, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 21, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 22, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 23, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "name": {"type": "integer", "index": 3, "name": "name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "integer", "index": 5, "name": "type", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "display_url": {"type": "integer", "index": 7, "name": "display_url", "comment": null}, "final_urls": {"type": "text", "index": 8, "name": "final_urls", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_history_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_stats_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_ad_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "ad_group": {"type": "text", "index": 4, "name": "ad_group", "comment": null}, "keyword_ad_group_criterion": {"type": "text", "index": 5, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "text", "index": 6, "name": "ad_network_type", "comment": null}, "device": {"type": "text", "index": 7, "name": "device", "comment": null}, "ad_id": {"type": "bigint", "index": 8, "name": "ad_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "cost_micros": {"type": "integer", "index": 11, "name": "cost_micros", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "conversions": {"type": "integer", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 14, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "integer", "index": 15, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_stats_data"}, "seed.ad_reporting_integration_tests.google_ads_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "customer_id": {"type": "bigint", "index": 4, "name": "customer_id", "comment": null}, "advertising_channel_type": {"type": "text", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "text", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "date", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "date", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "text", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "integer", "index": 11, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_campaign_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "base_campaign": {"type": "text", "index": 11, "name": "base_campaign", "comment": null}, "clicks": {"type": "integer", "index": 12, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 14, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 15, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 16, "name": "device", "comment": null}, "id": {"type": "bigint", "index": 17, "name": "id", "comment": null}, "impressions": {"type": "integer", "index": 18, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 19, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 20, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 21, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data"}, "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_keyword_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_group_base_ad_group": {"type": "text", "index": 10, "name": "ad_group_base_ad_group", "comment": null}, "ad_group_criterion_criterion_id": {"type": "bigint", "index": 11, "name": "ad_group_criterion_criterion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 12, "name": "ad_group_id", "comment": null}, "ad_network_type": {"type": "text", "index": 13, "name": "ad_network_type", "comment": null}, "campaign_base_campaign": {"type": "text", "index": 14, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "bigint", "index": 15, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 18, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 19, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 20, "name": "device", "comment": null}, "impressions": {"type": "integer", "index": 21, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 22, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 23, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 24, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "linkedin_ad_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "version_tag": {"type": "integer", "index": 6, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "linkedin_ad_analytics_by_campaign_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "day": {"type": "timestamp without time zone", "index": 2, "name": "day", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "action_clicks": {"type": "integer", "index": 4, "name": "action_clicks", "comment": null}, "ad_unit_clicks": {"type": "integer", "index": 5, "name": "ad_unit_clicks", "comment": null}, "approximate_unique_impressions": {"type": "integer", "index": 6, "name": "approximate_unique_impressions", "comment": null}, "card_clicks": {"type": "integer", "index": 7, "name": "card_clicks", "comment": null}, "card_impressions": {"type": "integer", "index": 8, "name": "card_impressions", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "comment_likes": {"type": "integer", "index": 10, "name": "comment_likes", "comment": null}, "comments": {"type": "integer", "index": 11, "name": "comments", "comment": null}, "company_page_clicks": {"type": "integer", "index": 12, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "integer", "index": 13, "name": "conversion_value_in_local_currency", "comment": null}, "cost_in_local_currency": {"type": "double precision", "index": 14, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "double precision", "index": 15, "name": "cost_in_usd", "comment": null}, "external_website_conversions": {"type": "bigint", "index": 16, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "integer", "index": 17, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "integer", "index": 18, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "integer", "index": 19, "name": "follows", "comment": null}, "full_screen_plays": {"type": "integer", "index": 20, "name": "full_screen_plays", "comment": null}, "impressions": {"type": "integer", "index": 21, "name": "impressions", "comment": null}, "landing_page_clicks": {"type": "integer", "index": 22, "name": "landing_page_clicks", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "integer", "index": 23, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "integer", "index": 24, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "integer", "index": 25, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "integer", "index": 26, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "integer", "index": 27, "name": "one_click_leads", "comment": null}, "opens": {"type": "integer", "index": 28, "name": "opens", "comment": null}, "other_engagements": {"type": "integer", "index": 29, "name": "other_engagements", "comment": null}, "shares": {"type": "integer", "index": 30, "name": "shares", "comment": null}, "text_url_clicks": {"type": "integer", "index": 31, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "integer", "index": 32, "name": "total_engagements", "comment": null}, "video_completions": {"type": "integer", "index": 33, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "integer", "index": 34, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "integer", "index": 35, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "integer", "index": 36, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "integer", "index": 37, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "integer", "index": 38, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "integer", "index": 39, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "integer", "index": 40, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "integer", "index": 41, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "integer", "index": 42, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "integer", "index": 43, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "integer", "index": 44, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "integer", "index": 45, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "integer", "index": 46, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "integer", "index": 47, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "integer", "index": 48, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "integer", "index": 49, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "integer", "index": 50, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "integer", "index": 51, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "integer", "index": 52, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "integer", "index": 53, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "integer", "index": 54, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "integer", "index": 55, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "integer", "index": 56, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "integer", "index": 57, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "integer", "index": 58, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "integer", "index": 59, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "integer", "index": 60, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "integer", "index": 61, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "integer", "index": 62, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "integer", "index": 63, "name": "viral_video_views", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "linkedin_ad_analytics_by_creative_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creative_id": {"type": "integer", "index": 1, "name": "creative_id", "comment": null}, "day": {"type": "timestamp without time zone", "index": 2, "name": "day", "comment": null}, "action_clicks": {"type": "integer", "index": 3, "name": "action_clicks", "comment": null}, "card_clicks": {"type": "integer", "index": 4, "name": "card_clicks", "comment": null}, "ad_unit_clicks": {"type": "integer", "index": 5, "name": "ad_unit_clicks", "comment": null}, "landing_page_clicks": {"type": "integer", "index": 6, "name": "landing_page_clicks", "comment": null}, "clicks": {"type": "integer", "index": 7, "name": "clicks", "comment": null}, "approximate_unique_impressions": {"type": "integer", "index": 8, "name": "approximate_unique_impressions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "card_impressions": {"type": "integer", "index": 10, "name": "card_impressions", "comment": null}, "cost_in_local_currency": {"type": "integer", "index": 11, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "integer", "index": 12, "name": "cost_in_usd", "comment": null}, "comment_likes": {"type": "integer", "index": 13, "name": "comment_likes", "comment": null}, "comments": {"type": "integer", "index": 14, "name": "comments", "comment": null}, "company_page_clicks": {"type": "integer", "index": 15, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "integer", "index": 16, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "bigint", "index": 17, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "integer", "index": 18, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "integer", "index": 19, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "integer", "index": 20, "name": "follows", "comment": null}, "full_screen_plays": {"type": "integer", "index": 21, "name": "full_screen_plays", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "integer", "index": 22, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "integer", "index": 23, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "integer", "index": 24, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "integer", "index": 25, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "integer", "index": 26, "name": "one_click_leads", "comment": null}, "opens": {"type": "integer", "index": 27, "name": "opens", "comment": null}, "other_engagements": {"type": "integer", "index": 28, "name": "other_engagements", "comment": null}, "shares": {"type": "integer", "index": 29, "name": "shares", "comment": null}, "text_url_clicks": {"type": "integer", "index": 30, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "integer", "index": 31, "name": "total_engagements", "comment": null}, "video_completions": {"type": "integer", "index": 32, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "integer", "index": 33, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "integer", "index": 34, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "integer", "index": 35, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "integer", "index": 36, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "integer", "index": 37, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "integer", "index": 38, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "integer", "index": 39, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "integer", "index": 40, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "integer", "index": 41, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "integer", "index": 42, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "integer", "index": 43, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "integer", "index": 44, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "integer", "index": 45, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "integer", "index": 46, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "integer", "index": 47, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "integer", "index": 48, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "integer", "index": 49, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "integer", "index": 50, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "integer", "index": 51, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "integer", "index": 52, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "integer", "index": 53, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "integer", "index": 54, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "integer", "index": 55, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "integer", "index": 56, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "integer", "index": 57, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "integer", "index": 58, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "integer", "index": 59, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "integer", "index": 60, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "integer", "index": 61, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "integer", "index": 62, "name": "viral_video_views", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "linkedin_ad_campaign_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 4, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "linkedin_ad_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_group_id": {"type": "integer", "index": 4, "name": "campaign_group_id", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 5, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "version_tag": {"type": "integer", "index": 7, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "linkedin_ad_creative_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "intended_status": {"type": "character varying", "index": 3, "name": "intended_status", "comment": null}, "click_uri": {"type": "text", "index": 4, "name": "click_uri", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 5, "name": "last_modified_at", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 6, "name": "created_time", "comment": null}, "text_ad_landing_page": {"type": "text", "index": 7, "name": "text_ad_landing_page", "comment": null}, "spotlight_landing_page": {"type": "text", "index": 8, "name": "spotlight_landing_page", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "character varying", "index": 2, "name": "name", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 3, "name": "last_modified_time", "comment": null}, "time_zone": {"type": "text", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_account_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "text", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "text", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 13, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 14, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 15, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 16, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 17, "name": "all_conversions_qualified", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 4, "name": "modified_time", "comment": null}, "start_date": {"type": "date", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "integer", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_ad_group_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 8, "name": "network", "comment": null}, "language": {"type": "text", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 16, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 17, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 18, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 19, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 20, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "integer", "index": 21, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "double precision", "index": 22, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title_part_1": {"type": "text", "index": 2, "name": "title_part_1", "comment": null}, "final_url": {"type": "text", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 5, "name": "modified_time", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "type": {"type": "text", "index": 7, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_ad_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "text", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 9, "name": "network", "comment": null}, "language": {"type": "text", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 18, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 19, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 20, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 21, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "integer", "index": 22, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "double precision", "index": 23, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "account_id": {"type": "integer", "index": 3, "name": "account_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 4, "name": "modified_time", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "text", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_campaign_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "text", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "text", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 11, "name": "top_vs_other", "comment": null}, "budget_association_status": {"type": "text", "index": 12, "name": "budget_association_status", "comment": null}, "budget_name": {"type": "text", "index": 13, "name": "budget_name", "comment": null}, "clicks": {"type": "integer", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 16, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 17, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 18, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 19, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 20, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "integer", "index": 21, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "double precision", "index": 22, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_keyword_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 3, "name": "modified_time", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "text", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_keyword_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "text", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 10, "name": "network", "comment": null}, "language": {"type": "text", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 18, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 19, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 20, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 21, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 22, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "integer", "index": 23, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "double precision", "index": 24, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_search_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "text", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "text", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 10, "name": "network", "comment": null}, "language": {"type": "text", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "text", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 18, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 19, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 20, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 21, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "integer", "index": 22, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "double precision", "index": 23, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.pinterest_ad_group_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "created_time": {"type": "text", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "status": {"type": "text", "index": 5, "name": "status", "comment": null}, "start_time": {"type": "text", "index": 6, "name": "start_time", "comment": null}, "end_time": {"type": "integer", "index": 7, "name": "end_time", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}, "pacing_delivery_type": {"type": "text", "index": 9, "name": "pacing_delivery_type", "comment": null}, "placement_group": {"type": "text", "index": 10, "name": "placement_group", "comment": null}, "summary_status": {"type": "text", "index": 11, "name": "summary_status", "comment": null}, "ad_account_id": {"type": "bigint", "index": 12, "name": "ad_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ad_group_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ad_group_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_ad_group_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 3, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 4, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 6, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 8, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 9, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 10, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 11, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 12, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "integer", "index": 13, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 14, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "integer", "index": 15, "name": "total_conversions_value_in_micro_dollar", "comment": null}, "total_view_checkout": {"type": "integer", "index": 16, "name": "total_view_checkout", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ad_group_report_data"}, "seed.ad_reporting_integration_tests.pinterest_advertiser_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_advertiser_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "billing_profile_status": {"type": "text", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "text", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 7, "name": "created_time", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "merchant_id": {"type": "integer", "index": 9, "name": "merchant_id", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "owner_user_id": {"type": "integer", "index": 11, "name": "owner_user_id", "comment": null}, "status": {"type": "text", "index": 12, "name": "status", "comment": null}, "owner_username": {"type": "text", "index": 13, "name": "owner_username", "comment": null}, "permissions": {"type": "text", "index": 14, "name": "permissions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_advertiser_history_data"}, "seed.ad_reporting_integration_tests.pinterest_advertiser_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_advertiser_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 4, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 5, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 6, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 7, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 8, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "integer", "index": 9, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 10, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "integer", "index": 11, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_advertiser_report_data"}, "seed.ad_reporting_integration_tests.pinterest_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_time": {"type": "text", "index": 2, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "advertiser_id": {"type": "bigint", "index": 6, "name": "advertiser_id", "comment": null}, "default_ad_group_budget_in_micro_currency": {"type": "integer", "index": 7, "name": "default_ad_group_budget_in_micro_currency", "comment": null}, "is_automated_campaign": {"type": "boolean", "index": 8, "name": "is_automated_campaign", "comment": null}, "is_campaign_budget_optimization": {"type": "boolean", "index": 9, "name": "is_campaign_budget_optimization", "comment": null}, "is_flexible_daily_budgets": {"type": "boolean", "index": 10, "name": "is_flexible_daily_budgets", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_campaign_history_data"}, "seed.ad_reporting_integration_tests.pinterest_campaign_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 3, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 4, "name": "campaign_status", "comment": null}, "advertiser_id": {"type": "bigint", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 11, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "integer", "index": 12, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 13, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "integer", "index": 14, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_campaign_report_data"}, "seed.ad_reporting_integration_tests.pinterest_keyword_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_keyword_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 4, "name": "advertiser_id", "comment": null}, "archived": {"type": "boolean", "index": 5, "name": "archived", "comment": null}, "bid": {"type": "integer", "index": 6, "name": "bid", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "id": {"type": "bigint", "index": 8, "name": "id", "comment": null}, "match_type": {"type": "text", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "text", "index": 10, "name": "parent_type", "comment": null}, "value": {"type": "text", "index": 11, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_keyword_history_data"}, "seed.ad_reporting_integration_tests.pinterest_keyword_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "keyword_id": {"type": "bigint", "index": 2, "name": "keyword_id", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 3, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 8, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 10, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 11, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 13, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 14, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "integer", "index": 15, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 16, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "integer", "index": 17, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_keyword_report_data"}, "seed.ad_reporting_integration_tests.pinterest_pin_promotion_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_pin_promotion_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "created_time": {"type": "text", "index": 3, "name": "created_time", "comment": null}, "destination_url": {"type": "text", "index": 4, "name": "destination_url", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "pin_id": {"type": "bigint", "index": 6, "name": "pin_id", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "creative_type": {"type": "text", "index": 8, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "text", "index": 9, "name": "_fivetran_synced", "comment": null}, "ad_account_id": {"type": "bigint", "index": 10, "name": "ad_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_pin_promotion_history_data"}, "seed.ad_reporting_integration_tests.pinterest_pin_promotion_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_pin_promotion_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 11, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "integer", "index": 12, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 13, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "integer", "index": 14, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_pin_promotion_report_data"}, "seed.ad_reporting_integration_tests.reddit_ads_account_conversions": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_account_conversions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "avg_value": {"type": "double precision", "index": 3, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "integer", "index": 4, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "integer", "index": 5, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "integer", "index": 6, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "date", "index": 7, "name": "date", "comment": null}, "event_name": {"type": "text", "index": 8, "name": "event_name", "comment": null}, "total_items": {"type": "integer", "index": 9, "name": "total_items", "comment": null}, "total_value": {"type": "double precision", "index": 10, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "integer", "index": 11, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "integer", "index": 12, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "integer", "index": 13, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_account_conversions"}, "seed.ad_reporting_integration_tests.reddit_ads_account_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "attribution_type": {"type": "text", "index": 3, "name": "attribution_type", "comment": null}, "click_attribution_window": {"type": "text", "index": 4, "name": "click_attribution_window", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "status": {"type": "integer", "index": 7, "name": "status", "comment": null}, "time_zone_id": {"type": "text", "index": 8, "name": "time_zone_id", "comment": null}, "view_attribution_window": {"type": "text", "index": 9, "name": "view_attribution_window", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_account_data"}, "seed.ad_reporting_integration_tests.reddit_ads_account_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_account_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "bigint", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "integer", "index": 4, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "integer", "index": 5, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "integer", "index": 6, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "integer", "index": 7, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "integer", "index": 8, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "integer", "index": 9, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "integer", "index": 10, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "integer", "index": 11, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "integer", "index": 12, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "integer", "index": 13, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "integer", "index": 14, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "integer", "index": 15, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "integer", "index": 17, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "integer", "index": 18, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "integer", "index": 19, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "integer", "index": 20, "name": "conversion_roas", "comment": null}, "cpc": {"type": "double precision", "index": 21, "name": "cpc", "comment": null}, "ctr": {"type": "double precision", "index": 22, "name": "ctr", "comment": null}, "ecpm": {"type": "double precision", "index": 23, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "integer", "index": 24, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "integer", "index": 25, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "integer", "index": 26, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "integer", "index": 27, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "integer", "index": 28, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "integer", "index": 29, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "integer", "index": 30, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "integer", "index": 31, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "integer", "index": 32, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "integer", "index": 33, "name": "priority", "comment": null}, "region": {"type": "integer", "index": 34, "name": "region", "comment": null}, "spend": {"type": "integer", "index": 35, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "integer", "index": 36, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "integer", "index": 37, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "integer", "index": 38, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "integer", "index": 39, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "integer", "index": 40, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "integer", "index": 41, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "integer", "index": 42, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "integer", "index": 43, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "integer", "index": 44, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "integer", "index": 45, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "integer", "index": 46, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "integer", "index": 47, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "integer", "index": 48, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "integer", "index": 49, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "integer", "index": 50, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_account_report_data"}, "seed.ad_reporting_integration_tests.reddit_ads_ad_conversions": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_conversions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "ad_id": {"type": "integer", "index": 3, "name": "ad_id", "comment": null}, "avg_value": {"type": "double precision", "index": 4, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "integer", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "integer", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "integer", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "date", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "text", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "integer", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "double precision", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "integer", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "integer", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "integer", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_conversions"}, "seed.ad_reporting_integration_tests.reddit_ads_ad_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "click_url": {"type": "text", "index": 6, "name": "click_url", "comment": null}, "configured_status": {"type": "text", "index": 7, "name": "configured_status", "comment": null}, "effective_status": {"type": "text", "index": 8, "name": "effective_status", "comment": null}, "is_processing": {"type": "boolean", "index": 9, "name": "is_processing", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "post_id": {"type": "text", "index": 11, "name": "post_id", "comment": null}, "post_url": {"type": "integer", "index": 12, "name": "post_url", "comment": null}, "preview_expiry": {"type": "integer", "index": 13, "name": "preview_expiry", "comment": null}, "preview_url": {"type": "integer", "index": 14, "name": "preview_url", "comment": null}, "rejection_reason": {"type": "integer", "index": 15, "name": "rejection_reason", "comment": null}, "search_term": {"type": "integer", "index": 16, "name": "search_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_data"}, "seed.ad_reporting_integration_tests.reddit_ads_ad_group_conversions": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_group_conversions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 3, "name": "ad_group_id", "comment": null}, "avg_value": {"type": "double precision", "index": 4, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "integer", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "integer", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "integer", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "date", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "text", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "integer", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "double precision", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "integer", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "integer", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "integer", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_group_conversions"}, "seed.ad_reporting_integration_tests.reddit_ads_ad_group_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bid_strategy": {"type": "text", "index": 4, "name": "bid_strategy", "comment": null}, "bid_value": {"type": "integer", "index": 5, "name": "bid_value", "comment": null}, "campaign_id": {"type": "bigint", "index": 6, "name": "campaign_id", "comment": null}, "configured_status": {"type": "text", "index": 7, "name": "configured_status", "comment": null}, "effective_status": {"type": "text", "index": 8, "name": "effective_status", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 9, "name": "end_time", "comment": null}, "expand_targeting": {"type": "boolean", "index": 10, "name": "expand_targeting", "comment": null}, "goal_type": {"type": "text", "index": 11, "name": "goal_type", "comment": null}, "goal_value": {"type": "integer", "index": 12, "name": "goal_value", "comment": null}, "is_processing": {"type": "boolean", "index": 13, "name": "is_processing", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "optimization_strategy_type": {"type": "integer", "index": 15, "name": "optimization_strategy_type", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 16, "name": "start_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_group_data"}, "seed.ad_reporting_integration_tests.reddit_ads_ad_group_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_group_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "bigint", "index": 1, "name": "account_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "integer", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "integer", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "integer", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "integer", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "integer", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "integer", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "integer", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "integer", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "integer", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "integer", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "integer", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "integer", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "integer", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "integer", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "integer", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "integer", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "integer", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "double precision", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "double precision", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "double precision", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "integer", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "integer", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "integer", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "integer", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "integer", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "integer", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "integer", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "integer", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "integer", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "integer", "index": 34, "name": "priority", "comment": null}, "region": {"type": "integer", "index": 35, "name": "region", "comment": null}, "spend": {"type": "integer", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "integer", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "integer", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "integer", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "integer", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "integer", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "integer", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "integer", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "integer", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "integer", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "integer", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "integer", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "integer", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "integer", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "integer", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "integer", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_group_report_data"}, "seed.ad_reporting_integration_tests.reddit_ads_ad_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "bigint", "index": 1, "name": "account_id", "comment": null}, "ad_id": {"type": "bigint", "index": 2, "name": "ad_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "integer", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "integer", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "integer", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "integer", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "integer", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "integer", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "integer", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "integer", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "integer", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "integer", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "integer", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "integer", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "integer", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "integer", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "integer", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "integer", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "integer", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "double precision", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "double precision", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "double precision", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "integer", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "integer", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "integer", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "integer", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "integer", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "integer", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "integer", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "integer", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "integer", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "integer", "index": 34, "name": "priority", "comment": null}, "region": {"type": "integer", "index": 35, "name": "region", "comment": null}, "spend": {"type": "integer", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "integer", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "integer", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "integer", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "integer", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "integer", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "integer", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "integer", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "integer", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "integer", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "integer", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "integer", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "integer", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "integer", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "integer", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "integer", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_report_data"}, "seed.ad_reporting_integration_tests.reddit_ads_campaign_conversions": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_campaign_conversions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "avg_value": {"type": "double precision", "index": 3, "name": "avg_value", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "integer", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "integer", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "integer", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "date", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "text", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "integer", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "double precision", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "integer", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "integer", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "integer", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_campaign_conversions"}, "seed.ad_reporting_integration_tests.reddit_ads_campaign_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_campaign_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "configured_status": {"type": "text", "index": 4, "name": "configured_status", "comment": null}, "effective_status": {"type": "text", "index": 5, "name": "effective_status", "comment": null}, "funding_instrument_id": {"type": "integer", "index": 6, "name": "funding_instrument_id", "comment": null}, "is_processing": {"type": "boolean", "index": 7, "name": "is_processing", "comment": null}, "name": {"type": "text", "index": 8, "name": "name", "comment": null}, "objective": {"type": "text", "index": 9, "name": "objective", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_campaign_data"}, "seed.ad_reporting_integration_tests.reddit_ads_campaign_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "bigint", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "integer", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "integer", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "integer", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "integer", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "integer", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "integer", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "integer", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "integer", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "integer", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "integer", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "integer", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "integer", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "integer", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "integer", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "integer", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "integer", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "integer", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "double precision", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "double precision", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "double precision", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "integer", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "integer", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "integer", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "integer", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "integer", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "integer", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "integer", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "integer", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "integer", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "integer", "index": 34, "name": "priority", "comment": null}, "region": {"type": "integer", "index": 35, "name": "region", "comment": null}, "spend": {"type": "integer", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "integer", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "integer", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "integer", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "integer", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "integer", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "integer", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "integer", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "integer", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "integer", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "integer", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "integer", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "integer", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "integer", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "integer", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "integer", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_campaign_report_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_ad_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_squad_id": {"type": "text", "index": 2, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "text", "index": 3, "name": "creative_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_history_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_ad_hourly_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "text", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "impressions": {"type": "integer", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "integer", "index": 4, "name": "spend", "comment": null}, "swipes": {"type": "integer", "index": 5, "name": "swipes", "comment": null}, "conversion_purchases_value": {"type": "double precision", "index": 6, "name": "conversion_purchases_value", "comment": null}, "conversion_add_billing": {"type": "integer", "index": 7, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "integer", "index": 8, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "integer", "index": 9, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "integer", "index": 10, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "integer", "index": 11, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "integer", "index": 12, "name": "conversion_purchases", "comment": null}, "conversion_save": {"type": "integer", "index": 13, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "integer", "index": 14, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "integer", "index": 15, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "integer", "index": 16, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "integer", "index": 17, "name": "conversion_view_content", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_ad_squad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "text", "index": 2, "name": "campaign_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_ad_squad_hourly_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_squad_id": {"type": "text", "index": 1, "name": "ad_squad_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "integer", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "integer", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "integer", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "integer", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "integer", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "integer", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "integer", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "integer", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "integer", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "integer", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "integer", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "integer", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "integer", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "integer", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "integer", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "double precision", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "integer", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "integer", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "integer", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "integer", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "integer", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "integer", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "integer", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "integer", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "integer", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "integer", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "integer", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "integer", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "integer", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "integer", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "integer", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "integer", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "integer", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "integer", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "integer", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "integer", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "integer", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "integer", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data"}, "seed.ad_reporting_integration_tests.snapchat_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_history_data"}, "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_campaign_hourly_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "text", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "integer", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "integer", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "integer", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "integer", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "integer", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "integer", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "integer", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "integer", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "integer", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "integer", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "integer", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "integer", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "integer", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "integer", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "integer", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "double precision", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "integer", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "integer", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "integer", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "integer", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "integer", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "integer", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "integer", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "integer", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "integer", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "integer", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "integer", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "integer", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "integer", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "integer", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "integer", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "integer", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "integer", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "integer", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "integer", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "integer", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "integer", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "integer", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data"}, "seed.ad_reporting_integration_tests.snapchat_creative_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_creative_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "web_view_url": {"type": "text", "index": 4, "name": "web_view_url", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_history_data"}, "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_creative_url_tag_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creative_id": {"type": "text", "index": 1, "name": "creative_id", "comment": null}, "key": {"type": "text", "index": 2, "name": "key", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "updated_at": {"type": "text", "index": 4, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data"}, "seed.ad_reporting_integration_tests.tiktok_ad_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "tiktok_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "integer", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "text", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "text", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "text", "index": 8, "name": "call_to_action", "comment": null}, "secondary_status": {"type": "text", "index": 9, "name": "secondary_status", "comment": null}, "operation_status": {"type": "text", "index": 10, "name": "operation_status", "comment": null}, "ad_text": {"type": "text", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "text", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "integer", "index": 13, "name": "app_name", "comment": null}, "deeplink": {"type": "integer", "index": 14, "name": "deeplink", "comment": null}, "landing_page_url": {"type": "text", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "text", "index": 16, "name": "display_name", "comment": null}, "profile_image_url": {"type": "integer", "index": 17, "name": "profile_image_url", "comment": null}, "impression_tracking_url": {"type": "integer", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "integer", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "integer", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "boolean", "index": 21, "name": "is_aco", "comment": null}, "creative_authorized": {"type": "boolean", "index": 22, "name": "creative_authorized", "comment": null}, "is_new_structure": {"type": "boolean", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "text", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "text", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_history_data"}, "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "tiktok_ad_report_hourly_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 4, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 5, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 6, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 7, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 8, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 9, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 10, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 11, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 12, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 13, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 14, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 15, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 16, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "integer", "index": 17, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 18, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 19, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 20, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "integer", "index": 21, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 22, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 23, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 24, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 25, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 26, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 27, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 28, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 29, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 30, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 31, "name": "follows", "comment": null}, "result_rate": {"type": "integer", "index": 32, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 33, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 34, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 35, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "integer", "index": 36, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "integer", "index": 37, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 38, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 39, "name": "likes", "comment": null}, "real_time_conversion": {"type": "integer", "index": 40, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "double precision", "index": 41, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "double precision", "index": 42, "name": "total_sales_lead_value", "comment": null}, "_fivetran_synced": {"type": "text", "index": 43, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data"}, "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "tiktok_adgroup_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"adgroup_id": {"type": "integer", "index": 1, "name": "adgroup_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "create_time": {"type": "text", "index": 5, "name": "create_time", "comment": null}, "adgroup_name": {"type": "text", "index": 6, "name": "adgroup_name", "comment": null}, "placement_type": {"type": "text", "index": 7, "name": "placement_type", "comment": null}, "profile_image": {"type": "integer", "index": 8, "name": "profile_image", "comment": null}, "landing_page_url": {"type": "integer", "index": 9, "name": "landing_page_url", "comment": null}, "display_name": {"type": "integer", "index": 10, "name": "display_name", "comment": null}, "app_type": {"type": "integer", "index": 11, "name": "app_type", "comment": null}, "app_download_url": {"type": "integer", "index": 12, "name": "app_download_url", "comment": null}, "app_name": {"type": "integer", "index": 13, "name": "app_name", "comment": null}, "optimization_event": {"type": "text", "index": 14, "name": "optimization_event", "comment": null}, "secondary_optimization_event": {"type": "integer", "index": 15, "name": "secondary_optimization_event", "comment": null}, "creative_material_mode": {"type": "text", "index": 16, "name": "creative_material_mode", "comment": null}, "audience_type": {"type": "integer", "index": 17, "name": "audience_type", "comment": null}, "gender": {"type": "text", "index": 18, "name": "gender", "comment": null}, "min_android_version": {"type": "integer", "index": 19, "name": "min_android_version", "comment": null}, "min_ios_version": {"type": "integer", "index": 20, "name": "min_ios_version", "comment": null}, "budget_mode": {"type": "text", "index": 21, "name": "budget_mode", "comment": null}, "schedule_type": {"type": "text", "index": 22, "name": "schedule_type", "comment": null}, "dayparting": {"type": "integer", "index": 23, "name": "dayparting", "comment": null}, "optimization_goal": {"type": "text", "index": 24, "name": "optimization_goal", "comment": null}, "cpv_video_duration": {"type": "integer", "index": 25, "name": "cpv_video_duration", "comment": null}, "pacing": {"type": "text", "index": 26, "name": "pacing", "comment": null}, "billing_event": {"type": "text", "index": 27, "name": "billing_event", "comment": null}, "bid_type": {"type": "text", "index": 28, "name": "bid_type", "comment": null}, "deep_bid_type": {"type": "integer", "index": 29, "name": "deep_bid_type", "comment": null}, "impression_tracking_url": {"type": "integer", "index": 30, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "integer", "index": 31, "name": "click_tracking_url", "comment": null}, "secondary_status": {"type": "text", "index": 32, "name": "secondary_status", "comment": null}, "operation_status": {"type": "text", "index": 33, "name": "operation_status", "comment": null}, "statistic_type": {"type": "integer", "index": 34, "name": "statistic_type", "comment": null}, "video_download": {"type": "text", "index": 35, "name": "video_download", "comment": null}, "open_url": {"type": "integer", "index": 36, "name": "open_url", "comment": null}, "open_url_type": {"type": "integer", "index": 37, "name": "open_url_type", "comment": null}, "fallback_type": {"type": "integer", "index": 38, "name": "fallback_type", "comment": null}, "budget": {"type": "integer", "index": 39, "name": "budget", "comment": null}, "bid_price": {"type": "integer", "index": 40, "name": "bid_price", "comment": null}, "conversion_bid_price": {"type": "integer", "index": 41, "name": "conversion_bid_price", "comment": null}, "deep_cpa_bid": {"type": "integer", "index": 42, "name": "deep_cpa_bid", "comment": null}, "schedule_start_time": {"type": "text", "index": 43, "name": "schedule_start_time", "comment": null}, "schedule_end_time": {"type": "text", "index": 44, "name": "schedule_end_time", "comment": null}, "app_id": {"type": "integer", "index": 45, "name": "app_id", "comment": null}, "pixel_id": {"type": "integer", "index": 46, "name": "pixel_id", "comment": null}, "inventory_filter_enabled": {"type": "boolean", "index": 47, "name": "inventory_filter_enabled", "comment": null}, "is_hfss": {"type": "boolean", "index": 48, "name": "is_hfss", "comment": null}, "is_new_structure": {"type": "boolean", "index": 49, "name": "is_new_structure", "comment": null}, "category": {"type": "integer", "index": 50, "name": "category", "comment": null}, "is_comment_disable": {"type": "integer", "index": 51, "name": "is_comment_disable", "comment": null}, "skip_learning_phase": {"type": "integer", "index": 52, "name": "skip_learning_phase", "comment": null}, "frequency": {"type": "integer", "index": 53, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "integer", "index": 54, "name": "frequency_schedule", "comment": null}, "action_days": {"type": "integer", "index": 55, "name": "action_days", "comment": null}, "audience": {"type": "text", "index": 56, "name": "audience", "comment": null}, "excluded_audience": {"type": "text", "index": 57, "name": "excluded_audience", "comment": null}, "location": {"type": "text", "index": 58, "name": "location", "comment": null}, "interest_category_v_2": {"type": "text", "index": 59, "name": "interest_category_v_2", "comment": null}, "pangle_block_app_list_id": {"type": "text", "index": 60, "name": "pangle_block_app_list_id", "comment": null}, "action_categories": {"type": "text", "index": 61, "name": "action_categories", "comment": null}, "placements": {"type": "text", "index": 62, "name": "placements", "comment": null}, "keywords": {"type": "integer", "index": 63, "name": "keywords", "comment": null}, "age_groups": {"type": "text", "index": 64, "name": "age_groups", "comment": null}, "languages": {"type": "text", "index": 65, "name": "languages", "comment": null}, "operating_systems": {"type": "text", "index": 66, "name": "operating_systems", "comment": null}, "network_types": {"type": "text", "index": 67, "name": "network_types", "comment": null}, "carriers": {"type": "text", "index": 68, "name": "carriers", "comment": null}, "video_actions": {"type": "text", "index": 69, "name": "video_actions", "comment": null}, "package": {"type": "integer", "index": 70, "name": "package", "comment": null}, "_fivetran_synced": {"type": "text", "index": 71, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data"}, "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "tiktok_adgroup_report_hourly_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"adgroup_id": {"type": "integer", "index": 1, "name": "adgroup_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 4, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 5, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 6, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 7, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 8, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 9, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 10, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 11, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 12, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 13, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 14, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 15, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 16, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 17, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 18, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 19, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 20, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 21, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 22, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 23, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 24, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 25, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 26, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 27, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 28, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 29, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 30, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 31, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 32, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 33, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 34, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 35, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 36, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 37, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 38, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 39, "name": "likes", "comment": null}, "real_time_conversion": {"type": "integer", "index": 40, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "double precision", "index": 41, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "double precision", "index": 42, "name": "total_sales_lead_value", "comment": null}, "_fivetran_synced": {"type": "text", "index": 43, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data"}, "seed.ad_reporting_integration_tests.tiktok_advertiser_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "tiktok_advertiser_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "address": {"type": "text", "index": 3, "name": "address", "comment": null}, "company": {"type": "text", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "integer", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "description": {"type": "text", "index": 8, "name": "description", "comment": null}, "email": {"type": "text", "index": 9, "name": "email", "comment": null}, "industry": {"type": "integer", "index": 10, "name": "industry", "comment": null}, "license_no": {"type": "integer", "index": 11, "name": "license_no", "comment": null}, "license_url": {"type": "integer", "index": 12, "name": "license_url", "comment": null}, "promotion_area": {"type": "integer", "index": 13, "name": "promotion_area", "comment": null}, "rejected_reason": {"type": "integer", "index": 14, "name": "rejected_reason", "comment": null}, "role": {"type": "text", "index": 15, "name": "role", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "telephone_number": {"type": "text", "index": 17, "name": "telephone_number", "comment": null}, "timezone": {"type": "text", "index": 18, "name": "timezone", "comment": null}, "balance": {"type": "double precision", "index": 19, "name": "balance", "comment": null}, "create_time": {"type": "text", "index": 20, "name": "create_time", "comment": null}, "language": {"type": "text", "index": 21, "name": "language", "comment": null}, "cellphone_number": {"type": "text", "index": 22, "name": "cellphone_number", "comment": null}, "_fivetran_synced": {"type": "text", "index": 23, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_advertiser_data"}, "seed.ad_reporting_integration_tests.tiktok_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "tiktok_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "integer", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "text", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "text", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "text", "index": 8, "name": "call_to_action", "comment": null}, "secondary_status": {"type": "text", "index": 9, "name": "secondary_status", "comment": null}, "operation_status": {"type": "text", "index": 10, "name": "operation_status", "comment": null}, "ad_text": {"type": "text", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "text", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "integer", "index": 13, "name": "app_name", "comment": null}, "deeplink": {"type": "integer", "index": 14, "name": "deeplink", "comment": null}, "landing_page_url": {"type": "text", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "text", "index": 16, "name": "display_name", "comment": null}, "profile_image_url": {"type": "integer", "index": 17, "name": "profile_image_url", "comment": null}, "impression_tracking_url": {"type": "integer", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "integer", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "integer", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "boolean", "index": 21, "name": "is_aco", "comment": null}, "creative_authorized": {"type": "boolean", "index": 22, "name": "creative_authorized", "comment": null}, "is_new_structure": {"type": "boolean", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "text", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "text", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_history_data"}, "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "tiktok_campaign_report_hourly_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 4, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 5, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 6, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 7, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 8, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 9, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 10, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 11, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 12, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 13, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 14, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 15, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 16, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 17, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 18, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 19, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 20, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 21, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 22, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 23, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 24, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 25, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 26, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 27, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 28, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 29, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 30, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 31, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 32, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 33, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 34, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 35, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 36, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 37, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 38, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 39, "name": "likes", "comment": null}, "real_time_conversion": {"type": "integer", "index": 40, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "double precision", "index": 41, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "double precision", "index": 42, "name": "total_sales_lead_value", "comment": null}, "_fivetran_synced": {"type": "text", "index": 43, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data"}, "seed.ad_reporting_integration_tests.twitter_account_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "text", "index": 2, "name": "approval_status", "comment": null}, "business_id": {"type": "integer", "index": 3, "name": "business_id", "comment": null}, "business_name": {"type": "integer", "index": 4, "name": "business_name", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deleted": {"type": "boolean", "index": 6, "name": "deleted", "comment": null}, "id": {"type": "text", "index": 7, "name": "id", "comment": null}, "industry_type": {"type": "integer", "index": 8, "name": "industry_type", "comment": null}, "name": {"type": "character varying", "index": 9, "name": "name", "comment": null}, "salt": {"type": "integer", "index": 10, "name": "salt", "comment": null}, "timezone": {"type": "text", "index": 11, "name": "timezone", "comment": null}, "timezone_switch_at": {"type": "text", "index": 12, "name": "timezone_switch_at", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_history_data"}, "seed.ad_reporting_integration_tests.twitter_account_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_account_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "placement": {"type": "text", "index": 3, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "text", "index": 4, "name": "_fivetran_synced", "comment": null}, "engagements": {"type": "integer", "index": 5, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 6, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 8, "name": "likes", "comment": null}, "replies": {"type": "integer", "index": 9, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 10, "name": "retweets", "comment": null}, "unfollows": {"type": "integer", "index": 11, "name": "unfollows", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_report_data"}, "seed.ad_reporting_integration_tests.twitter_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "integer", "index": 5, "name": "daily_budget_amount_local_micro", "comment": null}, "deleted": {"type": "boolean", "index": 6, "name": "deleted", "comment": null}, "duration_in_days": {"type": "integer", "index": 7, "name": "duration_in_days", "comment": null}, "end_time": {"type": "text", "index": 8, "name": "end_time", "comment": null}, "entity_status": {"type": "text", "index": 9, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "integer", "index": 10, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "text", "index": 11, "name": "funding_instrument_id", "comment": null}, "id": {"type": "text", "index": 12, "name": "id", "comment": null}, "name": {"type": "text", "index": 13, "name": "name", "comment": null}, "servable": {"type": "boolean", "index": 14, "name": "servable", "comment": null}, "standard_delivery": {"type": "boolean", "index": 15, "name": "standard_delivery", "comment": null}, "start_time": {"type": "text", "index": 16, "name": "start_time", "comment": null}, "total_budget_amount_local_micro": {"type": "integer", "index": 17, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "text", "index": 18, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_history_data"}, "seed.ad_reporting_integration_tests.twitter_campaign_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "text", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "integer", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "integer", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "integer", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "integer", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "integer", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "integer", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "integer", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "integer", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "integer", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "integer", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "integer", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "integer", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "integer", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "integer", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "integer", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "integer", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "integer", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "integer", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "integer", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "integer", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "integer", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "integer", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "integer", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "integer", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "integer", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "integer", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "integer", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "integer", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "integer", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "integer", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "integer", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "integer", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "integer", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "integer", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "integer", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "integer", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "integer", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "integer", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "integer", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "integer", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "integer", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "integer", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "integer", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "integer", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "integer", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "integer", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "integer", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "integer", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "integer", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "integer", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "integer", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "integer", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "integer", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "integer", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "integer", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "integer", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "integer", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "integer", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "integer", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "integer", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "integer", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "integer", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "integer", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "integer", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "integer", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "integer", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "integer", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "integer", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "integer", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "integer", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "integer", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "integer", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "integer", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "integer", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "integer", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "integer", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "integer", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "integer", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "integer", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "integer", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "integer", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "integer", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "integer", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "integer", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "integer", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "integer", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "integer", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "integer", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "integer", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "integer", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "integer", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "integer", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "integer", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "integer", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "integer", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "integer", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "integer", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "integer", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "integer", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "integer", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "integer", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_qu": {"type": "integer", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_qu", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo": {"type": "integer", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "integer", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "integer", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "integer", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "integer", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit": {"type": "integer", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "integer", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "integer", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quan": {"type": "integer", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quan", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun": {"type": "integer", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "integer", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "integer", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "integer", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "integer", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "integer", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "integer", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "integer", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "integer", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "integer", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "integer", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "integer", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "integer", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "integer", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_q": {"type": "integer", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_q", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_am": {"type": "integer", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_am", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "integer", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "integer", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "integer", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "integer", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "integer", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "integer", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "integer", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "integer", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "integer", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "integer", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "integer", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "integer", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "integer", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "integer", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "integer", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "integer", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "integer", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "integer", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "integer", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "integer", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "integer", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "integer", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quan": {"type": "integer", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quan", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun": {"type": "integer", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "integer", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "integer", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "integer", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "integer", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "integer", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "integer", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "integer", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "integer", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "integer", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "integer", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "integer", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "integer", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "integer", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "integer", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "integer", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "integer", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "integer", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "integer", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "integer", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "integer", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "integer", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "integer", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "integer", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "integer", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "integer", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "integer", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "integer", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "integer", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "integer", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "integer", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "integer", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "integer", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "integer", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "integer", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "integer", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "integer", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "integer", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "integer", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "integer", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "integer", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "integer", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "integer", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "integer", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "integer", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "integer", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "integer", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "integer", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "integer", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "integer", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "integer", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "integer", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "integer", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "integer", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "integer", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "integer", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "integer", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "integer", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "integer", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "integer", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "integer", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "integer", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "integer", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "integer", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "integer", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "integer", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "integer", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "integer", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "integer", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "integer", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "integer", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "integer", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "integer", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "integer", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "integer", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "integer", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "integer", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "integer", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "integer", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "integer", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "integer", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "integer", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "integer", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "integer", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "integer", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "integer", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "integer", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "integer", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "integer", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "integer", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "integer", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_report_data"}, "seed.ad_reporting_integration_tests.twitter_line_item_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_line_item_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_domain": {"type": "text", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "integer", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "boolean", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "integer", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "text", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "text", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "text", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "text", "index": 8, "name": "charge_by", "comment": null}, "created_at": {"type": "text", "index": 9, "name": "created_at", "comment": null}, "creative_source": {"type": "text", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "deleted": {"type": "boolean", "index": 12, "name": "deleted", "comment": null}, "end_time": {"type": "integer", "index": 13, "name": "end_time", "comment": null}, "entity_status": {"type": "text", "index": 14, "name": "entity_status", "comment": null}, "id": {"type": "text", "index": 15, "name": "id", "comment": null}, "name": {"type": "text", "index": 16, "name": "name", "comment": null}, "objective": {"type": "text", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "text", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "integer", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "text", "index": 20, "name": "product_type", "comment": null}, "start_time": {"type": "integer", "index": 21, "name": "start_time", "comment": null}, "target_cpa_local_micro": {"type": "integer", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "integer", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "text", "index": 24, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_history_data"}, "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_line_item_keywords_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "text", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "segment": {"type": "text", "index": 5, "name": "segment", "comment": null}, "_fivetran_synced": {"type": "text", "index": 6, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "integer", "index": 7, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 8, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "integer", "index": 9, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "integer", "index": 10, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "integer", "index": 11, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "integer", "index": 12, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "integer", "index": 13, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "integer", "index": 14, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "integer", "index": 15, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "integer", "index": 16, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "integer", "index": 17, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "integer", "index": 18, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "integer", "index": 19, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "integer", "index": 20, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "integer", "index": 21, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "integer", "index": 22, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "integer", "index": 23, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "integer", "index": 24, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "integer", "index": 25, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "integer", "index": 26, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "integer", "index": 27, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "integer", "index": 28, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "integer", "index": 29, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "integer", "index": 30, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "integer", "index": 31, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "integer", "index": 32, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "integer", "index": 33, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "integer", "index": 34, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "integer", "index": 35, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "integer", "index": 36, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "integer", "index": 37, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "integer", "index": 38, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "integer", "index": 39, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "integer", "index": 40, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "integer", "index": 41, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "integer", "index": 42, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "integer", "index": 43, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "integer", "index": 44, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "integer", "index": 45, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "integer", "index": 46, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "integer", "index": 47, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "integer", "index": 48, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "integer", "index": 49, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "integer", "index": 50, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "integer", "index": 51, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "integer", "index": 52, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "integer", "index": 53, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "integer", "index": 54, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "integer", "index": 55, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "integer", "index": 56, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "integer", "index": 57, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "integer", "index": 58, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "integer", "index": 59, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "integer", "index": 60, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 61, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 62, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 63, "name": "likes", "comment": null}, "media_engagements": {"type": "integer", "index": 64, "name": "media_engagements", "comment": null}, "media_views": {"type": "integer", "index": 65, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "integer", "index": 66, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "integer", "index": 67, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "integer", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "integer", "index": 69, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "integer", "index": 70, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "integer", "index": 71, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "integer", "index": 72, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "integer", "index": 73, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "integer", "index": 74, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "integer", "index": 75, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "integer", "index": 76, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "integer", "index": 77, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "integer", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "integer", "index": 79, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "integer", "index": 80, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "integer", "index": 81, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "integer", "index": 82, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "integer", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "integer", "index": 84, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "integer", "index": 85, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "integer", "index": 86, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "integer", "index": 87, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "integer", "index": 88, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "integer", "index": 89, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "integer", "index": 90, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "integer", "index": 91, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "integer", "index": 92, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "integer", "index": 93, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "integer", "index": 94, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "integer", "index": 95, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "integer", "index": 96, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "integer", "index": 97, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "integer", "index": 98, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "integer", "index": 99, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "integer", "index": 100, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "integer", "index": 101, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_invites_assisted": {"type": "integer", "index": 102, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "integer", "index": 103, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "integer", "index": 104, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "integer", "index": 105, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "integer", "index": 106, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "integer", "index": 107, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "integer", "index": 108, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "integer", "index": 109, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "integer", "index": 110, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "integer", "index": 111, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "integer", "index": 112, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "integer", "index": 113, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "integer", "index": 114, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_qu": {"type": "integer", "index": 115, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_qu", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo": {"type": "integer", "index": 116, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "integer", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "integer", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "integer", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "integer", "index": 120, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit": {"type": "integer", "index": 121, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "integer", "index": 122, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "integer", "index": 123, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quan": {"type": "integer", "index": 124, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quan", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun": {"type": "integer", "index": 125, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "integer", "index": 126, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "integer", "index": 127, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "integer", "index": 128, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "integer", "index": 129, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "integer", "index": 130, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "integer", "index": 131, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "integer", "index": 132, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "integer", "index": 133, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "integer", "index": 134, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "integer", "index": 135, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "integer", "index": 136, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "integer", "index": 137, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "integer", "index": 138, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_q": {"type": "integer", "index": 139, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_q", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_am": {"type": "integer", "index": 140, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_am", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "integer", "index": 141, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "integer", "index": 142, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "integer", "index": 143, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "integer", "index": 144, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "integer", "index": 145, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "integer", "index": 146, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "integer", "index": 147, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "integer", "index": 148, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "integer", "index": 149, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "integer", "index": 150, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "integer", "index": 151, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "integer", "index": 152, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "integer", "index": 153, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "integer", "index": 154, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "integer", "index": 155, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "integer", "index": 156, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "integer", "index": 157, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "integer", "index": 158, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "integer", "index": 159, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "integer", "index": 160, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "integer", "index": 161, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "integer", "index": 162, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quan": {"type": "integer", "index": 163, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quan", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun": {"type": "integer", "index": 164, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "integer", "index": 165, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "integer", "index": 166, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "integer", "index": 167, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "integer", "index": 168, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "integer", "index": 169, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "integer", "index": 170, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "integer", "index": 171, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "integer", "index": 172, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "integer", "index": 173, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "integer", "index": 174, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "integer", "index": 175, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "integer", "index": 176, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "integer", "index": 177, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "integer", "index": 178, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "integer", "index": 179, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "integer", "index": 180, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "integer", "index": 181, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "integer", "index": 182, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "integer", "index": 183, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "integer", "index": 184, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "mobile_conversion_rates_assisted": {"type": "integer", "index": 185, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "integer", "index": 186, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "integer", "index": 187, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "integer", "index": 188, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "integer", "index": 189, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "integer", "index": 190, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "integer", "index": 191, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "integer", "index": 192, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "integer", "index": 193, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "integer", "index": 194, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "integer", "index": 195, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "integer", "index": 196, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "integer", "index": 197, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "integer", "index": 198, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "integer", "index": 199, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "integer", "index": 200, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "integer", "index": 201, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "integer", "index": 202, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "integer", "index": 203, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "integer", "index": 204, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "integer", "index": 205, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "integer", "index": 206, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "integer", "index": 207, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "integer", "index": 208, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "integer", "index": 209, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "integer", "index": 210, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "integer", "index": 211, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "integer", "index": 212, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "integer", "index": 213, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "integer", "index": 214, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "integer", "index": 215, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "integer", "index": 216, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "integer", "index": 217, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "integer", "index": 218, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "integer", "index": 219, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "integer", "index": 220, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "integer", "index": 221, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "integer", "index": 222, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "integer", "index": 223, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "integer", "index": 224, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "integer", "index": 225, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "integer", "index": 226, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "integer", "index": 227, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "integer", "index": 228, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "integer", "index": 229, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "integer", "index": 230, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "integer", "index": 231, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "integer", "index": 232, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "integer", "index": 233, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "integer", "index": 234, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "integer", "index": 235, "name": "qualified_impressions", "comment": null}, "replies": {"type": "integer", "index": 236, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 237, "name": "retweets", "comment": null}, "tweets_send": {"type": "integer", "index": 238, "name": "tweets_send", "comment": null}, "unfollows": {"type": "integer", "index": 239, "name": "unfollows", "comment": null}, "url_clicks": {"type": "integer", "index": 240, "name": "url_clicks", "comment": null}, "video_15_s_views": {"type": "integer", "index": 241, "name": "video_15_s_views", "comment": null}, "video_3_s_100_pct_views": {"type": "integer", "index": 242, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "integer", "index": 243, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "integer", "index": 244, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "integer", "index": 245, "name": "video_cta_clicks", "comment": null}, "video_total_views": {"type": "integer", "index": 246, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "integer", "index": 247, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "integer", "index": 248, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "integer", "index": 249, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "integer", "index": 250, "name": "video_views_75", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data"}, "seed.ad_reporting_integration_tests.twitter_line_item_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_line_item_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "text", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "integer", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "integer", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "integer", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "integer", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "integer", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "integer", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "integer", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "integer", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "integer", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "integer", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "integer", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "integer", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "integer", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "integer", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "integer", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "integer", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "integer", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "integer", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "integer", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "integer", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "integer", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "integer", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "integer", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "integer", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "integer", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "integer", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "integer", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "integer", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "integer", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "integer", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "integer", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "integer", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "integer", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "integer", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "integer", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "integer", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "integer", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "integer", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "integer", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "integer", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "integer", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "integer", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "integer", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "integer", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "integer", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "integer", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "integer", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "integer", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "integer", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "integer", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "integer", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "integer", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "integer", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "integer", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "integer", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "integer", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "integer", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "integer", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "integer", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "integer", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "integer", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "integer", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "integer", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "integer", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "integer", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "integer", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "integer", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "integer", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "integer", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "integer", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "integer", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "integer", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "integer", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "integer", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "integer", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "integer", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "integer", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "integer", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "integer", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "integer", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "integer", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "integer", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "integer", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "integer", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "integer", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "integer", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "integer", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "integer", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "integer", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "integer", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "integer", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "integer", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "integer", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "integer", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "integer", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "integer", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "integer", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "integer", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "integer", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "integer", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "integer", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_qu": {"type": "integer", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_qu", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo": {"type": "integer", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "integer", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "integer", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "integer", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "integer", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit": {"type": "integer", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "integer", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "integer", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quan": {"type": "integer", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quan", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun": {"type": "integer", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "integer", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "integer", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "integer", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "integer", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "integer", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "integer", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "integer", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "integer", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "integer", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "integer", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "integer", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "integer", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "integer", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_q": {"type": "integer", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_q", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_am": {"type": "integer", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_am", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "integer", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "integer", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "integer", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "integer", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "integer", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "integer", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "integer", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "integer", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "integer", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "integer", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "integer", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "integer", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "integer", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "integer", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "integer", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "integer", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "integer", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "integer", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "integer", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "integer", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "integer", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "integer", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quan": {"type": "integer", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quan", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun": {"type": "integer", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "integer", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "integer", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "integer", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "integer", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "integer", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "integer", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "integer", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "integer", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "integer", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "integer", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "integer", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "integer", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "integer", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "integer", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "integer", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "integer", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "integer", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "integer", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "integer", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "integer", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "integer", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "integer", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "integer", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "integer", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "integer", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "integer", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "integer", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "integer", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "integer", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "integer", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "integer", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "integer", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "integer", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "integer", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "integer", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "integer", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "integer", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "integer", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "integer", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "integer", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "integer", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "integer", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "integer", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "integer", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "integer", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "integer", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "integer", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "integer", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "integer", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "integer", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "integer", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "integer", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "integer", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "integer", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "integer", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "integer", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "integer", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "integer", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "integer", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "integer", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "integer", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "integer", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "integer", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "integer", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "integer", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "integer", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "integer", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "integer", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "integer", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "integer", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "integer", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "integer", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "integer", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "integer", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "integer", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "integer", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "integer", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "integer", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "integer", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "integer", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "integer", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "integer", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "integer", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "integer", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "integer", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "integer", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "integer", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "integer", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "integer", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "integer", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_report_data"}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_promoted_tweet_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "text", "index": 2, "name": "approval_status", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "deleted": {"type": "boolean", "index": 4, "name": "deleted", "comment": null}, "entity_status": {"type": "text", "index": 5, "name": "entity_status", "comment": null}, "id": {"type": "text", "index": 6, "name": "id", "comment": null}, "line_item_id": {"type": "text", "index": 7, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "bigint", "index": 8, "name": "tweet_id", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data"}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_promoted_tweet_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 3, "name": "billed_charge_local_micro", "comment": null}, "clicks": {"type": "integer", "index": 4, "name": "clicks", "comment": null}, "date": {"type": "timestamp without time zone", "index": 5, "name": "date", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "promoted_tweet_id": {"type": "text", "index": 7, "name": "promoted_tweet_id", "comment": null}, "url_clicks": {"type": "integer", "index": 8, "name": "url_clicks", "comment": null}, "placement": {"type": "text", "index": 9, "name": "placement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data"}, "seed.ad_reporting_integration_tests.twitter_tweet_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_tweet_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "card_uri": {"type": "integer", "index": 4, "name": "card_uri", "comment": null}, "coordinates_coordinates": {"type": "integer", "index": 5, "name": "coordinates_coordinates", "comment": null}, "coordinates_type": {"type": "integer", "index": 6, "name": "coordinates_type", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "favorite_count": {"type": "integer", "index": 8, "name": "favorite_count", "comment": null}, "favorited": {"type": "boolean", "index": 9, "name": "favorited", "comment": null}, "followers": {"type": "integer", "index": 10, "name": "followers", "comment": null}, "full_text": {"type": "text", "index": 11, "name": "full_text", "comment": null}, "geo_coordinates": {"type": "integer", "index": 12, "name": "geo_coordinates", "comment": null}, "geo_type": {"type": "integer", "index": 13, "name": "geo_type", "comment": null}, "in_reply_to_screen_name": {"type": "integer", "index": 14, "name": "in_reply_to_screen_name", "comment": null}, "in_reply_to_status_id": {"type": "integer", "index": 15, "name": "in_reply_to_status_id", "comment": null}, "in_reply_to_user_id": {"type": "integer", "index": 16, "name": "in_reply_to_user_id", "comment": null}, "lang": {"type": "text", "index": 17, "name": "lang", "comment": null}, "media_key": {"type": "integer", "index": 18, "name": "media_key", "comment": null}, "retweet_count": {"type": "integer", "index": 19, "name": "retweet_count", "comment": null}, "retweeted": {"type": "boolean", "index": 20, "name": "retweeted", "comment": null}, "source": {"type": "text", "index": 21, "name": "source", "comment": null}, "truncated": {"type": "boolean", "index": 22, "name": "truncated", "comment": null}, "tweet_type": {"type": "text", "index": 23, "name": "tweet_type", "comment": null}, "user_id": {"type": "integer", "index": 24, "name": "user_id", "comment": null}, "name": {"type": "integer", "index": 25, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_data"}, "seed.ad_reporting_integration_tests.twitter_tweet_url_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_tweet_url_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "display_url": {"type": "text", "index": 2, "name": "display_url", "comment": null}, "expanded_url": {"type": "text", "index": 3, "name": "expanded_url", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "indices": {"type": "text", "index": 5, "name": "indices", "comment": null}, "tweet_id": {"type": "bigint", "index": 6, "name": "tweet_id", "comment": null}, "url": {"type": "text", "index": 7, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_url_data"}, "model.ad_reporting.ad_reporting__account_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "ad_reporting__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "platform": {"type": "text", "index": 3, "name": "platform", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 5, "name": "account_name", "comment": null}, "clicks": {"type": "bigint", "index": 6, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 7, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 8, "name": "spend", "comment": null}, "conversions": {"type": "double precision", "index": 9, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 10, "name": "conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__account_report"}, "model.ad_reporting.ad_reporting__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "ad_reporting__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "platform": {"type": "text", "index": 3, "name": "platform", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "text", "index": 8, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 9, "name": "ad_group_name", "comment": null}, "clicks": {"type": "bigint", "index": 10, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 11, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 12, "name": "spend", "comment": null}, "conversions": {"type": "double precision", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 14, "name": "conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__ad_group_report"}, "model.ad_reporting.ad_reporting__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "ad_reporting__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "platform": {"type": "text", "index": 3, "name": "platform", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "text", "index": 8, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 9, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "text", "index": 10, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 11, "name": "ad_name", "comment": null}, "clicks": {"type": "bigint", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 14, "name": "spend", "comment": null}, "conversions": {"type": "double precision", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 16, "name": "conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__ad_report"}, "model.ad_reporting.ad_reporting__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "ad_reporting__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "platform": {"type": "text", "index": 3, "name": "platform", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "clicks": {"type": "bigint", "index": 8, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 9, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 10, "name": "spend", "comment": null}, "conversions": {"type": "double precision", "index": 11, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 12, "name": "conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__campaign_report"}, "model.ad_reporting.ad_reporting__keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "ad_reporting__keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "platform": {"type": "text", "index": 3, "name": "platform", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "text", "index": 8, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 9, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "text", "index": 10, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "text", "index": 11, "name": "keyword_text", "comment": null}, "keyword_match_type": {"type": "text", "index": 12, "name": "keyword_match_type", "comment": null}, "clicks": {"type": "bigint", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 15, "name": "spend", "comment": null}, "conversions": {"type": "double precision", "index": 16, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 17, "name": "conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__keyword_report"}, "model.ad_reporting.ad_reporting__search_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "ad_reporting__search_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "platform": {"type": "text", "index": 3, "name": "platform", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "text", "index": 8, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 9, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "text", "index": 10, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "text", "index": 11, "name": "keyword_text", "comment": null}, "search_query": {"type": "text", "index": 12, "name": "search_query", "comment": null}, "search_match_type": {"type": "text", "index": 13, "name": "search_match_type", "comment": null}, "clicks": {"type": "bigint", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 16, "name": "spend", "comment": null}, "conversions": {"type": "double precision", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 18, "name": "conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__search_report"}, "model.ad_reporting.ad_reporting__url_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "ad_reporting__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "platform": {"type": "text", "index": 3, "name": "platform", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "text", "index": 8, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 9, "name": "ad_group_name", "comment": null}, "base_url": {"type": "text", "index": 10, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 11, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 12, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 13, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 14, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 15, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 16, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 17, "name": "utm_term", "comment": null}, "clicks": {"type": "bigint", "index": 18, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 19, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 20, "name": "spend", "comment": null}, "conversions": {"type": "double precision", "index": 21, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 22, "name": "conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__url_report"}, "model.amazon_ads.amazon_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "amazon_ads__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "text", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "country_code": {"type": "text", "index": 5, "name": "country_code", "comment": null}, "profile_id": {"type": "text", "index": 6, "name": "profile_id", "comment": null}, "cost": {"type": "double precision", "index": 7, "name": "cost", "comment": null}, "clicks": {"type": "bigint", "index": 8, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 9, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "bigint", "index": 10, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "bigint", "index": 11, "name": "sales_30_d", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__account_report"}, "model.amazon_ads.amazon_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "amazon_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "text", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "country_code": {"type": "text", "index": 5, "name": "country_code", "comment": null}, "profile_id": {"type": "text", "index": 6, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "text", "index": 7, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "text", "index": 8, "name": "portfolio_id", "comment": null}, "campaign_name": {"type": "text", "index": 9, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "text", "index": 10, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 11, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "text", "index": 12, "name": "ad_group_id", "comment": null}, "serving_status": {"type": "text", "index": 13, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "default_bid": {"type": "double precision", "index": 15, "name": "default_bid", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 16, "name": "campaign_bidding_strategy", "comment": null}, "cost": {"type": "double precision", "index": 17, "name": "cost", "comment": null}, "clicks": {"type": "bigint", "index": 18, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 19, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "bigint", "index": 20, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "double precision", "index": 21, "name": "sales_30_d", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__ad_group_report"}, "model.amazon_ads.amazon_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "amazon_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "text", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "country_code": {"type": "text", "index": 5, "name": "country_code", "comment": null}, "profile_id": {"type": "text", "index": 6, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "text", "index": 7, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "text", "index": 8, "name": "portfolio_id", "comment": null}, "campaign_name": {"type": "text", "index": 9, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "text", "index": 10, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 11, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "text", "index": 12, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "text", "index": 13, "name": "ad_id", "comment": null}, "serving_status": {"type": "text", "index": 14, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 15, "name": "state", "comment": null}, "advertised_asin": {"type": "integer", "index": 16, "name": "advertised_asin", "comment": null}, "advertised_sku": {"type": "integer", "index": 17, "name": "advertised_sku", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 18, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 19, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 20, "name": "campaign_budget_type", "comment": null}, "cost": {"type": "double precision", "index": 21, "name": "cost", "comment": null}, "clicks": {"type": "bigint", "index": 22, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 23, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "bigint", "index": 24, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "double precision", "index": 25, "name": "sales_30_d", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__ad_report"}, "model.amazon_ads.amazon_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "amazon_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "text", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "country_code": {"type": "text", "index": 5, "name": "country_code", "comment": null}, "profile_id": {"type": "text", "index": 6, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "text", "index": 7, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "text", "index": 8, "name": "portfolio_id", "comment": null}, "campaign_name": {"type": "text", "index": 9, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "text", "index": 10, "name": "campaign_id", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 11, "name": "campaign_bidding_strategy", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 12, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 13, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 14, "name": "campaign_budget_type", "comment": null}, "cost": {"type": "double precision", "index": 15, "name": "cost", "comment": null}, "clicks": {"type": "bigint", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 17, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "bigint", "index": 18, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "bigint", "index": 19, "name": "sales_30_d", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__campaign_report"}, "model.amazon_ads.amazon_ads__keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "amazon_ads__keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "text", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "country_code": {"type": "text", "index": 5, "name": "country_code", "comment": null}, "profile_id": {"type": "text", "index": 6, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "text", "index": 7, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "text", "index": 8, "name": "portfolio_id", "comment": null}, "campaign_name": {"type": "text", "index": 9, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "text", "index": 10, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 11, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "text", "index": 12, "name": "ad_group_id", "comment": null}, "keyword_id": {"type": "text", "index": 13, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "text", "index": 14, "name": "keyword_text", "comment": null}, "serving_status": {"type": "text", "index": 15, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 16, "name": "state", "comment": null}, "keyword_bid": {"type": "double precision", "index": 17, "name": "keyword_bid", "comment": null}, "keyword_type": {"type": "text", "index": 18, "name": "keyword_type", "comment": null}, "match_type": {"type": "text", "index": 19, "name": "match_type", "comment": null}, "cost": {"type": "double precision", "index": 20, "name": "cost", "comment": null}, "clicks": {"type": "bigint", "index": 21, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 22, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "bigint", "index": 23, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "double precision", "index": 24, "name": "sales_30_d", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__keyword_report"}, "model.amazon_ads.amazon_ads__portfolio_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "amazon_ads__portfolio_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "text", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "country_code": {"type": "text", "index": 5, "name": "country_code", "comment": null}, "profile_id": {"type": "text", "index": 6, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "text", "index": 7, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "text", "index": 8, "name": "portfolio_id", "comment": null}, "budget_amount": {"type": "integer", "index": 9, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "integer", "index": 10, "name": "budget_currency_code", "comment": null}, "budget_start_date": {"type": "integer", "index": 11, "name": "budget_start_date", "comment": null}, "budget_end_date": {"type": "integer", "index": 12, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "integer", "index": 13, "name": "budget_policy", "comment": null}, "in_budget": {"type": "boolean", "index": 14, "name": "in_budget", "comment": null}, "serving_status": {"type": "text", "index": 15, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 16, "name": "state", "comment": null}, "cost": {"type": "double precision", "index": 17, "name": "cost", "comment": null}, "clicks": {"type": "bigint", "index": 18, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 19, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "bigint", "index": 20, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "bigint", "index": 21, "name": "sales_30_d", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__portfolio_report"}, "model.amazon_ads.amazon_ads__search_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "amazon_ads__search_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "text", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "country_code": {"type": "text", "index": 5, "name": "country_code", "comment": null}, "profile_id": {"type": "text", "index": 6, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "text", "index": 7, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "text", "index": 8, "name": "portfolio_id", "comment": null}, "campaign_name": {"type": "text", "index": 9, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "text", "index": 10, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 11, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "text", "index": 12, "name": "ad_group_id", "comment": null}, "keyword_id": {"type": "text", "index": 13, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "text", "index": 14, "name": "keyword_text", "comment": null}, "match_type": {"type": "text", "index": 15, "name": "match_type", "comment": null}, "serving_status": {"type": "text", "index": 16, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 17, "name": "state", "comment": null}, "search_term": {"type": "text", "index": 18, "name": "search_term", "comment": null}, "targeting": {"type": "text", "index": 19, "name": "targeting", "comment": null}, "cost": {"type": "double precision", "index": 20, "name": "cost", "comment": null}, "clicks": {"type": "bigint", "index": 21, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 22, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "bigint", "index": 23, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "double precision", "index": 24, "name": "sales_30_d", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__search_report"}, "model.apple_search_ads.apple_search_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "apple_search_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "organization_id": {"type": "integer", "index": 3, "name": "organization_id", "comment": null}, "organization_name": {"type": "text", "index": 4, "name": "organization_name", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "ad_group_status": {"type": "text", "index": 10, "name": "ad_group_status", "comment": null}, "start_at": {"type": "timestamp without time zone", "index": 11, "name": "start_at", "comment": null}, "end_at": {"type": "timestamp without time zone", "index": 12, "name": "end_at", "comment": null}, "taps": {"type": "bigint", "index": 13, "name": "taps", "comment": null}, "new_downloads": {"type": "bigint", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "bigint", "index": 15, "name": "redownloads", "comment": null}, "total_downloads": {"type": "bigint", "index": 16, "name": "total_downloads", "comment": null}, "conversions": {"type": "bigint", "index": 17, "name": "conversions", "comment": null}, "impressions": {"type": "bigint", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 19, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__ad_group_report"}, "model.apple_search_ads.apple_search_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "apple_search_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "organization_id": {"type": "integer", "index": 3, "name": "organization_id", "comment": null}, "organization_name": {"type": "text", "index": 4, "name": "organization_name", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "integer", "index": 9, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 10, "name": "ad_name", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "ad_status": {"type": "text", "index": 12, "name": "ad_status", "comment": null}, "taps": {"type": "bigint", "index": 13, "name": "taps", "comment": null}, "new_downloads": {"type": "bigint", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "bigint", "index": 15, "name": "redownloads", "comment": null}, "total_downloads": {"type": "bigint", "index": 16, "name": "total_downloads", "comment": null}, "conversions": {"type": "bigint", "index": 17, "name": "conversions", "comment": null}, "impressions": {"type": "bigint", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 19, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__ad_report"}, "model.apple_search_ads.apple_search_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "apple_search_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "organization_id": {"type": "integer", "index": 3, "name": "organization_id", "comment": null}, "organization_name": {"type": "text", "index": 4, "name": "organization_name", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "campaign_status": {"type": "text", "index": 8, "name": "campaign_status", "comment": null}, "start_at": {"type": "timestamp without time zone", "index": 9, "name": "start_at", "comment": null}, "end_at": {"type": "timestamp without time zone", "index": 10, "name": "end_at", "comment": null}, "taps": {"type": "bigint", "index": 11, "name": "taps", "comment": null}, "new_downloads": {"type": "bigint", "index": 12, "name": "new_downloads", "comment": null}, "redownloads": {"type": "bigint", "index": 13, "name": "redownloads", "comment": null}, "total_downloads": {"type": "bigint", "index": 14, "name": "total_downloads", "comment": null}, "conversions": {"type": "bigint", "index": 15, "name": "conversions", "comment": null}, "impressions": {"type": "bigint", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__campaign_report"}, "model.apple_search_ads.apple_search_ads__keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "apple_search_ads__keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "organization_id": {"type": "integer", "index": 3, "name": "organization_id", "comment": null}, "organization_name": {"type": "text", "index": 4, "name": "organization_name", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "integer", "index": 9, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "text", "index": 10, "name": "keyword_text", "comment": null}, "match_type": {"type": "text", "index": 11, "name": "match_type", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "keyword_status": {"type": "text", "index": 13, "name": "keyword_status", "comment": null}, "taps": {"type": "bigint", "index": 14, "name": "taps", "comment": null}, "new_downloads": {"type": "bigint", "index": 15, "name": "new_downloads", "comment": null}, "redownloads": {"type": "bigint", "index": 16, "name": "redownloads", "comment": null}, "total_downloads": {"type": "bigint", "index": 17, "name": "total_downloads", "comment": null}, "conversions": {"type": "bigint", "index": 18, "name": "conversions", "comment": null}, "impressions": {"type": "bigint", "index": 19, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 20, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__keyword_report"}, "model.apple_search_ads.apple_search_ads__organization_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "apple_search_ads__organization_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "organization_id": {"type": "integer", "index": 3, "name": "organization_id", "comment": null}, "organization_name": {"type": "text", "index": 4, "name": "organization_name", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "taps": {"type": "bigint", "index": 6, "name": "taps", "comment": null}, "new_downloads": {"type": "bigint", "index": 7, "name": "new_downloads", "comment": null}, "redownloads": {"type": "bigint", "index": 8, "name": "redownloads", "comment": null}, "total_downloads": {"type": "bigint", "index": 9, "name": "total_downloads", "comment": null}, "conversions": {"type": "bigint", "index": 10, "name": "conversions", "comment": null}, "impressions": {"type": "bigint", "index": 11, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 12, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__organization_report"}, "model.apple_search_ads.apple_search_ads__search_term_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "apple_search_ads__search_term_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "organization_id": {"type": "integer", "index": 3, "name": "organization_id", "comment": null}, "organization_name": {"type": "text", "index": 4, "name": "organization_name", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "integer", "index": 9, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "text", "index": 10, "name": "keyword_text", "comment": null}, "search_term_text": {"type": "text", "index": 11, "name": "search_term_text", "comment": null}, "match_type": {"type": "text", "index": 12, "name": "match_type", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "taps": {"type": "bigint", "index": 14, "name": "taps", "comment": null}, "new_downloads": {"type": "bigint", "index": 15, "name": "new_downloads", "comment": null}, "redownloads": {"type": "bigint", "index": 16, "name": "redownloads", "comment": null}, "total_downloads": {"type": "bigint", "index": 17, "name": "total_downloads", "comment": null}, "conversions": {"type": "bigint", "index": 18, "name": "conversions", "comment": null}, "impressions": {"type": "bigint", "index": 19, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 20, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__search_term_report"}, "model.facebook_ads.facebook_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "facebook_ads__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 4, "name": "account_name", "comment": null}, "account_status": {"type": "text", "index": 5, "name": "account_status", "comment": null}, "business_country_code": {"type": "text", "index": 6, "name": "business_country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "timezone_name": {"type": "text", "index": 9, "name": "timezone_name", "comment": null}, "clicks": {"type": "bigint", "index": 10, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 11, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 12, "name": "spend", "comment": null}, "conversions": {"type": "double precision", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 14, "name": "conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__account_report"}, "model.facebook_ads.facebook_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "facebook_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "ad_set_id": {"type": "bigint", "index": 7, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "text", "index": 8, "name": "ad_set_name", "comment": null}, "ad_id": {"type": "bigint", "index": 9, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 10, "name": "ad_name", "comment": null}, "conversion_domain": {"type": "text", "index": 11, "name": "conversion_domain", "comment": null}, "clicks": {"type": "bigint", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 14, "name": "spend", "comment": null}, "conversions": {"type": "double precision", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 16, "name": "conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__ad_report"}, "model.facebook_ads.facebook_ads__ad_set_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "facebook_ads__ad_set_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "ad_set_id": {"type": "bigint", "index": 7, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "text", "index": 8, "name": "ad_set_name", "comment": null}, "start_at": {"type": "timestamp without time zone", "index": 9, "name": "start_at", "comment": null}, "end_at": {"type": "timestamp without time zone", "index": 10, "name": "end_at", "comment": null}, "bid_strategy": {"type": "text", "index": 11, "name": "bid_strategy", "comment": null}, "daily_budget": {"type": "integer", "index": 12, "name": "daily_budget", "comment": null}, "budget_remaining": {"type": "integer", "index": 13, "name": "budget_remaining", "comment": null}, "optimization_goal": {"type": "text", "index": 14, "name": "optimization_goal", "comment": null}, "clicks": {"type": "bigint", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}, "conversions": {"type": "double precision", "index": 18, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 19, "name": "conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__ad_set_report"}, "model.facebook_ads.facebook_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "facebook_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "start_at": {"type": "timestamp without time zone", "index": 7, "name": "start_at", "comment": null}, "end_at": {"type": "timestamp without time zone", "index": 8, "name": "end_at", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "daily_budget": {"type": "integer", "index": 10, "name": "daily_budget", "comment": null}, "lifetime_budget": {"type": "integer", "index": 11, "name": "lifetime_budget", "comment": null}, "budget_remaining": {"type": "double precision", "index": 12, "name": "budget_remaining", "comment": null}, "clicks": {"type": "bigint", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 15, "name": "spend", "comment": null}, "conversions": {"type": "double precision", "index": 16, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 17, "name": "conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__campaign_report"}, "model.facebook_ads.facebook_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "facebook_ads__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "ad_set_id": {"type": "bigint", "index": 7, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "text", "index": 8, "name": "ad_set_name", "comment": null}, "ad_id": {"type": "bigint", "index": 9, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 10, "name": "ad_name", "comment": null}, "creative_id": {"type": "bigint", "index": 11, "name": "creative_id", "comment": null}, "creative_name": {"type": "text", "index": 12, "name": "creative_name", "comment": null}, "base_url": {"type": "text", "index": 13, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 14, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 15, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 16, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 17, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 18, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 19, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 20, "name": "utm_term", "comment": null}, "clicks": {"type": "bigint", "index": 21, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 22, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 23, "name": "spend", "comment": null}, "conversions": {"type": "double precision", "index": 24, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 25, "name": "conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__url_report"}, "model.facebook_ads.facebook_ads__url_tags": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "facebook_ads__url_tags", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_id": {"type": "text", "index": 2, "name": "_fivetran_id", "comment": null}, "creative_id": {"type": "bigint", "index": 3, "name": "creative_id", "comment": null}, "key": {"type": "text", "index": 4, "name": "key", "comment": null}, "value": {"type": "text", "index": 5, "name": "value", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__url_tags"}, "model.google_ads.google_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "google_ads__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "integer", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "auto_tagging_enabled": {"type": "boolean", "index": 6, "name": "auto_tagging_enabled", "comment": null}, "time_zone": {"type": "integer", "index": 7, "name": "time_zone", "comment": null}, "spend": {"type": "numeric", "index": 8, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 10, "name": "impressions", "comment": null}, "conversions": {"type": "bigint", "index": 11, "name": "conversions", "comment": null}, "conversions_value": {"type": "bigint", "index": 12, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "bigint", "index": 13, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__account_report"}, "model.google_ads.google_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "google_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "integer", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "text", "index": 9, "name": "ad_group_id", "comment": null}, "ad_group_status": {"type": "text", "index": 10, "name": "ad_group_status", "comment": null}, "ad_group_type": {"type": "text", "index": 11, "name": "ad_group_type", "comment": null}, "spend": {"type": "numeric", "index": 12, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 14, "name": "impressions", "comment": null}, "conversions": {"type": "double precision", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "bigint", "index": 16, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "bigint", "index": 17, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__ad_group_report"}, "model.google_ads.google_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "google_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "integer", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "text", "index": 9, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 10, "name": "ad_id", "comment": null}, "ad_name": {"type": "integer", "index": 11, "name": "ad_name", "comment": null}, "ad_status": {"type": "text", "index": 12, "name": "ad_status", "comment": null}, "ad_type": {"type": "integer", "index": 13, "name": "ad_type", "comment": null}, "display_url": {"type": "integer", "index": 14, "name": "display_url", "comment": null}, "source_final_urls": {"type": "text", "index": 15, "name": "source_final_urls", "comment": null}, "spend": {"type": "numeric", "index": 16, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 17, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 18, "name": "impressions", "comment": null}, "conversions": {"type": "bigint", "index": 19, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 20, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "bigint", "index": 21, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__ad_report"}, "model.google_ads.google_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "google_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "integer", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "advertising_channel_type": {"type": "text", "index": 8, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "text", "index": 9, "name": "advertising_channel_subtype", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "spend": {"type": "numeric", "index": 11, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 13, "name": "impressions", "comment": null}, "conversions": {"type": "bigint", "index": 14, "name": "conversions", "comment": null}, "conversions_value": {"type": "bigint", "index": 15, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "bigint", "index": 16, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__campaign_report"}, "model.google_ads.google_ads__keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "google_ads__keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "integer", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "text", "index": 9, "name": "ad_group_id", "comment": null}, "criterion_id": {"type": "bigint", "index": 10, "name": "criterion_id", "comment": null}, "type": {"type": "text", "index": 11, "name": "type", "comment": null}, "status": {"type": "text", "index": 12, "name": "status", "comment": null}, "keyword_match_type": {"type": "text", "index": 13, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "text", "index": 14, "name": "keyword_text", "comment": null}, "spend": {"type": "numeric", "index": 15, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 17, "name": "impressions", "comment": null}, "conversions": {"type": "bigint", "index": 18, "name": "conversions", "comment": null}, "conversions_value": {"type": "bigint", "index": 19, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "bigint", "index": 20, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__keyword_report"}, "model.google_ads.google_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "google_ads__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "integer", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "text", "index": 9, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 10, "name": "ad_id", "comment": null}, "base_url": {"type": "text", "index": 11, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 12, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 13, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 14, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 15, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 16, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 17, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 18, "name": "utm_term", "comment": null}, "spend": {"type": "numeric", "index": 19, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 20, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 21, "name": "impressions", "comment": null}, "conversions": {"type": "bigint", "index": 22, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 23, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "bigint", "index": 24, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__url_report"}, "model.amazon_ads.int_amazon_ads__portfolio_history": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "int_amazon_ads__portfolio_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "portfolio_id": {"type": "text", "index": 2, "name": "portfolio_id", "comment": null}, "budget_amount": {"type": "integer", "index": 3, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "integer", "index": 4, "name": "budget_currency_code", "comment": null}, "budget_end_date": {"type": "integer", "index": 5, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "integer", "index": 6, "name": "budget_policy", "comment": null}, "budget_start_date": {"type": "integer", "index": 7, "name": "budget_start_date", "comment": null}, "creation_date": {"type": "text", "index": 8, "name": "creation_date", "comment": null}, "in_budget": {"type": "boolean", "index": 9, "name": "in_budget", "comment": null}, "last_updated_date": {"type": "text", "index": 10, "name": "last_updated_date", "comment": null}, "portfolio_name": {"type": "text", "index": 11, "name": "portfolio_name", "comment": null}, "profile_id": {"type": "text", "index": 12, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 13, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 15, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.int_amazon_ads__portfolio_history"}, "model.facebook_ads.int_facebook_ads__conversions": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "int_facebook_ads__conversions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "bigint", "index": 2, "name": "ad_id", "comment": null}, "date_day": {"type": "date", "index": 3, "name": "date_day", "comment": null}, "conversions": {"type": "double precision", "index": 4, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 5, "name": "conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.int_facebook_ads__conversions"}, "model.facebook_ads.int_facebook_ads__creative_history": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "int_facebook_ads__creative_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_id": {"type": "text", "index": 2, "name": "_fivetran_id", "comment": null}, "creative_id": {"type": "bigint", "index": 3, "name": "creative_id", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "creative_name": {"type": "text", "index": 5, "name": "creative_name", "comment": null}, "url": {"type": "character varying", "index": 6, "name": "url", "comment": null}, "base_url": {"type": "text", "index": 7, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 8, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 9, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 10, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 11, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 12, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 13, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 14, "name": "utm_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.int_facebook_ads__creative_history"}, "model.linkedin.linkedin_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "linkedin_ads__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp without time zone", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "integer", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "version_tag": {"type": "numeric", "index": 5, "name": "version_tag", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "type": {"type": "text", "index": 8, "name": "type", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 9, "name": "last_modified_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "total_conversions": {"type": "numeric", "index": 11, "name": "total_conversions", "comment": null}, "clicks": {"type": "bigint", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 13, "name": "impressions", "comment": null}, "cost": {"type": "double precision", "index": 14, "name": "cost", "comment": null}, "conversion_value_in_local_currency": {"type": "double precision", "index": 15, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "numeric", "index": 16, "name": "external_website_conversions", "comment": null}, "one_click_leads": {"type": "numeric", "index": 17, "name": "one_click_leads", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__account_report"}, "model.linkedin.linkedin_ads__campaign_group_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "linkedin_ads__campaign_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp without time zone", "index": 2, "name": "date_day", "comment": null}, "campaign_group_id": {"type": "integer", "index": 3, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "text", "index": 4, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "integer", "index": 5, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 6, "name": "account_name", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "is_backfilled": {"type": "boolean", "index": 9, "name": "is_backfilled", "comment": null}, "run_schedule_start_at": {"type": "timestamp without time zone", "index": 10, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "timestamp without time zone", "index": 11, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 12, "name": "last_modified_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 13, "name": "created_at", "comment": null}, "total_conversions": {"type": "numeric", "index": 14, "name": "total_conversions", "comment": null}, "clicks": {"type": "bigint", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 16, "name": "impressions", "comment": null}, "cost": {"type": "double precision", "index": 17, "name": "cost", "comment": null}, "conversion_value_in_local_currency": {"type": "double precision", "index": 18, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "numeric", "index": 19, "name": "external_website_conversions", "comment": null}, "one_click_leads": {"type": "numeric", "index": 20, "name": "one_click_leads", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__campaign_group_report"}, "model.linkedin.linkedin_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "linkedin_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp without time zone", "index": 2, "name": "date_day", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "version_tag": {"type": "numeric", "index": 5, "name": "version_tag", "comment": null}, "campaign_group_id": {"type": "integer", "index": 6, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "text", "index": 7, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "integer", "index": 8, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 9, "name": "account_name", "comment": null}, "campaign_status": {"type": "text", "index": 10, "name": "campaign_status", "comment": null}, "campaign_group_status": {"type": "text", "index": 11, "name": "campaign_group_status", "comment": null}, "type": {"type": "text", "index": 12, "name": "type", "comment": null}, "cost_type": {"type": "text", "index": 13, "name": "cost_type", "comment": null}, "creative_selection": {"type": "text", "index": 14, "name": "creative_selection", "comment": null}, "daily_budget_amount": {"type": "double precision", "index": 15, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency_code": {"type": "text", "index": 16, "name": "daily_budget_currency_code", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "currency": {"type": "text", "index": 19, "name": "currency", "comment": null}, "format": {"type": "text", "index": 20, "name": "format", "comment": null}, "locale_country": {"type": "text", "index": 21, "name": "locale_country", "comment": null}, "locale_language": {"type": "text", "index": 22, "name": "locale_language", "comment": null}, "objective_type": {"type": "text", "index": 23, "name": "objective_type", "comment": null}, "optimization_target_type": {"type": "text", "index": 24, "name": "optimization_target_type", "comment": null}, "is_audience_expansion_enabled": {"type": "boolean", "index": 25, "name": "is_audience_expansion_enabled", "comment": null}, "is_offsite_delivery_enabled": {"type": "boolean", "index": 26, "name": "is_offsite_delivery_enabled", "comment": null}, "run_schedule_start_at": {"type": "timestamp without time zone", "index": 27, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "timestamp without time zone", "index": 28, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 29, "name": "last_modified_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "total_conversions": {"type": "numeric", "index": 31, "name": "total_conversions", "comment": null}, "clicks": {"type": "bigint", "index": 32, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 33, "name": "impressions", "comment": null}, "cost": {"type": "double precision", "index": 34, "name": "cost", "comment": null}, "conversion_value_in_local_currency": {"type": "double precision", "index": 35, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "numeric", "index": 36, "name": "external_website_conversions", "comment": null}, "one_click_leads": {"type": "numeric", "index": 37, "name": "one_click_leads", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__campaign_report"}, "model.linkedin.linkedin_ads__creative_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "linkedin_ads__creative_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp without time zone", "index": 2, "name": "date_day", "comment": null}, "creative_id": {"type": "integer", "index": 3, "name": "creative_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "campaign_group_id": {"type": "integer", "index": 6, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "text", "index": 7, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "integer", "index": 8, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 9, "name": "account_name", "comment": null}, "click_uri": {"type": "text", "index": 10, "name": "click_uri", "comment": null}, "click_uri_type": {"type": "text", "index": 11, "name": "click_uri_type", "comment": null}, "creative_status": {"type": "text", "index": 12, "name": "creative_status", "comment": null}, "campaign_status": {"type": "text", "index": 13, "name": "campaign_status", "comment": null}, "campaign_group_status": {"type": "text", "index": 14, "name": "campaign_group_status", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 16, "name": "last_modified_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 17, "name": "created_at", "comment": null}, "total_conversions": {"type": "numeric", "index": 18, "name": "total_conversions", "comment": null}, "clicks": {"type": "bigint", "index": 19, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 20, "name": "impressions", "comment": null}, "cost": {"type": "bigint", "index": 21, "name": "cost", "comment": null}, "conversion_value_in_local_currency": {"type": "double precision", "index": 22, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "numeric", "index": 23, "name": "external_website_conversions", "comment": null}, "one_click_leads": {"type": "numeric", "index": 24, "name": "one_click_leads", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__creative_report"}, "model.linkedin.linkedin_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "linkedin_ads__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp without time zone", "index": 2, "name": "date_day", "comment": null}, "click_uri": {"type": "text", "index": 3, "name": "click_uri", "comment": null}, "click_uri_type": {"type": "text", "index": 4, "name": "click_uri_type", "comment": null}, "base_url": {"type": "text", "index": 5, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 6, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 7, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 8, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 9, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 10, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 11, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 12, "name": "utm_term", "comment": null}, "creative_id": {"type": "integer", "index": 13, "name": "creative_id", "comment": null}, "campaign_id": {"type": "integer", "index": 14, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 15, "name": "campaign_name", "comment": null}, "campaign_group_id": {"type": "integer", "index": 16, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "text", "index": 17, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "integer", "index": 18, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 19, "name": "account_name", "comment": null}, "currency": {"type": "text", "index": 20, "name": "currency", "comment": null}, "total_conversions": {"type": "numeric", "index": 21, "name": "total_conversions", "comment": null}, "clicks": {"type": "bigint", "index": 22, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 23, "name": "impressions", "comment": null}, "cost": {"type": "bigint", "index": 24, "name": "cost", "comment": null}, "conversion_value_in_local_currency": {"type": "double precision", "index": 25, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "numeric", "index": 26, "name": "external_website_conversions", "comment": null}, "one_click_leads": {"type": "numeric", "index": 27, "name": "one_click_leads", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__url_report"}, "model.ad_reporting.metricflow_time_spine": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "metricflow_time_spine", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.metricflow_time_spine"}, "model.microsoft_ads.microsoft_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "microsoft_ads__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "character varying", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "account_timezone": {"type": "text", "index": 5, "name": "account_timezone", "comment": null}, "device_os": {"type": "text", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 8, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 9, "name": "currency_code", "comment": null}, "clicks": {"type": "bigint", "index": 10, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 11, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 12, "name": "spend", "comment": null}, "conversions": {"type": "bigint", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 14, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "bigint", "index": 15, "name": "all_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__account_report"}, "model.microsoft_ads.microsoft_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "microsoft_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "character varying", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "bigint", "index": 8, "name": "ad_group_id", "comment": null}, "device_os": {"type": "text", "index": 9, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 10, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 11, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 12, "name": "currency_code", "comment": null}, "clicks": {"type": "bigint", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 15, "name": "spend", "comment": null}, "conversions": {"type": "bigint", "index": 16, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 17, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "bigint", "index": 18, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "double precision", "index": 19, "name": "all_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__ad_group_report"}, "model.microsoft_ads.microsoft_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "microsoft_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "character varying", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "bigint", "index": 8, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "text", "index": 9, "name": "ad_name", "comment": null}, "ad_id": {"type": "bigint", "index": 10, "name": "ad_id", "comment": null}, "ad_type": {"type": "text", "index": 11, "name": "ad_type", "comment": null}, "device_os": {"type": "text", "index": 12, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 13, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 14, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 15, "name": "currency_code", "comment": null}, "clicks": {"type": "bigint", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 18, "name": "spend", "comment": null}, "conversions": {"type": "bigint", "index": 19, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 20, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "bigint", "index": 21, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "double precision", "index": 22, "name": "all_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__ad_report"}, "model.microsoft_ads.microsoft_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "microsoft_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "character varying", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 6, "name": "campaign_id", "comment": null}, "campaign_type": {"type": "text", "index": 7, "name": "campaign_type", "comment": null}, "campaign_timezone": {"type": "text", "index": 8, "name": "campaign_timezone", "comment": null}, "campaign_status": {"type": "text", "index": 9, "name": "campaign_status", "comment": null}, "device_os": {"type": "text", "index": 10, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 11, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 12, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 13, "name": "currency_code", "comment": null}, "clicks": {"type": "bigint", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 16, "name": "spend", "comment": null}, "conversions": {"type": "bigint", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 18, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "bigint", "index": 19, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "double precision", "index": 20, "name": "all_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__campaign_report"}, "model.microsoft_ads.microsoft_ads__keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "microsoft_ads__keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "character varying", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "bigint", "index": 8, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "text", "index": 9, "name": "ad_name", "comment": null}, "ad_id": {"type": "bigint", "index": 10, "name": "ad_id", "comment": null}, "keyword_name": {"type": "text", "index": 11, "name": "keyword_name", "comment": null}, "keyword_id": {"type": "bigint", "index": 12, "name": "keyword_id", "comment": null}, "match_type": {"type": "text", "index": 13, "name": "match_type", "comment": null}, "device_os": {"type": "text", "index": 14, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 15, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 16, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "clicks": {"type": "bigint", "index": 18, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 19, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 20, "name": "spend", "comment": null}, "conversions": {"type": "bigint", "index": 21, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 22, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "bigint", "index": 23, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "double precision", "index": 24, "name": "all_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__keyword_report"}, "model.microsoft_ads.microsoft_ads__search_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "microsoft_ads__search_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "character varying", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "bigint", "index": 8, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "text", "index": 9, "name": "ad_name", "comment": null}, "ad_id": {"type": "bigint", "index": 10, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 11, "name": "keyword_id", "comment": null}, "keyword_name": {"type": "text", "index": 12, "name": "keyword_name", "comment": null}, "match_type": {"type": "text", "index": 13, "name": "match_type", "comment": null}, "search_query": {"type": "text", "index": 14, "name": "search_query", "comment": null}, "device_os": {"type": "text", "index": 15, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 16, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 17, "name": "network", "comment": null}, "clicks": {"type": "bigint", "index": 18, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 19, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 20, "name": "spend", "comment": null}, "conversions": {"type": "bigint", "index": 21, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 22, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "bigint", "index": 23, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "double precision", "index": 24, "name": "all_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__search_report"}, "model.microsoft_ads.microsoft_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "microsoft_ads__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_name": {"type": "character varying", "index": 3, "name": "account_name", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "bigint", "index": 8, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "text", "index": 9, "name": "ad_name", "comment": null}, "ad_id": {"type": "bigint", "index": 10, "name": "ad_id", "comment": null}, "device_os": {"type": "text", "index": 11, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 12, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 13, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 14, "name": "currency_code", "comment": null}, "base_url": {"type": "text", "index": 15, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 16, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 17, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 18, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 19, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 20, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 21, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 22, "name": "utm_term", "comment": null}, "clicks": {"type": "bigint", "index": 23, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 24, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 25, "name": "spend", "comment": null}, "conversions": {"type": "bigint", "index": 26, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 27, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "bigint", "index": 28, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "double precision", "index": 29, "name": "all_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__url_report"}, "model.pinterest.pinterest_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "pinterest_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp with time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "text", "index": 4, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 6, "name": "campaign_status", "comment": null}, "campaign_id": {"type": "text", "index": 7, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "text", "index": 9, "name": "ad_group_id", "comment": null}, "created_at": {"type": "text", "index": 10, "name": "created_at", "comment": null}, "start_time": {"type": "text", "index": 11, "name": "start_time", "comment": null}, "end_time": {"type": "integer", "index": 12, "name": "end_time", "comment": null}, "ad_group_status": {"type": "text", "index": 13, "name": "ad_group_status", "comment": null}, "spend": {"type": "numeric", "index": 14, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 16, "name": "impressions", "comment": null}, "total_conversions": {"type": "bigint", "index": 17, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "bigint", "index": 18, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "numeric", "index": 19, "name": "total_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__ad_group_report"}, "model.pinterest.pinterest_ads__advertiser_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "pinterest_ads__advertiser_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp with time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "text", "index": 4, "name": "advertiser_id", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "spend": {"type": "numeric", "index": 7, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 8, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 9, "name": "impressions", "comment": null}, "total_conversions": {"type": "bigint", "index": 10, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "bigint", "index": 11, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "numeric", "index": 12, "name": "total_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__advertiser_report"}, "model.pinterest.pinterest_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "pinterest_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp with time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "text", "index": 4, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "text", "index": 6, "name": "campaign_id", "comment": null}, "campaign_status": {"type": "text", "index": 7, "name": "campaign_status", "comment": null}, "spend": {"type": "numeric", "index": 8, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 10, "name": "impressions", "comment": null}, "total_conversions": {"type": "bigint", "index": 11, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "bigint", "index": 12, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "numeric", "index": 13, "name": "total_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__campaign_report"}, "model.pinterest.pinterest_ads__keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "pinterest_ads__keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp with time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "text", "index": 4, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "text", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "text", "index": 8, "name": "ad_group_id", "comment": null}, "keyword_id": {"type": "text", "index": 9, "name": "keyword_id", "comment": null}, "match_type": {"type": "text", "index": 10, "name": "match_type", "comment": null}, "parent_type": {"type": "text", "index": 11, "name": "parent_type", "comment": null}, "keyword_value": {"type": "text", "index": 12, "name": "keyword_value", "comment": null}, "spend": {"type": "numeric", "index": 13, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 15, "name": "impressions", "comment": null}, "total_conversions": {"type": "bigint", "index": 16, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "bigint", "index": 17, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "numeric", "index": 18, "name": "total_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__keyword_report"}, "model.pinterest.pinterest_ads__pin_promotion_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "pinterest_ads__pin_promotion_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp with time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "text", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 4, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 7, "name": "campaign_status", "comment": null}, "ad_group_id": {"type": "text", "index": 8, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 9, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 10, "name": "ad_group_status", "comment": null}, "creative_type": {"type": "text", "index": 11, "name": "creative_type", "comment": null}, "pin_promotion_id": {"type": "text", "index": 12, "name": "pin_promotion_id", "comment": null}, "pin_name": {"type": "text", "index": 13, "name": "pin_name", "comment": null}, "pin_status": {"type": "text", "index": 14, "name": "pin_status", "comment": null}, "destination_url": {"type": "text", "index": 15, "name": "destination_url", "comment": null}, "base_url": {"type": "text", "index": 16, "name": "base_url", "comment": null}, "spend": {"type": "numeric", "index": 17, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 18, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 19, "name": "impressions", "comment": null}, "total_conversions": {"type": "bigint", "index": 20, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "bigint", "index": 21, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "numeric", "index": 22, "name": "total_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__pin_promotion_report"}, "model.pinterest.pinterest_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "pinterest_ads__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp with time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "text", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 4, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 7, "name": "campaign_status", "comment": null}, "ad_group_id": {"type": "text", "index": 8, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 9, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 10, "name": "ad_group_status", "comment": null}, "destination_url": {"type": "text", "index": 11, "name": "destination_url", "comment": null}, "creative_type": {"type": "text", "index": 12, "name": "creative_type", "comment": null}, "pin_promotion_id": {"type": "text", "index": 13, "name": "pin_promotion_id", "comment": null}, "pin_name": {"type": "text", "index": 14, "name": "pin_name", "comment": null}, "pin_status": {"type": "text", "index": 15, "name": "pin_status", "comment": null}, "base_url": {"type": "text", "index": 16, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 17, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 18, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 19, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 20, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 21, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 22, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 23, "name": "utm_term", "comment": null}, "spend": {"type": "numeric", "index": 24, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 25, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 26, "name": "impressions", "comment": null}, "total_conversions": {"type": "bigint", "index": 27, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "bigint", "index": 28, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "numeric", "index": 29, "name": "total_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__url_report"}, "model.reddit_ads.reddit_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "reddit_ads__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "attribution_type": {"type": "text", "index": 5, "name": "attribution_type", "comment": null}, "status": {"type": "integer", "index": 6, "name": "status", "comment": null}, "time_zone_id": {"type": "text", "index": 7, "name": "time_zone_id", "comment": null}, "clicks": {"type": "bigint", "index": 8, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 9, "name": "impressions", "comment": null}, "spend": {"type": "bigint", "index": 10, "name": "spend", "comment": null}, "conversions": {"type": "numeric", "index": 11, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "numeric", "index": 12, "name": "view_through_conversions", "comment": null}, "total_value": {"type": "double precision", "index": 13, "name": "total_value", "comment": null}, "total_items": {"type": "numeric", "index": 14, "name": "total_items", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads.reddit_ads__account_report"}, "model.reddit_ads.reddit_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "reddit_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "ad_group_name": {"type": "text", "index": 4, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "bigint", "index": 5, "name": "ad_group_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "clicks": {"type": "bigint", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 10, "name": "impressions", "comment": null}, "spend": {"type": "bigint", "index": 11, "name": "spend", "comment": null}, "conversions": {"type": "numeric", "index": 12, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "numeric", "index": 13, "name": "view_through_conversions", "comment": null}, "total_value": {"type": "double precision", "index": 14, "name": "total_value", "comment": null}, "total_items": {"type": "numeric", "index": 15, "name": "total_items", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads.reddit_ads__ad_group_report"}, "model.reddit_ads.reddit_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "reddit_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "ad_id": {"type": "bigint", "index": 3, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 4, "name": "ad_name", "comment": null}, "account_id": {"type": "bigint", "index": 5, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "bigint", "index": 9, "name": "ad_group_id", "comment": null}, "currency": {"type": "text", "index": 10, "name": "currency", "comment": null}, "post_id": {"type": "text", "index": 11, "name": "post_id", "comment": null}, "clicks": {"type": "bigint", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "bigint", "index": 14, "name": "spend", "comment": null}, "conversions": {"type": "numeric", "index": 15, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "numeric", "index": 16, "name": "view_through_conversions", "comment": null}, "total_value": {"type": "double precision", "index": 17, "name": "total_value", "comment": null}, "total_items": {"type": "numeric", "index": 18, "name": "total_items", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads.reddit_ads__ad_report"}, "model.reddit_ads.reddit_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "reddit_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "clicks": {"type": "bigint", "index": 7, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 8, "name": "impressions", "comment": null}, "spend": {"type": "bigint", "index": 9, "name": "spend", "comment": null}, "conversions": {"type": "numeric", "index": 10, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "numeric", "index": 11, "name": "view_through_conversions", "comment": null}, "total_value": {"type": "double precision", "index": 12, "name": "total_value", "comment": null}, "total_items": {"type": "numeric", "index": 13, "name": "total_items", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads.reddit_ads__campaign_report"}, "model.reddit_ads.reddit_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "reddit_ads__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "ad_name": {"type": "text", "index": 3, "name": "ad_name", "comment": null}, "ad_id": {"type": "bigint", "index": 4, "name": "ad_id", "comment": null}, "account_id": {"type": "bigint", "index": 5, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "bigint", "index": 9, "name": "ad_group_id", "comment": null}, "currency": {"type": "text", "index": 10, "name": "currency", "comment": null}, "post_id": {"type": "text", "index": 11, "name": "post_id", "comment": null}, "post_url": {"type": "integer", "index": 12, "name": "post_url", "comment": null}, "click_url": {"type": "text", "index": 13, "name": "click_url", "comment": null}, "base_url": {"type": "text", "index": 14, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 15, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 16, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 17, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 18, "name": "utm_medium", "comment": null}, "utm_term": {"type": "text", "index": 19, "name": "utm_term", "comment": null}, "utm_content": {"type": "text", "index": 20, "name": "utm_content", "comment": null}, "utm_campaign": {"type": "text", "index": 21, "name": "utm_campaign", "comment": null}, "clicks": {"type": "bigint", "index": 22, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 23, "name": "impressions", "comment": null}, "spend": {"type": "bigint", "index": 24, "name": "spend", "comment": null}, "conversions": {"type": "numeric", "index": 25, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "numeric", "index": 26, "name": "view_through_conversions", "comment": null}, "total_value": {"type": "double precision", "index": 27, "name": "total_value", "comment": null}, "total_items": {"type": "numeric", "index": 28, "name": "total_items", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads.reddit_ads__url_report"}, "model.snapchat_ads.snapchat_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "snapchat_ads__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "ad_account_id": {"type": "text", "index": 3, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "text", "index": 4, "name": "ad_account_name", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "swipes": {"type": "bigint", "index": 6, "name": "swipes", "comment": null}, "impressions": {"type": "bigint", "index": 7, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 8, "name": "spend", "comment": null}, "total_conversions": {"type": "numeric", "index": 9, "name": "total_conversions", "comment": null}, "conversion_purchases_value": {"type": "numeric", "index": 10, "name": "conversion_purchases_value", "comment": null}, "conversion_purchases": {"type": "numeric", "index": 11, "name": "conversion_purchases", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__account_report"}, "model.snapchat_ads.snapchat_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "snapchat_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "ad_account_id": {"type": "text", "index": 3, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "text", "index": 4, "name": "ad_account_name", "comment": null}, "ad_id": {"type": "text", "index": 5, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 6, "name": "ad_name", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "swipes": {"type": "bigint", "index": 8, "name": "swipes", "comment": null}, "impressions": {"type": "bigint", "index": 9, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 10, "name": "spend", "comment": null}, "total_conversions": {"type": "numeric", "index": 11, "name": "total_conversions", "comment": null}, "conversion_purchases_value": {"type": "numeric", "index": 12, "name": "conversion_purchases_value", "comment": null}, "conversion_purchases": {"type": "numeric", "index": 13, "name": "conversion_purchases", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__ad_report"}, "model.snapchat_ads.snapchat_ads__ad_squad_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "snapchat_ads__ad_squad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "ad_account_id": {"type": "text", "index": 3, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "text", "index": 4, "name": "ad_account_name", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "ad_squad_id": {"type": "text", "index": 7, "name": "ad_squad_id", "comment": null}, "ad_squad_name": {"type": "text", "index": 8, "name": "ad_squad_name", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "swipes": {"type": "bigint", "index": 10, "name": "swipes", "comment": null}, "impressions": {"type": "bigint", "index": 11, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 12, "name": "spend", "comment": null}, "total_conversions": {"type": "numeric", "index": 13, "name": "total_conversions", "comment": null}, "conversion_purchases_value": {"type": "numeric", "index": 14, "name": "conversion_purchases_value", "comment": null}, "conversion_purchases": {"type": "numeric", "index": 15, "name": "conversion_purchases", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__ad_squad_report"}, "model.snapchat_ads.snapchat_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "snapchat_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "ad_account_id": {"type": "text", "index": 3, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "text", "index": 4, "name": "ad_account_name", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "swipes": {"type": "bigint", "index": 8, "name": "swipes", "comment": null}, "impressions": {"type": "bigint", "index": 9, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 10, "name": "spend", "comment": null}, "total_conversions": {"type": "numeric", "index": 11, "name": "total_conversions", "comment": null}, "conversion_purchases_value": {"type": "numeric", "index": 12, "name": "conversion_purchases_value", "comment": null}, "conversion_purchases": {"type": "numeric", "index": 13, "name": "conversion_purchases", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__campaign_report"}, "model.snapchat_ads.snapchat_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "snapchat_ads__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "ad_account_id": {"type": "text", "index": 3, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "text", "index": 4, "name": "ad_account_name", "comment": null}, "ad_id": {"type": "text", "index": 5, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 6, "name": "ad_name", "comment": null}, "ad_squad_id": {"type": "text", "index": 7, "name": "ad_squad_id", "comment": null}, "ad_squad_name": {"type": "text", "index": 8, "name": "ad_squad_name", "comment": null}, "campaign_id": {"type": "text", "index": 9, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 10, "name": "campaign_name", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "base_url": {"type": "text", "index": 12, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 13, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 14, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 15, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 16, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 17, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 18, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 19, "name": "utm_term", "comment": null}, "swipes": {"type": "bigint", "index": 20, "name": "swipes", "comment": null}, "impressions": {"type": "bigint", "index": 21, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 22, "name": "spend", "comment": null}, "total_conversions": {"type": "numeric", "index": 23, "name": "total_conversions", "comment": null}, "conversion_purchases_value": {"type": "numeric", "index": 24, "name": "conversion_purchases_value", "comment": null}, "conversion_purchases": {"type": "numeric", "index": 25, "name": "conversion_purchases", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__url_report"}, "model.amazon_ads_source.stg_amazon_ads__ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__ad_group_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "text", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "text", "index": 3, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 4, "name": "creation_date", "comment": null}, "default_bid": {"type": "double precision", "index": 5, "name": "default_bid", "comment": null}, "last_updated_date": {"type": "text", "index": 6, "name": "last_updated_date", "comment": null}, "ad_group_name": {"type": "text", "index": 7, "name": "ad_group_name", "comment": null}, "serving_status": {"type": "text", "index": 8, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 9, "name": "state", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history"}, "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__ad_group_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 5, "name": "creation_date", "comment": null}, "default_bid": {"type": "double precision", "index": 6, "name": "default_bid", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "serving_status": {"type": "text", "index": 8, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 9, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp"}, "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__ad_group_level_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "text", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 3, "name": "campaign_bidding_strategy", "comment": null}, "clicks": {"type": "integer", "index": 4, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 5, "name": "cost", "comment": null}, "date_day": {"type": "date", "index": 6, "name": "date_day", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "integer", "index": 8, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "double precision", "index": 9, "name": "sales_30_d", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"}, "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__ad_group_level_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 4, "name": "campaign_bidding_strategy", "comment": null}, "clicks": {"type": "integer", "index": 5, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 6, "name": "cost", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp"}, "model.amazon_ads_source.stg_amazon_ads__advertised_product_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__advertised_product_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "text", "index": 2, "name": "ad_id", "comment": null}, "ad_group_id": {"type": "text", "index": 3, "name": "ad_group_id", "comment": null}, "advertised_asin": {"type": "integer", "index": 4, "name": "advertised_asin", "comment": null}, "advertised_sku": {"type": "integer", "index": 5, "name": "advertised_sku", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 8, "name": "campaign_budget_type", "comment": null}, "campaign_id": {"type": "text", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 11, "name": "cost", "comment": null}, "date_day": {"type": "date", "index": 12, "name": "date_day", "comment": null}, "impressions": {"type": "integer", "index": 13, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "integer", "index": 14, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "double precision", "index": 15, "name": "sales_30_d", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report"}, "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__advertised_product_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "integer", "index": 2, "name": "ad_id", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 4, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 8, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 10, "name": "cost", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "advertised_asin": {"type": "integer", "index": 12, "name": "advertised_asin", "comment": null}, "advertised_sku": {"type": "integer", "index": 13, "name": "advertised_sku", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp"}, "model.amazon_ads_source.stg_amazon_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "text", "index": 2, "name": "campaign_id", "comment": null}, "last_updated_date": {"type": "text", "index": 3, "name": "last_updated_date", "comment": null}, "bidding_strategy": {"type": "text", "index": 4, "name": "bidding_strategy", "comment": null}, "creation_date": {"type": "text", "index": 5, "name": "creation_date", "comment": null}, "end_date": {"type": "integer", "index": 6, "name": "end_date", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "portfolio_id": {"type": "text", "index": 8, "name": "portfolio_id", "comment": null}, "profile_id": {"type": "text", "index": 9, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 10, "name": "serving_status", "comment": null}, "start_date": {"type": "date", "index": 11, "name": "start_date", "comment": null}, "state": {"type": "text", "index": 12, "name": "state", "comment": null}, "targeting_type": {"type": "text", "index": 13, "name": "targeting_type", "comment": null}, "budget": {"type": "integer", "index": 14, "name": "budget", "comment": null}, "budget_type": {"type": "text", "index": 15, "name": "budget_type", "comment": null}, "effective_budget": {"type": "integer", "index": 16, "name": "effective_budget", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 17, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history"}, "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "bidding_strategy": {"type": "text", "index": 4, "name": "bidding_strategy", "comment": null}, "creation_date": {"type": "text", "index": 5, "name": "creation_date", "comment": null}, "budget": {"type": "integer", "index": 6, "name": "budget", "comment": null}, "end_date": {"type": "integer", "index": 7, "name": "end_date", "comment": null}, "name": {"type": "text", "index": 8, "name": "name", "comment": null}, "portfolio_id": {"type": "integer", "index": 9, "name": "portfolio_id", "comment": null}, "profile_id": {"type": "integer", "index": 10, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 11, "name": "serving_status", "comment": null}, "start_date": {"type": "date", "index": 12, "name": "start_date", "comment": null}, "state": {"type": "text", "index": 13, "name": "state", "comment": null}, "targeting_type": {"type": "text", "index": 14, "name": "targeting_type", "comment": null}, "budget_type": {"type": "text", "index": 15, "name": "budget_type", "comment": null}, "effective_budget": {"type": "integer", "index": 16, "name": "effective_budget", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp"}, "model.amazon_ads_source.stg_amazon_ads__campaign_level_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__campaign_level_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "campaign_applicable_budget_rule_id": {"type": "integer", "index": 2, "name": "campaign_applicable_budget_rule_id", "comment": null}, "campaign_applicable_budget_rule_name": {"type": "integer", "index": 3, "name": "campaign_applicable_budget_rule_name", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 4, "name": "campaign_bidding_strategy", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 5, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 6, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 7, "name": "campaign_budget_type", "comment": null}, "campaign_id": {"type": "text", "index": 8, "name": "campaign_id", "comment": null}, "campaign_rule_based_budget_amount": {"type": "integer", "index": 9, "name": "campaign_rule_based_budget_amount", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 11, "name": "cost", "comment": null}, "date_day": {"type": "date", "index": 12, "name": "date_day", "comment": null}, "impressions": {"type": "integer", "index": 13, "name": "impressions", "comment": null}, "purchases_30_d": {"type": "integer", "index": 14, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "integer", "index": 15, "name": "sales_30_d", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report"}, "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__campaign_level_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_applicable_budget_rule_id": {"type": "integer", "index": 4, "name": "campaign_applicable_budget_rule_id", "comment": null}, "campaign_applicable_budget_rule_name": {"type": "integer", "index": 5, "name": "campaign_applicable_budget_rule_name", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 6, "name": "campaign_bidding_strategy", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 9, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 11, "name": "cost", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "campaign_rule_based_budget_amount": {"type": "integer", "index": 13, "name": "campaign_rule_based_budget_amount", "comment": null}, "sales_7_d": {"type": "integer", "index": 14, "name": "sales_7_d", "comment": null}, "purchases_30_d": {"type": "integer", "index": 15, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "integer", "index": 16, "name": "sales_30_d", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp"}, "model.amazon_ads_source.stg_amazon_ads__keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__keyword_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "keyword_id": {"type": "text", "index": 2, "name": "keyword_id", "comment": null}, "ad_group_id": {"type": "text", "index": 3, "name": "ad_group_id", "comment": null}, "bid": {"type": "double precision", "index": 4, "name": "bid", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 6, "name": "creation_date", "comment": null}, "keyword_text": {"type": "text", "index": 7, "name": "keyword_text", "comment": null}, "last_updated_date": {"type": "text", "index": 8, "name": "last_updated_date", "comment": null}, "match_type": {"type": "text", "index": 9, "name": "match_type", "comment": null}, "native_language_keyword": {"type": "integer", "index": 10, "name": "native_language_keyword", "comment": null}, "serving_status": {"type": "text", "index": 11, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 12, "name": "state", "comment": null}, "native_language_locale": {"type": "integer", "index": 13, "name": "native_language_locale", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 14, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history"}, "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__keyword_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "bid": {"type": "double precision", "index": 5, "name": "bid", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 7, "name": "creation_date", "comment": null}, "keyword_text": {"type": "text", "index": 8, "name": "keyword_text", "comment": null}, "match_type": {"type": "text", "index": 9, "name": "match_type", "comment": null}, "native_language_keyword": {"type": "integer", "index": 10, "name": "native_language_keyword", "comment": null}, "serving_status": {"type": "text", "index": 11, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 12, "name": "state", "comment": null}, "native_language_locale": {"type": "integer", "index": 13, "name": "native_language_locale", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp"}, "model.amazon_ads_source.stg_amazon_ads__portfolio_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__portfolio_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "portfolio_id": {"type": "text", "index": 2, "name": "portfolio_id", "comment": null}, "budget_amount": {"type": "integer", "index": 3, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "integer", "index": 4, "name": "budget_currency_code", "comment": null}, "budget_end_date": {"type": "integer", "index": 5, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "integer", "index": 6, "name": "budget_policy", "comment": null}, "budget_start_date": {"type": "integer", "index": 7, "name": "budget_start_date", "comment": null}, "creation_date": {"type": "text", "index": 8, "name": "creation_date", "comment": null}, "in_budget": {"type": "boolean", "index": 9, "name": "in_budget", "comment": null}, "last_updated_date": {"type": "text", "index": 10, "name": "last_updated_date", "comment": null}, "portfolio_name": {"type": "text", "index": 11, "name": "portfolio_name", "comment": null}, "profile_id": {"type": "text", "index": 12, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 13, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 15, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history"}, "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__portfolio_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "budget_amount": {"type": "integer", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "integer", "index": 5, "name": "budget_currency_code", "comment": null}, "budget_end_date": {"type": "integer", "index": 6, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "integer", "index": 7, "name": "budget_policy", "comment": null}, "budget_start_date": {"type": "integer", "index": 8, "name": "budget_start_date", "comment": null}, "creation_date": {"type": "text", "index": 9, "name": "creation_date", "comment": null}, "in_budget": {"type": "boolean", "index": 10, "name": "in_budget", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "profile_id": {"type": "integer", "index": 12, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 13, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp"}, "model.amazon_ads_source.stg_amazon_ads__product_ad_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__product_ad_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "text", "index": 2, "name": "ad_id", "comment": null}, "ad_group_id": {"type": "text", "index": 3, "name": "ad_group_id", "comment": null}, "asin": {"type": "text", "index": 4, "name": "asin", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 6, "name": "creation_date", "comment": null}, "last_updated_date": {"type": "text", "index": 7, "name": "last_updated_date", "comment": null}, "serving_status": {"type": "text", "index": 8, "name": "serving_status", "comment": null}, "sku": {"type": "integer", "index": 9, "name": "sku", "comment": null}, "state": {"type": "text", "index": 10, "name": "state", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 11, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history"}, "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__product_ad_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "asin": {"type": "text", "index": 5, "name": "asin", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 7, "name": "creation_date", "comment": null}, "serving_status": {"type": "text", "index": 8, "name": "serving_status", "comment": null}, "sku": {"type": "integer", "index": 9, "name": "sku", "comment": null}, "state": {"type": "text", "index": 10, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp"}, "model.amazon_ads_source.stg_amazon_ads__profile": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__profile", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "profile_id": {"type": "text", "index": 2, "name": "profile_id", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_marketplace_string_id": {"type": "text", "index": 4, "name": "account_marketplace_string_id", "comment": null}, "account_name": {"type": "text", "index": 5, "name": "account_name", "comment": null}, "account_sub_type": {"type": "integer", "index": 6, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 7, "name": "account_type", "comment": null}, "account_valid_payment_method": {"type": "boolean", "index": 8, "name": "account_valid_payment_method", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "currency_code": {"type": "text", "index": 10, "name": "currency_code", "comment": null}, "daily_budget": {"type": "integer", "index": 11, "name": "daily_budget", "comment": null}, "timezone": {"type": "text", "index": 12, "name": "timezone", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile"}, "model.amazon_ads_source.stg_amazon_ads__profile_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__profile_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_marketplace_string_id": {"type": "text", "index": 5, "name": "account_marketplace_string_id", "comment": null}, "account_name": {"type": "text", "index": 6, "name": "account_name", "comment": null}, "account_sub_type": {"type": "integer", "index": 7, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_valid_payment_method": {"type": "boolean", "index": 9, "name": "account_valid_payment_method", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "currency_code": {"type": "text", "index": 11, "name": "currency_code", "comment": null}, "daily_budget": {"type": "integer", "index": 12, "name": "daily_budget", "comment": null}, "timezone": {"type": "text", "index": 13, "name": "timezone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile_tmp"}, "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__search_term_ad_keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "text", "index": 2, "name": "ad_group_id", "comment": null}, "ad_keyword_status": {"type": "text", "index": 3, "name": "ad_keyword_status", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 4, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 5, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 6, "name": "campaign_budget_type", "comment": null}, "campaign_id": {"type": "text", "index": 7, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 8, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 9, "name": "cost", "comment": null}, "date_day": {"type": "date", "index": 10, "name": "date_day", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "keyword_bid": {"type": "double precision", "index": 12, "name": "keyword_bid", "comment": null}, "keyword_id": {"type": "text", "index": 13, "name": "keyword_id", "comment": null}, "search_term": {"type": "text", "index": 14, "name": "search_term", "comment": null}, "targeting": {"type": "text", "index": 15, "name": "targeting", "comment": null}, "purchases_30_d": {"type": "integer", "index": 16, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "double precision", "index": 17, "name": "sales_30_d", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"}, "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__search_term_ad_keyword_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "integer", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 8, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 10, "name": "cost", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "keyword_bid": {"type": "double precision", "index": 12, "name": "keyword_bid", "comment": null}, "search_term": {"type": "text", "index": 13, "name": "search_term", "comment": null}, "targeting": {"type": "text", "index": 14, "name": "targeting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp"}, "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__targeting_keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "text", "index": 2, "name": "ad_group_id", "comment": null}, "ad_keyword_status": {"type": "text", "index": 3, "name": "ad_keyword_status", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 4, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 5, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 6, "name": "campaign_budget_type", "comment": null}, "campaign_id": {"type": "text", "index": 7, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 8, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 9, "name": "cost", "comment": null}, "date_day": {"type": "date", "index": 10, "name": "date_day", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "keyword_bid": {"type": "double precision", "index": 12, "name": "keyword_bid", "comment": null}, "keyword_id": {"type": "text", "index": 13, "name": "keyword_id", "comment": null}, "keyword_type": {"type": "text", "index": 14, "name": "keyword_type", "comment": null}, "match_type": {"type": "text", "index": 15, "name": "match_type", "comment": null}, "targeting": {"type": "text", "index": 16, "name": "targeting", "comment": null}, "purchases_30_d": {"type": "integer", "index": 17, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "double precision", "index": 18, "name": "sales_30_d", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"}, "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__targeting_keyword_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "integer", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "ad_keyword_status": {"type": "text", "index": 6, "name": "ad_keyword_status", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 9, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 11, "name": "cost", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "keyword_bid": {"type": "double precision", "index": 13, "name": "keyword_bid", "comment": null}, "keyword_type": {"type": "text", "index": 14, "name": "keyword_type", "comment": null}, "match_type": {"type": "text", "index": 15, "name": "match_type", "comment": null}, "targeting": {"type": "text", "index": 16, "name": "targeting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__ad_group_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "modified_at": {"type": "timestamp without time zone", "index": 2, "name": "modified_at", "comment": null}, "organization_id": {"type": "integer", "index": 3, "name": "organization_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_status": {"type": "text", "index": 7, "name": "ad_group_status", "comment": null}, "start_at": {"type": "timestamp without time zone", "index": 8, "name": "start_at", "comment": null}, "end_at": {"type": "timestamp without time zone", "index": 9, "name": "end_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__ad_group_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "automated_keywords_opt_in": {"type": "boolean", "index": 3, "name": "automated_keywords_opt_in", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "cpa_goal_amount": {"type": "integer", "index": 5, "name": "cpa_goal_amount", "comment": null}, "cpa_goal_currency": {"type": "integer", "index": 6, "name": "cpa_goal_currency", "comment": null}, "default_cpc_bid_amount": {"type": "integer", "index": 7, "name": "default_cpc_bid_amount", "comment": null}, "default_cpc_bid_currency": {"type": "integer", "index": 8, "name": "default_cpc_bid_currency", "comment": null}, "deleted": {"type": "boolean", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 10, "name": "end_time", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "organization_id": {"type": "integer", "index": 12, "name": "organization_id", "comment": null}, "serving_state_reasons": {"type": "integer", "index": 13, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "text", "index": 14, "name": "serving_status", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 15, "name": "start_time", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "storefronts": {"type": "integer", "index": 17, "name": "storefronts", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "ad_group_id": {"type": "integer", "index": 3, "name": "ad_group_id", "comment": null}, "conversions": {"type": "integer", "index": 4, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 5, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 6, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "new_downloads": {"type": "integer", "index": 8, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 9, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 10, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__ad_group_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__ad_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "modified_at": {"type": "timestamp without time zone", "index": 3, "name": "modified_at", "comment": null}, "organization_id": {"type": "integer", "index": 4, "name": "organization_id", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 6, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "text", "index": 7, "name": "ad_name", "comment": null}, "ad_id": {"type": "integer", "index": 8, "name": "ad_id", "comment": null}, "ad_status": {"type": "text", "index": 9, "name": "ad_status", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__ad_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creation_time": {"type": "timestamp without time zone", "index": 1, "name": "creation_time", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "org_id": {"type": "integer", "index": 3, "name": "org_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 5, "name": "ad_group_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "creative_id": {"type": "integer", "index": 8, "name": "creative_id", "comment": null}, "creative_type": {"type": "text", "index": 9, "name": "creative_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "integer", "index": 5, "name": "ad_id", "comment": null}, "conversions": {"type": "integer", "index": 6, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 8, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "new_downloads": {"type": "integer", "index": 10, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 11, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 12, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__ad_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "integer", "index": 5, "name": "ad_id", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 7, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 8, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 9, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 10, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 11, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "modified_at": {"type": "timestamp without time zone", "index": 2, "name": "modified_at", "comment": null}, "organization_id": {"type": "integer", "index": 3, "name": "organization_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "campaign_status": {"type": "text", "index": 6, "name": "campaign_status", "comment": null}, "start_at": {"type": "timestamp without time zone", "index": 7, "name": "start_at", "comment": null}, "end_at": {"type": "timestamp without time zone", "index": 8, "name": "end_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "adam_id": {"type": "integer", "index": 3, "name": "adam_id", "comment": null}, "budget_amount": {"type": "integer", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency": {"type": "text", "index": 5, "name": "budget_currency", "comment": null}, "budget_orders": {"type": "text", "index": 6, "name": "budget_orders", "comment": null}, "daily_budget_amount": {"type": "integer", "index": 7, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency": {"type": "text", "index": 8, "name": "daily_budget_currency", "comment": null}, "deleted": {"type": "boolean", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 10, "name": "end_time", "comment": null}, "loc_invoice_detail_buyer_email": {"type": "integer", "index": 11, "name": "loc_invoice_detail_buyer_email", "comment": null}, "loc_invoice_detail_buyer_name": {"type": "integer", "index": 12, "name": "loc_invoice_detail_buyer_name", "comment": null}, "loc_invoice_detail_client_name": {"type": "integer", "index": 13, "name": "loc_invoice_detail_client_name", "comment": null}, "loc_invoice_detail_order_number": {"type": "integer", "index": 14, "name": "loc_invoice_detail_order_number", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "organiation_id": {"type": "integer", "index": 16, "name": "organiation_id", "comment": null}, "payment_model": {"type": "text", "index": 17, "name": "payment_model", "comment": null}, "serving_state_reasons": {"type": "text", "index": 18, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "text", "index": 19, "name": "serving_status", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 20, "name": "start_time", "comment": null}, "status": {"type": "text", "index": 21, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "conversions": {"type": "integer", "index": 4, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 5, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 6, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "new_downloads": {"type": "integer", "index": 8, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 9, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 10, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__campaign_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__keyword_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "modified_at": {"type": "timestamp without time zone", "index": 2, "name": "modified_at", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "keyword_id": {"type": "integer", "index": 5, "name": "keyword_id", "comment": null}, "bid_amount": {"type": "double precision", "index": 6, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "text", "index": 7, "name": "bid_currency", "comment": null}, "match_type": {"type": "text", "index": 8, "name": "match_type", "comment": null}, "keyword_status": {"type": "text", "index": 9, "name": "keyword_status", "comment": null}, "keyword_text": {"type": "text", "index": 10, "name": "keyword_text", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 11, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__keyword_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "ad_group_id": {"type": "integer", "index": 3, "name": "ad_group_id", "comment": null}, "bid_amount": {"type": "double precision", "index": 4, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "text", "index": 5, "name": "bid_currency", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "deleted": {"type": "boolean", "index": 7, "name": "deleted", "comment": null}, "match_type": {"type": "text", "index": 8, "name": "match_type", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "text": {"type": "text", "index": 10, "name": "text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "keyword_id": {"type": "integer", "index": 3, "name": "keyword_id", "comment": null}, "conversions": {"type": "integer", "index": 4, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 5, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 6, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "new_downloads": {"type": "integer", "index": 8, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 9, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 10, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__keyword_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__organization": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__organization", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "organization_id": {"type": "integer", "index": 2, "name": "organization_id", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "payment_model": {"type": "text", "index": 4, "name": "payment_model", "comment": null}, "organization_name": {"type": "text", "index": 5, "name": "organization_name", "comment": null}, "time_zone": {"type": "text", "index": 6, "name": "time_zone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization"}, "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__organization_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "currency": {"type": "text", "index": 2, "name": "currency", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "payment_model": {"type": "text", "index": 4, "name": "payment_model", "comment": null}, "role_names": {"type": "text", "index": 5, "name": "role_names", "comment": null}, "time_zone": {"type": "text", "index": 6, "name": "time_zone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__search_term_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "_fivetran_id": {"type": "text", "index": 3, "name": "_fivetran_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 5, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "bid_amount": {"type": "double precision", "index": 7, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "text", "index": 8, "name": "bid_currency", "comment": null}, "keyword_text": {"type": "text", "index": 9, "name": "keyword_text", "comment": null}, "keyword_display_status": {"type": "text", "index": 10, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "integer", "index": 11, "name": "keyword_id", "comment": null}, "spend": {"type": "double precision", "index": 12, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "match_type": {"type": "text", "index": 14, "name": "match_type", "comment": null}, "search_term_source": {"type": "text", "index": 15, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "text", "index": 16, "name": "search_term_text", "comment": null}, "conversions": {"type": "integer", "index": 17, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 18, "name": "impressions", "comment": null}, "taps": {"type": "integer", "index": 19, "name": "taps", "comment": null}, "new_downloads": {"type": "integer", "index": 20, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 21, "name": "redownloads", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report"}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__search_term_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 4, "name": "date", "comment": null}, "ad_group_deleted": {"type": "boolean", "index": 5, "name": "ad_group_deleted", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 7, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 8, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 9, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 10, "name": "avg_cpt_currency", "comment": null}, "bid_amount_amount": {"type": "double precision", "index": 11, "name": "bid_amount_amount", "comment": null}, "bid_amount_currency": {"type": "text", "index": 12, "name": "bid_amount_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 13, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 14, "name": "conversions", "comment": null}, "deleted": {"type": "boolean", "index": 15, "name": "deleted", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "keyword": {"type": "text", "index": 17, "name": "keyword", "comment": null}, "keyword_display_status": {"type": "text", "index": 18, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "integer", "index": 19, "name": "keyword_id", "comment": null}, "lat_off_installs": {"type": "integer", "index": 20, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 21, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 22, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 23, "name": "local_spend_currency", "comment": null}, "match_type": {"type": "text", "index": 24, "name": "match_type", "comment": null}, "new_downloads": {"type": "integer", "index": 25, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 26, "name": "redownloads", "comment": null}, "search_term_source": {"type": "text", "index": 27, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "text", "index": 28, "name": "search_term_text", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 29, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 30, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp"}, "model.facebook_ads_source.stg_facebook_ads__account_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__account_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_name": {"type": "character varying", "index": 4, "name": "account_name", "comment": null}, "account_status": {"type": "text", "index": 5, "name": "account_status", "comment": null}, "business_country_code": {"type": "text", "index": 6, "name": "business_country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "timezone_name": {"type": "text", "index": 9, "name": "timezone_name", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history"}, "model.facebook_ads_source.stg_facebook_ads__account_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__account_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "character varying", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__ad_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__ad_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "ad_id": {"type": "bigint", "index": 3, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 4, "name": "ad_name", "comment": null}, "account_id": {"type": "bigint", "index": 5, "name": "account_id", "comment": null}, "ad_set_id": {"type": "bigint", "index": 6, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "creative_id": {"type": "bigint", "index": 8, "name": "creative_id", "comment": null}, "conversion_domain": {"type": "text", "index": 9, "name": "conversion_domain", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history"}, "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__ad_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "ad_set_id": {"type": "bigint", "index": 3, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "creative_id": {"type": "bigint", "index": 5, "name": "creative_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 8, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__ad_set_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "ad_set_id": {"type": "bigint", "index": 3, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "text", "index": 4, "name": "ad_set_name", "comment": null}, "account_id": {"type": "bigint", "index": 5, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 6, "name": "campaign_id", "comment": null}, "start_at": {"type": "timestamp without time zone", "index": 7, "name": "start_at", "comment": null}, "end_at": {"type": "timestamp without time zone", "index": 8, "name": "end_at", "comment": null}, "bid_strategy": {"type": "text", "index": 9, "name": "bid_strategy", "comment": null}, "daily_budget": {"type": "integer", "index": 10, "name": "daily_budget", "comment": null}, "budget_remaining": {"type": "integer", "index": 11, "name": "budget_remaining", "comment": null}, "status": {"type": "text", "index": 12, "name": "status", "comment": null}, "optimization_goal": {"type": "text", "index": 13, "name": "optimization_goal", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 14, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history"}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__ad_set_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 6, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "bigint", "index": 2, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 3, "name": "ad_name", "comment": null}, "ad_set_name": {"type": "text", "index": 4, "name": "ad_set_name", "comment": null}, "date_day": {"type": "date", "index": 5, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 6, "name": "account_id", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "double precision", "index": 9, "name": "spend", "comment": null}, "reach": {"type": "integer", "index": 10, "name": "reach", "comment": null}, "frequency": {"type": "double precision", "index": 11, "name": "frequency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_action_values", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "action_type": {"type": "text", "index": 2, "name": "action_type", "comment": null}, "ad_id": {"type": "bigint", "index": 3, "name": "ad_id", "comment": null}, "date_day": {"type": "date", "index": 4, "name": "date_day", "comment": null}, "conversions_value": {"type": "double precision", "index": 5, "name": "conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_action_values_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_id": {"type": "text", "index": 3, "name": "_fivetran_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "action_type": {"type": "text", "index": 5, "name": "action_type", "comment": null}, "value": {"type": "double precision", "index": 6, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "_7_d_click": {"type": "double precision", "index": 8, "name": "_7_d_click", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_actions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "action_type": {"type": "text", "index": 2, "name": "action_type", "comment": null}, "ad_id": {"type": "bigint", "index": 3, "name": "ad_id", "comment": null}, "date_day": {"type": "date", "index": 4, "name": "date_day", "comment": null}, "conversions": {"type": "double precision", "index": 5, "name": "conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_actions_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_id": {"type": "integer", "index": 2, "name": "ad_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "_1_d_view": {"type": "double precision", "index": 5, "name": "_1_d_view", "comment": null}, "_7_d_click": {"type": "double precision", "index": 6, "name": "_7_d_click", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "action_type": {"type": "text", "index": 8, "name": "action_type", "comment": null}, "inline": {"type": "double precision", "index": 9, "name": "inline", "comment": null}, "value": {"type": "double precision", "index": 10, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "bigint", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "inline_link_clicks": {"type": "integer", "index": 5, "name": "inline_link_clicks", "comment": null}, "spend": {"type": "double precision", "index": 6, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp"}, "model.facebook_ads_source.stg_facebook_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "start_at": {"type": "timestamp without time zone", "index": 7, "name": "start_at", "comment": null}, "end_at": {"type": "timestamp without time zone", "index": 8, "name": "end_at", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "daily_budget": {"type": "integer", "index": 10, "name": "daily_budget", "comment": null}, "lifetime_budget": {"type": "integer", "index": 11, "name": "lifetime_budget", "comment": null}, "budget_remaining": {"type": "double precision", "index": 12, "name": "budget_remaining", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history"}, "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 5, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__creative_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__creative_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_id": {"type": "text", "index": 2, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "creative_id": {"type": "bigint", "index": 4, "name": "creative_id", "comment": null}, "account_id": {"type": "bigint", "index": 5, "name": "account_id", "comment": null}, "creative_name": {"type": "text", "index": 6, "name": "creative_name", "comment": null}, "page_link": {"type": "character varying", "index": 7, "name": "page_link", "comment": null}, "template_page_link": {"type": "character varying", "index": 8, "name": "template_page_link", "comment": null}, "url_tags": {"type": "text", "index": 9, "name": "url_tags", "comment": null}, "asset_feed_spec_link_urls": {"type": "text", "index": 10, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "text", "index": 11, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "text", "index": 12, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "text", "index": 13, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "text", "index": 14, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "text", "index": 15, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "text", "index": 16, "name": "template_app_link_spec_ios", "comment": null}, "template_app_link_spec_ipad": {"type": "text", "index": 17, "name": "template_app_link_spec_ipad", "comment": null}, "template_app_link_spec_android": {"type": "text", "index": 18, "name": "template_app_link_spec_android", "comment": null}, "template_app_link_spec_iphone": {"type": "text", "index": 19, "name": "template_app_link_spec_iphone", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 20, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history"}, "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__creative_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"page_link": {"type": "character varying", "index": 1, "name": "page_link", "comment": null}, "template_page_link": {"type": "character varying", "index": 2, "name": "template_page_link", "comment": null}, "id": {"type": "bigint", "index": 3, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "url_tags": {"type": "text", "index": 6, "name": "url_tags", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "asset_feed_spec_link_urls": {"type": "text", "index": 8, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "text", "index": 9, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "text", "index": 10, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "text", "index": 11, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "text", "index": 12, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "text", "index": 13, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "text", "index": 14, "name": "template_app_link_spec_ios", "comment": null}, "_fivetran_id": {"type": "text", "index": 15, "name": "_fivetran_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp"}, "model.google_ads_source.stg_google_ads__account_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__account_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "currency_code": {"type": "text", "index": 4, "name": "currency_code", "comment": null}, "auto_tagging_enabled": {"type": "boolean", "index": 5, "name": "auto_tagging_enabled", "comment": null}, "time_zone": {"type": "integer", "index": 6, "name": "time_zone", "comment": null}, "account_name": {"type": "integer", "index": 7, "name": "account_name", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_history"}, "model.google_ads_source.stg_google_ads__account_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__account_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "auto_tagging_enabled": {"type": "boolean", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "descriptive_name": {"type": "integer", "index": 6, "name": "descriptive_name", "comment": null}, "final_url_suffix": {"type": "boolean", "index": 7, "name": "final_url_suffix", "comment": null}, "hidden": {"type": "boolean", "index": 8, "name": "hidden", "comment": null}, "manager": {"type": "integer", "index": 9, "name": "manager", "comment": null}, "manager_customer_id": {"type": "double precision", "index": 10, "name": "manager_customer_id", "comment": null}, "optimization_score": {"type": "text", "index": 11, "name": "optimization_score", "comment": null}, "pay_per_conversion_eligibility_failure_reasons": {"type": "boolean", "index": 12, "name": "pay_per_conversion_eligibility_failure_reasons", "comment": null}, "test_account": {"type": "text", "index": 13, "name": "test_account", "comment": null}, "time_zone": {"type": "integer", "index": 14, "name": "time_zone", "comment": null}, "tracking_url_template": {"type": "integer", "index": 15, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_history_tmp"}, "model.google_ads_source.stg_google_ads__account_stats": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__account_stats", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 3, "name": "date_day", "comment": null}, "ad_network_type": {"type": "text", "index": 4, "name": "ad_network_type", "comment": null}, "device": {"type": "text", "index": 5, "name": "device", "comment": null}, "clicks": {"type": "integer", "index": 6, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 7, "name": "spend", "comment": null}, "impressions": {"type": "integer", "index": 8, "name": "impressions", "comment": null}, "conversions": {"type": "integer", "index": 9, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 10, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "integer", "index": 11, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_stats"}, "model.google_ads_source.stg_google_ads__account_stats_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__account_stats_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 12, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 13, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 14, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 15, "name": "device", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 17, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 18, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 19, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_stats_tmp"}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_group_criterion_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "criterion_id": {"type": "bigint", "index": 2, "name": "criterion_id", "comment": null}, "ad_group_id": {"type": "text", "index": 3, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "bigint", "index": 4, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 5, "name": "updated_at", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "keyword_match_type": {"type": "text", "index": 8, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "text", "index": 9, "name": "keyword_text", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history"}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_group_criterion_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "bigint", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "keyword_match_type": {"type": "text", "index": 8, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "text", "index": 9, "name": "keyword_text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp"}, "model.google_ads_source.stg_google_ads__ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_group_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "text", "index": 2, "name": "ad_group_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "ad_group_type": {"type": "text", "index": 4, "name": "ad_group_type", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_name": {"type": "text", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 8, "name": "ad_group_status", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history"}, "model.google_ads_source.stg_google_ads__ad_group_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_group_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history_tmp"}, "model.google_ads_source.stg_google_ads__ad_group_stats": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_group_stats", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 3, "name": "date_day", "comment": null}, "ad_group_id": {"type": "text", "index": 4, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "device": {"type": "text", "index": 6, "name": "device", "comment": null}, "ad_network_type": {"type": "text", "index": 7, "name": "ad_network_type", "comment": null}, "clicks": {"type": "integer", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 9, "name": "spend", "comment": null}, "impressions": {"type": "integer", "index": 10, "name": "impressions", "comment": null}, "conversions": {"type": "double precision", "index": 11, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 12, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "integer", "index": 13, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats"}, "model.google_ads_source.stg_google_ads__ad_group_stats_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_group_stats_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "base_ad_group": {"type": "text", "index": 11, "name": "base_ad_group", "comment": null}, "campaign_base_campaign": {"type": "text", "index": 12, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "bigint", "index": 13, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 14, "name": "clicks", "comment": null}, "conversions": {"type": "double precision", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 16, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 17, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 18, "name": "device", "comment": null}, "id": {"type": "bigint", "index": 19, "name": "id", "comment": null}, "impressions": {"type": "integer", "index": 20, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 21, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 22, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 23, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats_tmp"}, "model.google_ads_source.stg_google_ads__ad_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "text", "index": 2, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 3, "name": "ad_id", "comment": null}, "ad_name": {"type": "integer", "index": 4, "name": "ad_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 5, "name": "updated_at", "comment": null}, "ad_type": {"type": "integer", "index": 6, "name": "ad_type", "comment": null}, "ad_status": {"type": "text", "index": 7, "name": "ad_status", "comment": null}, "display_url": {"type": "integer", "index": 8, "name": "display_url", "comment": null}, "source_final_urls": {"type": "text", "index": 9, "name": "source_final_urls", "comment": null}, "final_urls": {"type": "text", "index": 10, "name": "final_urls", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 11, "name": "is_most_recent_record", "comment": null}, "final_url": {"type": "text", "index": 12, "name": "final_url", "comment": null}, "base_url": {"type": "text", "index": 13, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 14, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 15, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 16, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 17, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 18, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 19, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 20, "name": "utm_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_history"}, "model.google_ads_source.stg_google_ads__ad_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "name": {"type": "integer", "index": 3, "name": "name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "integer", "index": 5, "name": "type", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "display_url": {"type": "integer", "index": 7, "name": "display_url", "comment": null}, "final_urls": {"type": "text", "index": 8, "name": "final_urls", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_history_tmp"}, "model.google_ads_source.stg_google_ads__ad_stats": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_stats", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 3, "name": "date_day", "comment": null}, "ad_group_id": {"type": "text", "index": 4, "name": "ad_group_id", "comment": null}, "keyword_ad_group_criterion": {"type": "text", "index": 5, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "text", "index": 6, "name": "ad_network_type", "comment": null}, "device": {"type": "text", "index": 7, "name": "device", "comment": null}, "ad_id": {"type": "bigint", "index": 8, "name": "ad_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 11, "name": "spend", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "conversions": {"type": "integer", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 14, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "integer", "index": 15, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_stats"}, "model.google_ads_source.stg_google_ads__ad_stats_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_stats_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "ad_group": {"type": "text", "index": 4, "name": "ad_group", "comment": null}, "keyword_ad_group_criterion": {"type": "text", "index": 5, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "text", "index": 6, "name": "ad_network_type", "comment": null}, "device": {"type": "text", "index": 7, "name": "device", "comment": null}, "ad_id": {"type": "bigint", "index": 8, "name": "ad_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "cost_micros": {"type": "integer", "index": 11, "name": "cost_micros", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "conversions": {"type": "integer", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 14, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "integer", "index": 15, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_stats_tmp"}, "model.google_ads_source.stg_google_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "account_id": {"type": "bigint", "index": 5, "name": "account_id", "comment": null}, "advertising_channel_type": {"type": "text", "index": 6, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "text", "index": 7, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "date", "index": 8, "name": "start_date", "comment": null}, "end_date": {"type": "date", "index": 9, "name": "end_date", "comment": null}, "serving_status": {"type": "text", "index": 10, "name": "serving_status", "comment": null}, "status": {"type": "text", "index": 11, "name": "status", "comment": null}, "tracking_url_template": {"type": "integer", "index": 12, "name": "tracking_url_template", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history"}, "model.google_ads_source.stg_google_ads__campaign_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "customer_id": {"type": "bigint", "index": 4, "name": "customer_id", "comment": null}, "advertising_channel_type": {"type": "text", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "text", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "date", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "date", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "text", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "integer", "index": 11, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history_tmp"}, "model.google_ads_source.stg_google_ads__campaign_stats": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__campaign_stats", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 3, "name": "date_day", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "ad_network_type": {"type": "text", "index": 5, "name": "ad_network_type", "comment": null}, "device": {"type": "text", "index": 6, "name": "device", "comment": null}, "clicks": {"type": "integer", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 8, "name": "spend", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "conversions": {"type": "integer", "index": 10, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 11, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "integer", "index": 12, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats"}, "model.google_ads_source.stg_google_ads__campaign_stats_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__campaign_stats_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "base_campaign": {"type": "text", "index": 11, "name": "base_campaign", "comment": null}, "clicks": {"type": "integer", "index": 12, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 14, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 15, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 16, "name": "device", "comment": null}, "id": {"type": "bigint", "index": 17, "name": "id", "comment": null}, "impressions": {"type": "integer", "index": 18, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 19, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 20, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 21, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats_tmp"}, "model.google_ads_source.stg_google_ads__keyword_stats": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__keyword_stats", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "keyword_id": {"type": "text", "index": 2, "name": "keyword_id", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 4, "name": "date_day", "comment": null}, "ad_group_id": {"type": "text", "index": 5, "name": "ad_group_id", "comment": null}, "criterion_id": {"type": "bigint", "index": 6, "name": "criterion_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 9, "name": "spend", "comment": null}, "impressions": {"type": "integer", "index": 10, "name": "impressions", "comment": null}, "conversions": {"type": "integer", "index": 11, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 12, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "integer", "index": 13, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats"}, "model.google_ads_source.stg_google_ads__keyword_stats_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__keyword_stats_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_group_base_ad_group": {"type": "text", "index": 10, "name": "ad_group_base_ad_group", "comment": null}, "ad_group_criterion_criterion_id": {"type": "bigint", "index": 11, "name": "ad_group_criterion_criterion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 12, "name": "ad_group_id", "comment": null}, "ad_network_type": {"type": "text", "index": 13, "name": "ad_network_type", "comment": null}, "campaign_base_campaign": {"type": "text", "index": 14, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "bigint", "index": 15, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 18, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 19, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 20, "name": "device", "comment": null}, "impressions": {"type": "integer", "index": 21, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 22, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 23, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 24, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats_tmp"}, "model.linkedin_source.stg_linkedin_ads__account_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__account_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 3, "name": "account_name", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "version_tag": {"type": "numeric", "index": 5, "name": "version_tag", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "type": {"type": "text", "index": 7, "name": "type", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 8, "name": "last_modified_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "is_latest_version": {"type": "boolean", "index": 10, "name": "is_latest_version", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history"}, "model.linkedin_source.stg_linkedin_ads__account_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__account_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "version_tag": {"type": "integer", "index": 6, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history_tmp"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__ad_analytics_by_campaign", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp without time zone", "index": 2, "name": "date_day", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 4, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 5, "name": "impressions", "comment": null}, "cost": {"type": "double precision", "index": 6, "name": "cost", "comment": null}, "conversion_value_in_local_currency": {"type": "double precision", "index": 7, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "bigint", "index": 8, "name": "external_website_conversions", "comment": null}, "one_click_leads": {"type": "bigint", "index": 9, "name": "one_click_leads", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "day": {"type": "timestamp without time zone", "index": 2, "name": "day", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "action_clicks": {"type": "integer", "index": 4, "name": "action_clicks", "comment": null}, "ad_unit_clicks": {"type": "integer", "index": 5, "name": "ad_unit_clicks", "comment": null}, "approximate_unique_impressions": {"type": "integer", "index": 6, "name": "approximate_unique_impressions", "comment": null}, "card_clicks": {"type": "integer", "index": 7, "name": "card_clicks", "comment": null}, "card_impressions": {"type": "integer", "index": 8, "name": "card_impressions", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "comment_likes": {"type": "integer", "index": 10, "name": "comment_likes", "comment": null}, "comments": {"type": "integer", "index": 11, "name": "comments", "comment": null}, "company_page_clicks": {"type": "integer", "index": 12, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "integer", "index": 13, "name": "conversion_value_in_local_currency", "comment": null}, "cost_in_local_currency": {"type": "double precision", "index": 14, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "double precision", "index": 15, "name": "cost_in_usd", "comment": null}, "external_website_conversions": {"type": "bigint", "index": 16, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "integer", "index": 17, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "integer", "index": 18, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "integer", "index": 19, "name": "follows", "comment": null}, "full_screen_plays": {"type": "integer", "index": 20, "name": "full_screen_plays", "comment": null}, "impressions": {"type": "integer", "index": 21, "name": "impressions", "comment": null}, "landing_page_clicks": {"type": "integer", "index": 22, "name": "landing_page_clicks", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "integer", "index": 23, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "integer", "index": 24, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "integer", "index": 25, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "integer", "index": 26, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "integer", "index": 27, "name": "one_click_leads", "comment": null}, "opens": {"type": "integer", "index": 28, "name": "opens", "comment": null}, "other_engagements": {"type": "integer", "index": 29, "name": "other_engagements", "comment": null}, "shares": {"type": "integer", "index": 30, "name": "shares", "comment": null}, "text_url_clicks": {"type": "integer", "index": 31, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "integer", "index": 32, "name": "total_engagements", "comment": null}, "video_completions": {"type": "integer", "index": 33, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "integer", "index": 34, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "integer", "index": 35, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "integer", "index": 36, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "integer", "index": 37, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "integer", "index": 38, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "integer", "index": 39, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "integer", "index": 40, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "integer", "index": 41, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "integer", "index": 42, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "integer", "index": 43, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "integer", "index": 44, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "integer", "index": 45, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "integer", "index": 46, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "integer", "index": 47, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "integer", "index": 48, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "integer", "index": 49, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "integer", "index": 50, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "integer", "index": 51, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "integer", "index": 52, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "integer", "index": 53, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "integer", "index": 54, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "integer", "index": 55, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "integer", "index": 56, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "integer", "index": 57, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "integer", "index": 58, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "integer", "index": 59, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "integer", "index": 60, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "integer", "index": 61, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "integer", "index": 62, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "integer", "index": 63, "name": "viral_video_views", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__ad_analytics_by_creative", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp without time zone", "index": 2, "name": "date_day", "comment": null}, "creative_id": {"type": "integer", "index": 3, "name": "creative_id", "comment": null}, "clicks": {"type": "integer", "index": 4, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 5, "name": "impressions", "comment": null}, "cost": {"type": "integer", "index": 6, "name": "cost", "comment": null}, "conversion_value_in_local_currency": {"type": "double precision", "index": 7, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "bigint", "index": 8, "name": "external_website_conversions", "comment": null}, "one_click_leads": {"type": "bigint", "index": 9, "name": "one_click_leads", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creative_id": {"type": "integer", "index": 1, "name": "creative_id", "comment": null}, "day": {"type": "timestamp without time zone", "index": 2, "name": "day", "comment": null}, "action_clicks": {"type": "integer", "index": 3, "name": "action_clicks", "comment": null}, "card_clicks": {"type": "integer", "index": 4, "name": "card_clicks", "comment": null}, "ad_unit_clicks": {"type": "integer", "index": 5, "name": "ad_unit_clicks", "comment": null}, "landing_page_clicks": {"type": "integer", "index": 6, "name": "landing_page_clicks", "comment": null}, "clicks": {"type": "integer", "index": 7, "name": "clicks", "comment": null}, "approximate_unique_impressions": {"type": "integer", "index": 8, "name": "approximate_unique_impressions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "card_impressions": {"type": "integer", "index": 10, "name": "card_impressions", "comment": null}, "cost_in_local_currency": {"type": "integer", "index": 11, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "integer", "index": 12, "name": "cost_in_usd", "comment": null}, "comment_likes": {"type": "integer", "index": 13, "name": "comment_likes", "comment": null}, "comments": {"type": "integer", "index": 14, "name": "comments", "comment": null}, "company_page_clicks": {"type": "integer", "index": 15, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "integer", "index": 16, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "bigint", "index": 17, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "integer", "index": 18, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "integer", "index": 19, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "integer", "index": 20, "name": "follows", "comment": null}, "full_screen_plays": {"type": "integer", "index": 21, "name": "full_screen_plays", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "integer", "index": 22, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "integer", "index": 23, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "integer", "index": 24, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "integer", "index": 25, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "integer", "index": 26, "name": "one_click_leads", "comment": null}, "opens": {"type": "integer", "index": 27, "name": "opens", "comment": null}, "other_engagements": {"type": "integer", "index": 28, "name": "other_engagements", "comment": null}, "shares": {"type": "integer", "index": 29, "name": "shares", "comment": null}, "text_url_clicks": {"type": "integer", "index": 30, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "integer", "index": 31, "name": "total_engagements", "comment": null}, "video_completions": {"type": "integer", "index": 32, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "integer", "index": 33, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "integer", "index": 34, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "integer", "index": 35, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "integer", "index": 36, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "integer", "index": 37, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "integer", "index": 38, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "integer", "index": 39, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "integer", "index": 40, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "integer", "index": 41, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "integer", "index": 42, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "integer", "index": 43, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "integer", "index": 44, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "integer", "index": 45, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "integer", "index": 46, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "integer", "index": 47, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "integer", "index": 48, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "integer", "index": 49, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "integer", "index": 50, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "integer", "index": 51, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "integer", "index": 52, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "integer", "index": 53, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "integer", "index": 54, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "integer", "index": 55, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "integer", "index": 56, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "integer", "index": 57, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "integer", "index": 58, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "integer", "index": 59, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "integer", "index": 60, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "integer", "index": 61, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "integer", "index": 62, "name": "viral_video_views", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp"}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__campaign_group_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "campaign_group_id": {"type": "integer", "index": 2, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "text", "index": 3, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "status": {"type": "text", "index": 5, "name": "status", "comment": null}, "is_backfilled": {"type": "boolean", "index": 6, "name": "is_backfilled", "comment": null}, "run_schedule_start_at": {"type": "timestamp without time zone", "index": 7, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "timestamp without time zone", "index": 8, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 9, "name": "last_modified_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "is_latest_version": {"type": "boolean", "index": 11, "name": "is_latest_version", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history"}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__campaign_group_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 4, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"}, "model.linkedin_source.stg_linkedin_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 3, "name": "campaign_name", "comment": null}, "version_tag": {"type": "numeric", "index": 4, "name": "version_tag", "comment": null}, "campaign_group_id": {"type": "integer", "index": 5, "name": "campaign_group_id", "comment": null}, "account_id": {"type": "bigint", "index": 6, "name": "account_id", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "type": {"type": "text", "index": 8, "name": "type", "comment": null}, "cost_type": {"type": "text", "index": 9, "name": "cost_type", "comment": null}, "creative_selection": {"type": "text", "index": 10, "name": "creative_selection", "comment": null}, "daily_budget_amount": {"type": "double precision", "index": 11, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency_code": {"type": "text", "index": 12, "name": "daily_budget_currency_code", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 13, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 14, "name": "unit_cost_currency_code", "comment": null}, "format": {"type": "text", "index": 15, "name": "format", "comment": null}, "locale_country": {"type": "text", "index": 16, "name": "locale_country", "comment": null}, "locale_language": {"type": "text", "index": 17, "name": "locale_language", "comment": null}, "objective_type": {"type": "text", "index": 18, "name": "objective_type", "comment": null}, "optimization_target_type": {"type": "text", "index": 19, "name": "optimization_target_type", "comment": null}, "is_audience_expansion_enabled": {"type": "boolean", "index": 20, "name": "is_audience_expansion_enabled", "comment": null}, "is_offsite_delivery_enabled": {"type": "boolean", "index": 21, "name": "is_offsite_delivery_enabled", "comment": null}, "run_schedule_start_at": {"type": "timestamp without time zone", "index": 22, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "timestamp without time zone", "index": 23, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 24, "name": "last_modified_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 25, "name": "created_at", "comment": null}, "is_latest_version": {"type": "boolean", "index": 26, "name": "is_latest_version", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history"}, "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_group_id": {"type": "integer", "index": 4, "name": "campaign_group_id", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 5, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "version_tag": {"type": "integer", "index": 7, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"}, "model.linkedin_source.stg_linkedin_ads__creative_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__creative_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "creative_id": {"type": "integer", "index": 2, "name": "creative_id", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "comment": null}, "click_uri": {"type": "text", "index": 5, "name": "click_uri", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 6, "name": "last_modified_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "click_uri_type": {"type": "text", "index": 8, "name": "click_uri_type", "comment": null}, "is_latest_version": {"type": "boolean", "index": 9, "name": "is_latest_version", "comment": null}, "base_url": {"type": "text", "index": 10, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 11, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 12, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 13, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 14, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 15, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 16, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 17, "name": "utm_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history"}, "model.linkedin_source.stg_linkedin_ads__creative_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__creative_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "intended_status": {"type": "character varying", "index": 3, "name": "intended_status", "comment": null}, "click_uri": {"type": "text", "index": 4, "name": "click_uri", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 5, "name": "last_modified_at", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 6, "name": "created_time", "comment": null}, "text_ad_landing_page": {"type": "text", "index": 7, "name": "text_ad_landing_page", "comment": null}, "spotlight_landing_page": {"type": "text", "index": 8, "name": "spotlight_landing_page", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__account_daily_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "device_os": {"type": "text", "index": 4, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 5, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 6, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 7, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "text", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 11, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 14, "name": "spend", "comment": null}, "conversions": {"type": "integer", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 16, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "integer", "index": 17, "name": "all_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__account_daily_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "text", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "text", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 13, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 14, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 15, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 16, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 17, "name": "all_conversions_qualified", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__account_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__account_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 3, "name": "account_name", "comment": null}, "modified_at": {"type": "timestamp without time zone", "index": 4, "name": "modified_at", "comment": null}, "time_zone": {"type": "text", "index": 5, "name": "time_zone", "comment": null}, "currency_code": {"type": "text", "index": 6, "name": "currency_code", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history"}, "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__account_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "character varying", "index": 2, "name": "name", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 3, "name": "last_modified_time", "comment": null}, "time_zone": {"type": "text", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__ad_daily_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 5, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 6, "name": "ad_id", "comment": null}, "currency_code": {"type": "text", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 10, "name": "network", "comment": null}, "language": {"type": "text", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 18, "name": "spend", "comment": null}, "conversions": {"type": "integer", "index": 19, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 20, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "integer", "index": 21, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "double precision", "index": 22, "name": "all_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__ad_daily_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "text", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 9, "name": "network", "comment": null}, "language": {"type": "text", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 18, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 19, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 20, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 21, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "integer", "index": 22, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "double precision", "index": 23, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__ad_group_daily_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 5, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "text", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 9, "name": "network", "comment": null}, "language": {"type": "text", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}, "conversions": {"type": "integer", "index": 18, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 19, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "integer", "index": 20, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "double precision", "index": 21, "name": "all_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__ad_group_daily_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 8, "name": "network", "comment": null}, "language": {"type": "text", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 16, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 17, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 18, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 19, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 20, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "integer", "index": 21, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "double precision", "index": 22, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__ad_group_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 3, "name": "ad_group_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "modified_at": {"type": "timestamp without time zone", "index": 5, "name": "modified_at", "comment": null}, "start_date": {"type": "date", "index": 6, "name": "start_date", "comment": null}, "end_date": {"type": "integer", "index": 7, "name": "end_date", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__ad_group_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 4, "name": "modified_time", "comment": null}, "start_date": {"type": "date", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "integer", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__ad_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "bigint", "index": 2, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 3, "name": "ad_name", "comment": null}, "final_url": {"type": "text", "index": 4, "name": "final_url", "comment": null}, "ad_group_id": {"type": "bigint", "index": 5, "name": "ad_group_id", "comment": null}, "modified_at": {"type": "timestamp without time zone", "index": 6, "name": "modified_at", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "type": {"type": "text", "index": 8, "name": "type", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__ad_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title_part_1": {"type": "text", "index": 2, "name": "title_part_1", "comment": null}, "final_url": {"type": "text", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 5, "name": "modified_time", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "type": {"type": "text", "index": 7, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__campaign_daily_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 8, "name": "network", "comment": null}, "ad_distribution": {"type": "text", "index": 9, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 10, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 11, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 12, "name": "top_vs_other", "comment": null}, "budget_association_status": {"type": "text", "index": 13, "name": "budget_association_status", "comment": null}, "budget_name": {"type": "text", "index": 14, "name": "budget_name", "comment": null}, "budget_status": {"type": "text", "index": 15, "name": "budget_status", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 18, "name": "spend", "comment": null}, "conversions": {"type": "integer", "index": 19, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 20, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "integer", "index": 21, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "double precision", "index": 22, "name": "all_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__campaign_daily_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "text", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "text", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 11, "name": "top_vs_other", "comment": null}, "budget_association_status": {"type": "text", "index": 12, "name": "budget_association_status", "comment": null}, "budget_name": {"type": "text", "index": 13, "name": "budget_name", "comment": null}, "clicks": {"type": "integer", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 16, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 17, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 18, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 19, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 20, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "integer", "index": 21, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "double precision", "index": 22, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 3, "name": "campaign_name", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "modified_at": {"type": "timestamp without time zone", "index": 5, "name": "modified_at", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}, "time_zone": {"type": "text", "index": 7, "name": "time_zone", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "account_id": {"type": "integer", "index": 3, "name": "account_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 4, "name": "modified_time", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "text", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__keyword_daily_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 5, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 6, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 7, "name": "keyword_id", "comment": null}, "currency_code": {"type": "text", "index": 8, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 9, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 10, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 11, "name": "network", "comment": null}, "language": {"type": "text", "index": 12, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 13, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 14, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 15, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 16, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 17, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 19, "name": "spend", "comment": null}, "conversions": {"type": "integer", "index": 20, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 21, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "integer", "index": 22, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "double precision", "index": 23, "name": "all_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__keyword_daily_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "text", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 10, "name": "network", "comment": null}, "language": {"type": "text", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 18, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 19, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 20, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 21, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 22, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "integer", "index": 23, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "double precision", "index": 24, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__keyword_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "keyword_id": {"type": "bigint", "index": 2, "name": "keyword_id", "comment": null}, "keyword_name": {"type": "text", "index": 3, "name": "keyword_name", "comment": null}, "modified_at": {"type": "timestamp without time zone", "index": 4, "name": "modified_at", "comment": null}, "ad_group_id": {"type": "bigint", "index": 5, "name": "ad_group_id", "comment": null}, "match_type": {"type": "text", "index": 6, "name": "match_type", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__keyword_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 3, "name": "modified_time", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "text", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__search_daily_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 5, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 6, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 7, "name": "keyword_id", "comment": null}, "search_query": {"type": "text", "index": 8, "name": "search_query", "comment": null}, "device_os": {"type": "text", "index": 9, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 10, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 11, "name": "network", "comment": null}, "language": {"type": "text", "index": 12, "name": "language", "comment": null}, "bid_match_type": {"type": "text", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 18, "name": "spend", "comment": null}, "conversions": {"type": "integer", "index": 19, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 20, "name": "conversions_value", "comment": null}, "all_conversions": {"type": "integer", "index": 21, "name": "all_conversions", "comment": null}, "all_conversions_value": {"type": "double precision", "index": 22, "name": "all_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__search_daily_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "text", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "text", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 10, "name": "network", "comment": null}, "language": {"type": "text", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "text", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 18, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 19, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 20, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 21, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "integer", "index": 22, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "double precision", "index": 23, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__ad_group_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "text", "index": 2, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 3, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 4, "name": "ad_group_status", "comment": null}, "advertiser_id": {"type": "bigint", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 6, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "text", "index": 7, "name": "campaign_id", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "end_time": {"type": "integer", "index": 9, "name": "end_time", "comment": null}, "pacing_delivery_type": {"type": "text", "index": 10, "name": "pacing_delivery_type", "comment": null}, "placement_group": {"type": "text", "index": 11, "name": "placement_group", "comment": null}, "start_time": {"type": "text", "index": 12, "name": "start_time", "comment": null}, "summary_status": {"type": "text", "index": 13, "name": "summary_status", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 14, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history"}, "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__ad_group_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "created_time": {"type": "text", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "status": {"type": "text", "index": 5, "name": "status", "comment": null}, "start_time": {"type": "text", "index": 6, "name": "start_time", "comment": null}, "end_time": {"type": "integer", "index": 7, "name": "end_time", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}, "pacing_delivery_type": {"type": "text", "index": 9, "name": "pacing_delivery_type", "comment": null}, "placement_group": {"type": "text", "index": 10, "name": "placement_group", "comment": null}, "summary_status": {"type": "text", "index": 11, "name": "summary_status", "comment": null}, "ad_account_id": {"type": "bigint", "index": 12, "name": "ad_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp with time zone", "index": 2, "name": "date_day", "comment": null}, "ad_group_id": {"type": "text", "index": 3, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 4, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 5, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "text", "index": 6, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "text", "index": 7, "name": "advertiser_id", "comment": null}, "impressions": {"type": "integer", "index": 8, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 10, "name": "spend", "comment": null}, "total_conversions": {"type": "integer", "index": 11, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 12, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "numeric", "index": 13, "name": "total_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report"}, "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__ad_group_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 3, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 4, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 6, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 8, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 9, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 10, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 11, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 12, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "integer", "index": 13, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 14, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "integer", "index": 15, "name": "total_conversions_value_in_micro_dollar", "comment": null}, "total_view_checkout": {"type": "integer", "index": 16, "name": "total_view_checkout", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__advertiser_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__advertiser_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "advertiser_id": {"type": "text", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 6, "name": "currency_code", "comment": null}, "owner_user_id": {"type": "integer", "index": 7, "name": "owner_user_id", "comment": null}, "owner_username": {"type": "text", "index": 8, "name": "owner_username", "comment": null}, "advertiser_permissions": {"type": "text", "index": 9, "name": "advertiser_permissions", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 11, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history"}, "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__advertiser_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "billing_profile_status": {"type": "text", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "text", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 7, "name": "created_time", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "merchant_id": {"type": "integer", "index": 9, "name": "merchant_id", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "owner_user_id": {"type": "integer", "index": 11, "name": "owner_user_id", "comment": null}, "status": {"type": "text", "index": 12, "name": "status", "comment": null}, "owner_username": {"type": "text", "index": 13, "name": "owner_username", "comment": null}, "permissions": {"type": "text", "index": 14, "name": "permissions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__advertiser_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__advertiser_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp with time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "text", "index": 3, "name": "advertiser_id", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 5, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 6, "name": "spend", "comment": null}, "total_conversions": {"type": "integer", "index": 7, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 8, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "numeric", "index": 9, "name": "total_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report"}, "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__advertiser_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 4, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 5, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 6, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 7, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 8, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "integer", "index": 9, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 10, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "integer", "index": 11, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "text", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 3, "name": "campaign_name", "comment": null}, "advertiser_id": {"type": "text", "index": 4, "name": "advertiser_id", "comment": null}, "default_ad_group_budget_in_micro_currency": {"type": "integer", "index": 5, "name": "default_ad_group_budget_in_micro_currency", "comment": null}, "is_automated_campaign": {"type": "boolean", "index": 6, "name": "is_automated_campaign", "comment": null}, "is_campaign_budget_optimization": {"type": "boolean", "index": 7, "name": "is_campaign_budget_optimization", "comment": null}, "is_flexible_daily_budgets": {"type": "boolean", "index": 8, "name": "is_flexible_daily_budgets", "comment": null}, "campaign_status": {"type": "text", "index": 9, "name": "campaign_status", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 11, "name": "created_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history"}, "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_time": {"type": "text", "index": 2, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "advertiser_id": {"type": "bigint", "index": 6, "name": "advertiser_id", "comment": null}, "default_ad_group_budget_in_micro_currency": {"type": "integer", "index": 7, "name": "default_ad_group_budget_in_micro_currency", "comment": null}, "is_automated_campaign": {"type": "boolean", "index": 8, "name": "is_automated_campaign", "comment": null}, "is_campaign_budget_optimization": {"type": "boolean", "index": 9, "name": "is_campaign_budget_optimization", "comment": null}, "is_flexible_daily_budgets": {"type": "boolean", "index": 10, "name": "is_flexible_daily_budgets", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp with time zone", "index": 2, "name": "date_day", "comment": null}, "campaign_id": {"type": "text", "index": 3, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 5, "name": "campaign_status", "comment": null}, "advertiser_id": {"type": "text", "index": 6, "name": "advertiser_id", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 9, "name": "spend", "comment": null}, "total_conversions": {"type": "integer", "index": 10, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 11, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "numeric", "index": 12, "name": "total_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report"}, "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__campaign_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 3, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 4, "name": "campaign_status", "comment": null}, "advertiser_id": {"type": "bigint", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 11, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "integer", "index": 12, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 13, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "integer", "index": 14, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__keyword_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "keyword_id": {"type": "text", "index": 2, "name": "keyword_id", "comment": null}, "keyword_value": {"type": "text", "index": 3, "name": "keyword_value", "comment": null}, "_fivetran_id": {"type": "text", "index": 4, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "text", "index": 6, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "text", "index": 7, "name": "advertiser_id", "comment": null}, "archived": {"type": "boolean", "index": 8, "name": "archived", "comment": null}, "bid": {"type": "integer", "index": 9, "name": "bid", "comment": null}, "campaign_id": {"type": "text", "index": 10, "name": "campaign_id", "comment": null}, "match_type": {"type": "text", "index": 11, "name": "match_type", "comment": null}, "parent_type": {"type": "text", "index": 12, "name": "parent_type", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history"}, "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__keyword_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 4, "name": "advertiser_id", "comment": null}, "archived": {"type": "boolean", "index": 5, "name": "archived", "comment": null}, "bid": {"type": "integer", "index": 6, "name": "bid", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "id": {"type": "bigint", "index": 8, "name": "id", "comment": null}, "match_type": {"type": "text", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "text", "index": 10, "name": "parent_type", "comment": null}, "value": {"type": "text", "index": 11, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp with time zone", "index": 2, "name": "date_day", "comment": null}, "keyword_id": {"type": "text", "index": 3, "name": "keyword_id", "comment": null}, "pin_promotion_id": {"type": "text", "index": 4, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "text", "index": 5, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 7, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "text", "index": 8, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "text", "index": 9, "name": "advertiser_id", "comment": null}, "impressions": {"type": "integer", "index": 10, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 12, "name": "spend", "comment": null}, "total_conversions": {"type": "integer", "index": 13, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 14, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "numeric", "index": 15, "name": "total_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report"}, "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__keyword_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "keyword_id": {"type": "bigint", "index": 2, "name": "keyword_id", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 3, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 8, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 10, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 11, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 13, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 14, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "integer", "index": 15, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 16, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "integer", "index": 17, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__pin_promotion_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "pin_promotion_id": {"type": "text", "index": 2, "name": "pin_promotion_id", "comment": null}, "advertiser_id": {"type": "text", "index": 3, "name": "advertiser_id", "comment": null}, "ad_group_id": {"type": "text", "index": 4, "name": "ad_group_id", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "destination_url": {"type": "text", "index": 6, "name": "destination_url", "comment": null}, "base_url": {"type": "text", "index": 7, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 8, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 9, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 10, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 11, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 12, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 13, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 14, "name": "utm_term", "comment": null}, "pin_name": {"type": "text", "index": 15, "name": "pin_name", "comment": null}, "pin_id": {"type": "text", "index": 16, "name": "pin_id", "comment": null}, "pin_status": {"type": "text", "index": 17, "name": "pin_status", "comment": null}, "creative_type": {"type": "text", "index": 18, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 20, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__pin_promotion_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "created_time": {"type": "text", "index": 3, "name": "created_time", "comment": null}, "destination_url": {"type": "text", "index": 4, "name": "destination_url", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "pin_id": {"type": "bigint", "index": 6, "name": "pin_id", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "creative_type": {"type": "text", "index": 8, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "text", "index": 9, "name": "_fivetran_synced", "comment": null}, "ad_account_id": {"type": "bigint", "index": 10, "name": "ad_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__pin_promotion_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp with time zone", "index": 2, "name": "date_day", "comment": null}, "pin_promotion_id": {"type": "text", "index": 3, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "text", "index": 4, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "text", "index": 6, "name": "advertiser_id", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 9, "name": "spend", "comment": null}, "total_conversions": {"type": "integer", "index": 10, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 11, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value": {"type": "numeric", "index": 12, "name": "total_conversions_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__pin_promotion_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 11, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "integer", "index": 12, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 13, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "integer", "index": 14, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__account": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__account", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "attribution_type": {"type": "text", "index": 2, "name": "attribution_type", "comment": null}, "click_attribution_window": {"type": "text", "index": 3, "name": "click_attribution_window", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "account_id": {"type": "bigint", "index": 6, "name": "account_id", "comment": null}, "status": {"type": "integer", "index": 7, "name": "status", "comment": null}, "time_zone_id": {"type": "text", "index": 8, "name": "time_zone_id", "comment": null}, "view_attribution_window": {"type": "text", "index": 9, "name": "view_attribution_window", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account"}, "model.reddit_ads_source.stg_reddit_ads__account_conversions_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__account_conversions_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 3, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 4, "name": "date_day", "comment": null}, "event_name": {"type": "text", "index": 5, "name": "event_name", "comment": null}, "total_items": {"type": "integer", "index": 6, "name": "total_items", "comment": null}, "total_value": {"type": "double precision", "index": 7, "name": "total_value", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 9, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_conversions_report"}, "model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__account_conversions_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "avg_value": {"type": "double precision", "index": 3, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "integer", "index": 4, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "integer", "index": 5, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "integer", "index": 6, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "date", "index": 7, "name": "date", "comment": null}, "event_name": {"type": "text", "index": 8, "name": "event_name", "comment": null}, "total_items": {"type": "integer", "index": 9, "name": "total_items", "comment": null}, "total_value": {"type": "double precision", "index": 10, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "integer", "index": 11, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "integer", "index": 12, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "integer", "index": 13, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "clicks": {"type": "integer", "index": 3, "name": "clicks", "comment": null}, "date_day": {"type": "date", "index": 4, "name": "date_day", "comment": null}, "impressions": {"type": "integer", "index": 5, "name": "impressions", "comment": null}, "region": {"type": "integer", "index": 6, "name": "region", "comment": null}, "spend": {"type": "integer", "index": 7, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_report"}, "model.reddit_ads_source.stg_reddit_ads__account_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__account_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "bigint", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "integer", "index": 4, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "integer", "index": 5, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "integer", "index": 6, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "integer", "index": 7, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "integer", "index": 8, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "integer", "index": 9, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "integer", "index": 10, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "integer", "index": 11, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "integer", "index": 12, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "integer", "index": 13, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "integer", "index": 14, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "integer", "index": 15, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "integer", "index": 17, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "integer", "index": 18, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "integer", "index": 19, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "integer", "index": 20, "name": "conversion_roas", "comment": null}, "cpc": {"type": "double precision", "index": 21, "name": "cpc", "comment": null}, "ctr": {"type": "double precision", "index": 22, "name": "ctr", "comment": null}, "ecpm": {"type": "double precision", "index": 23, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "integer", "index": 24, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "integer", "index": 25, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "integer", "index": 26, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "integer", "index": 27, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "integer", "index": 28, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "integer", "index": 29, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "integer", "index": 30, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "integer", "index": 31, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "integer", "index": 32, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "integer", "index": 33, "name": "priority", "comment": null}, "region": {"type": "integer", "index": 34, "name": "region", "comment": null}, "spend": {"type": "integer", "index": 35, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "integer", "index": 36, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "integer", "index": 37, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "integer", "index": 38, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "integer", "index": 39, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "integer", "index": 40, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "integer", "index": 41, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "integer", "index": 42, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "integer", "index": 43, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "integer", "index": 44, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "integer", "index": 45, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "integer", "index": 46, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "integer", "index": 47, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "integer", "index": 48, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "integer", "index": 49, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "integer", "index": 50, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__account_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__account_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "attribution_type": {"type": "text", "index": 3, "name": "attribution_type", "comment": null}, "click_attribution_window": {"type": "text", "index": 4, "name": "click_attribution_window", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "status": {"type": "integer", "index": 7, "name": "status", "comment": null}, "time_zone_id": {"type": "text", "index": 8, "name": "time_zone_id", "comment": null}, "view_attribution_window": {"type": "text", "index": 9, "name": "view_attribution_window", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_tmp"}, "model.reddit_ads_source.stg_reddit_ads__ad": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "click_url": {"type": "text", "index": 5, "name": "click_url", "comment": null}, "configured_status": {"type": "text", "index": 6, "name": "configured_status", "comment": null}, "effective_status": {"type": "text", "index": 7, "name": "effective_status", "comment": null}, "ad_id": {"type": "bigint", "index": 8, "name": "ad_id", "comment": null}, "is_processing": {"type": "boolean", "index": 9, "name": "is_processing", "comment": null}, "ad_name": {"type": "text", "index": 10, "name": "ad_name", "comment": null}, "post_id": {"type": "text", "index": 11, "name": "post_id", "comment": null}, "post_url": {"type": "integer", "index": 12, "name": "post_url", "comment": null}, "rejection_reason": {"type": "integer", "index": 13, "name": "rejection_reason", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad"}, "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_conversions_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 3, "name": "account_id", "comment": null}, "ad_id": {"type": "integer", "index": 4, "name": "ad_id", "comment": null}, "date_day": {"type": "date", "index": 5, "name": "date_day", "comment": null}, "event_name": {"type": "text", "index": 6, "name": "event_name", "comment": null}, "total_items": {"type": "integer", "index": 7, "name": "total_items", "comment": null}, "total_value": {"type": "double precision", "index": 8, "name": "total_value", "comment": null}, "conversions": {"type": "integer", "index": 9, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 10, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report"}, "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_conversions_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "ad_id": {"type": "integer", "index": 3, "name": "ad_id", "comment": null}, "avg_value": {"type": "double precision", "index": 4, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "integer", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "integer", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "integer", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "date", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "text", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "integer", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "double precision", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "integer", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "integer", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "integer", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__ad_group": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_group", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "bid_strategy": {"type": "text", "index": 3, "name": "bid_strategy", "comment": null}, "bid_value": {"type": "integer", "index": 4, "name": "bid_value", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "configured_status": {"type": "text", "index": 6, "name": "configured_status", "comment": null}, "effective_status": {"type": "text", "index": 7, "name": "effective_status", "comment": null}, "end_time_at": {"type": "timestamp without time zone", "index": 8, "name": "end_time_at", "comment": null}, "expand_targeting": {"type": "boolean", "index": 9, "name": "expand_targeting", "comment": null}, "goal_type": {"type": "text", "index": 10, "name": "goal_type", "comment": null}, "goal_value": {"type": "integer", "index": 11, "name": "goal_value", "comment": null}, "ad_group_id": {"type": "bigint", "index": 12, "name": "ad_group_id", "comment": null}, "is_processing": {"type": "boolean", "index": 13, "name": "is_processing", "comment": null}, "ad_group_name": {"type": "text", "index": 14, "name": "ad_group_name", "comment": null}, "optimization_strategy_type": {"type": "integer", "index": 15, "name": "optimization_strategy_type", "comment": null}, "start_time_at": {"type": "timestamp without time zone", "index": 16, "name": "start_time_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group"}, "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_conversions_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 3, "name": "account_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "date_day": {"type": "date", "index": 5, "name": "date_day", "comment": null}, "event_name": {"type": "text", "index": 6, "name": "event_name", "comment": null}, "total_items": {"type": "integer", "index": 7, "name": "total_items", "comment": null}, "total_value": {"type": "double precision", "index": 8, "name": "total_value", "comment": null}, "conversions": {"type": "integer", "index": 9, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 10, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report"}, "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_conversions_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 3, "name": "ad_group_id", "comment": null}, "avg_value": {"type": "double precision", "index": 4, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "integer", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "integer", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "integer", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "date", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "text", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "integer", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "double precision", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "integer", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "integer", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "integer", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "clicks": {"type": "integer", "index": 4, "name": "clicks", "comment": null}, "date_day": {"type": "date", "index": 5, "name": "date_day", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "region": {"type": "integer", "index": 7, "name": "region", "comment": null}, "spend": {"type": "integer", "index": 8, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_report"}, "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "bigint", "index": 1, "name": "account_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "integer", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "integer", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "integer", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "integer", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "integer", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "integer", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "integer", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "integer", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "integer", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "integer", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "integer", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "integer", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "integer", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "integer", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "integer", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "integer", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "integer", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "double precision", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "double precision", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "double precision", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "integer", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "integer", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "integer", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "integer", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "integer", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "integer", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "integer", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "integer", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "integer", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "integer", "index": 34, "name": "priority", "comment": null}, "region": {"type": "integer", "index": 35, "name": "region", "comment": null}, "spend": {"type": "integer", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "integer", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "integer", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "integer", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "integer", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "integer", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "integer", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "integer", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "integer", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "integer", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "integer", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "integer", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "integer", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "integer", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "integer", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "integer", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bid_strategy": {"type": "text", "index": 4, "name": "bid_strategy", "comment": null}, "bid_value": {"type": "integer", "index": 5, "name": "bid_value", "comment": null}, "campaign_id": {"type": "bigint", "index": 6, "name": "campaign_id", "comment": null}, "configured_status": {"type": "text", "index": 7, "name": "configured_status", "comment": null}, "effective_status": {"type": "text", "index": 8, "name": "effective_status", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 9, "name": "end_time", "comment": null}, "expand_targeting": {"type": "boolean", "index": 10, "name": "expand_targeting", "comment": null}, "goal_type": {"type": "text", "index": 11, "name": "goal_type", "comment": null}, "goal_value": {"type": "integer", "index": 12, "name": "goal_value", "comment": null}, "is_processing": {"type": "boolean", "index": 13, "name": "is_processing", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "optimization_strategy_type": {"type": "integer", "index": 15, "name": "optimization_strategy_type", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 16, "name": "start_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp"}, "model.reddit_ads_source.stg_reddit_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "ad_id": {"type": "bigint", "index": 3, "name": "ad_id", "comment": null}, "clicks": {"type": "integer", "index": 4, "name": "clicks", "comment": null}, "date_day": {"type": "date", "index": 5, "name": "date_day", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "region": {"type": "integer", "index": 7, "name": "region", "comment": null}, "spend": {"type": "integer", "index": 8, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_report"}, "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "bigint", "index": 1, "name": "account_id", "comment": null}, "ad_id": {"type": "bigint", "index": 2, "name": "ad_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "integer", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "integer", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "integer", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "integer", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "integer", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "integer", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "integer", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "integer", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "integer", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "integer", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "integer", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "integer", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "integer", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "integer", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "integer", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "integer", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "integer", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "double precision", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "double precision", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "double precision", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "integer", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "integer", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "integer", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "integer", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "integer", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "integer", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "integer", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "integer", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "integer", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "integer", "index": 34, "name": "priority", "comment": null}, "region": {"type": "integer", "index": 35, "name": "region", "comment": null}, "spend": {"type": "integer", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "integer", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "integer", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "integer", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "integer", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "integer", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "integer", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "integer", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "integer", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "integer", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "integer", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "integer", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "integer", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "integer", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "integer", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "integer", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__ad_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "click_url": {"type": "text", "index": 6, "name": "click_url", "comment": null}, "configured_status": {"type": "text", "index": 7, "name": "configured_status", "comment": null}, "effective_status": {"type": "text", "index": 8, "name": "effective_status", "comment": null}, "is_processing": {"type": "boolean", "index": 9, "name": "is_processing", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "post_id": {"type": "text", "index": 11, "name": "post_id", "comment": null}, "post_url": {"type": "integer", "index": 12, "name": "post_url", "comment": null}, "preview_expiry": {"type": "integer", "index": 13, "name": "preview_expiry", "comment": null}, "preview_url": {"type": "integer", "index": 14, "name": "preview_url", "comment": null}, "rejection_reason": {"type": "integer", "index": 15, "name": "rejection_reason", "comment": null}, "search_term": {"type": "integer", "index": 16, "name": "search_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_tmp"}, "model.reddit_ads_source.stg_reddit_ads__campaign": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__campaign", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "configured_status": {"type": "text", "index": 3, "name": "configured_status", "comment": null}, "effective_status": {"type": "text", "index": 4, "name": "effective_status", "comment": null}, "funding_instrument_id": {"type": "integer", "index": 5, "name": "funding_instrument_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 6, "name": "campaign_id", "comment": null}, "is_processing": {"type": "boolean", "index": 7, "name": "is_processing", "comment": null}, "campaign_name": {"type": "text", "index": 8, "name": "campaign_name", "comment": null}, "objective": {"type": "text", "index": 9, "name": "objective", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign"}, "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__campaign_conversions_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 3, "name": "account_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "date_day": {"type": "date", "index": 5, "name": "date_day", "comment": null}, "event_name": {"type": "text", "index": 6, "name": "event_name", "comment": null}, "total_items": {"type": "integer", "index": 7, "name": "total_items", "comment": null}, "total_value": {"type": "double precision", "index": 8, "name": "total_value", "comment": null}, "conversions": {"type": "integer", "index": 9, "name": "conversions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 10, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report"}, "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__campaign_conversions_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "avg_value": {"type": "double precision", "index": 3, "name": "avg_value", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "integer", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "integer", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "integer", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "date", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "text", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "integer", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "double precision", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "integer", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "integer", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "integer", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 4, "name": "clicks", "comment": null}, "date_day": {"type": "date", "index": 5, "name": "date_day", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "region": {"type": "integer", "index": 7, "name": "region", "comment": null}, "spend": {"type": "integer", "index": 8, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_report"}, "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__campaign_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "bigint", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "integer", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "integer", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "integer", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "integer", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "integer", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "integer", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "integer", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "integer", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "integer", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "integer", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "integer", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "integer", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "integer", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "integer", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "integer", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "integer", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "integer", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "double precision", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "double precision", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "double precision", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "integer", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "integer", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "integer", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "integer", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "integer", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "integer", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "integer", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "integer", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "integer", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "integer", "index": 34, "name": "priority", "comment": null}, "region": {"type": "integer", "index": 35, "name": "region", "comment": null}, "spend": {"type": "integer", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "integer", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "integer", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "integer", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "integer", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "integer", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "integer", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "integer", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "integer", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "integer", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "integer", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "integer", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "integer", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "integer", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "integer", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "integer", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__campaign_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__campaign_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "configured_status": {"type": "text", "index": 4, "name": "configured_status", "comment": null}, "effective_status": {"type": "text", "index": 5, "name": "effective_status", "comment": null}, "funding_instrument_id": {"type": "integer", "index": 6, "name": "funding_instrument_id", "comment": null}, "is_processing": {"type": "boolean", "index": 7, "name": "is_processing", "comment": null}, "name": {"type": "text", "index": 8, "name": "name", "comment": null}, "objective": {"type": "text", "index": 9, "name": "objective", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_account_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "text", "index": 3, "name": "ad_account_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "advertiser": {"type": "text", "index": 5, "name": "advertiser", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "timezone": {"type": "text", "index": 7, "name": "timezone", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_account_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "text", "index": 2, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 3, "name": "ad_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "ad_squad_id": {"type": "text", "index": 5, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "text", "index": 6, "name": "creative_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_squad_id": {"type": "text", "index": 2, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "text", "index": 3, "name": "creative_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_hourly_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "text", "index": 2, "name": "ad_id", "comment": null}, "date_hour": {"type": "timestamp without time zone", "index": 3, "name": "date_hour", "comment": null}, "attachment_quartile_1": {"type": "numeric(28,6)", "index": 4, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "numeric(28,6)", "index": 5, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "numeric(28,6)", "index": 6, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time": {"type": "numeric", "index": 7, "name": "attachment_total_view_time", "comment": null}, "attachment_view_completion": {"type": "numeric(28,6)", "index": 8, "name": "attachment_view_completion", "comment": null}, "quartile_1": {"type": "numeric(28,6)", "index": 9, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "numeric(28,6)", "index": 10, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "numeric(28,6)", "index": 11, "name": "quartile_3", "comment": null}, "saves": {"type": "numeric(28,6)", "index": 12, "name": "saves", "comment": null}, "shares": {"type": "numeric(28,6)", "index": 13, "name": "shares", "comment": null}, "screen_time": {"type": "numeric", "index": 14, "name": "screen_time", "comment": null}, "video_views": {"type": "numeric(28,6)", "index": 15, "name": "video_views", "comment": null}, "view_completion": {"type": "numeric(28,6)", "index": 16, "name": "view_completion", "comment": null}, "view_time": {"type": "numeric", "index": 17, "name": "view_time", "comment": null}, "impressions": {"type": "integer", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 19, "name": "spend", "comment": null}, "swipes": {"type": "integer", "index": 20, "name": "swipes", "comment": null}, "conversion_purchases_value": {"type": "double precision", "index": 21, "name": "conversion_purchases_value", "comment": null}, "conversion_purchases": {"type": "bigint", "index": 22, "name": "conversion_purchases", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_hourly_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "text", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "impressions": {"type": "integer", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "integer", "index": 4, "name": "spend", "comment": null}, "swipes": {"type": "integer", "index": 5, "name": "swipes", "comment": null}, "conversion_purchases_value": {"type": "double precision", "index": 6, "name": "conversion_purchases_value", "comment": null}, "conversion_add_billing": {"type": "integer", "index": 7, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "integer", "index": 8, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "integer", "index": 9, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "integer", "index": 10, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "integer", "index": 11, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "integer", "index": 12, "name": "conversion_purchases", "comment": null}, "conversion_save": {"type": "integer", "index": 13, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "integer", "index": 14, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "integer", "index": 15, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "integer", "index": 16, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "integer", "index": 17, "name": "conversion_view_content", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_squad_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_squad_id": {"type": "text", "index": 2, "name": "ad_squad_id", "comment": null}, "ad_squad_name": {"type": "text", "index": 3, "name": "ad_squad_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_squad_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "text", "index": 2, "name": "campaign_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_squad_hourly_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_squad_id": {"type": "text", "index": 2, "name": "ad_squad_id", "comment": null}, "date_hour": {"type": "timestamp without time zone", "index": 3, "name": "date_hour", "comment": null}, "attachment_quartile_1": {"type": "integer", "index": 4, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "integer", "index": 5, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "integer", "index": 6, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time": {"type": "numeric", "index": 7, "name": "attachment_total_view_time", "comment": null}, "attachment_view_completion": {"type": "integer", "index": 8, "name": "attachment_view_completion", "comment": null}, "quartile_1": {"type": "integer", "index": 9, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "integer", "index": 10, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "integer", "index": 11, "name": "quartile_3", "comment": null}, "saves": {"type": "integer", "index": 12, "name": "saves", "comment": null}, "shares": {"type": "integer", "index": 13, "name": "shares", "comment": null}, "screen_time": {"type": "numeric", "index": 14, "name": "screen_time", "comment": null}, "video_views": {"type": "integer", "index": 15, "name": "video_views", "comment": null}, "view_completion": {"type": "integer", "index": 16, "name": "view_completion", "comment": null}, "view_time": {"type": "numeric", "index": 17, "name": "view_time", "comment": null}, "impressions": {"type": "integer", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 19, "name": "spend", "comment": null}, "swipes": {"type": "integer", "index": 20, "name": "swipes", "comment": null}, "conversion_purchases_value": {"type": "double precision", "index": 21, "name": "conversion_purchases_value", "comment": null}, "conversion_purchases": {"type": "bigint", "index": 22, "name": "conversion_purchases", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_squad_id": {"type": "text", "index": 1, "name": "ad_squad_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "integer", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "integer", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "integer", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "integer", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "integer", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "integer", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "integer", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "integer", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "integer", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "integer", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "integer", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "integer", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "integer", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "integer", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "integer", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "double precision", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "integer", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "integer", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "integer", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "integer", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "integer", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "integer", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "integer", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "integer", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "integer", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "integer", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "integer", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "integer", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "integer", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "integer", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "integer", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "integer", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "integer", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "integer", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "integer", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "integer", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "integer", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "integer", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "text", "index": 2, "name": "campaign_id", "comment": null}, "ad_account_id": {"type": "text", "index": 3, "name": "ad_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__campaign_hourly_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "text", "index": 2, "name": "campaign_id", "comment": null}, "date_hour": {"type": "timestamp without time zone", "index": 3, "name": "date_hour", "comment": null}, "attachment_quartile_1": {"type": "integer", "index": 4, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "integer", "index": 5, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "integer", "index": 6, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time": {"type": "numeric", "index": 7, "name": "attachment_total_view_time", "comment": null}, "attachment_view_completion": {"type": "integer", "index": 8, "name": "attachment_view_completion", "comment": null}, "quartile_1": {"type": "integer", "index": 9, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "integer", "index": 10, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "integer", "index": 11, "name": "quartile_3", "comment": null}, "saves": {"type": "integer", "index": 12, "name": "saves", "comment": null}, "shares": {"type": "integer", "index": 13, "name": "shares", "comment": null}, "screen_time": {"type": "numeric", "index": 14, "name": "screen_time", "comment": null}, "video_views": {"type": "integer", "index": 15, "name": "video_views", "comment": null}, "view_completion": {"type": "integer", "index": 16, "name": "view_completion", "comment": null}, "view_time": {"type": "numeric", "index": 17, "name": "view_time", "comment": null}, "impressions": {"type": "integer", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 19, "name": "spend", "comment": null}, "swipes": {"type": "integer", "index": 20, "name": "swipes", "comment": null}, "conversion_purchases_value": {"type": "double precision", "index": 21, "name": "conversion_purchases_value", "comment": null}, "conversion_purchases": {"type": "bigint", "index": 22, "name": "conversion_purchases", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__campaign_hourly_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "text", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "integer", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "integer", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "integer", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "integer", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "integer", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "integer", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "integer", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "integer", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "integer", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "integer", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "integer", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "integer", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "integer", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "integer", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "integer", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "double precision", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "integer", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "integer", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "integer", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "integer", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "integer", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "integer", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "integer", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "integer", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "integer", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "integer", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "integer", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "integer", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "integer", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "integer", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "integer", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "integer", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "integer", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "integer", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "integer", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "integer", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "integer", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "integer", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__creative_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "creative_id": {"type": "text", "index": 2, "name": "creative_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "ad_account_id": {"type": "text", "index": 4, "name": "ad_account_id", "comment": null}, "creative_name": {"type": "text", "index": 5, "name": "creative_name", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__creative_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "web_view_url": {"type": "text", "index": 4, "name": "web_view_url", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__creative_url_tag_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "creative_id": {"type": "text", "index": 2, "name": "creative_id", "comment": null}, "param_key": {"type": "text", "index": 3, "name": "param_key", "comment": null}, "param_value": {"type": "text", "index": 4, "name": "param_value", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 5, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 6, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__creative_url_tag_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creative_id": {"type": "text", "index": 1, "name": "creative_id", "comment": null}, "key": {"type": "text", "index": 2, "name": "key", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "updated_at": {"type": "text", "index": 4, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__ad_group_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "integer", "index": 2, "name": "ad_group_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 4, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "action_days": {"type": "integer", "index": 6, "name": "action_days", "comment": null}, "action_categories": {"type": "text", "index": 7, "name": "action_categories", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "age_groups": {"type": "text", "index": 9, "name": "age_groups", "comment": null}, "audience_type": {"type": "integer", "index": 10, "name": "audience_type", "comment": null}, "budget": {"type": "integer", "index": 11, "name": "budget", "comment": null}, "category": {"type": "integer", "index": 12, "name": "category", "comment": null}, "display_name": {"type": "integer", "index": 13, "name": "display_name", "comment": null}, "interest_category": {"type": "text", "index": 14, "name": "interest_category", "comment": null}, "frequency": {"type": "integer", "index": 15, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "integer", "index": 16, "name": "frequency_schedule", "comment": null}, "gender": {"type": "text", "index": 17, "name": "gender", "comment": null}, "languages": {"type": "text", "index": 18, "name": "languages", "comment": null}, "landing_page_url": {"type": "integer", "index": 19, "name": "landing_page_url", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 20, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__ad_group_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"adgroup_id": {"type": "integer", "index": 1, "name": "adgroup_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "create_time": {"type": "text", "index": 5, "name": "create_time", "comment": null}, "adgroup_name": {"type": "text", "index": 6, "name": "adgroup_name", "comment": null}, "placement_type": {"type": "text", "index": 7, "name": "placement_type", "comment": null}, "profile_image": {"type": "integer", "index": 8, "name": "profile_image", "comment": null}, "landing_page_url": {"type": "integer", "index": 9, "name": "landing_page_url", "comment": null}, "display_name": {"type": "integer", "index": 10, "name": "display_name", "comment": null}, "app_type": {"type": "integer", "index": 11, "name": "app_type", "comment": null}, "app_download_url": {"type": "integer", "index": 12, "name": "app_download_url", "comment": null}, "app_name": {"type": "integer", "index": 13, "name": "app_name", "comment": null}, "optimization_event": {"type": "text", "index": 14, "name": "optimization_event", "comment": null}, "secondary_optimization_event": {"type": "integer", "index": 15, "name": "secondary_optimization_event", "comment": null}, "creative_material_mode": {"type": "text", "index": 16, "name": "creative_material_mode", "comment": null}, "audience_type": {"type": "integer", "index": 17, "name": "audience_type", "comment": null}, "gender": {"type": "text", "index": 18, "name": "gender", "comment": null}, "min_android_version": {"type": "integer", "index": 19, "name": "min_android_version", "comment": null}, "min_ios_version": {"type": "integer", "index": 20, "name": "min_ios_version", "comment": null}, "budget_mode": {"type": "text", "index": 21, "name": "budget_mode", "comment": null}, "schedule_type": {"type": "text", "index": 22, "name": "schedule_type", "comment": null}, "dayparting": {"type": "integer", "index": 23, "name": "dayparting", "comment": null}, "optimization_goal": {"type": "text", "index": 24, "name": "optimization_goal", "comment": null}, "cpv_video_duration": {"type": "integer", "index": 25, "name": "cpv_video_duration", "comment": null}, "pacing": {"type": "text", "index": 26, "name": "pacing", "comment": null}, "billing_event": {"type": "text", "index": 27, "name": "billing_event", "comment": null}, "bid_type": {"type": "text", "index": 28, "name": "bid_type", "comment": null}, "deep_bid_type": {"type": "integer", "index": 29, "name": "deep_bid_type", "comment": null}, "impression_tracking_url": {"type": "integer", "index": 30, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "integer", "index": 31, "name": "click_tracking_url", "comment": null}, "secondary_status": {"type": "text", "index": 32, "name": "secondary_status", "comment": null}, "operation_status": {"type": "text", "index": 33, "name": "operation_status", "comment": null}, "statistic_type": {"type": "integer", "index": 34, "name": "statistic_type", "comment": null}, "video_download": {"type": "text", "index": 35, "name": "video_download", "comment": null}, "open_url": {"type": "integer", "index": 36, "name": "open_url", "comment": null}, "open_url_type": {"type": "integer", "index": 37, "name": "open_url_type", "comment": null}, "fallback_type": {"type": "integer", "index": 38, "name": "fallback_type", "comment": null}, "budget": {"type": "integer", "index": 39, "name": "budget", "comment": null}, "bid_price": {"type": "integer", "index": 40, "name": "bid_price", "comment": null}, "conversion_bid_price": {"type": "integer", "index": 41, "name": "conversion_bid_price", "comment": null}, "deep_cpa_bid": {"type": "integer", "index": 42, "name": "deep_cpa_bid", "comment": null}, "schedule_start_time": {"type": "text", "index": 43, "name": "schedule_start_time", "comment": null}, "schedule_end_time": {"type": "text", "index": 44, "name": "schedule_end_time", "comment": null}, "app_id": {"type": "integer", "index": 45, "name": "app_id", "comment": null}, "pixel_id": {"type": "integer", "index": 46, "name": "pixel_id", "comment": null}, "inventory_filter_enabled": {"type": "boolean", "index": 47, "name": "inventory_filter_enabled", "comment": null}, "is_hfss": {"type": "boolean", "index": 48, "name": "is_hfss", "comment": null}, "is_new_structure": {"type": "boolean", "index": 49, "name": "is_new_structure", "comment": null}, "category": {"type": "integer", "index": 50, "name": "category", "comment": null}, "is_comment_disable": {"type": "integer", "index": 51, "name": "is_comment_disable", "comment": null}, "skip_learning_phase": {"type": "integer", "index": 52, "name": "skip_learning_phase", "comment": null}, "frequency": {"type": "integer", "index": 53, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "integer", "index": 54, "name": "frequency_schedule", "comment": null}, "action_days": {"type": "integer", "index": 55, "name": "action_days", "comment": null}, "audience": {"type": "text", "index": 56, "name": "audience", "comment": null}, "excluded_audience": {"type": "text", "index": 57, "name": "excluded_audience", "comment": null}, "location": {"type": "text", "index": 58, "name": "location", "comment": null}, "interest_category_v_2": {"type": "text", "index": 59, "name": "interest_category_v_2", "comment": null}, "pangle_block_app_list_id": {"type": "text", "index": 60, "name": "pangle_block_app_list_id", "comment": null}, "action_categories": {"type": "text", "index": 61, "name": "action_categories", "comment": null}, "placements": {"type": "text", "index": 62, "name": "placements", "comment": null}, "keywords": {"type": "integer", "index": 63, "name": "keywords", "comment": null}, "age_groups": {"type": "text", "index": 64, "name": "age_groups", "comment": null}, "languages": {"type": "text", "index": 65, "name": "languages", "comment": null}, "operating_systems": {"type": "text", "index": 66, "name": "operating_systems", "comment": null}, "network_types": {"type": "text", "index": 67, "name": "network_types", "comment": null}, "carriers": {"type": "text", "index": 68, "name": "carriers", "comment": null}, "video_actions": {"type": "text", "index": 69, "name": "video_actions", "comment": null}, "package": {"type": "integer", "index": 70, "name": "package", "comment": null}, "_fivetran_synced": {"type": "text", "index": 71, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__ad_group_report_hourly", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_group_id": {"type": "integer", "index": 2, "name": "ad_group_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 3, "name": "stat_time_hour", "comment": null}, "cpc": {"type": "double precision", "index": 4, "name": "cpc", "comment": null}, "cpm": {"type": "double precision", "index": 5, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 6, "name": "ctr", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "double precision", "index": 9, "name": "spend", "comment": null}, "reach": {"type": "integer", "index": 10, "name": "reach", "comment": null}, "conversion": {"type": "integer", "index": 11, "name": "conversion", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 12, "name": "cost_per_conversion", "comment": null}, "conversion_rate": {"type": "integer", "index": 13, "name": "conversion_rate", "comment": null}, "likes": {"type": "integer", "index": 14, "name": "likes", "comment": null}, "comments": {"type": "integer", "index": 15, "name": "comments", "comment": null}, "shares": {"type": "integer", "index": 16, "name": "shares", "comment": null}, "profile_visits": {"type": "integer", "index": 17, "name": "profile_visits", "comment": null}, "follows": {"type": "integer", "index": 18, "name": "follows", "comment": null}, "video_play_actions": {"type": "integer", "index": 19, "name": "video_play_actions", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 20, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 21, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "integer", "index": 22, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "integer", "index": 23, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "integer", "index": 24, "name": "video_views_p_75", "comment": null}, "average_video_play": {"type": "double precision", "index": 25, "name": "average_video_play", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 26, "name": "average_video_play_per_user", "comment": null}, "real_time_conversion": {"type": "integer", "index": 27, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "double precision", "index": 28, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "double precision", "index": 29, "name": "total_sales_lead_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__ad_group_report_hourly_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"adgroup_id": {"type": "integer", "index": 1, "name": "adgroup_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 4, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 5, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 6, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 7, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 8, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 9, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 10, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 11, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 12, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 13, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 14, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 15, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 16, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 17, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 18, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 19, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 20, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 21, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 22, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 23, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 24, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 25, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 26, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 27, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 28, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 29, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 30, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 31, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 32, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 33, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 34, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 35, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 36, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 37, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 38, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 39, "name": "likes", "comment": null}, "real_time_conversion": {"type": "integer", "index": 40, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "double precision", "index": 41, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "double precision", "index": 42, "name": "total_sales_lead_value", "comment": null}, "_fivetran_synced": {"type": "text", "index": 43, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__ad_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "integer", "index": 2, "name": "ad_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "integer", "index": 5, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "ad_name": {"type": "text", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "text", "index": 8, "name": "call_to_action", "comment": null}, "click_tracking_url": {"type": "integer", "index": 9, "name": "click_tracking_url", "comment": null}, "impression_tracking_url": {"type": "integer", "index": 10, "name": "impression_tracking_url", "comment": null}, "base_url": {"type": "text", "index": 11, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 12, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 13, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 14, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 15, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 16, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 17, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 18, "name": "utm_term", "comment": null}, "landing_page_url": {"type": "text", "index": 19, "name": "landing_page_url", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 20, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__ad_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "integer", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "text", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "text", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "text", "index": 8, "name": "call_to_action", "comment": null}, "secondary_status": {"type": "text", "index": 9, "name": "secondary_status", "comment": null}, "operation_status": {"type": "text", "index": 10, "name": "operation_status", "comment": null}, "ad_text": {"type": "text", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "text", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "integer", "index": 13, "name": "app_name", "comment": null}, "deeplink": {"type": "integer", "index": 14, "name": "deeplink", "comment": null}, "landing_page_url": {"type": "text", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "text", "index": 16, "name": "display_name", "comment": null}, "profile_image_url": {"type": "integer", "index": 17, "name": "profile_image_url", "comment": null}, "impression_tracking_url": {"type": "integer", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "integer", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "integer", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "boolean", "index": 21, "name": "is_aco", "comment": null}, "creative_authorized": {"type": "boolean", "index": 22, "name": "creative_authorized", "comment": null}, "is_new_structure": {"type": "boolean", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "text", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "text", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__ad_report_hourly", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "ad_id": {"type": "integer", "index": 2, "name": "ad_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 3, "name": "stat_time_hour", "comment": null}, "cpc": {"type": "double precision", "index": 4, "name": "cpc", "comment": null}, "cpm": {"type": "double precision", "index": 5, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 6, "name": "ctr", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "double precision", "index": 9, "name": "spend", "comment": null}, "reach": {"type": "integer", "index": 10, "name": "reach", "comment": null}, "conversion": {"type": "integer", "index": 11, "name": "conversion", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 12, "name": "cost_per_conversion", "comment": null}, "conversion_rate": {"type": "integer", "index": 13, "name": "conversion_rate", "comment": null}, "likes": {"type": "integer", "index": 14, "name": "likes", "comment": null}, "comments": {"type": "integer", "index": 15, "name": "comments", "comment": null}, "shares": {"type": "integer", "index": 16, "name": "shares", "comment": null}, "profile_visits": {"type": "integer", "index": 17, "name": "profile_visits", "comment": null}, "follows": {"type": "integer", "index": 18, "name": "follows", "comment": null}, "video_play_actions": {"type": "integer", "index": 19, "name": "video_play_actions", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 20, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 21, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "integer", "index": 22, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "integer", "index": 23, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "integer", "index": 24, "name": "video_views_p_75", "comment": null}, "average_video_play": {"type": "double precision", "index": 25, "name": "average_video_play", "comment": null}, "average_video_play_per_user": {"type": "integer", "index": 26, "name": "average_video_play_per_user", "comment": null}, "real_time_conversion": {"type": "integer", "index": 27, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "double precision", "index": 28, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "double precision", "index": 29, "name": "total_sales_lead_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__ad_report_hourly_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 4, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 5, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 6, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 7, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 8, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 9, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 10, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 11, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 12, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 13, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 14, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 15, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 16, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "integer", "index": 17, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 18, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 19, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 20, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "integer", "index": 21, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 22, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 23, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 24, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 25, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 26, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 27, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 28, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 29, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 30, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 31, "name": "follows", "comment": null}, "result_rate": {"type": "integer", "index": 32, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 33, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 34, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 35, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "integer", "index": 36, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "integer", "index": 37, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 38, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 39, "name": "likes", "comment": null}, "real_time_conversion": {"type": "integer", "index": 40, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "double precision", "index": 41, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "double precision", "index": 42, "name": "total_sales_lead_value", "comment": null}, "_fivetran_synced": {"type": "text", "index": 43, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__advertiser", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "advertiser_id": {"type": "integer", "index": 2, "name": "advertiser_id", "comment": null}, "address": {"type": "text", "index": 3, "name": "address", "comment": null}, "balance": {"type": "double precision", "index": 4, "name": "balance", "comment": null}, "company": {"type": "text", "index": 5, "name": "company", "comment": null}, "contacter": {"type": "integer", "index": 6, "name": "contacter", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "description": {"type": "text", "index": 9, "name": "description", "comment": null}, "email": {"type": "text", "index": 10, "name": "email", "comment": null}, "industry": {"type": "integer", "index": 11, "name": "industry", "comment": null}, "language": {"type": "text", "index": 12, "name": "language", "comment": null}, "advertiser_name": {"type": "text", "index": 13, "name": "advertiser_name", "comment": null}, "cellphone_number": {"type": "text", "index": 14, "name": "cellphone_number", "comment": null}, "telephone_number": {"type": "text", "index": 15, "name": "telephone_number", "comment": null}, "timezone": {"type": "text", "index": 16, "name": "timezone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser"}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__advertiser_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "address": {"type": "text", "index": 3, "name": "address", "comment": null}, "company": {"type": "text", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "integer", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "description": {"type": "text", "index": 8, "name": "description", "comment": null}, "email": {"type": "text", "index": 9, "name": "email", "comment": null}, "industry": {"type": "integer", "index": 10, "name": "industry", "comment": null}, "license_no": {"type": "integer", "index": 11, "name": "license_no", "comment": null}, "license_url": {"type": "integer", "index": 12, "name": "license_url", "comment": null}, "promotion_area": {"type": "integer", "index": 13, "name": "promotion_area", "comment": null}, "rejected_reason": {"type": "integer", "index": 14, "name": "rejected_reason", "comment": null}, "role": {"type": "text", "index": 15, "name": "role", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "telephone_number": {"type": "text", "index": 17, "name": "telephone_number", "comment": null}, "timezone": {"type": "text", "index": 18, "name": "timezone", "comment": null}, "balance": {"type": "double precision", "index": 19, "name": "balance", "comment": null}, "create_time": {"type": "text", "index": 20, "name": "create_time", "comment": null}, "language": {"type": "text", "index": 21, "name": "language", "comment": null}, "cellphone_number": {"type": "text", "index": 22, "name": "cellphone_number", "comment": null}, "_fivetran_synced": {"type": "text", "index": 23, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 3, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 4, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "campaign_type": {"type": "text", "index": 6, "name": "campaign_type", "comment": null}, "split_test_variable": {"type": "text", "index": 7, "name": "split_test_variable", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "integer", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "text", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "text", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "text", "index": 8, "name": "call_to_action", "comment": null}, "secondary_status": {"type": "text", "index": 9, "name": "secondary_status", "comment": null}, "operation_status": {"type": "text", "index": 10, "name": "operation_status", "comment": null}, "ad_text": {"type": "text", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "text", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "integer", "index": 13, "name": "app_name", "comment": null}, "deeplink": {"type": "integer", "index": 14, "name": "deeplink", "comment": null}, "landing_page_url": {"type": "text", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "text", "index": 16, "name": "display_name", "comment": null}, "profile_image_url": {"type": "integer", "index": 17, "name": "profile_image_url", "comment": null}, "impression_tracking_url": {"type": "integer", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "integer", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "integer", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "boolean", "index": 21, "name": "is_aco", "comment": null}, "creative_authorized": {"type": "boolean", "index": 22, "name": "creative_authorized", "comment": null}, "is_new_structure": {"type": "boolean", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "text", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "text", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__campaign_report_hourly", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 3, "name": "stat_time_hour", "comment": null}, "cpc": {"type": "double precision", "index": 4, "name": "cpc", "comment": null}, "cpm": {"type": "double precision", "index": 5, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 6, "name": "ctr", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "double precision", "index": 9, "name": "spend", "comment": null}, "reach": {"type": "integer", "index": 10, "name": "reach", "comment": null}, "conversion": {"type": "integer", "index": 11, "name": "conversion", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 12, "name": "cost_per_conversion", "comment": null}, "conversion_rate": {"type": "integer", "index": 13, "name": "conversion_rate", "comment": null}, "likes": {"type": "integer", "index": 14, "name": "likes", "comment": null}, "comments": {"type": "integer", "index": 15, "name": "comments", "comment": null}, "shares": {"type": "integer", "index": 16, "name": "shares", "comment": null}, "profile_visits": {"type": "integer", "index": 17, "name": "profile_visits", "comment": null}, "follows": {"type": "integer", "index": 18, "name": "follows", "comment": null}, "video_play_actions": {"type": "integer", "index": 19, "name": "video_play_actions", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 20, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 21, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "integer", "index": 22, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "integer", "index": 23, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "integer", "index": 24, "name": "video_views_p_75", "comment": null}, "average_video_play": {"type": "double precision", "index": 25, "name": "average_video_play", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 26, "name": "average_video_play_per_user", "comment": null}, "real_time_conversion": {"type": "integer", "index": 27, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "double precision", "index": 28, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "double precision", "index": 29, "name": "total_sales_lead_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__campaign_report_hourly_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 4, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 5, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 6, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 7, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 8, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 9, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 10, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 11, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 12, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 13, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 14, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 15, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 16, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 17, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 18, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 19, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 20, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 21, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 22, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 23, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 24, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 25, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 26, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 27, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 28, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 29, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 30, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 31, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 32, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 33, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 34, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 35, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 36, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 37, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 38, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 39, "name": "likes", "comment": null}, "real_time_conversion": {"type": "integer", "index": 40, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "double precision", "index": 41, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "double precision", "index": 42, "name": "total_sales_lead_value", "comment": null}, "_fivetran_synced": {"type": "text", "index": 43, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp"}, "model.twitter_ads_source.stg_twitter_ads__account_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__account_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "approval_status": {"type": "text", "index": 2, "name": "approval_status", "comment": null}, "business_id": {"type": "integer", "index": 3, "name": "business_id", "comment": null}, "business_name": {"type": "integer", "index": 4, "name": "business_name", "comment": null}, "created_timestamp": {"type": "text", "index": 5, "name": "created_timestamp", "comment": null}, "is_deleted": {"type": "boolean", "index": 6, "name": "is_deleted", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "industry_type": {"type": "integer", "index": 8, "name": "industry_type", "comment": null}, "name": {"type": "character varying", "index": 9, "name": "name", "comment": null}, "salt": {"type": "integer", "index": 10, "name": "salt", "comment": null}, "timezone": {"type": "text", "index": 11, "name": "timezone", "comment": null}, "timezone_switched_timestamp": {"type": "text", "index": 12, "name": "timezone_switched_timestamp", "comment": null}, "updated_timestamp": {"type": "text", "index": 13, "name": "updated_timestamp", "comment": null}, "is_latest_version": {"type": "boolean", "index": 14, "name": "is_latest_version", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history"}, "model.twitter_ads_source.stg_twitter_ads__account_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__account_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "text", "index": 2, "name": "approval_status", "comment": null}, "business_id": {"type": "integer", "index": 3, "name": "business_id", "comment": null}, "business_name": {"type": "integer", "index": 4, "name": "business_name", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deleted": {"type": "boolean", "index": 6, "name": "deleted", "comment": null}, "id": {"type": "text", "index": 7, "name": "id", "comment": null}, "industry_type": {"type": "integer", "index": 8, "name": "industry_type", "comment": null}, "name": {"type": "character varying", "index": 9, "name": "name", "comment": null}, "salt": {"type": "integer", "index": 10, "name": "salt", "comment": null}, "timezone": {"type": "text", "index": 11, "name": "timezone", "comment": null}, "timezone_switch_at": {"type": "text", "index": 12, "name": "timezone_switch_at", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_timestamp": {"type": "text", "index": 3, "name": "created_timestamp", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "integer", "index": 5, "name": "daily_budget_amount_local_micro", "comment": null}, "is_deleted": {"type": "boolean", "index": 6, "name": "is_deleted", "comment": null}, "duration_in_days": {"type": "integer", "index": 7, "name": "duration_in_days", "comment": null}, "end_timestamp": {"type": "text", "index": 8, "name": "end_timestamp", "comment": null}, "entity_status": {"type": "text", "index": 9, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "integer", "index": 10, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "text", "index": 11, "name": "funding_instrument_id", "comment": null}, "campaign_id": {"type": "text", "index": 12, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 13, "name": "campaign_name", "comment": null}, "is_servable": {"type": "boolean", "index": 14, "name": "is_servable", "comment": null}, "is_standard_delivery": {"type": "boolean", "index": 15, "name": "is_standard_delivery", "comment": null}, "start_timestamp": {"type": "text", "index": 16, "name": "start_timestamp", "comment": null}, "total_budget_amount_local_micro": {"type": "integer", "index": 17, "name": "total_budget_amount_local_micro", "comment": null}, "updated_timestamp": {"type": "text", "index": 18, "name": "updated_timestamp", "comment": null}, "daily_budget_amount": {"type": "numeric", "index": 19, "name": "daily_budget_amount", "comment": null}, "total_budget_amount": {"type": "numeric", "index": 20, "name": "total_budget_amount", "comment": null}, "is_latest_version": {"type": "boolean", "index": 21, "name": "is_latest_version", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history"}, "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "integer", "index": 5, "name": "daily_budget_amount_local_micro", "comment": null}, "deleted": {"type": "boolean", "index": 6, "name": "deleted", "comment": null}, "duration_in_days": {"type": "integer", "index": 7, "name": "duration_in_days", "comment": null}, "end_time": {"type": "text", "index": 8, "name": "end_time", "comment": null}, "entity_status": {"type": "text", "index": 9, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "integer", "index": 10, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "text", "index": 11, "name": "funding_instrument_id", "comment": null}, "id": {"type": "text", "index": 12, "name": "id", "comment": null}, "name": {"type": "text", "index": 13, "name": "name", "comment": null}, "servable": {"type": "boolean", "index": 14, "name": "servable", "comment": null}, "standard_delivery": {"type": "boolean", "index": 15, "name": "standard_delivery", "comment": null}, "start_time": {"type": "text", "index": 16, "name": "start_time", "comment": null}, "total_budget_amount_local_micro": {"type": "integer", "index": 17, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "text", "index": 18, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp without time zone", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "campaign_id": {"type": "text", "index": 4, "name": "campaign_id", "comment": null}, "placement": {"type": "text", "index": 5, "name": "placement", "comment": null}, "clicks": {"type": "integer", "index": 6, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}, "spend_micro": {"type": "integer", "index": 8, "name": "spend_micro", "comment": null}, "spend": {"type": "numeric", "index": 9, "name": "spend", "comment": null}, "url_clicks": {"type": "integer", "index": 10, "name": "url_clicks", "comment": null}, "conversion_purchases_metric": {"type": "bigint", "index": 11, "name": "conversion_purchases_metric", "comment": null}, "conversion_custom_metric": {"type": "bigint", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "double precision", "index": 13, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "double precision", "index": 14, "name": "conversion_custom_sale_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report"}, "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__campaign_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "text", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "integer", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "integer", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "integer", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "integer", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "integer", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "integer", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "integer", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "integer", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "integer", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "integer", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "integer", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "integer", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "integer", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "integer", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "integer", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "integer", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "integer", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "integer", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "integer", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "integer", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "integer", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "integer", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "integer", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "integer", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "integer", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "integer", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "integer", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "integer", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "integer", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "integer", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "integer", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "integer", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "integer", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "integer", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "integer", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "integer", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "integer", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "integer", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "integer", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "integer", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "integer", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "integer", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "integer", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "integer", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "integer", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "integer", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "integer", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "integer", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "integer", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "integer", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "integer", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "integer", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "integer", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "integer", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "integer", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "integer", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "integer", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "integer", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "integer", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "integer", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "integer", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "integer", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "integer", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "integer", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "integer", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "integer", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "integer", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "integer", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "integer", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "integer", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "integer", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "integer", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "integer", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "integer", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "integer", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "integer", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "integer", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "integer", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "integer", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "integer", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "integer", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "integer", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "integer", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "integer", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "integer", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "integer", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "integer", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "integer", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "integer", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "integer", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "integer", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "integer", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "integer", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "integer", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "integer", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "integer", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "integer", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "integer", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "integer", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "integer", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "integer", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_qu": {"type": "integer", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_qu", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo": {"type": "integer", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "integer", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "integer", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "integer", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "integer", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit": {"type": "integer", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "integer", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "integer", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quan": {"type": "integer", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quan", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun": {"type": "integer", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "integer", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "integer", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "integer", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "integer", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "integer", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "integer", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "integer", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "integer", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "integer", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "integer", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "integer", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "integer", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "integer", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_q": {"type": "integer", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_q", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_am": {"type": "integer", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_am", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "integer", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "integer", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "integer", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "integer", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "integer", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "integer", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "integer", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "integer", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "integer", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "integer", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "integer", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "integer", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "integer", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "integer", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "integer", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "integer", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "integer", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "integer", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "integer", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "integer", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "integer", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "integer", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quan": {"type": "integer", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quan", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun": {"type": "integer", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "integer", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "integer", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "integer", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "integer", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "integer", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "integer", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "integer", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "integer", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "integer", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "integer", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "integer", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "integer", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "integer", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "integer", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "integer", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "integer", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "integer", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "integer", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "integer", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "integer", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "integer", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "integer", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "integer", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "integer", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "integer", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "integer", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "integer", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "integer", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "integer", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "integer", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "integer", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "integer", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "integer", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "integer", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "integer", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "integer", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "integer", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "integer", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "integer", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "integer", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "integer", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "integer", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "integer", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "integer", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "integer", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "integer", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "integer", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "integer", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "integer", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "integer", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "integer", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "integer", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "integer", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "integer", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "integer", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "integer", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "integer", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "integer", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "integer", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "integer", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "integer", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "integer", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "integer", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "integer", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "integer", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "integer", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "integer", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "integer", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "integer", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "integer", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "integer", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "integer", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "integer", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "integer", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "integer", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "integer", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "integer", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "integer", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "integer", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "integer", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "integer", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "integer", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "integer", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "integer", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "integer", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "integer", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "integer", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "integer", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "integer", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "integer", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp"}, "model.twitter_ads_source.stg_twitter_ads__line_item_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__line_item_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "advertiser_domain": {"type": "text", "index": 2, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "integer", "index": 3, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "boolean", "index": 4, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "integer", "index": 5, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "text", "index": 6, "name": "bid_type", "comment": null}, "bid_unit": {"type": "text", "index": 7, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "text", "index": 8, "name": "campaign_id", "comment": null}, "charge_by": {"type": "text", "index": 9, "name": "charge_by", "comment": null}, "created_timestamp": {"type": "text", "index": 10, "name": "created_timestamp", "comment": null}, "creative_source": {"type": "text", "index": 11, "name": "creative_source", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "is_deleted": {"type": "boolean", "index": 13, "name": "is_deleted", "comment": null}, "end_timestamp": {"type": "integer", "index": 14, "name": "end_timestamp", "comment": null}, "entity_status": {"type": "text", "index": 15, "name": "entity_status", "comment": null}, "line_item_id": {"type": "text", "index": 16, "name": "line_item_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "objective": {"type": "text", "index": 18, "name": "objective", "comment": null}, "optimization": {"type": "text", "index": 19, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "integer", "index": 20, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "text", "index": 21, "name": "product_type", "comment": null}, "start_timestamp": {"type": "integer", "index": 22, "name": "start_timestamp", "comment": null}, "target_cpa_local_micro": {"type": "integer", "index": 23, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "integer", "index": 24, "name": "total_budget_amount_local_micro", "comment": null}, "updated_timestamp": {"type": "text", "index": 25, "name": "updated_timestamp", "comment": null}, "bid_amount": {"type": "numeric", "index": 26, "name": "bid_amount", "comment": null}, "total_budget_amount": {"type": "numeric", "index": 27, "name": "total_budget_amount", "comment": null}, "target_cpa": {"type": "numeric", "index": 28, "name": "target_cpa", "comment": null}, "is_latest_version": {"type": "boolean", "index": 29, "name": "is_latest_version", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history"}, "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__line_item_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_domain": {"type": "text", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "integer", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "boolean", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "integer", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "text", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "text", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "text", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "text", "index": 8, "name": "charge_by", "comment": null}, "created_at": {"type": "text", "index": 9, "name": "created_at", "comment": null}, "creative_source": {"type": "text", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "deleted": {"type": "boolean", "index": 12, "name": "deleted", "comment": null}, "end_time": {"type": "integer", "index": 13, "name": "end_time", "comment": null}, "entity_status": {"type": "text", "index": 14, "name": "entity_status", "comment": null}, "id": {"type": "text", "index": 15, "name": "id", "comment": null}, "name": {"type": "text", "index": 16, "name": "name", "comment": null}, "objective": {"type": "text", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "text", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "integer", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "text", "index": 20, "name": "product_type", "comment": null}, "start_time": {"type": "integer", "index": 21, "name": "start_time", "comment": null}, "target_cpa_local_micro": {"type": "integer", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "integer", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "text", "index": 24, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__line_item_keywords_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp without time zone", "index": 2, "name": "date_day", "comment": null}, "keyword_id": {"type": "text", "index": 3, "name": "keyword_id", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "line_item_id": {"type": "text", "index": 5, "name": "line_item_id", "comment": null}, "keyword": {"type": "text", "index": 6, "name": "keyword", "comment": null}, "placement": {"type": "text", "index": 7, "name": "placement", "comment": null}, "clicks": {"type": "integer", "index": 8, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "spend_micro": {"type": "integer", "index": 10, "name": "spend_micro", "comment": null}, "spend": {"type": "numeric", "index": 11, "name": "spend", "comment": null}, "url_clicks": {"type": "integer", "index": 12, "name": "url_clicks", "comment": null}, "conversion_purchases_metric": {"type": "bigint", "index": 13, "name": "conversion_purchases_metric", "comment": null}, "conversion_custom_metric": {"type": "bigint", "index": 14, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "double precision", "index": 15, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "double precision", "index": 16, "name": "conversion_custom_sale_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"}, "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__line_item_keywords_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "text", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "segment": {"type": "text", "index": 5, "name": "segment", "comment": null}, "_fivetran_synced": {"type": "text", "index": 6, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "integer", "index": 7, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 8, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "integer", "index": 9, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "integer", "index": 10, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "integer", "index": 11, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "integer", "index": 12, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "integer", "index": 13, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "integer", "index": 14, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "integer", "index": 15, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "integer", "index": 16, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "integer", "index": 17, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "integer", "index": 18, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "integer", "index": 19, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "integer", "index": 20, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "integer", "index": 21, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "integer", "index": 22, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "integer", "index": 23, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "integer", "index": 24, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "integer", "index": 25, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "integer", "index": 26, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "integer", "index": 27, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "integer", "index": 28, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "integer", "index": 29, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "integer", "index": 30, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "integer", "index": 31, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "integer", "index": 32, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "integer", "index": 33, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "integer", "index": 34, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "integer", "index": 35, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "integer", "index": 36, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "integer", "index": 37, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "integer", "index": 38, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "integer", "index": 39, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "integer", "index": 40, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "integer", "index": 41, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "integer", "index": 42, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "integer", "index": 43, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "integer", "index": 44, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "integer", "index": 45, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "integer", "index": 46, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "integer", "index": 47, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "integer", "index": 48, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "integer", "index": 49, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "integer", "index": 50, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "integer", "index": 51, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "integer", "index": 52, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "integer", "index": 53, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "integer", "index": 54, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "integer", "index": 55, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "integer", "index": 56, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "integer", "index": 57, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "integer", "index": 58, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "integer", "index": 59, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "integer", "index": 60, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 61, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 62, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 63, "name": "likes", "comment": null}, "media_engagements": {"type": "integer", "index": 64, "name": "media_engagements", "comment": null}, "media_views": {"type": "integer", "index": 65, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "integer", "index": 66, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "integer", "index": 67, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "integer", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "integer", "index": 69, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "integer", "index": 70, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "integer", "index": 71, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "integer", "index": 72, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "integer", "index": 73, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "integer", "index": 74, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "integer", "index": 75, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "integer", "index": 76, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "integer", "index": 77, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "integer", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "integer", "index": 79, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "integer", "index": 80, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "integer", "index": 81, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "integer", "index": 82, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "integer", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "integer", "index": 84, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "integer", "index": 85, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "integer", "index": 86, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "integer", "index": 87, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "integer", "index": 88, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "integer", "index": 89, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "integer", "index": 90, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "integer", "index": 91, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "integer", "index": 92, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "integer", "index": 93, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "integer", "index": 94, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "integer", "index": 95, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "integer", "index": 96, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "integer", "index": 97, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "integer", "index": 98, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "integer", "index": 99, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "integer", "index": 100, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "integer", "index": 101, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_invites_assisted": {"type": "integer", "index": 102, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "integer", "index": 103, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "integer", "index": 104, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "integer", "index": 105, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "integer", "index": 106, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "integer", "index": 107, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "integer", "index": 108, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "integer", "index": 109, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "integer", "index": 110, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "integer", "index": 111, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "integer", "index": 112, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "integer", "index": 113, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "integer", "index": 114, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_qu": {"type": "integer", "index": 115, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_qu", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo": {"type": "integer", "index": 116, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "integer", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "integer", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "integer", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "integer", "index": 120, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit": {"type": "integer", "index": 121, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "integer", "index": 122, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "integer", "index": 123, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quan": {"type": "integer", "index": 124, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quan", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun": {"type": "integer", "index": 125, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "integer", "index": 126, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "integer", "index": 127, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "integer", "index": 128, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "integer", "index": 129, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "integer", "index": 130, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "integer", "index": 131, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "integer", "index": 132, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "integer", "index": 133, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "integer", "index": 134, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "integer", "index": 135, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "integer", "index": 136, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "integer", "index": 137, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "integer", "index": 138, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_q": {"type": "integer", "index": 139, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_q", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_am": {"type": "integer", "index": 140, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_am", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "integer", "index": 141, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "integer", "index": 142, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "integer", "index": 143, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "integer", "index": 144, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "integer", "index": 145, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "integer", "index": 146, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "integer", "index": 147, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "integer", "index": 148, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "integer", "index": 149, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "integer", "index": 150, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "integer", "index": 151, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "integer", "index": 152, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "integer", "index": 153, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "integer", "index": 154, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "integer", "index": 155, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "integer", "index": 156, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "integer", "index": 157, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "integer", "index": 158, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "integer", "index": 159, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "integer", "index": 160, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "integer", "index": 161, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "integer", "index": 162, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quan": {"type": "integer", "index": 163, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quan", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun": {"type": "integer", "index": 164, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "integer", "index": 165, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "integer", "index": 166, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "integer", "index": 167, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "integer", "index": 168, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "integer", "index": 169, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "integer", "index": 170, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "integer", "index": 171, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "integer", "index": 172, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "integer", "index": 173, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "integer", "index": 174, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "integer", "index": 175, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "integer", "index": 176, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "integer", "index": 177, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "integer", "index": 178, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "integer", "index": 179, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "integer", "index": 180, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "integer", "index": 181, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "integer", "index": 182, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "integer", "index": 183, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "integer", "index": 184, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "mobile_conversion_rates_assisted": {"type": "integer", "index": 185, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "integer", "index": 186, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "integer", "index": 187, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "integer", "index": 188, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "integer", "index": 189, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "integer", "index": 190, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "integer", "index": 191, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "integer", "index": 192, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "integer", "index": 193, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "integer", "index": 194, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "integer", "index": 195, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "integer", "index": 196, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "integer", "index": 197, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "integer", "index": 198, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "integer", "index": 199, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "integer", "index": 200, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "integer", "index": 201, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "integer", "index": 202, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "integer", "index": 203, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "integer", "index": 204, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "integer", "index": 205, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "integer", "index": 206, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "integer", "index": 207, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "integer", "index": 208, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "integer", "index": 209, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "integer", "index": 210, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "integer", "index": 211, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "integer", "index": 212, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "integer", "index": 213, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "integer", "index": 214, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "integer", "index": 215, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "integer", "index": 216, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "integer", "index": 217, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "integer", "index": 218, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "integer", "index": 219, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "integer", "index": 220, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "integer", "index": 221, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "integer", "index": 222, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "integer", "index": 223, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "integer", "index": 224, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "integer", "index": 225, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "integer", "index": 226, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "integer", "index": 227, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "integer", "index": 228, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "integer", "index": 229, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "integer", "index": 230, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "integer", "index": 231, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "integer", "index": 232, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "integer", "index": 233, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "integer", "index": 234, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "integer", "index": 235, "name": "qualified_impressions", "comment": null}, "replies": {"type": "integer", "index": 236, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 237, "name": "retweets", "comment": null}, "tweets_send": {"type": "integer", "index": 238, "name": "tweets_send", "comment": null}, "unfollows": {"type": "integer", "index": 239, "name": "unfollows", "comment": null}, "url_clicks": {"type": "integer", "index": 240, "name": "url_clicks", "comment": null}, "video_15_s_views": {"type": "integer", "index": 241, "name": "video_15_s_views", "comment": null}, "video_3_s_100_pct_views": {"type": "integer", "index": 242, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "integer", "index": 243, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "integer", "index": 244, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "integer", "index": 245, "name": "video_cta_clicks", "comment": null}, "video_total_views": {"type": "integer", "index": 246, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "integer", "index": 247, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "integer", "index": 248, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "integer", "index": 249, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "integer", "index": 250, "name": "video_views_75", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp"}, "model.twitter_ads_source.stg_twitter_ads__line_item_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__line_item_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp without time zone", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "line_item_id": {"type": "text", "index": 4, "name": "line_item_id", "comment": null}, "placement": {"type": "text", "index": 5, "name": "placement", "comment": null}, "clicks": {"type": "integer", "index": 6, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}, "spend_micro": {"type": "integer", "index": 8, "name": "spend_micro", "comment": null}, "spend": {"type": "numeric", "index": 9, "name": "spend", "comment": null}, "url_clicks": {"type": "integer", "index": 10, "name": "url_clicks", "comment": null}, "conversion_purchases_metric": {"type": "bigint", "index": 11, "name": "conversion_purchases_metric", "comment": null}, "conversion_custom_metric": {"type": "bigint", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "double precision", "index": 13, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "double precision", "index": 14, "name": "conversion_custom_sale_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report"}, "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__line_item_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "text", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "integer", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "integer", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "integer", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "integer", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "integer", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "integer", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "integer", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "integer", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "integer", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "integer", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "integer", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "integer", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "integer", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "integer", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "integer", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "integer", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "integer", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "integer", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "integer", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "integer", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "integer", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "integer", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "integer", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "integer", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "integer", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "integer", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "integer", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "integer", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "integer", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "integer", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "integer", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "integer", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "integer", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "integer", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "integer", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "integer", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "integer", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "integer", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "integer", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "integer", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "integer", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "integer", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "integer", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "integer", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "integer", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "integer", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "integer", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "integer", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "integer", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "integer", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "integer", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "integer", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "integer", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "integer", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "integer", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "integer", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "integer", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "integer", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "integer", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "integer", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "integer", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "integer", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "integer", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "integer", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "integer", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "integer", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "integer", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "integer", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "integer", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "integer", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "integer", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "integer", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "integer", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "integer", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "integer", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "integer", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "integer", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "integer", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "integer", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "integer", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "integer", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "integer", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "integer", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "integer", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "integer", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "integer", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "integer", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "integer", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "integer", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "integer", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "integer", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "integer", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "integer", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "integer", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "integer", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "integer", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "integer", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "integer", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "integer", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "integer", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "integer", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_qu": {"type": "integer", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_qu", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo": {"type": "integer", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "integer", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "integer", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "integer", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "integer", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit": {"type": "integer", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "integer", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "integer", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quan": {"type": "integer", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quan", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun": {"type": "integer", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "integer", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "integer", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "integer", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "integer", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "integer", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "integer", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "integer", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "integer", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "integer", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "integer", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "integer", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "integer", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "integer", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_q": {"type": "integer", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_q", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_am": {"type": "integer", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_am", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "integer", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "integer", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "integer", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "integer", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "integer", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "integer", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "integer", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "integer", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "integer", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "integer", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "integer", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "integer", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "integer", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "integer", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "integer", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "integer", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "integer", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "integer", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "integer", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "integer", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "integer", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "integer", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quan": {"type": "integer", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quan", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun": {"type": "integer", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "integer", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "integer", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "integer", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "integer", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "integer", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "integer", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "integer", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "integer", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "integer", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "integer", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "integer", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "integer", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "integer", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "integer", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "integer", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "integer", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "integer", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "integer", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "integer", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "integer", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "integer", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "integer", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "integer", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "integer", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "integer", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "integer", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "integer", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "integer", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "integer", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "integer", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "integer", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "integer", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "integer", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "integer", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "integer", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "integer", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "integer", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "integer", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "integer", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "integer", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "integer", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "integer", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "integer", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "integer", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "integer", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "integer", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "integer", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "integer", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "integer", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "integer", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "integer", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "integer", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "integer", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "integer", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "integer", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "integer", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "integer", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "integer", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "integer", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "integer", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "integer", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "integer", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "integer", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "integer", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "integer", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "integer", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "integer", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "integer", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "integer", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "integer", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "integer", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "integer", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "integer", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "integer", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "integer", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "integer", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "integer", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "integer", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "integer", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "integer", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "integer", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "integer", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "integer", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "integer", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "integer", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "integer", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "integer", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "integer", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "integer", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "integer", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__promoted_tweet_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "approval_status": {"type": "text", "index": 2, "name": "approval_status", "comment": null}, "created_timestamp": {"type": "text", "index": 3, "name": "created_timestamp", "comment": null}, "is_deleted": {"type": "boolean", "index": 4, "name": "is_deleted", "comment": null}, "entity_status": {"type": "text", "index": 5, "name": "entity_status", "comment": null}, "promoted_tweet_id": {"type": "text", "index": 6, "name": "promoted_tweet_id", "comment": null}, "line_item_id": {"type": "text", "index": 7, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "bigint", "index": 8, "name": "tweet_id", "comment": null}, "updated_timestamp": {"type": "text", "index": 9, "name": "updated_timestamp", "comment": null}, "is_latest_version": {"type": "boolean", "index": 10, "name": "is_latest_version", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__promoted_tweet_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "text", "index": 2, "name": "approval_status", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "deleted": {"type": "boolean", "index": 4, "name": "deleted", "comment": null}, "entity_status": {"type": "text", "index": 5, "name": "entity_status", "comment": null}, "id": {"type": "text", "index": 6, "name": "id", "comment": null}, "line_item_id": {"type": "text", "index": 7, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "bigint", "index": 8, "name": "tweet_id", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__promoted_tweet_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp without time zone", "index": 2, "name": "date_day", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "promoted_tweet_id": {"type": "text", "index": 4, "name": "promoted_tweet_id", "comment": null}, "placement": {"type": "text", "index": 5, "name": "placement", "comment": null}, "clicks": {"type": "integer", "index": 6, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}, "spend_micro": {"type": "integer", "index": 8, "name": "spend_micro", "comment": null}, "spend": {"type": "numeric", "index": 9, "name": "spend", "comment": null}, "url_clicks": {"type": "integer", "index": 10, "name": "url_clicks", "comment": null}, "conversion_purchases_metric": {"type": "bigint", "index": 11, "name": "conversion_purchases_metric", "comment": null}, "conversion_custom_metric": {"type": "bigint", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "double precision", "index": 13, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "double precision", "index": 14, "name": "conversion_custom_sale_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__promoted_tweet_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 3, "name": "billed_charge_local_micro", "comment": null}, "clicks": {"type": "integer", "index": 4, "name": "clicks", "comment": null}, "date": {"type": "timestamp without time zone", "index": 5, "name": "date", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "promoted_tweet_id": {"type": "text", "index": 7, "name": "promoted_tweet_id", "comment": null}, "url_clicks": {"type": "integer", "index": 8, "name": "url_clicks", "comment": null}, "placement": {"type": "text", "index": 9, "name": "placement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp"}, "model.twitter_ads_source.stg_twitter_ads__tweet": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__tweet", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "tweet_id": {"type": "integer", "index": 3, "name": "tweet_id", "comment": null}, "name": {"type": "integer", "index": 4, "name": "name", "comment": null}, "full_text": {"type": "text", "index": 5, "name": "full_text", "comment": null}, "language": {"type": "text", "index": 6, "name": "language", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet"}, "model.twitter_ads_source.stg_twitter_ads__tweet_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__tweet_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "card_uri": {"type": "integer", "index": 4, "name": "card_uri", "comment": null}, "coordinates_coordinates": {"type": "integer", "index": 5, "name": "coordinates_coordinates", "comment": null}, "coordinates_type": {"type": "integer", "index": 6, "name": "coordinates_type", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "favorite_count": {"type": "integer", "index": 8, "name": "favorite_count", "comment": null}, "favorited": {"type": "boolean", "index": 9, "name": "favorited", "comment": null}, "followers": {"type": "integer", "index": 10, "name": "followers", "comment": null}, "full_text": {"type": "text", "index": 11, "name": "full_text", "comment": null}, "geo_coordinates": {"type": "integer", "index": 12, "name": "geo_coordinates", "comment": null}, "geo_type": {"type": "integer", "index": 13, "name": "geo_type", "comment": null}, "in_reply_to_screen_name": {"type": "integer", "index": 14, "name": "in_reply_to_screen_name", "comment": null}, "in_reply_to_status_id": {"type": "integer", "index": 15, "name": "in_reply_to_status_id", "comment": null}, "in_reply_to_user_id": {"type": "integer", "index": 16, "name": "in_reply_to_user_id", "comment": null}, "lang": {"type": "text", "index": 17, "name": "lang", "comment": null}, "media_key": {"type": "integer", "index": 18, "name": "media_key", "comment": null}, "retweet_count": {"type": "integer", "index": 19, "name": "retweet_count", "comment": null}, "retweeted": {"type": "boolean", "index": 20, "name": "retweeted", "comment": null}, "source": {"type": "text", "index": 21, "name": "source", "comment": null}, "truncated": {"type": "boolean", "index": 22, "name": "truncated", "comment": null}, "tweet_type": {"type": "text", "index": 23, "name": "tweet_type", "comment": null}, "user_id": {"type": "integer", "index": 24, "name": "user_id", "comment": null}, "name": {"type": "integer", "index": 25, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_tmp"}, "model.twitter_ads_source.stg_twitter_ads__tweet_url": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__tweet_url", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "display_url": {"type": "text", "index": 2, "name": "display_url", "comment": null}, "expanded_url": {"type": "text", "index": 3, "name": "expanded_url", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "indices": {"type": "text", "index": 5, "name": "indices", "comment": null}, "tweet_id": {"type": "bigint", "index": 6, "name": "tweet_id", "comment": null}, "url": {"type": "text", "index": 7, "name": "url", "comment": null}, "base_url": {"type": "text", "index": 8, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 9, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 10, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 11, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 12, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 13, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 14, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 15, "name": "utm_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url"}, "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp": {"metadata": {"type": "VIEW", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__tweet_url_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "display_url": {"type": "text", "index": 2, "name": "display_url", "comment": null}, "expanded_url": {"type": "text", "index": 3, "name": "expanded_url", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "indices": {"type": "text", "index": 5, "name": "indices", "comment": null}, "tweet_id": {"type": "bigint", "index": 6, "name": "tweet_id", "comment": null}, "url": {"type": "text", "index": 7, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp"}, "model.tiktok_ads.tiktok_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "tiktok_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 4, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "category": {"type": "integer", "index": 10, "name": "category", "comment": null}, "gender": {"type": "text", "index": 11, "name": "gender", "comment": null}, "audience_type": {"type": "integer", "index": 12, "name": "audience_type", "comment": null}, "budget": {"type": "integer", "index": 13, "name": "budget", "comment": null}, "impressions": {"type": "bigint", "index": 14, "name": "impressions", "comment": null}, "clicks": {"type": "bigint", "index": 15, "name": "clicks", "comment": null}, "spend": {"type": "double precision", "index": 16, "name": "spend", "comment": null}, "reach": {"type": "bigint", "index": 17, "name": "reach", "comment": null}, "conversion": {"type": "bigint", "index": 18, "name": "conversion", "comment": null}, "likes": {"type": "bigint", "index": 19, "name": "likes", "comment": null}, "comments": {"type": "bigint", "index": 20, "name": "comments", "comment": null}, "shares": {"type": "bigint", "index": 21, "name": "shares", "comment": null}, "profile_visits": {"type": "bigint", "index": 22, "name": "profile_visits", "comment": null}, "follows": {"type": "bigint", "index": 23, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "bigint", "index": 24, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "bigint", "index": 25, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "bigint", "index": 26, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "bigint", "index": 27, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "bigint", "index": 28, "name": "video_views_p_75", "comment": null}, "real_time_conversion": {"type": "bigint", "index": 29, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "double precision", "index": 30, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "double precision", "index": 31, "name": "total_sales_lead_value", "comment": null}, "total_conversion_value": {"type": "double precision", "index": 32, "name": "total_conversion_value", "comment": null}, "daily_cpc": {"type": "double precision", "index": 33, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 34, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 35, "name": "daily_ctr", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__ad_group_report"}, "model.tiktok_ads.tiktok_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "tiktok_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 4, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "integer", "index": 9, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 10, "name": "ad_name", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "category": {"type": "integer", "index": 12, "name": "category", "comment": null}, "gender": {"type": "text", "index": 13, "name": "gender", "comment": null}, "audience_type": {"type": "integer", "index": 14, "name": "audience_type", "comment": null}, "budget": {"type": "integer", "index": 15, "name": "budget", "comment": null}, "impressions": {"type": "bigint", "index": 16, "name": "impressions", "comment": null}, "clicks": {"type": "bigint", "index": 17, "name": "clicks", "comment": null}, "spend": {"type": "double precision", "index": 18, "name": "spend", "comment": null}, "reach": {"type": "bigint", "index": 19, "name": "reach", "comment": null}, "conversion": {"type": "bigint", "index": 20, "name": "conversion", "comment": null}, "likes": {"type": "bigint", "index": 21, "name": "likes", "comment": null}, "comments": {"type": "bigint", "index": 22, "name": "comments", "comment": null}, "shares": {"type": "bigint", "index": 23, "name": "shares", "comment": null}, "profile_visits": {"type": "bigint", "index": 24, "name": "profile_visits", "comment": null}, "follows": {"type": "bigint", "index": 25, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "bigint", "index": 26, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "bigint", "index": 27, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "bigint", "index": 28, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "bigint", "index": 29, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "bigint", "index": 30, "name": "video_views_p_75", "comment": null}, "real_time_conversion": {"type": "bigint", "index": 31, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "double precision", "index": 32, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "double precision", "index": 33, "name": "total_sales_lead_value", "comment": null}, "total_conversion_value": {"type": "double precision", "index": 34, "name": "total_conversion_value", "comment": null}, "daily_cpc": {"type": "double precision", "index": 35, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 36, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 37, "name": "daily_ctr", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__ad_report"}, "model.tiktok_ads.tiktok_ads__advertiser_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "tiktok_ads__advertiser_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 4, "name": "advertiser_name", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "clicks": {"type": "bigint", "index": 6, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 7, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 8, "name": "spend", "comment": null}, "reach": {"type": "bigint", "index": 9, "name": "reach", "comment": null}, "conversion": {"type": "bigint", "index": 10, "name": "conversion", "comment": null}, "likes": {"type": "bigint", "index": 11, "name": "likes", "comment": null}, "comments": {"type": "bigint", "index": 12, "name": "comments", "comment": null}, "shares": {"type": "bigint", "index": 13, "name": "shares", "comment": null}, "profile_visits": {"type": "bigint", "index": 14, "name": "profile_visits", "comment": null}, "follows": {"type": "bigint", "index": 15, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "bigint", "index": 16, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "bigint", "index": 17, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "bigint", "index": 18, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "bigint", "index": 19, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "bigint", "index": 20, "name": "video_views_p_75", "comment": null}, "real_time_conversion": {"type": "bigint", "index": 21, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "double precision", "index": 22, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "double precision", "index": 23, "name": "total_sales_lead_value", "comment": null}, "total_conversion_value": {"type": "double precision", "index": 24, "name": "total_conversion_value", "comment": null}, "daily_cpc": {"type": "double precision", "index": 25, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 26, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 27, "name": "daily_ctr", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__advertiser_report"}, "model.tiktok_ads.tiktok_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "tiktok_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 4, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "impressions": {"type": "bigint", "index": 8, "name": "impressions", "comment": null}, "clicks": {"type": "bigint", "index": 9, "name": "clicks", "comment": null}, "spend": {"type": "double precision", "index": 10, "name": "spend", "comment": null}, "reach": {"type": "bigint", "index": 11, "name": "reach", "comment": null}, "conversion": {"type": "bigint", "index": 12, "name": "conversion", "comment": null}, "likes": {"type": "bigint", "index": 13, "name": "likes", "comment": null}, "comments": {"type": "bigint", "index": 14, "name": "comments", "comment": null}, "shares": {"type": "bigint", "index": 15, "name": "shares", "comment": null}, "profile_visits": {"type": "bigint", "index": 16, "name": "profile_visits", "comment": null}, "follows": {"type": "bigint", "index": 17, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "bigint", "index": 18, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "bigint", "index": 19, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "bigint", "index": 20, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "bigint", "index": 21, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "bigint", "index": 22, "name": "video_views_p_75", "comment": null}, "real_time_conversion": {"type": "bigint", "index": 23, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "double precision", "index": 24, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "double precision", "index": 25, "name": "total_sales_lead_value", "comment": null}, "total_conversion_value": {"type": "double precision", "index": 26, "name": "total_conversion_value", "comment": null}, "daily_cpc": {"type": "double precision", "index": 27, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 28, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 29, "name": "daily_ctr", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__campaign_report"}, "model.tiktok_ads.tiktok_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "tiktok_ads__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 4, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "integer", "index": 9, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 10, "name": "ad_name", "comment": null}, "base_url": {"type": "text", "index": 11, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 12, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 13, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 14, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 15, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 16, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 17, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 18, "name": "utm_term", "comment": null}, "currency": {"type": "text", "index": 19, "name": "currency", "comment": null}, "category": {"type": "integer", "index": 20, "name": "category", "comment": null}, "gender": {"type": "text", "index": 21, "name": "gender", "comment": null}, "audience_type": {"type": "integer", "index": 22, "name": "audience_type", "comment": null}, "budget": {"type": "integer", "index": 23, "name": "budget", "comment": null}, "impressions": {"type": "bigint", "index": 24, "name": "impressions", "comment": null}, "clicks": {"type": "bigint", "index": 25, "name": "clicks", "comment": null}, "spend": {"type": "double precision", "index": 26, "name": "spend", "comment": null}, "reach": {"type": "bigint", "index": 27, "name": "reach", "comment": null}, "conversion": {"type": "bigint", "index": 28, "name": "conversion", "comment": null}, "likes": {"type": "bigint", "index": 29, "name": "likes", "comment": null}, "comments": {"type": "bigint", "index": 30, "name": "comments", "comment": null}, "shares": {"type": "bigint", "index": 31, "name": "shares", "comment": null}, "profile_visits": {"type": "bigint", "index": 32, "name": "profile_visits", "comment": null}, "follows": {"type": "bigint", "index": 33, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "bigint", "index": 34, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "bigint", "index": 35, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "bigint", "index": 36, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "bigint", "index": 37, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "bigint", "index": 38, "name": "video_views_p_75", "comment": null}, "real_time_conversion": {"type": "bigint", "index": 39, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "double precision", "index": 40, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "double precision", "index": 41, "name": "total_sales_lead_value", "comment": null}, "total_conversion_value": {"type": "double precision", "index": 42, "name": "total_conversion_value", "comment": null}, "daily_cpc": {"type": "double precision", "index": 43, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 44, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 45, "name": "daily_ctr", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__url_report"}, "model.twitter_ads.twitter_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "twitter_ads__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp without time zone", "index": 2, "name": "date_day", "comment": null}, "placement": {"type": "text", "index": 3, "name": "placement", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 5, "name": "account_name", "comment": null}, "is_deleted": {"type": "boolean", "index": 6, "name": "is_deleted", "comment": null}, "timezone": {"type": "text", "index": 7, "name": "timezone", "comment": null}, "industry_type": {"type": "integer", "index": 8, "name": "industry_type", "comment": null}, "approval_status": {"type": "text", "index": 9, "name": "approval_status", "comment": null}, "business_name": {"type": "integer", "index": 10, "name": "business_name", "comment": null}, "business_id": {"type": "integer", "index": 11, "name": "business_id", "comment": null}, "created_timestamp": {"type": "text", "index": 12, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "text", "index": 13, "name": "updated_timestamp", "comment": null}, "timezone_switched_timestamp": {"type": "text", "index": 14, "name": "timezone_switched_timestamp", "comment": null}, "clicks": {"type": "numeric", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "numeric", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 17, "name": "spend", "comment": null}, "spend_micro": {"type": "numeric", "index": 18, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "numeric", "index": 19, "name": "url_clicks", "comment": null}, "total_conversions": {"type": "numeric", "index": 20, "name": "total_conversions", "comment": null}, "total_conversions_sale_amount": {"type": "double precision", "index": 21, "name": "total_conversions_sale_amount", "comment": null}, "conversion_purchases_metric": {"type": "numeric", "index": 22, "name": "conversion_purchases_metric", "comment": null}, "conversion_custom_metric": {"type": "numeric", "index": 23, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "double precision", "index": 24, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "double precision", "index": 25, "name": "conversion_custom_sale_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__account_report"}, "model.twitter_ads.twitter_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "twitter_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp without time zone", "index": 2, "name": "date_day", "comment": null}, "placement": {"type": "text", "index": 3, "name": "placement", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "campaign_status": {"type": "text", "index": 9, "name": "campaign_status", "comment": null}, "currency": {"type": "text", "index": 10, "name": "currency", "comment": null}, "is_servable": {"type": "boolean", "index": 11, "name": "is_servable", "comment": null}, "is_standard_delivery": {"type": "boolean", "index": 12, "name": "is_standard_delivery", "comment": null}, "frequency_cap": {"type": "integer", "index": 13, "name": "frequency_cap", "comment": null}, "start_timestamp": {"type": "text", "index": 14, "name": "start_timestamp", "comment": null}, "end_timestamp": {"type": "text", "index": 15, "name": "end_timestamp", "comment": null}, "created_timestamp": {"type": "text", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "text", "index": 17, "name": "updated_timestamp", "comment": null}, "funding_instrument_id": {"type": "text", "index": 18, "name": "funding_instrument_id", "comment": null}, "daily_budget_amount": {"type": "numeric", "index": 19, "name": "daily_budget_amount", "comment": null}, "total_budget_amount": {"type": "numeric", "index": 20, "name": "total_budget_amount", "comment": null}, "clicks": {"type": "bigint", "index": 21, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 22, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 23, "name": "spend", "comment": null}, "spend_micro": {"type": "bigint", "index": 24, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "bigint", "index": 25, "name": "url_clicks", "comment": null}, "total_conversions": {"type": "numeric", "index": 26, "name": "total_conversions", "comment": null}, "total_conversions_sale_amount": {"type": "double precision", "index": 27, "name": "total_conversions_sale_amount", "comment": null}, "conversion_purchases_metric": {"type": "numeric", "index": 28, "name": "conversion_purchases_metric", "comment": null}, "conversion_custom_metric": {"type": "numeric", "index": 29, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "double precision", "index": 30, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "double precision", "index": 31, "name": "conversion_custom_sale_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__campaign_report"}, "model.twitter_ads.twitter_ads__keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "twitter_ads__keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp without time zone", "index": 2, "name": "date_day", "comment": null}, "placement": {"type": "text", "index": 3, "name": "placement", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "line_item_id": {"type": "text", "index": 8, "name": "line_item_id", "comment": null}, "line_item_name": {"type": "text", "index": 9, "name": "line_item_name", "comment": null}, "keyword_id": {"type": "text", "index": 10, "name": "keyword_id", "comment": null}, "keyword": {"type": "text", "index": 11, "name": "keyword", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "clicks": {"type": "bigint", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 15, "name": "spend", "comment": null}, "spend_micro": {"type": "bigint", "index": 16, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "bigint", "index": 17, "name": "url_clicks", "comment": null}, "total_conversions": {"type": "numeric", "index": 18, "name": "total_conversions", "comment": null}, "total_conversions_sale_amount": {"type": "double precision", "index": 19, "name": "total_conversions_sale_amount", "comment": null}, "conversion_purchases_metric": {"type": "numeric", "index": 20, "name": "conversion_purchases_metric", "comment": null}, "conversion_custom_metric": {"type": "numeric", "index": 21, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "double precision", "index": 22, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "double precision", "index": 23, "name": "conversion_custom_sale_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__keyword_report"}, "model.twitter_ads.twitter_ads__line_item_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "twitter_ads__line_item_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp without time zone", "index": 2, "name": "date_day", "comment": null}, "placement": {"type": "text", "index": 3, "name": "placement", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "line_item_id": {"type": "text", "index": 8, "name": "line_item_id", "comment": null}, "line_item_name": {"type": "text", "index": 9, "name": "line_item_name", "comment": null}, "is_deleted": {"type": "boolean", "index": 10, "name": "is_deleted", "comment": null}, "line_item_status": {"type": "text", "index": 11, "name": "line_item_status", "comment": null}, "campaign_status": {"type": "text", "index": 12, "name": "campaign_status", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "advertiser_domain": {"type": "text", "index": 14, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "integer", "index": 15, "name": "advertiser_user_id", "comment": null}, "bid_type": {"type": "text", "index": 16, "name": "bid_type", "comment": null}, "bid_unit": {"type": "text", "index": 17, "name": "bid_unit", "comment": null}, "charge_by": {"type": "text", "index": 18, "name": "charge_by", "comment": null}, "objective": {"type": "text", "index": 19, "name": "objective", "comment": null}, "optimization": {"type": "text", "index": 20, "name": "optimization", "comment": null}, "product_type": {"type": "text", "index": 21, "name": "product_type", "comment": null}, "primary_web_event_tag": {"type": "integer", "index": 22, "name": "primary_web_event_tag", "comment": null}, "creative_source": {"type": "text", "index": 23, "name": "creative_source", "comment": null}, "start_timestamp": {"type": "integer", "index": 24, "name": "start_timestamp", "comment": null}, "end_timestamp": {"type": "integer", "index": 25, "name": "end_timestamp", "comment": null}, "created_timestamp": {"type": "text", "index": 26, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "text", "index": 27, "name": "updated_timestamp", "comment": null}, "target_cpa": {"type": "numeric", "index": 28, "name": "target_cpa", "comment": null}, "total_budget_amount": {"type": "numeric", "index": 29, "name": "total_budget_amount", "comment": null}, "bid_amount": {"type": "numeric", "index": 30, "name": "bid_amount", "comment": null}, "clicks": {"type": "bigint", "index": 31, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 32, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 33, "name": "spend", "comment": null}, "spend_micro": {"type": "bigint", "index": 34, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "bigint", "index": 35, "name": "url_clicks", "comment": null}, "total_conversions": {"type": "numeric", "index": 36, "name": "total_conversions", "comment": null}, "total_conversions_sale_amount": {"type": "double precision", "index": 37, "name": "total_conversions_sale_amount", "comment": null}, "conversion_purchases_metric": {"type": "numeric", "index": 38, "name": "conversion_purchases_metric", "comment": null}, "conversion_custom_metric": {"type": "numeric", "index": 39, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "double precision", "index": 40, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "double precision", "index": 41, "name": "conversion_custom_sale_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__line_item_report"}, "model.twitter_ads.twitter_ads__promoted_tweet_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "twitter_ads__promoted_tweet_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp without time zone", "index": 2, "name": "date_day", "comment": null}, "placement": {"type": "text", "index": 3, "name": "placement", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "line_item_id": {"type": "text", "index": 8, "name": "line_item_id", "comment": null}, "line_item_name": {"type": "text", "index": 9, "name": "line_item_name", "comment": null}, "promoted_tweet_id": {"type": "text", "index": 10, "name": "promoted_tweet_id", "comment": null}, "tweet_id": {"type": "bigint", "index": 11, "name": "tweet_id", "comment": null}, "tweet_name": {"type": "integer", "index": 12, "name": "tweet_name", "comment": null}, "full_text": {"type": "text", "index": 13, "name": "full_text", "comment": null}, "is_deleted": {"type": "boolean", "index": 14, "name": "is_deleted", "comment": null}, "promoted_tweet_status": {"type": "text", "index": 15, "name": "promoted_tweet_status", "comment": null}, "campaign_status": {"type": "text", "index": 16, "name": "campaign_status", "comment": null}, "line_item_status": {"type": "text", "index": 17, "name": "line_item_status", "comment": null}, "language": {"type": "text", "index": 18, "name": "language", "comment": null}, "currency": {"type": "text", "index": 19, "name": "currency", "comment": null}, "approval_status": {"type": "text", "index": 20, "name": "approval_status", "comment": null}, "created_timestamp": {"type": "text", "index": 21, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "text", "index": 22, "name": "updated_timestamp", "comment": null}, "clicks": {"type": "bigint", "index": 23, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 24, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 25, "name": "spend", "comment": null}, "spend_micro": {"type": "bigint", "index": 26, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "bigint", "index": 27, "name": "url_clicks", "comment": null}, "total_conversions": {"type": "numeric", "index": 28, "name": "total_conversions", "comment": null}, "total_conversions_sale_amount": {"type": "double precision", "index": 29, "name": "total_conversions_sale_amount", "comment": null}, "conversion_purchases_metric": {"type": "numeric", "index": 30, "name": "conversion_purchases_metric", "comment": null}, "conversion_custom_metric": {"type": "numeric", "index": 31, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "double precision", "index": 32, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "double precision", "index": 33, "name": "conversion_custom_sale_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__promoted_tweet_report"}, "model.twitter_ads.twitter_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "twitter_ads__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "date_day": {"type": "timestamp without time zone", "index": 2, "name": "date_day", "comment": null}, "placement": {"type": "text", "index": 3, "name": "placement", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 5, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 6, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "line_item_id": {"type": "text", "index": 8, "name": "line_item_id", "comment": null}, "line_item_name": {"type": "text", "index": 9, "name": "line_item_name", "comment": null}, "promoted_tweet_id": {"type": "text", "index": 10, "name": "promoted_tweet_id", "comment": null}, "tweet_id": {"type": "bigint", "index": 11, "name": "tweet_id", "comment": null}, "tweet_name": {"type": "integer", "index": 12, "name": "tweet_name", "comment": null}, "tweet_full_text": {"type": "text", "index": 13, "name": "tweet_full_text", "comment": null}, "base_url": {"type": "text", "index": 14, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 15, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 16, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 17, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 18, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 19, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 20, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 21, "name": "utm_term", "comment": null}, "expanded_url": {"type": "text", "index": 22, "name": "expanded_url", "comment": null}, "display_url": {"type": "text", "index": 23, "name": "display_url", "comment": null}, "currency": {"type": "text", "index": 24, "name": "currency", "comment": null}, "clicks": {"type": "bigint", "index": 25, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 26, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 27, "name": "spend", "comment": null}, "spend_micro": {"type": "bigint", "index": 28, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "bigint", "index": 29, "name": "url_clicks", "comment": null}, "total_conversions": {"type": "numeric", "index": 30, "name": "total_conversions", "comment": null}, "total_conversions_sale_amount": {"type": "double precision", "index": 31, "name": "total_conversions_sale_amount", "comment": null}, "conversion_purchases_metric": {"type": "numeric", "index": 32, "name": "conversion_purchases_metric", "comment": null}, "conversion_custom_metric": {"type": "numeric", "index": 33, "name": "conversion_custom_metric", "comment": null}, "conversion_purchases_sale_amount": {"type": "double precision", "index": 34, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_custom_sale_amount": {"type": "double precision", "index": 35, "name": "conversion_custom_sale_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__url_report"}}, "sources": {"source.amazon_ads_source.amazon_ads.ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 5, "name": "creation_date", "comment": null}, "default_bid": {"type": "double precision", "index": 6, "name": "default_bid", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "serving_status": {"type": "text", "index": 8, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 9, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.ad_group_history"}, "source.amazon_ads_source.amazon_ads.ad_group_level_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_ad_group_level_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 4, "name": "campaign_bidding_strategy", "comment": null}, "clicks": {"type": "integer", "index": 5, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 6, "name": "cost", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.ad_group_level_report"}, "source.amazon_ads_source.amazon_ads.advertised_product_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_advertised_product_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "integer", "index": 2, "name": "ad_id", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 4, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 8, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 10, "name": "cost", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "advertised_asin": {"type": "integer", "index": 12, "name": "advertised_asin", "comment": null}, "advertised_sku": {"type": "integer", "index": 13, "name": "advertised_sku", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.advertised_product_report"}, "source.amazon_ads_source.amazon_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "bidding_strategy": {"type": "text", "index": 4, "name": "bidding_strategy", "comment": null}, "creation_date": {"type": "text", "index": 5, "name": "creation_date", "comment": null}, "budget": {"type": "integer", "index": 6, "name": "budget", "comment": null}, "end_date": {"type": "integer", "index": 7, "name": "end_date", "comment": null}, "name": {"type": "text", "index": 8, "name": "name", "comment": null}, "portfolio_id": {"type": "integer", "index": 9, "name": "portfolio_id", "comment": null}, "profile_id": {"type": "integer", "index": 10, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 11, "name": "serving_status", "comment": null}, "start_date": {"type": "date", "index": 12, "name": "start_date", "comment": null}, "state": {"type": "text", "index": 13, "name": "state", "comment": null}, "targeting_type": {"type": "text", "index": 14, "name": "targeting_type", "comment": null}, "budget_type": {"type": "text", "index": 15, "name": "budget_type", "comment": null}, "effective_budget": {"type": "integer", "index": 16, "name": "effective_budget", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.campaign_history"}, "source.amazon_ads_source.amazon_ads.campaign_level_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_campaign_level_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_applicable_budget_rule_id": {"type": "integer", "index": 4, "name": "campaign_applicable_budget_rule_id", "comment": null}, "campaign_applicable_budget_rule_name": {"type": "integer", "index": 5, "name": "campaign_applicable_budget_rule_name", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 6, "name": "campaign_bidding_strategy", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 9, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 11, "name": "cost", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "campaign_rule_based_budget_amount": {"type": "integer", "index": 13, "name": "campaign_rule_based_budget_amount", "comment": null}, "sales_7_d": {"type": "integer", "index": 14, "name": "sales_7_d", "comment": null}, "purchases_30_d": {"type": "integer", "index": 15, "name": "purchases_30_d", "comment": null}, "sales_30_d": {"type": "integer", "index": 16, "name": "sales_30_d", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.campaign_level_report"}, "source.amazon_ads_source.amazon_ads.keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_keyword_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "bid": {"type": "double precision", "index": 5, "name": "bid", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 7, "name": "creation_date", "comment": null}, "keyword_text": {"type": "text", "index": 8, "name": "keyword_text", "comment": null}, "match_type": {"type": "text", "index": 9, "name": "match_type", "comment": null}, "native_language_keyword": {"type": "integer", "index": 10, "name": "native_language_keyword", "comment": null}, "serving_status": {"type": "text", "index": 11, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 12, "name": "state", "comment": null}, "native_language_locale": {"type": "integer", "index": 13, "name": "native_language_locale", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.keyword_history"}, "source.amazon_ads_source.amazon_ads.portfolio_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_portfolio_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "budget_amount": {"type": "integer", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "integer", "index": 5, "name": "budget_currency_code", "comment": null}, "budget_end_date": {"type": "integer", "index": 6, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "integer", "index": 7, "name": "budget_policy", "comment": null}, "budget_start_date": {"type": "integer", "index": 8, "name": "budget_start_date", "comment": null}, "creation_date": {"type": "text", "index": 9, "name": "creation_date", "comment": null}, "in_budget": {"type": "boolean", "index": 10, "name": "in_budget", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "profile_id": {"type": "integer", "index": 12, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 13, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.portfolio_history"}, "source.amazon_ads_source.amazon_ads.product_ad_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_product_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "asin": {"type": "text", "index": 5, "name": "asin", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 7, "name": "creation_date", "comment": null}, "serving_status": {"type": "text", "index": 8, "name": "serving_status", "comment": null}, "sku": {"type": "integer", "index": 9, "name": "sku", "comment": null}, "state": {"type": "text", "index": 10, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.product_ad_history"}, "source.amazon_ads_source.amazon_ads.profile": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_marketplace_string_id": {"type": "text", "index": 5, "name": "account_marketplace_string_id", "comment": null}, "account_name": {"type": "text", "index": 6, "name": "account_name", "comment": null}, "account_sub_type": {"type": "integer", "index": 7, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_valid_payment_method": {"type": "boolean", "index": 9, "name": "account_valid_payment_method", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "currency_code": {"type": "text", "index": 11, "name": "currency_code", "comment": null}, "daily_budget": {"type": "integer", "index": 12, "name": "daily_budget", "comment": null}, "timezone": {"type": "text", "index": 13, "name": "timezone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.profile"}, "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_search_term_ad_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "integer", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 8, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 10, "name": "cost", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "keyword_bid": {"type": "double precision", "index": 12, "name": "keyword_bid", "comment": null}, "search_term": {"type": "text", "index": 13, "name": "search_term", "comment": null}, "targeting": {"type": "text", "index": 14, "name": "targeting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report"}, "source.amazon_ads_source.amazon_ads.targeting_keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "amazon_ads_targeting_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "integer", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "ad_keyword_status": {"type": "text", "index": 6, "name": "ad_keyword_status", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 9, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 11, "name": "cost", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "keyword_bid": {"type": "double precision", "index": 13, "name": "keyword_bid", "comment": null}, "keyword_type": {"type": "text", "index": 14, "name": "keyword_type", "comment": null}, "match_type": {"type": "text", "index": 15, "name": "match_type", "comment": null}, "targeting": {"type": "text", "index": 16, "name": "targeting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.targeting_keyword_report"}, "source.apple_search_ads_source.apple_search_ads.ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "automated_keywords_opt_in": {"type": "boolean", "index": 3, "name": "automated_keywords_opt_in", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "cpa_goal_amount": {"type": "integer", "index": 5, "name": "cpa_goal_amount", "comment": null}, "cpa_goal_currency": {"type": "integer", "index": 6, "name": "cpa_goal_currency", "comment": null}, "default_cpc_bid_amount": {"type": "integer", "index": 7, "name": "default_cpc_bid_amount", "comment": null}, "default_cpc_bid_currency": {"type": "integer", "index": 8, "name": "default_cpc_bid_currency", "comment": null}, "deleted": {"type": "boolean", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 10, "name": "end_time", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "organization_id": {"type": "integer", "index": 12, "name": "organization_id", "comment": null}, "serving_state_reasons": {"type": "integer", "index": 13, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "text", "index": 14, "name": "serving_status", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 15, "name": "start_time", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "storefronts": {"type": "integer", "index": 17, "name": "storefronts", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_history"}, "source.apple_search_ads_source.apple_search_ads.ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_ad_group_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_report"}, "source.apple_search_ads_source.apple_search_ads.ad_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creation_time": {"type": "timestamp without time zone", "index": 1, "name": "creation_time", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "org_id": {"type": "integer", "index": 3, "name": "org_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 5, "name": "ad_group_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "creative_id": {"type": "integer", "index": 8, "name": "creative_id", "comment": null}, "creative_type": {"type": "text", "index": 9, "name": "creative_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_history"}, "source.apple_search_ads_source.apple_search_ads.ad_level_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_ad_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "integer", "index": 5, "name": "ad_id", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 7, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 8, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 9, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 10, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 11, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_level_report"}, "source.apple_search_ads_source.apple_search_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "adam_id": {"type": "integer", "index": 3, "name": "adam_id", "comment": null}, "budget_amount": {"type": "integer", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency": {"type": "text", "index": 5, "name": "budget_currency", "comment": null}, "budget_orders": {"type": "text", "index": 6, "name": "budget_orders", "comment": null}, "daily_budget_amount": {"type": "integer", "index": 7, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency": {"type": "text", "index": 8, "name": "daily_budget_currency", "comment": null}, "deleted": {"type": "boolean", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 10, "name": "end_time", "comment": null}, "loc_invoice_detail_buyer_email": {"type": "integer", "index": 11, "name": "loc_invoice_detail_buyer_email", "comment": null}, "loc_invoice_detail_buyer_name": {"type": "integer", "index": 12, "name": "loc_invoice_detail_buyer_name", "comment": null}, "loc_invoice_detail_client_name": {"type": "integer", "index": 13, "name": "loc_invoice_detail_client_name", "comment": null}, "loc_invoice_detail_order_number": {"type": "integer", "index": 14, "name": "loc_invoice_detail_order_number", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "organiation_id": {"type": "integer", "index": 16, "name": "organiation_id", "comment": null}, "payment_model": {"type": "text", "index": 17, "name": "payment_model", "comment": null}, "serving_state_reasons": {"type": "text", "index": 18, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "text", "index": 19, "name": "serving_status", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 20, "name": "start_time", "comment": null}, "status": {"type": "text", "index": 21, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_history"}, "source.apple_search_ads_source.apple_search_ads.campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_report"}, "source.apple_search_ads_source.apple_search_ads.keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_keyword_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "ad_group_id": {"type": "integer", "index": 3, "name": "ad_group_id", "comment": null}, "bid_amount": {"type": "double precision", "index": 4, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "text", "index": 5, "name": "bid_currency", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "deleted": {"type": "boolean", "index": 7, "name": "deleted", "comment": null}, "match_type": {"type": "text", "index": 8, "name": "match_type", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "text": {"type": "text", "index": 10, "name": "text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_history"}, "source.apple_search_ads_source.apple_search_ads.keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_report"}, "source.apple_search_ads_source.apple_search_ads.organization": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "currency": {"type": "text", "index": 2, "name": "currency", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "payment_model": {"type": "text", "index": 4, "name": "payment_model", "comment": null}, "role_names": {"type": "text", "index": 5, "name": "role_names", "comment": null}, "time_zone": {"type": "text", "index": 6, "name": "time_zone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.organization"}, "source.apple_search_ads_source.apple_search_ads.search_term_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "apple_search_search_term_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 4, "name": "date", "comment": null}, "ad_group_deleted": {"type": "boolean", "index": 5, "name": "ad_group_deleted", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 7, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 8, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 9, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 10, "name": "avg_cpt_currency", "comment": null}, "bid_amount_amount": {"type": "double precision", "index": 11, "name": "bid_amount_amount", "comment": null}, "bid_amount_currency": {"type": "text", "index": 12, "name": "bid_amount_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 13, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 14, "name": "conversions", "comment": null}, "deleted": {"type": "boolean", "index": 15, "name": "deleted", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "keyword": {"type": "text", "index": 17, "name": "keyword", "comment": null}, "keyword_display_status": {"type": "text", "index": 18, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "integer", "index": 19, "name": "keyword_id", "comment": null}, "lat_off_installs": {"type": "integer", "index": 20, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 21, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 22, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 23, "name": "local_spend_currency", "comment": null}, "match_type": {"type": "text", "index": 24, "name": "match_type", "comment": null}, "new_downloads": {"type": "integer", "index": 25, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 26, "name": "redownloads", "comment": null}, "search_term_source": {"type": "text", "index": 27, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "text", "index": 28, "name": "search_term_text", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 29, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 30, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.search_term_report"}, "source.facebook_ads_source.facebook_ads.account_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "facebook_ads_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "character varying", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.account_history"}, "source.facebook_ads_source.facebook_ads.ad_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "facebook_ads_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "ad_set_id": {"type": "bigint", "index": 3, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "creative_id": {"type": "bigint", "index": 5, "name": "creative_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 8, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.ad_history"}, "source.facebook_ads_source.facebook_ads.ad_set_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "facebook_ads_ad_set_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 6, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.ad_set_history"}, "source.facebook_ads_source.facebook_ads.basic_ad_action_values": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "facebook_ads_basic_ad_action_values_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_id": {"type": "text", "index": 3, "name": "_fivetran_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "action_type": {"type": "text", "index": 5, "name": "action_type", "comment": null}, "value": {"type": "double precision", "index": 6, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "_7_d_click": {"type": "double precision", "index": 8, "name": "_7_d_click", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad_action_values"}, "source.facebook_ads_source.facebook_ads.basic_ad_actions": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "facebook_ads_basic_ad_actions_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_id": {"type": "integer", "index": 2, "name": "ad_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "_1_d_view": {"type": "double precision", "index": 5, "name": "_1_d_view", "comment": null}, "_7_d_click": {"type": "double precision", "index": 6, "name": "_7_d_click", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "action_type": {"type": "text", "index": 8, "name": "action_type", "comment": null}, "inline": {"type": "double precision", "index": 9, "name": "inline", "comment": null}, "value": {"type": "double precision", "index": 10, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad_actions"}, "source.facebook_ads_source.facebook_ads.basic_ad": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "facebook_ads_basic_ad_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "bigint", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "inline_link_clicks": {"type": "integer", "index": 5, "name": "inline_link_clicks", "comment": null}, "spend": {"type": "double precision", "index": 6, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad"}, "source.facebook_ads_source.facebook_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "facebook_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 5, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.campaign_history"}, "source.facebook_ads_source.facebook_ads.creative_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "facebook_ads_creative_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"page_link": {"type": "character varying", "index": 1, "name": "page_link", "comment": null}, "template_page_link": {"type": "character varying", "index": 2, "name": "template_page_link", "comment": null}, "id": {"type": "bigint", "index": 3, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "url_tags": {"type": "text", "index": 6, "name": "url_tags", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "asset_feed_spec_link_urls": {"type": "text", "index": 8, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "text", "index": 9, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "text", "index": 10, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "text", "index": 11, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "text", "index": 12, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "text", "index": 13, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "text", "index": 14, "name": "template_app_link_spec_ios", "comment": null}, "_fivetran_id": {"type": "text", "index": 15, "name": "_fivetran_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.creative_history"}, "source.google_ads_source.google_ads.account_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "auto_tagging_enabled": {"type": "boolean", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "descriptive_name": {"type": "integer", "index": 6, "name": "descriptive_name", "comment": null}, "final_url_suffix": {"type": "boolean", "index": 7, "name": "final_url_suffix", "comment": null}, "hidden": {"type": "boolean", "index": 8, "name": "hidden", "comment": null}, "manager": {"type": "integer", "index": 9, "name": "manager", "comment": null}, "manager_customer_id": {"type": "double precision", "index": 10, "name": "manager_customer_id", "comment": null}, "optimization_score": {"type": "text", "index": 11, "name": "optimization_score", "comment": null}, "pay_per_conversion_eligibility_failure_reasons": {"type": "boolean", "index": 12, "name": "pay_per_conversion_eligibility_failure_reasons", "comment": null}, "test_account": {"type": "text", "index": 13, "name": "test_account", "comment": null}, "time_zone": {"type": "integer", "index": 14, "name": "time_zone", "comment": null}, "tracking_url_template": {"type": "integer", "index": 15, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.account_history"}, "source.google_ads_source.google_ads.account_stats": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_account_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 12, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 13, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 14, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 15, "name": "device", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 17, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 18, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 19, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.account_stats"}, "source.google_ads_source.google_ads.ad_group_criterion_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_ad_group_criterion_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "bigint", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "keyword_match_type": {"type": "text", "index": 8, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "text", "index": 9, "name": "keyword_text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_group_criterion_history"}, "source.google_ads_source.google_ads.ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_group_history"}, "source.google_ads_source.google_ads.ad_group_stats": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_ad_group_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "base_ad_group": {"type": "text", "index": 11, "name": "base_ad_group", "comment": null}, "campaign_base_campaign": {"type": "text", "index": 12, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "bigint", "index": 13, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 14, "name": "clicks", "comment": null}, "conversions": {"type": "double precision", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 16, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 17, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 18, "name": "device", "comment": null}, "id": {"type": "bigint", "index": 19, "name": "id", "comment": null}, "impressions": {"type": "integer", "index": 20, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 21, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 22, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 23, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_group_stats"}, "source.google_ads_source.google_ads.ad_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "name": {"type": "integer", "index": 3, "name": "name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "integer", "index": 5, "name": "type", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "display_url": {"type": "integer", "index": 7, "name": "display_url", "comment": null}, "final_urls": {"type": "text", "index": 8, "name": "final_urls", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_history"}, "source.google_ads_source.google_ads.ad_stats": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_ad_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "ad_group": {"type": "text", "index": 4, "name": "ad_group", "comment": null}, "keyword_ad_group_criterion": {"type": "text", "index": 5, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "text", "index": 6, "name": "ad_network_type", "comment": null}, "device": {"type": "text", "index": 7, "name": "device", "comment": null}, "ad_id": {"type": "bigint", "index": 8, "name": "ad_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "cost_micros": {"type": "integer", "index": 11, "name": "cost_micros", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "conversions": {"type": "integer", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "double precision", "index": 14, "name": "conversions_value", "comment": null}, "view_through_conversions": {"type": "integer", "index": 15, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_stats"}, "source.google_ads_source.google_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "customer_id": {"type": "bigint", "index": 4, "name": "customer_id", "comment": null}, "advertising_channel_type": {"type": "text", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "text", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "date", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "date", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "text", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "integer", "index": 11, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.campaign_history"}, "source.google_ads_source.google_ads.campaign_stats": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_campaign_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "base_campaign": {"type": "text", "index": 11, "name": "base_campaign", "comment": null}, "clicks": {"type": "integer", "index": 12, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 14, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 15, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 16, "name": "device", "comment": null}, "id": {"type": "bigint", "index": 17, "name": "id", "comment": null}, "impressions": {"type": "integer", "index": 18, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 19, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 20, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 21, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.campaign_stats"}, "source.google_ads_source.google_ads.keyword_stats": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "google_ads_keyword_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_group_base_ad_group": {"type": "text", "index": 10, "name": "ad_group_base_ad_group", "comment": null}, "ad_group_criterion_criterion_id": {"type": "bigint", "index": 11, "name": "ad_group_criterion_criterion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 12, "name": "ad_group_id", "comment": null}, "ad_network_type": {"type": "text", "index": 13, "name": "ad_network_type", "comment": null}, "campaign_base_campaign": {"type": "text", "index": 14, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "bigint", "index": 15, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 18, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 19, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 20, "name": "device", "comment": null}, "impressions": {"type": "integer", "index": 21, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 22, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 23, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 24, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.keyword_stats"}, "source.linkedin_source.linkedin_ads.account_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "linkedin_ad_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "version_tag": {"type": "integer", "index": 6, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin_ads.account_history"}, "source.linkedin_source.linkedin_ads.ad_analytics_by_campaign": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "linkedin_ad_analytics_by_campaign_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "day": {"type": "timestamp without time zone", "index": 2, "name": "day", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "action_clicks": {"type": "integer", "index": 4, "name": "action_clicks", "comment": null}, "ad_unit_clicks": {"type": "integer", "index": 5, "name": "ad_unit_clicks", "comment": null}, "approximate_unique_impressions": {"type": "integer", "index": 6, "name": "approximate_unique_impressions", "comment": null}, "card_clicks": {"type": "integer", "index": 7, "name": "card_clicks", "comment": null}, "card_impressions": {"type": "integer", "index": 8, "name": "card_impressions", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "comment_likes": {"type": "integer", "index": 10, "name": "comment_likes", "comment": null}, "comments": {"type": "integer", "index": 11, "name": "comments", "comment": null}, "company_page_clicks": {"type": "integer", "index": 12, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "integer", "index": 13, "name": "conversion_value_in_local_currency", "comment": null}, "cost_in_local_currency": {"type": "double precision", "index": 14, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "double precision", "index": 15, "name": "cost_in_usd", "comment": null}, "external_website_conversions": {"type": "bigint", "index": 16, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "integer", "index": 17, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "integer", "index": 18, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "integer", "index": 19, "name": "follows", "comment": null}, "full_screen_plays": {"type": "integer", "index": 20, "name": "full_screen_plays", "comment": null}, "impressions": {"type": "integer", "index": 21, "name": "impressions", "comment": null}, "landing_page_clicks": {"type": "integer", "index": 22, "name": "landing_page_clicks", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "integer", "index": 23, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "integer", "index": 24, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "integer", "index": 25, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "integer", "index": 26, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "integer", "index": 27, "name": "one_click_leads", "comment": null}, "opens": {"type": "integer", "index": 28, "name": "opens", "comment": null}, "other_engagements": {"type": "integer", "index": 29, "name": "other_engagements", "comment": null}, "shares": {"type": "integer", "index": 30, "name": "shares", "comment": null}, "text_url_clicks": {"type": "integer", "index": 31, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "integer", "index": 32, "name": "total_engagements", "comment": null}, "video_completions": {"type": "integer", "index": 33, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "integer", "index": 34, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "integer", "index": 35, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "integer", "index": 36, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "integer", "index": 37, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "integer", "index": 38, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "integer", "index": 39, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "integer", "index": 40, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "integer", "index": 41, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "integer", "index": 42, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "integer", "index": 43, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "integer", "index": 44, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "integer", "index": 45, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "integer", "index": 46, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "integer", "index": 47, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "integer", "index": 48, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "integer", "index": 49, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "integer", "index": 50, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "integer", "index": 51, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "integer", "index": 52, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "integer", "index": 53, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "integer", "index": 54, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "integer", "index": 55, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "integer", "index": 56, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "integer", "index": 57, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "integer", "index": 58, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "integer", "index": 59, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "integer", "index": 60, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "integer", "index": 61, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "integer", "index": 62, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "integer", "index": 63, "name": "viral_video_views", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin_ads.ad_analytics_by_campaign"}, "source.linkedin_source.linkedin_ads.ad_analytics_by_creative": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "linkedin_ad_analytics_by_creative_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creative_id": {"type": "integer", "index": 1, "name": "creative_id", "comment": null}, "day": {"type": "timestamp without time zone", "index": 2, "name": "day", "comment": null}, "action_clicks": {"type": "integer", "index": 3, "name": "action_clicks", "comment": null}, "card_clicks": {"type": "integer", "index": 4, "name": "card_clicks", "comment": null}, "ad_unit_clicks": {"type": "integer", "index": 5, "name": "ad_unit_clicks", "comment": null}, "landing_page_clicks": {"type": "integer", "index": 6, "name": "landing_page_clicks", "comment": null}, "clicks": {"type": "integer", "index": 7, "name": "clicks", "comment": null}, "approximate_unique_impressions": {"type": "integer", "index": 8, "name": "approximate_unique_impressions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "card_impressions": {"type": "integer", "index": 10, "name": "card_impressions", "comment": null}, "cost_in_local_currency": {"type": "integer", "index": 11, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "integer", "index": 12, "name": "cost_in_usd", "comment": null}, "comment_likes": {"type": "integer", "index": 13, "name": "comment_likes", "comment": null}, "comments": {"type": "integer", "index": 14, "name": "comments", "comment": null}, "company_page_clicks": {"type": "integer", "index": 15, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "integer", "index": 16, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "bigint", "index": 17, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "integer", "index": 18, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "integer", "index": 19, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "integer", "index": 20, "name": "follows", "comment": null}, "full_screen_plays": {"type": "integer", "index": 21, "name": "full_screen_plays", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "integer", "index": 22, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "integer", "index": 23, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "integer", "index": 24, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "integer", "index": 25, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "integer", "index": 26, "name": "one_click_leads", "comment": null}, "opens": {"type": "integer", "index": 27, "name": "opens", "comment": null}, "other_engagements": {"type": "integer", "index": 28, "name": "other_engagements", "comment": null}, "shares": {"type": "integer", "index": 29, "name": "shares", "comment": null}, "text_url_clicks": {"type": "integer", "index": 30, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "integer", "index": 31, "name": "total_engagements", "comment": null}, "video_completions": {"type": "integer", "index": 32, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "integer", "index": 33, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "integer", "index": 34, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "integer", "index": 35, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "integer", "index": 36, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "integer", "index": 37, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "integer", "index": 38, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "integer", "index": 39, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "integer", "index": 40, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "integer", "index": 41, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "integer", "index": 42, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "integer", "index": 43, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "integer", "index": 44, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "integer", "index": 45, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "integer", "index": 46, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "integer", "index": 47, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "integer", "index": 48, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "integer", "index": 49, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "integer", "index": 50, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "integer", "index": 51, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "integer", "index": 52, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "integer", "index": 53, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "integer", "index": 54, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "integer", "index": 55, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "integer", "index": 56, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "integer", "index": 57, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "integer", "index": 58, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "integer", "index": 59, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "integer", "index": 60, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "integer", "index": 61, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "integer", "index": 62, "name": "viral_video_views", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin_ads.ad_analytics_by_creative"}, "source.linkedin_source.linkedin_ads.campaign_group_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "linkedin_ad_campaign_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 4, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin_ads.campaign_group_history"}, "source.linkedin_source.linkedin_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "linkedin_ad_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_group_id": {"type": "integer", "index": 4, "name": "campaign_group_id", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 5, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "version_tag": {"type": "integer", "index": 7, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin_ads.campaign_history"}, "source.linkedin_source.linkedin_ads.creative_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "linkedin_ad_creative_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "intended_status": {"type": "character varying", "index": 3, "name": "intended_status", "comment": null}, "click_uri": {"type": "text", "index": 4, "name": "click_uri", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 5, "name": "last_modified_at", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 6, "name": "created_time", "comment": null}, "text_ad_landing_page": {"type": "text", "index": 7, "name": "text_ad_landing_page", "comment": null}, "spotlight_landing_page": {"type": "text", "index": 8, "name": "spotlight_landing_page", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin_ads.creative_history"}, "source.microsoft_ads_source.microsoft_ads.account_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "character varying", "index": 2, "name": "name", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 3, "name": "last_modified_time", "comment": null}, "time_zone": {"type": "text", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.account_history"}, "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_account_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "text", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "text", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 13, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 14, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 15, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 16, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 17, "name": "all_conversions_qualified", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 4, "name": "modified_time", "comment": null}, "start_date": {"type": "date", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "integer", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_history"}, "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_ad_group_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 8, "name": "network", "comment": null}, "language": {"type": "text", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 16, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 17, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 18, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 19, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 20, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "integer", "index": 21, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "double precision", "index": 22, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.ad_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title_part_1": {"type": "text", "index": 2, "name": "title_part_1", "comment": null}, "final_url": {"type": "text", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 5, "name": "modified_time", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "type": {"type": "text", "index": 7, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_history"}, "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_ad_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "text", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 9, "name": "network", "comment": null}, "language": {"type": "text", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 18, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 19, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 20, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 21, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "integer", "index": 22, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "double precision", "index": 23, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "account_id": {"type": "integer", "index": 3, "name": "account_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 4, "name": "modified_time", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "text", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_history"}, "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_campaign_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "text", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "text", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 11, "name": "top_vs_other", "comment": null}, "budget_association_status": {"type": "text", "index": 12, "name": "budget_association_status", "comment": null}, "budget_name": {"type": "text", "index": 13, "name": "budget_name", "comment": null}, "clicks": {"type": "integer", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 16, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 17, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 18, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 19, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 20, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "integer", "index": 21, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "double precision", "index": 22, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_keyword_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 3, "name": "modified_time", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "text", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_history"}, "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_keyword_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "text", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 10, "name": "network", "comment": null}, "language": {"type": "text", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 18, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 19, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 20, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 21, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 22, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "integer", "index": 23, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "double precision", "index": 24, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "microsoft_ads_search_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "text", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "text", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 10, "name": "network", "comment": null}, "language": {"type": "text", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "text", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}, "conversions_qualified": {"type": "integer", "index": 18, "name": "conversions_qualified", "comment": null}, "conversions": {"type": "integer", "index": 19, "name": "conversions", "comment": null}, "revenue": {"type": "double precision", "index": 20, "name": "revenue", "comment": null}, "all_conversions_qualified": {"type": "integer", "index": 21, "name": "all_conversions_qualified", "comment": null}, "all_conversions": {"type": "integer", "index": 22, "name": "all_conversions", "comment": null}, "all_revenue": {"type": "double precision", "index": 23, "name": "all_revenue", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report"}, "source.pinterest_source.pinterest_ads.ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "created_time": {"type": "text", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "status": {"type": "text", "index": 5, "name": "status", "comment": null}, "start_time": {"type": "text", "index": 6, "name": "start_time", "comment": null}, "end_time": {"type": "integer", "index": 7, "name": "end_time", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}, "pacing_delivery_type": {"type": "text", "index": 9, "name": "pacing_delivery_type", "comment": null}, "placement_group": {"type": "text", "index": 10, "name": "placement_group", "comment": null}, "summary_status": {"type": "text", "index": 11, "name": "summary_status", "comment": null}, "ad_account_id": {"type": "bigint", "index": 12, "name": "ad_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.ad_group_history"}, "source.pinterest_source.pinterest_ads.ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_ad_group_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 3, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 4, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 6, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 8, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 9, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 10, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 11, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 12, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "integer", "index": 13, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 14, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "integer", "index": 15, "name": "total_conversions_value_in_micro_dollar", "comment": null}, "total_view_checkout": {"type": "integer", "index": 16, "name": "total_view_checkout", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.ad_group_report"}, "source.pinterest_source.pinterest_ads.advertiser_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_advertiser_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "billing_profile_status": {"type": "text", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "text", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 7, "name": "created_time", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "merchant_id": {"type": "integer", "index": 9, "name": "merchant_id", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "owner_user_id": {"type": "integer", "index": 11, "name": "owner_user_id", "comment": null}, "status": {"type": "text", "index": 12, "name": "status", "comment": null}, "owner_username": {"type": "text", "index": 13, "name": "owner_username", "comment": null}, "permissions": {"type": "text", "index": 14, "name": "permissions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.advertiser_history"}, "source.pinterest_source.pinterest_ads.advertiser_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_advertiser_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 4, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 5, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 6, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 7, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 8, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "integer", "index": 9, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 10, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "integer", "index": 11, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.advertiser_report"}, "source.pinterest_source.pinterest_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_time": {"type": "text", "index": 2, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "advertiser_id": {"type": "bigint", "index": 6, "name": "advertiser_id", "comment": null}, "default_ad_group_budget_in_micro_currency": {"type": "integer", "index": 7, "name": "default_ad_group_budget_in_micro_currency", "comment": null}, "is_automated_campaign": {"type": "boolean", "index": 8, "name": "is_automated_campaign", "comment": null}, "is_campaign_budget_optimization": {"type": "boolean", "index": 9, "name": "is_campaign_budget_optimization", "comment": null}, "is_flexible_daily_budgets": {"type": "boolean", "index": 10, "name": "is_flexible_daily_budgets", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.campaign_history"}, "source.pinterest_source.pinterest_ads.campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 3, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 4, "name": "campaign_status", "comment": null}, "advertiser_id": {"type": "bigint", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 11, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "integer", "index": 12, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 13, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "integer", "index": 14, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.campaign_report"}, "source.pinterest_source.pinterest_ads.keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_keyword_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 4, "name": "advertiser_id", "comment": null}, "archived": {"type": "boolean", "index": 5, "name": "archived", "comment": null}, "bid": {"type": "integer", "index": 6, "name": "bid", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "id": {"type": "bigint", "index": 8, "name": "id", "comment": null}, "match_type": {"type": "text", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "text", "index": 10, "name": "parent_type", "comment": null}, "value": {"type": "text", "index": 11, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.keyword_history"}, "source.pinterest_source.pinterest_ads.keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "keyword_id": {"type": "bigint", "index": 2, "name": "keyword_id", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 3, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 8, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 10, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 11, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 13, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 14, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "integer", "index": 15, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 16, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "integer", "index": 17, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.keyword_report"}, "source.pinterest_source.pinterest_ads.pin_promotion_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_pin_promotion_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "created_time": {"type": "text", "index": 3, "name": "created_time", "comment": null}, "destination_url": {"type": "text", "index": 4, "name": "destination_url", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "pin_id": {"type": "bigint", "index": 6, "name": "pin_id", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "creative_type": {"type": "text", "index": 8, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "text", "index": 9, "name": "_fivetran_synced", "comment": null}, "ad_account_id": {"type": "bigint", "index": 10, "name": "ad_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_history"}, "source.pinterest_source.pinterest_ads.pin_promotion_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "pinterest_pin_promotion_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 11, "name": "spend_in_micro_dollar", "comment": null}, "total_conversions": {"type": "integer", "index": 12, "name": "total_conversions", "comment": null}, "total_conversions_quantity": {"type": "integer", "index": 13, "name": "total_conversions_quantity", "comment": null}, "total_conversions_value_in_micro_dollar": {"type": "integer", "index": 14, "name": "total_conversions_value_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_report"}, "source.reddit_ads_source.reddit_ads.account_conversions_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_account_conversions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "avg_value": {"type": "double precision", "index": 3, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "integer", "index": 4, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "integer", "index": 5, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "integer", "index": 6, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "date", "index": 7, "name": "date", "comment": null}, "event_name": {"type": "text", "index": 8, "name": "event_name", "comment": null}, "total_items": {"type": "integer", "index": 9, "name": "total_items", "comment": null}, "total_value": {"type": "double precision", "index": 10, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "integer", "index": 11, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "integer", "index": 12, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "integer", "index": 13, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.account_conversions_report"}, "source.reddit_ads_source.reddit_ads.account": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "attribution_type": {"type": "text", "index": 3, "name": "attribution_type", "comment": null}, "click_attribution_window": {"type": "text", "index": 4, "name": "click_attribution_window", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "status": {"type": "integer", "index": 7, "name": "status", "comment": null}, "time_zone_id": {"type": "text", "index": 8, "name": "time_zone_id", "comment": null}, "view_attribution_window": {"type": "text", "index": 9, "name": "view_attribution_window", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.account"}, "source.reddit_ads_source.reddit_ads.account_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_account_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "bigint", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "integer", "index": 4, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "integer", "index": 5, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "integer", "index": 6, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "integer", "index": 7, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "integer", "index": 8, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "integer", "index": 9, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "integer", "index": 10, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "integer", "index": 11, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "integer", "index": 12, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "integer", "index": 13, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "integer", "index": 14, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "integer", "index": 15, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "integer", "index": 17, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "integer", "index": 18, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "integer", "index": 19, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "integer", "index": 20, "name": "conversion_roas", "comment": null}, "cpc": {"type": "double precision", "index": 21, "name": "cpc", "comment": null}, "ctr": {"type": "double precision", "index": 22, "name": "ctr", "comment": null}, "ecpm": {"type": "double precision", "index": 23, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "integer", "index": 24, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "integer", "index": 25, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "integer", "index": 26, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "integer", "index": 27, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "integer", "index": 28, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "integer", "index": 29, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "integer", "index": 30, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "integer", "index": 31, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "integer", "index": 32, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "integer", "index": 33, "name": "priority", "comment": null}, "region": {"type": "integer", "index": 34, "name": "region", "comment": null}, "spend": {"type": "integer", "index": 35, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "integer", "index": 36, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "integer", "index": 37, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "integer", "index": 38, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "integer", "index": 39, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "integer", "index": 40, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "integer", "index": 41, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "integer", "index": 42, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "integer", "index": 43, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "integer", "index": 44, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "integer", "index": 45, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "integer", "index": 46, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "integer", "index": 47, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "integer", "index": 48, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "integer", "index": 49, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "integer", "index": 50, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.account_report"}, "source.reddit_ads_source.reddit_ads.ad_conversions_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_conversions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "ad_id": {"type": "integer", "index": 3, "name": "ad_id", "comment": null}, "avg_value": {"type": "double precision", "index": 4, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "integer", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "integer", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "integer", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "date", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "text", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "integer", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "double precision", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "integer", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "integer", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "integer", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.ad_conversions_report"}, "source.reddit_ads_source.reddit_ads.ad": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "click_url": {"type": "text", "index": 6, "name": "click_url", "comment": null}, "configured_status": {"type": "text", "index": 7, "name": "configured_status", "comment": null}, "effective_status": {"type": "text", "index": 8, "name": "effective_status", "comment": null}, "is_processing": {"type": "boolean", "index": 9, "name": "is_processing", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "post_id": {"type": "text", "index": 11, "name": "post_id", "comment": null}, "post_url": {"type": "integer", "index": 12, "name": "post_url", "comment": null}, "preview_expiry": {"type": "integer", "index": 13, "name": "preview_expiry", "comment": null}, "preview_url": {"type": "integer", "index": 14, "name": "preview_url", "comment": null}, "rejection_reason": {"type": "integer", "index": 15, "name": "rejection_reason", "comment": null}, "search_term": {"type": "integer", "index": 16, "name": "search_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.ad"}, "source.reddit_ads_source.reddit_ads.ad_group_conversions_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_group_conversions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 3, "name": "ad_group_id", "comment": null}, "avg_value": {"type": "double precision", "index": 4, "name": "avg_value", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "integer", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "integer", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "integer", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "date", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "text", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "integer", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "double precision", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "integer", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "integer", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "integer", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.ad_group_conversions_report"}, "source.reddit_ads_source.reddit_ads.ad_group": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bid_strategy": {"type": "text", "index": 4, "name": "bid_strategy", "comment": null}, "bid_value": {"type": "integer", "index": 5, "name": "bid_value", "comment": null}, "campaign_id": {"type": "bigint", "index": 6, "name": "campaign_id", "comment": null}, "configured_status": {"type": "text", "index": 7, "name": "configured_status", "comment": null}, "effective_status": {"type": "text", "index": 8, "name": "effective_status", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 9, "name": "end_time", "comment": null}, "expand_targeting": {"type": "boolean", "index": 10, "name": "expand_targeting", "comment": null}, "goal_type": {"type": "text", "index": 11, "name": "goal_type", "comment": null}, "goal_value": {"type": "integer", "index": 12, "name": "goal_value", "comment": null}, "is_processing": {"type": "boolean", "index": 13, "name": "is_processing", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "optimization_strategy_type": {"type": "integer", "index": 15, "name": "optimization_strategy_type", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 16, "name": "start_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.ad_group"}, "source.reddit_ads_source.reddit_ads.ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_group_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "bigint", "index": 1, "name": "account_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "integer", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "integer", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "integer", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "integer", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "integer", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "integer", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "integer", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "integer", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "integer", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "integer", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "integer", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "integer", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "integer", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "integer", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "integer", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "integer", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "integer", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "double precision", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "double precision", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "double precision", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "integer", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "integer", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "integer", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "integer", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "integer", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "integer", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "integer", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "integer", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "integer", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "integer", "index": 34, "name": "priority", "comment": null}, "region": {"type": "integer", "index": 35, "name": "region", "comment": null}, "spend": {"type": "integer", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "integer", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "integer", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "integer", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "integer", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "integer", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "integer", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "integer", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "integer", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "integer", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "integer", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "integer", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "integer", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "integer", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "integer", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "integer", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.ad_group_report"}, "source.reddit_ads_source.reddit_ads.ad_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "bigint", "index": 1, "name": "account_id", "comment": null}, "ad_id": {"type": "bigint", "index": 2, "name": "ad_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "integer", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "integer", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "integer", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "integer", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "integer", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "integer", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "integer", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "integer", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "integer", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "integer", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "integer", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "integer", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "integer", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "integer", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "integer", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "integer", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "integer", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "double precision", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "double precision", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "double precision", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "integer", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "integer", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "integer", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "integer", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "integer", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "integer", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "integer", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "integer", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "integer", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "integer", "index": 34, "name": "priority", "comment": null}, "region": {"type": "integer", "index": 35, "name": "region", "comment": null}, "spend": {"type": "integer", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "integer", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "integer", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "integer", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "integer", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "integer", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "integer", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "integer", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "integer", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "integer", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "integer", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "integer", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "integer", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "integer", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "integer", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "integer", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.ad_report"}, "source.reddit_ads_source.reddit_ads.campaign_conversions_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_campaign_conversions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "avg_value": {"type": "double precision", "index": 3, "name": "avg_value", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "click_through_conversion_attribution_window_day": {"type": "integer", "index": 5, "name": "click_through_conversion_attribution_window_day", "comment": null}, "click_through_conversion_attribution_window_month": {"type": "integer", "index": 6, "name": "click_through_conversion_attribution_window_month", "comment": null}, "click_through_conversion_attribution_window_week": {"type": "integer", "index": 7, "name": "click_through_conversion_attribution_window_week", "comment": null}, "date": {"type": "date", "index": 8, "name": "date", "comment": null}, "event_name": {"type": "text", "index": 9, "name": "event_name", "comment": null}, "total_items": {"type": "integer", "index": 10, "name": "total_items", "comment": null}, "total_value": {"type": "double precision", "index": 11, "name": "total_value", "comment": null}, "view_through_conversion_attribution_window_day": {"type": "integer", "index": 12, "name": "view_through_conversion_attribution_window_day", "comment": null}, "view_through_conversion_attribution_window_month": {"type": "integer", "index": 13, "name": "view_through_conversion_attribution_window_month", "comment": null}, "view_through_conversion_attribution_window_week": {"type": "integer", "index": 14, "name": "view_through_conversion_attribution_window_week", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.campaign_conversions_report"}, "source.reddit_ads_source.reddit_ads.campaign": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_campaign_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "configured_status": {"type": "text", "index": 4, "name": "configured_status", "comment": null}, "effective_status": {"type": "text", "index": 5, "name": "effective_status", "comment": null}, "funding_instrument_id": {"type": "integer", "index": 6, "name": "funding_instrument_id", "comment": null}, "is_processing": {"type": "boolean", "index": 7, "name": "is_processing", "comment": null}, "name": {"type": "text", "index": 8, "name": "name", "comment": null}, "objective": {"type": "text", "index": 9, "name": "objective", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.campaign"}, "source.reddit_ads_source.reddit_ads.campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "reddit_ads_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "bigint", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "integer", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "integer", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "integer", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "integer", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "integer", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "integer", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "integer", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "integer", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "integer", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "integer", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "integer", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "integer", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "integer", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "integer", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "integer", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "integer", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "integer", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "double precision", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "double precision", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "double precision", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "integer", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "integer", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "integer", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "integer", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "integer", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "integer", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "integer", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "integer", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "integer", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "integer", "index": 34, "name": "priority", "comment": null}, "region": {"type": "integer", "index": 35, "name": "region", "comment": null}, "spend": {"type": "integer", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "integer", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "integer", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "integer", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "integer", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "integer", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "integer", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "integer", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "integer", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "integer", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "integer", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "integer", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "integer", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "integer", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "integer", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "integer", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.reddit_ads_source.reddit_ads.campaign_report"}, "source.snapchat_ads_source.snapchat_ads.ad_account_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_ad_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_account_history"}, "source.snapchat_ads_source.snapchat_ads.ad_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_squad_id": {"type": "text", "index": 2, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "text", "index": 3, "name": "creative_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_history"}, "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_ad_hourly_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "text", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "impressions": {"type": "integer", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "integer", "index": 4, "name": "spend", "comment": null}, "swipes": {"type": "integer", "index": 5, "name": "swipes", "comment": null}, "conversion_purchases_value": {"type": "double precision", "index": 6, "name": "conversion_purchases_value", "comment": null}, "conversion_add_billing": {"type": "integer", "index": 7, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "integer", "index": 8, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "integer", "index": 9, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "integer", "index": 10, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "integer", "index": 11, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "integer", "index": 12, "name": "conversion_purchases", "comment": null}, "conversion_save": {"type": "integer", "index": 13, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "integer", "index": 14, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "integer", "index": 15, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "integer", "index": 16, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "integer", "index": 17, "name": "conversion_view_content", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_hourly_report"}, "source.snapchat_ads_source.snapchat_ads.ad_squad_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_ad_squad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "text", "index": 2, "name": "campaign_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_history"}, "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_ad_squad_hourly_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_squad_id": {"type": "text", "index": 1, "name": "ad_squad_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "integer", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "integer", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "integer", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "integer", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "integer", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "integer", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "integer", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "integer", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "integer", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "integer", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "integer", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "integer", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "integer", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "integer", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "integer", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "double precision", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "integer", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "integer", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "integer", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "integer", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "integer", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "integer", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "integer", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "integer", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "integer", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "integer", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "integer", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "integer", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "integer", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "integer", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "integer", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "integer", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "integer", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "integer", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "integer", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "integer", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "integer", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "integer", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report"}, "source.snapchat_ads_source.snapchat_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_history"}, "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_campaign_hourly_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "text", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "integer", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "integer", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "integer", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "integer", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "integer", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "integer", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "integer", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "integer", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "integer", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "integer", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "integer", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "integer", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "integer", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "integer", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "integer", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "double precision", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "integer", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "integer", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "integer", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "integer", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "integer", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "integer", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "integer", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "integer", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "integer", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "integer", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "integer", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "integer", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "integer", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "integer", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "integer", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "integer", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "integer", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "integer", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "integer", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "integer", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "integer", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "integer", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report"}, "source.snapchat_ads_source.snapchat_ads.creative_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_creative_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "web_view_url": {"type": "text", "index": 4, "name": "web_view_url", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_history"}, "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "snapchat_creative_url_tag_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creative_id": {"type": "text", "index": 1, "name": "creative_id", "comment": null}, "key": {"type": "text", "index": 2, "name": "key", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "updated_at": {"type": "text", "index": 4, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history"}, "source.tiktok_ads_source.tiktok_ads.ad_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "tiktok_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "integer", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "text", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "text", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "text", "index": 8, "name": "call_to_action", "comment": null}, "secondary_status": {"type": "text", "index": 9, "name": "secondary_status", "comment": null}, "operation_status": {"type": "text", "index": 10, "name": "operation_status", "comment": null}, "ad_text": {"type": "text", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "text", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "integer", "index": 13, "name": "app_name", "comment": null}, "deeplink": {"type": "integer", "index": 14, "name": "deeplink", "comment": null}, "landing_page_url": {"type": "text", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "text", "index": 16, "name": "display_name", "comment": null}, "profile_image_url": {"type": "integer", "index": 17, "name": "profile_image_url", "comment": null}, "impression_tracking_url": {"type": "integer", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "integer", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "integer", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "boolean", "index": 21, "name": "is_aco", "comment": null}, "creative_authorized": {"type": "boolean", "index": 22, "name": "creative_authorized", "comment": null}, "is_new_structure": {"type": "boolean", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "text", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "text", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_history"}, "source.tiktok_ads_source.tiktok_ads.ad_report_hourly": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "tiktok_ad_report_hourly_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 4, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 5, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 6, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 7, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 8, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 9, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 10, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 11, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 12, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 13, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 14, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 15, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 16, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "integer", "index": 17, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 18, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 19, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 20, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "integer", "index": 21, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 22, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 23, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 24, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 25, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 26, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 27, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 28, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 29, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 30, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 31, "name": "follows", "comment": null}, "result_rate": {"type": "integer", "index": 32, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 33, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 34, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 35, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "integer", "index": 36, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "integer", "index": 37, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 38, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 39, "name": "likes", "comment": null}, "real_time_conversion": {"type": "integer", "index": 40, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "double precision", "index": 41, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "double precision", "index": 42, "name": "total_sales_lead_value", "comment": null}, "_fivetran_synced": {"type": "text", "index": 43, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_report_hourly"}, "source.tiktok_ads_source.tiktok_ads.adgroup_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "tiktok_adgroup_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"adgroup_id": {"type": "integer", "index": 1, "name": "adgroup_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "create_time": {"type": "text", "index": 5, "name": "create_time", "comment": null}, "adgroup_name": {"type": "text", "index": 6, "name": "adgroup_name", "comment": null}, "placement_type": {"type": "text", "index": 7, "name": "placement_type", "comment": null}, "profile_image": {"type": "integer", "index": 8, "name": "profile_image", "comment": null}, "landing_page_url": {"type": "integer", "index": 9, "name": "landing_page_url", "comment": null}, "display_name": {"type": "integer", "index": 10, "name": "display_name", "comment": null}, "app_type": {"type": "integer", "index": 11, "name": "app_type", "comment": null}, "app_download_url": {"type": "integer", "index": 12, "name": "app_download_url", "comment": null}, "app_name": {"type": "integer", "index": 13, "name": "app_name", "comment": null}, "optimization_event": {"type": "text", "index": 14, "name": "optimization_event", "comment": null}, "secondary_optimization_event": {"type": "integer", "index": 15, "name": "secondary_optimization_event", "comment": null}, "creative_material_mode": {"type": "text", "index": 16, "name": "creative_material_mode", "comment": null}, "audience_type": {"type": "integer", "index": 17, "name": "audience_type", "comment": null}, "gender": {"type": "text", "index": 18, "name": "gender", "comment": null}, "min_android_version": {"type": "integer", "index": 19, "name": "min_android_version", "comment": null}, "min_ios_version": {"type": "integer", "index": 20, "name": "min_ios_version", "comment": null}, "budget_mode": {"type": "text", "index": 21, "name": "budget_mode", "comment": null}, "schedule_type": {"type": "text", "index": 22, "name": "schedule_type", "comment": null}, "dayparting": {"type": "integer", "index": 23, "name": "dayparting", "comment": null}, "optimization_goal": {"type": "text", "index": 24, "name": "optimization_goal", "comment": null}, "cpv_video_duration": {"type": "integer", "index": 25, "name": "cpv_video_duration", "comment": null}, "pacing": {"type": "text", "index": 26, "name": "pacing", "comment": null}, "billing_event": {"type": "text", "index": 27, "name": "billing_event", "comment": null}, "bid_type": {"type": "text", "index": 28, "name": "bid_type", "comment": null}, "deep_bid_type": {"type": "integer", "index": 29, "name": "deep_bid_type", "comment": null}, "impression_tracking_url": {"type": "integer", "index": 30, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "integer", "index": 31, "name": "click_tracking_url", "comment": null}, "secondary_status": {"type": "text", "index": 32, "name": "secondary_status", "comment": null}, "operation_status": {"type": "text", "index": 33, "name": "operation_status", "comment": null}, "statistic_type": {"type": "integer", "index": 34, "name": "statistic_type", "comment": null}, "video_download": {"type": "text", "index": 35, "name": "video_download", "comment": null}, "open_url": {"type": "integer", "index": 36, "name": "open_url", "comment": null}, "open_url_type": {"type": "integer", "index": 37, "name": "open_url_type", "comment": null}, "fallback_type": {"type": "integer", "index": 38, "name": "fallback_type", "comment": null}, "budget": {"type": "integer", "index": 39, "name": "budget", "comment": null}, "bid_price": {"type": "integer", "index": 40, "name": "bid_price", "comment": null}, "conversion_bid_price": {"type": "integer", "index": 41, "name": "conversion_bid_price", "comment": null}, "deep_cpa_bid": {"type": "integer", "index": 42, "name": "deep_cpa_bid", "comment": null}, "schedule_start_time": {"type": "text", "index": 43, "name": "schedule_start_time", "comment": null}, "schedule_end_time": {"type": "text", "index": 44, "name": "schedule_end_time", "comment": null}, "app_id": {"type": "integer", "index": 45, "name": "app_id", "comment": null}, "pixel_id": {"type": "integer", "index": 46, "name": "pixel_id", "comment": null}, "inventory_filter_enabled": {"type": "boolean", "index": 47, "name": "inventory_filter_enabled", "comment": null}, "is_hfss": {"type": "boolean", "index": 48, "name": "is_hfss", "comment": null}, "is_new_structure": {"type": "boolean", "index": 49, "name": "is_new_structure", "comment": null}, "category": {"type": "integer", "index": 50, "name": "category", "comment": null}, "is_comment_disable": {"type": "integer", "index": 51, "name": "is_comment_disable", "comment": null}, "skip_learning_phase": {"type": "integer", "index": 52, "name": "skip_learning_phase", "comment": null}, "frequency": {"type": "integer", "index": 53, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "integer", "index": 54, "name": "frequency_schedule", "comment": null}, "action_days": {"type": "integer", "index": 55, "name": "action_days", "comment": null}, "audience": {"type": "text", "index": 56, "name": "audience", "comment": null}, "excluded_audience": {"type": "text", "index": 57, "name": "excluded_audience", "comment": null}, "location": {"type": "text", "index": 58, "name": "location", "comment": null}, "interest_category_v_2": {"type": "text", "index": 59, "name": "interest_category_v_2", "comment": null}, "pangle_block_app_list_id": {"type": "text", "index": 60, "name": "pangle_block_app_list_id", "comment": null}, "action_categories": {"type": "text", "index": 61, "name": "action_categories", "comment": null}, "placements": {"type": "text", "index": 62, "name": "placements", "comment": null}, "keywords": {"type": "integer", "index": 63, "name": "keywords", "comment": null}, "age_groups": {"type": "text", "index": 64, "name": "age_groups", "comment": null}, "languages": {"type": "text", "index": 65, "name": "languages", "comment": null}, "operating_systems": {"type": "text", "index": 66, "name": "operating_systems", "comment": null}, "network_types": {"type": "text", "index": 67, "name": "network_types", "comment": null}, "carriers": {"type": "text", "index": 68, "name": "carriers", "comment": null}, "video_actions": {"type": "text", "index": 69, "name": "video_actions", "comment": null}, "package": {"type": "integer", "index": 70, "name": "package", "comment": null}, "_fivetran_synced": {"type": "text", "index": 71, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_history"}, "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "tiktok_adgroup_report_hourly_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"adgroup_id": {"type": "integer", "index": 1, "name": "adgroup_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 4, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 5, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 6, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 7, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 8, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 9, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 10, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 11, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 12, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 13, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 14, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 15, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 16, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 17, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 18, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 19, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 20, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 21, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 22, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 23, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 24, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 25, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 26, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 27, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 28, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 29, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 30, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 31, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 32, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 33, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 34, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 35, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 36, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 37, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 38, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 39, "name": "likes", "comment": null}, "real_time_conversion": {"type": "integer", "index": 40, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "double precision", "index": 41, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "double precision", "index": 42, "name": "total_sales_lead_value", "comment": null}, "_fivetran_synced": {"type": "text", "index": 43, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly"}, "source.tiktok_ads_source.tiktok_ads.advertiser": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "tiktok_advertiser_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "address": {"type": "text", "index": 3, "name": "address", "comment": null}, "company": {"type": "text", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "integer", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "description": {"type": "text", "index": 8, "name": "description", "comment": null}, "email": {"type": "text", "index": 9, "name": "email", "comment": null}, "industry": {"type": "integer", "index": 10, "name": "industry", "comment": null}, "license_no": {"type": "integer", "index": 11, "name": "license_no", "comment": null}, "license_url": {"type": "integer", "index": 12, "name": "license_url", "comment": null}, "promotion_area": {"type": "integer", "index": 13, "name": "promotion_area", "comment": null}, "rejected_reason": {"type": "integer", "index": 14, "name": "rejected_reason", "comment": null}, "role": {"type": "text", "index": 15, "name": "role", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "telephone_number": {"type": "text", "index": 17, "name": "telephone_number", "comment": null}, "timezone": {"type": "text", "index": 18, "name": "timezone", "comment": null}, "balance": {"type": "double precision", "index": 19, "name": "balance", "comment": null}, "create_time": {"type": "text", "index": 20, "name": "create_time", "comment": null}, "language": {"type": "text", "index": 21, "name": "language", "comment": null}, "cellphone_number": {"type": "text", "index": 22, "name": "cellphone_number", "comment": null}, "_fivetran_synced": {"type": "text", "index": 23, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.advertiser"}, "source.tiktok_ads_source.tiktok_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "tiktok_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "integer", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "text", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "text", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "text", "index": 8, "name": "call_to_action", "comment": null}, "secondary_status": {"type": "text", "index": 9, "name": "secondary_status", "comment": null}, "operation_status": {"type": "text", "index": 10, "name": "operation_status", "comment": null}, "ad_text": {"type": "text", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "text", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "integer", "index": 13, "name": "app_name", "comment": null}, "deeplink": {"type": "integer", "index": 14, "name": "deeplink", "comment": null}, "landing_page_url": {"type": "text", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "text", "index": 16, "name": "display_name", "comment": null}, "profile_image_url": {"type": "integer", "index": 17, "name": "profile_image_url", "comment": null}, "impression_tracking_url": {"type": "integer", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "integer", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "integer", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "boolean", "index": 21, "name": "is_aco", "comment": null}, "creative_authorized": {"type": "boolean", "index": 22, "name": "creative_authorized", "comment": null}, "is_new_structure": {"type": "boolean", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "text", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "text", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_history"}, "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "tiktok_campaign_report_hourly_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 4, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 5, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 6, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 7, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 8, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 9, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 10, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 11, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 12, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 13, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 14, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 15, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 16, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 17, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 18, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 19, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 20, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 21, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 22, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 23, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 24, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 25, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 26, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 27, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 28, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 29, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 30, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 31, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 32, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 33, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 34, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 35, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 36, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 37, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 38, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 39, "name": "likes", "comment": null}, "real_time_conversion": {"type": "integer", "index": 40, "name": "real_time_conversion", "comment": null}, "total_purchase_value": {"type": "double precision", "index": 41, "name": "total_purchase_value", "comment": null}, "total_sales_lead_value": {"type": "double precision", "index": 42, "name": "total_sales_lead_value", "comment": null}, "_fivetran_synced": {"type": "text", "index": 43, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly"}, "source.twitter_ads_source.twitter_ads.account_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "text", "index": 2, "name": "approval_status", "comment": null}, "business_id": {"type": "integer", "index": 3, "name": "business_id", "comment": null}, "business_name": {"type": "integer", "index": 4, "name": "business_name", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deleted": {"type": "boolean", "index": 6, "name": "deleted", "comment": null}, "id": {"type": "text", "index": 7, "name": "id", "comment": null}, "industry_type": {"type": "integer", "index": 8, "name": "industry_type", "comment": null}, "name": {"type": "character varying", "index": 9, "name": "name", "comment": null}, "salt": {"type": "integer", "index": 10, "name": "salt", "comment": null}, "timezone": {"type": "text", "index": 11, "name": "timezone", "comment": null}, "timezone_switch_at": {"type": "text", "index": 12, "name": "timezone_switch_at", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.account_history"}, "source.twitter_ads_source.twitter_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "integer", "index": 5, "name": "daily_budget_amount_local_micro", "comment": null}, "deleted": {"type": "boolean", "index": 6, "name": "deleted", "comment": null}, "duration_in_days": {"type": "integer", "index": 7, "name": "duration_in_days", "comment": null}, "end_time": {"type": "text", "index": 8, "name": "end_time", "comment": null}, "entity_status": {"type": "text", "index": 9, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "integer", "index": 10, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "text", "index": 11, "name": "funding_instrument_id", "comment": null}, "id": {"type": "text", "index": 12, "name": "id", "comment": null}, "name": {"type": "text", "index": 13, "name": "name", "comment": null}, "servable": {"type": "boolean", "index": 14, "name": "servable", "comment": null}, "standard_delivery": {"type": "boolean", "index": 15, "name": "standard_delivery", "comment": null}, "start_time": {"type": "text", "index": 16, "name": "start_time", "comment": null}, "total_budget_amount_local_micro": {"type": "integer", "index": 17, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "text", "index": 18, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.campaign_history"}, "source.twitter_ads_source.twitter_ads.campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "text", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "integer", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "integer", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "integer", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "integer", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "integer", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "integer", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "integer", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "integer", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "integer", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "integer", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "integer", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "integer", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "integer", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "integer", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "integer", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "integer", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "integer", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "integer", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "integer", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "integer", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "integer", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "integer", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "integer", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "integer", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "integer", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "integer", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "integer", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "integer", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "integer", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "integer", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "integer", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "integer", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "integer", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "integer", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "integer", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "integer", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "integer", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "integer", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "integer", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "integer", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "integer", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "integer", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "integer", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "integer", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "integer", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "integer", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "integer", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "integer", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "integer", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "integer", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "integer", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "integer", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "integer", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "integer", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "integer", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "integer", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "integer", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "integer", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "integer", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "integer", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "integer", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "integer", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "integer", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "integer", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "integer", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "integer", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "integer", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "integer", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "integer", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "integer", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "integer", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "integer", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "integer", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "integer", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "integer", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "integer", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "integer", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "integer", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "integer", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "integer", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "integer", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "integer", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "integer", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "integer", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "integer", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "integer", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "integer", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "integer", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "integer", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "integer", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "integer", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "integer", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "integer", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "integer", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "integer", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "integer", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "integer", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "integer", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "integer", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "integer", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "integer", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_qu": {"type": "integer", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_qu", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo": {"type": "integer", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "integer", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "integer", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "integer", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "integer", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit": {"type": "integer", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "integer", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "integer", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quan": {"type": "integer", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quan", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun": {"type": "integer", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "integer", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "integer", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "integer", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "integer", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "integer", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "integer", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "integer", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "integer", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "integer", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "integer", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "integer", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "integer", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "integer", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_q": {"type": "integer", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_q", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_am": {"type": "integer", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_am", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "integer", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "integer", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "integer", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "integer", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "integer", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "integer", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "integer", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "integer", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "integer", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "integer", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "integer", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "integer", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "integer", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "integer", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "integer", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "integer", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "integer", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "integer", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "integer", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "integer", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "integer", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "integer", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quan": {"type": "integer", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quan", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun": {"type": "integer", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "integer", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "integer", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "integer", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "integer", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "integer", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "integer", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "integer", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "integer", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "integer", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "integer", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "integer", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "integer", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "integer", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "integer", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "integer", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "integer", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "integer", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "integer", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "integer", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "integer", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "integer", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "integer", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "integer", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "integer", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "integer", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "integer", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "integer", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "integer", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "integer", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "integer", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "integer", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "integer", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "integer", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "integer", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "integer", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "integer", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "integer", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "integer", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "integer", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "integer", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "integer", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "integer", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "integer", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "integer", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "integer", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "integer", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "integer", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "integer", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "integer", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "integer", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "integer", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "integer", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "integer", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "integer", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "integer", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "integer", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "integer", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "integer", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "integer", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "integer", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "integer", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "integer", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "integer", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "integer", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "integer", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "integer", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "integer", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "integer", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "integer", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "integer", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "integer", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "integer", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "integer", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "integer", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "integer", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "integer", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "integer", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "integer", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "integer", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "integer", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "integer", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "integer", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "integer", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "integer", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "integer", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "integer", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "integer", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "integer", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "integer", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "integer", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.campaign_report"}, "source.twitter_ads_source.twitter_ads.line_item_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_line_item_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_domain": {"type": "text", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "integer", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "boolean", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "integer", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "text", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "text", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "text", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "text", "index": 8, "name": "charge_by", "comment": null}, "created_at": {"type": "text", "index": 9, "name": "created_at", "comment": null}, "creative_source": {"type": "text", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "deleted": {"type": "boolean", "index": 12, "name": "deleted", "comment": null}, "end_time": {"type": "integer", "index": 13, "name": "end_time", "comment": null}, "entity_status": {"type": "text", "index": 14, "name": "entity_status", "comment": null}, "id": {"type": "text", "index": 15, "name": "id", "comment": null}, "name": {"type": "text", "index": 16, "name": "name", "comment": null}, "objective": {"type": "text", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "text", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "integer", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "text", "index": 20, "name": "product_type", "comment": null}, "start_time": {"type": "integer", "index": 21, "name": "start_time", "comment": null}, "target_cpa_local_micro": {"type": "integer", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "integer", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "text", "index": 24, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.line_item_history"}, "source.twitter_ads_source.twitter_ads.line_item_keywords_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_line_item_keywords_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "text", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "segment": {"type": "text", "index": 5, "name": "segment", "comment": null}, "_fivetran_synced": {"type": "text", "index": 6, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "integer", "index": 7, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 8, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "integer", "index": 9, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "integer", "index": 10, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "integer", "index": 11, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "integer", "index": 12, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "integer", "index": 13, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "integer", "index": 14, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "integer", "index": 15, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "integer", "index": 16, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "integer", "index": 17, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "integer", "index": 18, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "integer", "index": 19, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "integer", "index": 20, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "integer", "index": 21, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "integer", "index": 22, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "integer", "index": 23, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "integer", "index": 24, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "integer", "index": 25, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "integer", "index": 26, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "integer", "index": 27, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "integer", "index": 28, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "integer", "index": 29, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "integer", "index": 30, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "integer", "index": 31, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "integer", "index": 32, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "integer", "index": 33, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "integer", "index": 34, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "integer", "index": 35, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "integer", "index": 36, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "integer", "index": 37, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "integer", "index": 38, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "integer", "index": 39, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "integer", "index": 40, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "integer", "index": 41, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "integer", "index": 42, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "integer", "index": 43, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "integer", "index": 44, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "integer", "index": 45, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "integer", "index": 46, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "integer", "index": 47, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "integer", "index": 48, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "integer", "index": 49, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "integer", "index": 50, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "integer", "index": 51, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "integer", "index": 52, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "integer", "index": 53, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "integer", "index": 54, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "integer", "index": 55, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "integer", "index": 56, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "integer", "index": 57, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "integer", "index": 58, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "integer", "index": 59, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "integer", "index": 60, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 61, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 62, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 63, "name": "likes", "comment": null}, "media_engagements": {"type": "integer", "index": 64, "name": "media_engagements", "comment": null}, "media_views": {"type": "integer", "index": 65, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "integer", "index": 66, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "integer", "index": 67, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "integer", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "integer", "index": 69, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "integer", "index": 70, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "integer", "index": 71, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "integer", "index": 72, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "integer", "index": 73, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "integer", "index": 74, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "integer", "index": 75, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "integer", "index": 76, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "integer", "index": 77, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "integer", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "integer", "index": 79, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "integer", "index": 80, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "integer", "index": 81, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "integer", "index": 82, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "integer", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "integer", "index": 84, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "integer", "index": 85, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "integer", "index": 86, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "integer", "index": 87, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "integer", "index": 88, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "integer", "index": 89, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "integer", "index": 90, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "integer", "index": 91, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "integer", "index": 92, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "integer", "index": 93, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "integer", "index": 94, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "integer", "index": 95, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "integer", "index": 96, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "integer", "index": 97, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "integer", "index": 98, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "integer", "index": 99, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "integer", "index": 100, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "integer", "index": 101, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_invites_assisted": {"type": "integer", "index": 102, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "integer", "index": 103, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "integer", "index": 104, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "integer", "index": 105, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "integer", "index": 106, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "integer", "index": 107, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "integer", "index": 108, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "integer", "index": 109, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "integer", "index": 110, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "integer", "index": 111, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "integer", "index": 112, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "integer", "index": 113, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "integer", "index": 114, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_qu": {"type": "integer", "index": 115, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_qu", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo": {"type": "integer", "index": 116, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "integer", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "integer", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "integer", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "integer", "index": 120, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit": {"type": "integer", "index": 121, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "integer", "index": 122, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "integer", "index": 123, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quan": {"type": "integer", "index": 124, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quan", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun": {"type": "integer", "index": 125, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "integer", "index": 126, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "integer", "index": 127, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "integer", "index": 128, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "integer", "index": 129, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "integer", "index": 130, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "integer", "index": 131, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "integer", "index": 132, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "integer", "index": 133, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "integer", "index": 134, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "integer", "index": 135, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "integer", "index": 136, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "integer", "index": 137, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "integer", "index": 138, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_q": {"type": "integer", "index": 139, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_q", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_am": {"type": "integer", "index": 140, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_am", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "integer", "index": 141, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "integer", "index": 142, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "integer", "index": 143, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "integer", "index": 144, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "integer", "index": 145, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "integer", "index": 146, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "integer", "index": 147, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "integer", "index": 148, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "integer", "index": 149, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "integer", "index": 150, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "integer", "index": 151, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "integer", "index": 152, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "integer", "index": 153, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "integer", "index": 154, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "integer", "index": 155, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "integer", "index": 156, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "integer", "index": 157, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "integer", "index": 158, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "integer", "index": 159, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "integer", "index": 160, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "integer", "index": 161, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "integer", "index": 162, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quan": {"type": "integer", "index": 163, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quan", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun": {"type": "integer", "index": 164, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "integer", "index": 165, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "integer", "index": 166, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "integer", "index": 167, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "integer", "index": 168, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "integer", "index": 169, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "integer", "index": 170, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "integer", "index": 171, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "integer", "index": 172, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "integer", "index": 173, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "integer", "index": 174, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "integer", "index": 175, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "integer", "index": 176, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "integer", "index": 177, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "integer", "index": 178, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "integer", "index": 179, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "integer", "index": 180, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "integer", "index": 181, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "integer", "index": 182, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "integer", "index": 183, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "integer", "index": 184, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "mobile_conversion_rates_assisted": {"type": "integer", "index": 185, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "integer", "index": 186, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "integer", "index": 187, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "integer", "index": 188, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "integer", "index": 189, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "integer", "index": 190, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "integer", "index": 191, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "integer", "index": 192, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "integer", "index": 193, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "integer", "index": 194, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "integer", "index": 195, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "integer", "index": 196, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "integer", "index": 197, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "integer", "index": 198, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "integer", "index": 199, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "integer", "index": 200, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "integer", "index": 201, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "integer", "index": 202, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "integer", "index": 203, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "integer", "index": 204, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "integer", "index": 205, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "integer", "index": 206, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "integer", "index": 207, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "integer", "index": 208, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "integer", "index": 209, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "integer", "index": 210, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "integer", "index": 211, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "integer", "index": 212, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "integer", "index": 213, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "integer", "index": 214, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "integer", "index": 215, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "integer", "index": 216, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "integer", "index": 217, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "integer", "index": 218, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "integer", "index": 219, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "integer", "index": 220, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "integer", "index": 221, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "integer", "index": 222, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "integer", "index": 223, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "integer", "index": 224, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "integer", "index": 225, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "integer", "index": 226, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "integer", "index": 227, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "integer", "index": 228, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "integer", "index": 229, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "integer", "index": 230, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "integer", "index": 231, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "integer", "index": 232, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "integer", "index": 233, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "integer", "index": 234, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "integer", "index": 235, "name": "qualified_impressions", "comment": null}, "replies": {"type": "integer", "index": 236, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 237, "name": "retweets", "comment": null}, "tweets_send": {"type": "integer", "index": 238, "name": "tweets_send", "comment": null}, "unfollows": {"type": "integer", "index": 239, "name": "unfollows", "comment": null}, "url_clicks": {"type": "integer", "index": 240, "name": "url_clicks", "comment": null}, "video_15_s_views": {"type": "integer", "index": 241, "name": "video_15_s_views", "comment": null}, "video_3_s_100_pct_views": {"type": "integer", "index": 242, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "integer", "index": 243, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "integer", "index": 244, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "integer", "index": 245, "name": "video_cta_clicks", "comment": null}, "video_total_views": {"type": "integer", "index": 246, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "integer", "index": 247, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "integer", "index": 248, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "integer", "index": 249, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "integer", "index": 250, "name": "video_views_75", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.line_item_keywords_report"}, "source.twitter_ads_source.twitter_ads.line_item_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_line_item_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "text", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "integer", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "integer", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "integer", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "integer", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "integer", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "integer", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "integer", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "integer", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "integer", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "integer", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "integer", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "integer", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "integer", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "integer", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "integer", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "integer", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "integer", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "integer", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "integer", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "integer", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "integer", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "integer", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "integer", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "integer", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "integer", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "integer", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "integer", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "integer", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "integer", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "integer", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "integer", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "integer", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "integer", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "integer", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "integer", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "integer", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "integer", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "integer", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "integer", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "integer", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "integer", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "integer", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "integer", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "integer", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "integer", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "integer", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "integer", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "integer", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "integer", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "integer", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "integer", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "integer", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "integer", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "integer", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "integer", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "integer", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "integer", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "integer", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "integer", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "integer", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "integer", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "integer", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "integer", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "integer", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "integer", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "integer", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "integer", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "integer", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "integer", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "integer", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "integer", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "integer", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "integer", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "integer", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "integer", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "integer", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "integer", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "integer", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "integer", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "integer", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "integer", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "integer", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "integer", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "integer", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "integer", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "integer", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "integer", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "integer", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "integer", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "integer", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "integer", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "integer", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "integer", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "integer", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "integer", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "integer", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "integer", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "integer", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "integer", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "integer", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "integer", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_qu": {"type": "integer", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_qu", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo": {"type": "integer", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "integer", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "integer", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "integer", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "integer", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit": {"type": "integer", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "integer", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "integer", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quan": {"type": "integer", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quan", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun": {"type": "integer", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "integer", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "integer", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "integer", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "integer", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "integer", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "integer", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "integer", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "integer", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "integer", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "integer", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "integer", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "integer", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "integer", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_q": {"type": "integer", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_q", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_am": {"type": "integer", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_am", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "integer", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "integer", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "integer", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "integer", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "integer", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "integer", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "integer", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "integer", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "integer", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "integer", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "integer", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "integer", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "integer", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "integer", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "integer", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "integer", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "integer", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "integer", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "integer", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "integer", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "integer", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "integer", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quan": {"type": "integer", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quan", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun": {"type": "integer", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "integer", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "integer", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "integer", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "integer", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "integer", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "integer", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "integer", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "integer", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "integer", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "integer", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "integer", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "integer", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "integer", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "integer", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "integer", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "integer", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "integer", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "integer", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "integer", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "integer", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "integer", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "integer", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "integer", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "integer", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "integer", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "integer", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "integer", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "integer", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "integer", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "integer", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "integer", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "integer", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "integer", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "integer", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "integer", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "integer", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "integer", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "integer", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "integer", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "integer", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "integer", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "integer", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "integer", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "integer", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "integer", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "integer", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "integer", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "integer", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "integer", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "integer", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "integer", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "integer", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "integer", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "integer", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "integer", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "integer", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "integer", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "integer", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "integer", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "integer", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "integer", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "integer", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "integer", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "integer", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "integer", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "integer", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "integer", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "integer", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "integer", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "integer", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "integer", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "integer", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "integer", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "integer", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "integer", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "integer", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "integer", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "integer", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "integer", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "integer", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "integer", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "integer", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "integer", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "integer", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "integer", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "integer", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "integer", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "integer", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "integer", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "integer", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.line_item_report"}, "source.twitter_ads_source.twitter_ads.promoted_tweet_history": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_promoted_tweet_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "text", "index": 2, "name": "approval_status", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "deleted": {"type": "boolean", "index": 4, "name": "deleted", "comment": null}, "entity_status": {"type": "text", "index": 5, "name": "entity_status", "comment": null}, "id": {"type": "text", "index": 6, "name": "id", "comment": null}, "line_item_id": {"type": "text", "index": 7, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "bigint", "index": 8, "name": "tweet_id", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_history"}, "source.twitter_ads_source.twitter_ads.promoted_tweet_report": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_promoted_tweet_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 3, "name": "billed_charge_local_micro", "comment": null}, "clicks": {"type": "integer", "index": 4, "name": "clicks", "comment": null}, "date": {"type": "timestamp without time zone", "index": 5, "name": "date", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "promoted_tweet_id": {"type": "text", "index": 7, "name": "promoted_tweet_id", "comment": null}, "url_clicks": {"type": "integer", "index": 8, "name": "url_clicks", "comment": null}, "placement": {"type": "text", "index": 9, "name": "placement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_report"}, "source.twitter_ads_source.twitter_ads.tweet": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_tweet_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "card_uri": {"type": "integer", "index": 4, "name": "card_uri", "comment": null}, "coordinates_coordinates": {"type": "integer", "index": 5, "name": "coordinates_coordinates", "comment": null}, "coordinates_type": {"type": "integer", "index": 6, "name": "coordinates_type", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "favorite_count": {"type": "integer", "index": 8, "name": "favorite_count", "comment": null}, "favorited": {"type": "boolean", "index": 9, "name": "favorited", "comment": null}, "followers": {"type": "integer", "index": 10, "name": "followers", "comment": null}, "full_text": {"type": "text", "index": 11, "name": "full_text", "comment": null}, "geo_coordinates": {"type": "integer", "index": 12, "name": "geo_coordinates", "comment": null}, "geo_type": {"type": "integer", "index": 13, "name": "geo_type", "comment": null}, "in_reply_to_screen_name": {"type": "integer", "index": 14, "name": "in_reply_to_screen_name", "comment": null}, "in_reply_to_status_id": {"type": "integer", "index": 15, "name": "in_reply_to_status_id", "comment": null}, "in_reply_to_user_id": {"type": "integer", "index": 16, "name": "in_reply_to_user_id", "comment": null}, "lang": {"type": "text", "index": 17, "name": "lang", "comment": null}, "media_key": {"type": "integer", "index": 18, "name": "media_key", "comment": null}, "retweet_count": {"type": "integer", "index": 19, "name": "retweet_count", "comment": null}, "retweeted": {"type": "boolean", "index": 20, "name": "retweeted", "comment": null}, "source": {"type": "text", "index": 21, "name": "source", "comment": null}, "truncated": {"type": "boolean", "index": 22, "name": "truncated", "comment": null}, "tweet_type": {"type": "text", "index": 23, "name": "tweet_type", "comment": null}, "user_id": {"type": "integer", "index": 24, "name": "user_id", "comment": null}, "name": {"type": "integer", "index": 25, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.tweet"}, "source.twitter_ads_source.twitter_ads.tweet_url": {"metadata": {"type": "BASE TABLE", "schema": "zz_ad_reporting", "name": "twitter_tweet_url_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "display_url": {"type": "text", "index": 2, "name": "display_url", "comment": null}, "expanded_url": {"type": "text", "index": 3, "name": "expanded_url", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "indices": {"type": "text", "index": 5, "name": "indices", "comment": null}, "tweet_id": {"type": "bigint", "index": 6, "name": "tweet_id", "comment": null}, "url": {"type": "text", "index": 7, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.tweet_url"}}, "errors": null}
\ No newline at end of file
diff --git a/docs/manifest.json b/docs/manifest.json
index 2855ef6..79356b6 100644
--- a/docs/manifest.json
+++ b/docs/manifest.json
@@ -1 +1 @@
-{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v12.json", "dbt_version": "1.8.7", "generated_at": "2024-11-18T17:46:02.310703Z", "invocation_id": "f706c1e5-c5fd-40a7-8294-6aac8cbba667", "env": {}, "project_name": "ad_reporting_integration_tests", "project_id": "9bf57d857f8bb3abf75f1b334ad30f3c", "user_id": "2bfa9082-ea6e-467b-abdc-d0514ab111d9", "send_anonymous_usage_stats": true, "adapter_type": "bigquery"}, "nodes": {"seed.ad_reporting_integration_tests.twitter_line_item_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "twitter_line_item_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_line_item_history_data.csv", "original_file_path": "seeds/twitter_line_item_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_history_data", "fqn": ["ad_reporting_integration_tests", "twitter_line_item_history_data"], "alias": "twitter_line_item_history_data", "checksum": {"name": "sha256", "checksum": "e7c5ac79c6915f530670f98c6f7cd9ad80be52a5b2c5bd810ad3fff6c7041bd2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.903645, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_line_item_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "amazon_ads_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_campaign_history_data.csv", "original_file_path": "seeds/amazon_ads_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_campaign_history_data"], "alias": "amazon_ads_campaign_history_data", "checksum": {"name": "sha256", "checksum": "0f20a7204beca4248a325978992ffd60e0fe986c633790b2bd032754d77c5184"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.907844, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_campaign_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "amazon_ads_ad_group_level_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_ad_group_level_report_data.csv", "original_file_path": "seeds/amazon_ads_ad_group_level_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_ad_group_level_report_data"], "alias": "amazon_ads_ad_group_level_report_data", "checksum": {"name": "sha256", "checksum": "b8d7399c22df2187d6518c6db0d9125b6c93172cf23200a8cbc365d43532d2ba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.9092329, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_ad_group_level_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "google_ads_keyword_stats_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_keyword_stats_data.csv", "original_file_path": "seeds/google_ads_keyword_stats_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data", "fqn": ["ad_reporting_integration_tests", "google_ads_keyword_stats_data"], "alias": "google_ads_keyword_stats_data", "checksum": {"name": "sha256", "checksum": "e4745703dd19dabf77a7df047ced6c1c56966ad8552d2f67676bcfd4ff36c94f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"customer_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_criterion_criterion_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_adgroup_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.911233, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_keyword_stats_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "linkedin_ad_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "linkedin_ad_campaign_history_data.csv", "original_file_path": "seeds/linkedin_ad_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_campaign_history_data"], "alias": "linkedin_ad_campaign_history_data", "checksum": {"name": "sha256", "checksum": "6d9dc155f63100a6555d22bf221ef2d037492984e4206518b68e17e0acb3b00a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "account_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.9126642, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_campaign_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_keyword_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "pinterest_keyword_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_keyword_report_data.csv", "original_file_path": "seeds/pinterest_keyword_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_keyword_report_data", "fqn": ["ad_reporting_integration_tests", "pinterest_keyword_report_data"], "alias": "pinterest_keyword_report_data", "checksum": {"name": "sha256", "checksum": "51ad505e0c3419b86759141226d3a5cc8b18aa07d35cb0212c2fbfbfadb17a31"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "ad_account_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.914072, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_keyword_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_account_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "reddit_ads_account_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_account_report_data.csv", "original_file_path": "seeds/reddit_ads_account_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_account_report_data", "fqn": ["ad_reporting_integration_tests", "reddit_ads_account_report_data"], "alias": "reddit_ads_account_report_data", "checksum": {"name": "sha256", "checksum": "82b98a76c07069e7752621a8ce85c1a613bcbcbb4be084c7f3b6d25fbf10a6c6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"account_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.915456, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_account_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_line_item_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "twitter_line_item_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_line_item_report_data.csv", "original_file_path": "seeds/twitter_line_item_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_report_data", "fqn": ["ad_reporting_integration_tests", "twitter_line_item_report_data"], "alias": "twitter_line_item_report_data", "checksum": {"name": "sha256", "checksum": "4cef1efaf56e236366e68ccc814c5da3ddf3d2504ab3f156d5f4da1918c0bed6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.917682, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_line_item_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "microsoft_ads_keyword_performance_daily_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_keyword_performance_daily_report_data.csv", "original_file_path": "seeds/microsoft_ads_keyword_performance_daily_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_keyword_performance_daily_report_data"], "alias": "microsoft_ads_keyword_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "480b49ad514d8c5d9021bce2cfcef259a8ee3d9123b12314e1a63c670cc37688"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}}, "created_at": 1731951594.919578, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_keyword_performance_daily_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "amazon_ads_ad_group_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_ad_group_history_data.csv", "original_file_path": "seeds/amazon_ads_ad_group_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_ad_group_history_data"], "alias": "amazon_ads_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "45753ff9cf086544b805b76303478c515ead8870e4ad9ae3988de8cae6befdde"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.921076, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_ad_group_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "facebook_ads_ad_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "facebook_ads_ad_history_data.csv", "original_file_path": "seeds/facebook_ads_ad_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data", "fqn": ["ad_reporting_integration_tests", "facebook_ads_ad_history_data"], "alias": "facebook_ads_ad_history_data", "checksum": {"name": "sha256", "checksum": "95c960d78745b1652034ba4da5cc2a7d5b923e816a81c90360f1b28588b7befd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "int64", "account_id": "int64", "ad_set_id": "int64", "campaign_id": "int64", "creative_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_set_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "creative_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.9225368, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_ad_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_ad_conversions": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_conversions", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_ad_conversions.csv", "original_file_path": "seeds/reddit_ads_ad_conversions.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_conversions", "fqn": ["ad_reporting_integration_tests", "reddit_ads_ad_conversions"], "alias": "reddit_ads_ad_conversions", "checksum": {"name": "sha256", "checksum": "f8dc29b5b9935791c50d28c5e986c6a02a96e518997a32f49cf6eac4cdac1131"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.9239838, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_conversions`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "amazon_ads_campaign_level_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_campaign_level_report_data.csv", "original_file_path": "seeds/amazon_ads_campaign_level_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_campaign_level_report_data"], "alias": "amazon_ads_campaign_level_report_data", "checksum": {"name": "sha256", "checksum": "12c4efc842123e0085f28a11922eba7cb83bd04770a5657c839a8a7b048a9616"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float"}}, "created_at": 1731951594.925569, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_campaign_level_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_ad_group_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "pinterest_ad_group_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_ad_group_report_data.csv", "original_file_path": "seeds/pinterest_ad_group_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_ad_group_report_data", "fqn": ["ad_reporting_integration_tests", "pinterest_ad_group_report_data"], "alias": "pinterest_ad_group_report_data", "checksum": {"name": "sha256", "checksum": "ca2133d8c675b7b10abe2ba021f5dced5769f7469bc9ed910929ed564f9e33d3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "ad_account_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.927135, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_ad_group_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "apple_search_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_campaign_history_data.csv", "original_file_path": "seeds/apple_search_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "apple_search_campaign_history_data"], "alias": "apple_search_campaign_history_data", "checksum": {"name": "sha256", "checksum": "42cca2a87492b1c40a102fd9f9941a0894cdb254d7027a88dc9dedfeca1bb67c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"modification_time": "timestamp", "start_time": "timestamp", "end_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"modification_time": "timestamp", "start_time": "timestamp", "end_time": "timestamp"}}, "created_at": 1731951594.928514, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_campaign_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_campaign_conversions": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "reddit_ads_campaign_conversions", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_campaign_conversions.csv", "original_file_path": "seeds/reddit_ads_campaign_conversions.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_campaign_conversions", "fqn": ["ad_reporting_integration_tests", "reddit_ads_campaign_conversions"], "alias": "reddit_ads_campaign_conversions", "checksum": {"name": "sha256", "checksum": "ca700b6314c329f81da024b4c8c262a7c22a17ea3660ba8094c1686871ee5091"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.929806, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_campaign_conversions`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_account_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "twitter_account_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_account_report_data.csv", "original_file_path": "seeds/twitter_account_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_account_report_data", "fqn": ["ad_reporting_integration_tests", "twitter_account_report_data"], "alias": "twitter_account_report_data", "checksum": {"name": "sha256", "checksum": "d1364362cbe48a00e05e628fac71d48e151ee2c5394b44c6000765ea069fa154"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.931115, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_account_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_campaign_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "reddit_ads_campaign_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_campaign_data.csv", "original_file_path": "seeds/reddit_ads_campaign_data.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_campaign_data", "fqn": ["ad_reporting_integration_tests", "reddit_ads_campaign_data"], "alias": "reddit_ads_campaign_data", "checksum": {"name": "sha256", "checksum": "726c8b03bd81f57203df064ff66dd74bbdae559b8d7e1175c214ec06da819881"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.932555, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_campaign_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "linkedin_ad_creative_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "linkedin_ad_creative_history_data.csv", "original_file_path": "seeds/linkedin_ad_creative_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_creative_history_data"], "alias": "linkedin_ad_creative_history_data", "checksum": {"name": "sha256", "checksum": "1e269be7698aa1d56f1256a0a930bfd81147d43bcb993a8bc9bfd6f50010501b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp"}}, "created_at": 1731951594.9343412, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_creative_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "snapchat_ad_squad_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_ad_squad_history_data.csv", "original_file_path": "seeds/snapchat_ad_squad_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_squad_history_data"], "alias": "snapchat_ad_squad_history_data", "checksum": {"name": "sha256", "checksum": "0e83ca691f2153480e7b63173f1c7ed8c38c0dc247d41a6f2fd46afc1e5963b1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.935848, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_ad_squad_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_campaign_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "twitter_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_campaign_history_data.csv", "original_file_path": "seeds/twitter_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "twitter_campaign_history_data"], "alias": "twitter_campaign_history_data", "checksum": {"name": "sha256", "checksum": "3d5c2b36e3c3bbbefb4a60469db1471ae01fe82c65d167bd062fb947d617b247"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.937113, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_campaign_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "apple_search_ad_group_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_ad_group_history_data.csv", "original_file_path": "seeds/apple_search_ad_group_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data", "fqn": ["ad_reporting_integration_tests", "apple_search_ad_group_history_data"], "alias": "apple_search_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "6940c04c90cc94b46d8a36bf1b3701cbd64d75b298222e26819aaf6460ddf984"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"modification_time": "timestamp", "start_time": "timestamp", "end_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"modification_time": "timestamp", "start_time": "timestamp", "end_time": "timestamp"}}, "created_at": 1731951594.938546, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_ad_group_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_action_values_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "facebook_ads_basic_ad_action_values_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "facebook_ads_basic_ad_action_values_data.csv", "original_file_path": "seeds/facebook_ads_basic_ad_action_values_data.csv", "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_action_values_data", "fqn": ["ad_reporting_integration_tests", "facebook_ads_basic_ad_action_values_data"], "alias": "facebook_ads_basic_ad_action_values_data", "checksum": {"name": "sha256", "checksum": "77e70b5d122d72d83aa7bfa30799d4164dadcbbed0d2e514c55afacb1a968aa4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.939872, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_basic_ad_action_values_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "linkedin_ad_campaign_group_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "linkedin_ad_campaign_group_history_data.csv", "original_file_path": "seeds/linkedin_ad_campaign_group_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_campaign_group_history_data"], "alias": "linkedin_ad_campaign_group_history_data", "checksum": {"name": "sha256", "checksum": "48aeff219340dccafbdb2de6c0086e94cca22a741c15ad8ce23f1e207fa15fd2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "account_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.941192, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_campaign_group_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_advertiser_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "pinterest_advertiser_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_advertiser_report_data.csv", "original_file_path": "seeds/pinterest_advertiser_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_advertiser_report_data", "fqn": ["ad_reporting_integration_tests", "pinterest_advertiser_report_data"], "alias": "pinterest_advertiser_report_data", "checksum": {"name": "sha256", "checksum": "a99af28ad8c13e82c3a8693cdf7dbda30af34de7c8ddaabe887e0944c22776fa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "ad_account_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.942802, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_advertiser_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "amazon_ads_product_ad_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_product_ad_history_data.csv", "original_file_path": "seeds/amazon_ads_product_ad_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_product_ad_history_data"], "alias": "amazon_ads_product_ad_history_data", "checksum": {"name": "sha256", "checksum": "7efed04b5599f1f2a4e8db33b56eb1f43c6ed27a77a504c7f8b7d628aac37749"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.9447, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_product_ad_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "google_ads_campaign_stats_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_campaign_stats_data.csv", "original_file_path": "seeds/google_ads_campaign_stats_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data", "fqn": ["ad_reporting_integration_tests", "google_ads_campaign_stats_data"], "alias": "google_ads_campaign_stats_data", "checksum": {"name": "sha256", "checksum": "f8ffb40c33a31cdd4185ed5e956cfdaff9736054806ef3f9da5cf6f036ef7d0d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"customer_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_criterion_criterion_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_adgroup_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.946113, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_campaign_stats_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_ad_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_ad_data.csv", "original_file_path": "seeds/reddit_ads_ad_data.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_data", "fqn": ["ad_reporting_integration_tests", "reddit_ads_ad_data"], "alias": "reddit_ads_ad_data", "checksum": {"name": "sha256", "checksum": "3c60814303d77bfb7b387e026b59ea6f6db7ae316bcb3a8c5b84b50e706d9d59"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.9477592, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "microsoft_ads_account_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_account_history_data.csv", "original_file_path": "seeds/microsoft_ads_account_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_account_history_data"], "alias": "microsoft_ads_account_history_data", "checksum": {"name": "sha256", "checksum": "282800342d5306132bdc208ee361599831ae8566b4639cd5c3bea492062e4b78"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"name": "string"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"name": "{{ 'string' if target.type in ['bigquery','spark', 'databricks'] else 'varchar' }}"}}, "created_at": 1731951594.9492018, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_account_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "microsoft_ads_account_performance_daily_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_account_performance_daily_report_data.csv", "original_file_path": "seeds/microsoft_ads_account_performance_daily_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_account_performance_daily_report_data"], "alias": "microsoft_ads_account_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "407268e863d1ec81e7450ec40910c1be3f6c3e898b3c5878f407f26b55429240"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}}, "created_at": 1731951594.950588, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_account_performance_daily_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_ad_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "tiktok_ad_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "tiktok_ad_history_data.csv", "original_file_path": "seeds/tiktok_ad_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_history_data", "fqn": ["ad_reporting_integration_tests", "tiktok_ad_history_data"], "alias": "tiktok_ad_history_data", "checksum": {"name": "sha256", "checksum": "a5977d1a4315d2bffbdb7be9c73345ce724324c20407af4cab3afae24f0fca34"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.951982, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`tiktok_ad_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "amazon_ads_advertised_product_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_advertised_product_report_data.csv", "original_file_path": "seeds/amazon_ads_advertised_product_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_advertised_product_report_data"], "alias": "amazon_ads_advertised_product_report_data", "checksum": {"name": "sha256", "checksum": "009fa251b9195cc87bbb5e05587165c4121ba87433d392792a42f8d11fe992b5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float"}}, "created_at": 1731951594.953662, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_advertised_product_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "facebook_ads_creative_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "facebook_ads_creative_history_data.csv", "original_file_path": "seeds/facebook_ads_creative_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data", "fqn": ["ad_reporting_integration_tests", "facebook_ads_creative_history_data"], "alias": "facebook_ads_creative_history_data", "checksum": {"name": "path", "checksum": "seeds/facebook_ads_creative_history_data.csv"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"page_link": "string", "template_page_link": "string", "id": "int64", "account_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"page_link": "{{ 'string' if target.type in ['bigquery','spark', 'databricks'] else 'varchar' }}", "template_page_link": "{{ 'string' if target.type in ['bigquery','spark', 'databricks'] else 'varchar' }}", "id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.955148, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_creative_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "tiktok_adgroup_report_hourly_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "tiktok_adgroup_report_hourly_data.csv", "original_file_path": "seeds/tiktok_adgroup_report_hourly_data.csv", "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data", "fqn": ["ad_reporting_integration_tests", "tiktok_adgroup_report_hourly_data"], "alias": "tiktok_adgroup_report_hourly_data", "checksum": {"name": "sha256", "checksum": "9e9f4b9de90d7e273bda99da9cbc4a50f2d6a3f5a5d127060a9752ba726b5c2f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.956685, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`tiktok_adgroup_report_hourly_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "twitter_promoted_tweet_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_promoted_tweet_history_data.csv", "original_file_path": "seeds/twitter_promoted_tweet_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data", "fqn": ["ad_reporting_integration_tests", "twitter_promoted_tweet_history_data"], "alias": "twitter_promoted_tweet_history_data", "checksum": {"name": "sha256", "checksum": "ec5e3be3c75b17b07893e9e7c21a4e0b8d5a820a73d3306fd94ec59935714690"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"tweet_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"tweet_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.958122, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_promoted_tweet_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_ad_group_conversions": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_group_conversions", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_ad_group_conversions.csv", "original_file_path": "seeds/reddit_ads_ad_group_conversions.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_group_conversions", "fqn": ["ad_reporting_integration_tests", "reddit_ads_ad_group_conversions"], "alias": "reddit_ads_ad_group_conversions", "checksum": {"name": "sha256", "checksum": "4289f878ef2942b8ddba332bc3b8a830dc22af6f0fa480fbedb78ec7f9549ac3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.959444, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_group_conversions`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "amazon_ads_search_term_ad_keyword_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_search_term_ad_keyword_report_data.csv", "original_file_path": "seeds/amazon_ads_search_term_ad_keyword_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_search_term_ad_keyword_report_data"], "alias": "amazon_ads_search_term_ad_keyword_report_data", "checksum": {"name": "sha256", "checksum": "72e0151237f3fc67bea3d517f7ef50c94ce494d2c0017fced4e1287623639722"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "keyword_bid": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "keyword_bid": "float"}}, "created_at": 1731951594.960771, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_search_term_ad_keyword_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_organization_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "apple_search_organization_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_organization_data.csv", "original_file_path": "seeds/apple_search_organization_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_organization_data", "fqn": ["ad_reporting_integration_tests", "apple_search_organization_data"], "alias": "apple_search_organization_data", "checksum": {"name": "sha256", "checksum": "bbb5878ab9c07bd1f391181a8321ea50476f37d25f36fd1d66e58d513336699c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.962071, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_organization_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_campaign_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "tiktok_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "tiktok_campaign_history_data.csv", "original_file_path": "seeds/tiktok_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "tiktok_campaign_history_data"], "alias": "tiktok_campaign_history_data", "checksum": {"name": "sha256", "checksum": "a5977d1a4315d2bffbdb7be9c73345ce724324c20407af4cab3afae24f0fca34"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.963773, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`tiktok_campaign_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_advertiser_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "tiktok_advertiser_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "tiktok_advertiser_data.csv", "original_file_path": "seeds/tiktok_advertiser_data.csv", "unique_id": "seed.ad_reporting_integration_tests.tiktok_advertiser_data", "fqn": ["ad_reporting_integration_tests", "tiktok_advertiser_data"], "alias": "tiktok_advertiser_data", "checksum": {"name": "sha256", "checksum": "d85541c61ba67dc5ec46124b93d9484b43554ca4aa6e7582e52cbdb04fd5287b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.965225, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`tiktok_advertiser_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "twitter_promoted_tweet_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_promoted_tweet_report_data.csv", "original_file_path": "seeds/twitter_promoted_tweet_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data", "fqn": ["ad_reporting_integration_tests", "twitter_promoted_tweet_report_data"], "alias": "twitter_promoted_tweet_report_data", "checksum": {"name": "sha256", "checksum": "481c6351831987ef3e159d6ae4f98a7f8d9a231125e99178fd01d1fbc906f0e5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.966561, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_promoted_tweet_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "google_ads_ad_group_stats_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_ad_group_stats_data.csv", "original_file_path": "seeds/google_ads_ad_group_stats_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_group_stats_data"], "alias": "google_ads_ad_group_stats_data", "checksum": {"name": "sha256", "checksum": "d3ac6d88466ebf8fca7753e60be01dfa615a8e9b654da4d91fab8ee59c6c7cf0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"customer_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_criterion_criterion_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_adgroup_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.968402, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_ad_group_stats_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_ad_stats_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "google_ads_ad_stats_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_ad_stats_data.csv", "original_file_path": "seeds/google_ads_ad_stats_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_stats_data", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_stats_data"], "alias": "google_ads_ad_stats_data", "checksum": {"name": "sha256", "checksum": "417738f961255266f49a15548d2e7b278713c32c28c766b10b9d038613cf35fb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"customer_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_criterion_criterion_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_adgroup_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.970011, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_ad_stats_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_campaign_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "twitter_campaign_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_campaign_report_data.csv", "original_file_path": "seeds/twitter_campaign_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_report_data", "fqn": ["ad_reporting_integration_tests", "twitter_campaign_report_data"], "alias": "twitter_campaign_report_data", "checksum": {"name": "sha256", "checksum": "bb3bdaea68e1bc903cb5b3a3e507926b43009e0f52ec2f867a97e7276cef81bb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.9714181, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_campaign_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_account_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "google_ads_account_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_account_history_data.csv", "original_file_path": "seeds/google_ads_account_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_history_data", "fqn": ["ad_reporting_integration_tests", "google_ads_account_history_data"], "alias": "google_ads_account_history_data", "checksum": {"name": "sha256", "checksum": "bf0559a512f089514aa67964b7ae5aef0fee8deb6e0874c01e853ed78dd7883d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.9727738, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_account_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_profile_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "amazon_ads_profile_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_profile_data.csv", "original_file_path": "seeds/amazon_ads_profile_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_profile_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_profile_data"], "alias": "amazon_ads_profile_data", "checksum": {"name": "sha256", "checksum": "bf98315483844e348320dc4d774059cb5229ef48b495aebace17dd04520d160b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.974273, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_profile_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "facebook_ads_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "facebook_ads_campaign_history_data.csv", "original_file_path": "seeds/facebook_ads_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "facebook_ads_campaign_history_data"], "alias": "facebook_ads_campaign_history_data", "checksum": {"name": "sha256", "checksum": "1dfd8244efe7c32be5fb93c8417575d79670225092a28cab9da03d0ad7773432"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "int64", "account_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.97572, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_campaign_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_campaign_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "pinterest_campaign_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_campaign_report_data.csv", "original_file_path": "seeds/pinterest_campaign_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_campaign_report_data", "fqn": ["ad_reporting_integration_tests", "pinterest_campaign_report_data"], "alias": "pinterest_campaign_report_data", "checksum": {"name": "sha256", "checksum": "047f3d50be337f92c4385d27515012017b627cdf9834cecf020fa0b29ce2935d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "ad_account_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.9773068, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_campaign_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "microsoft_ads_keyword_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_keyword_history_data.csv", "original_file_path": "seeds/microsoft_ads_keyword_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_keyword_history_data"], "alias": "microsoft_ads_keyword_history_data", "checksum": {"name": "sha256", "checksum": "e736b54737adad8174d44a89eab9a6b720326744bff802fda870f585c86e7511"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}}, "created_at": 1731951594.978806, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_keyword_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_tweet_url_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "twitter_tweet_url_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_tweet_url_data.csv", "original_file_path": "seeds/twitter_tweet_url_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_url_data", "fqn": ["ad_reporting_integration_tests", "twitter_tweet_url_data"], "alias": "twitter_tweet_url_data", "checksum": {"name": "sha256", "checksum": "b8d1d342fc9dbfa624f40d04facabf144039ecdb099b6a8d6b4232c980b80896"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"tweet_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"tweet_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.980185, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_tweet_url_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_keyword_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "apple_search_keyword_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_keyword_history_data.csv", "original_file_path": "seeds/apple_search_keyword_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_history_data", "fqn": ["ad_reporting_integration_tests", "apple_search_keyword_history_data"], "alias": "apple_search_keyword_history_data", "checksum": {"name": "sha256", "checksum": "a6d53cd4951594b21214e60bf51503907ee364eac04c7d24a19dc490cc7d818c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"modification_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"modification_time": "timestamp"}}, "created_at": 1731951594.9815109, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_keyword_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_ad_group_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_group_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_ad_group_data.csv", "original_file_path": "seeds/reddit_ads_ad_group_data.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_group_data", "fqn": ["ad_reporting_integration_tests", "reddit_ads_ad_group_data"], "alias": "reddit_ads_ad_group_data", "checksum": {"name": "sha256", "checksum": "854e1b14702e4e7d1d455e8d47bb6356e3970c7baac2b1a2e1aafbb129233a62"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "INT64", "campaign_id": "INT64", "ad_id": "INT64", "ad_group_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.983003, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_group_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_pin_promotion_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "pinterest_pin_promotion_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_pin_promotion_history_data.csv", "original_file_path": "seeds/pinterest_pin_promotion_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_pin_promotion_history_data", "fqn": ["ad_reporting_integration_tests", "pinterest_pin_promotion_history_data"], "alias": "pinterest_pin_promotion_history_data", "checksum": {"name": "sha256", "checksum": "ac9ca6b81cebffa2e22e24f03afe41f6e31dd683b1532df5a40fcb7700a2d854"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "ad_account_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.984797, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_pin_promotion_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_campaign_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "pinterest_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_campaign_history_data.csv", "original_file_path": "seeds/pinterest_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "pinterest_campaign_history_data"], "alias": "pinterest_campaign_history_data", "checksum": {"name": "sha256", "checksum": "6ffcb6b6cd42022cfd0189ef3d54920158b7b45db1dffdf47463731ad14c4ec0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "ad_account_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.9862459, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_campaign_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "microsoft_ads_search_performance_daily_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_search_performance_daily_report_data.csv", "original_file_path": "seeds/microsoft_ads_search_performance_daily_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_search_performance_daily_report_data"], "alias": "microsoft_ads_search_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "cfca4231aed334aed35468aa7062db63e1c93cf514a26311ab1dd4b68991c32c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}}, "created_at": 1731951594.98773, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_search_performance_daily_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_campaign_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "google_ads_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_campaign_history_data.csv", "original_file_path": "seeds/google_ads_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "google_ads_campaign_history_data"], "alias": "google_ads_campaign_history_data", "checksum": {"name": "sha256", "checksum": "54db8f4f5a51eae1af9391b9b74c4b847485e82c382a25ebc1b4a727640825e5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"customer_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_criterion_criterion_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_adgroup_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.989217, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_campaign_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "linkedin_ad_analytics_by_creative_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "linkedin_ad_analytics_by_creative_data.csv", "original_file_path": "seeds/linkedin_ad_analytics_by_creative_data.csv", "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_analytics_by_creative_data"], "alias": "linkedin_ad_analytics_by_creative_data", "checksum": {"name": "sha256", "checksum": "b5958b032b3396d36be3b8e4e7664029927e507034d9a7e5f2e7045e8366cc24"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"day": "timestamp", "external_website_conversions": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"day": "timestamp", "external_website_conversions": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.9906209, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_analytics_by_creative_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_ad_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "snapchat_ad_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_ad_history_data.csv", "original_file_path": "seeds/snapchat_ad_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_history_data", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_history_data"], "alias": "snapchat_ad_history_data", "checksum": {"name": "sha256", "checksum": "839c0910ff6ff3cff2580bd9144223132dd1d87f003aeea329e47ba858a2dc23"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.992778, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_ad_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_account_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "facebook_ads_account_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "facebook_ads_account_history_data.csv", "original_file_path": "seeds/facebook_ads_account_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_account_history_data", "fqn": ["ad_reporting_integration_tests", "facebook_ads_account_history_data"], "alias": "facebook_ads_account_history_data", "checksum": {"name": "sha256", "checksum": "92f318955a317f351b928ce94de43eae07f29dc3cadbd0f1a26e62fdba1dc4b1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "int64", "name": "string"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "name": "{{ 'string' if target.type in ['bigquery','spark', 'databricks'] else 'varchar' }}"}}, "created_at": 1731951594.9947898, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_account_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_campaign_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "apple_search_campaign_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_campaign_report_data.csv", "original_file_path": "seeds/apple_search_campaign_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_report_data", "fqn": ["ad_reporting_integration_tests", "apple_search_campaign_report_data"], "alias": "apple_search_campaign_report_data", "checksum": {"name": "sha256", "checksum": "a4a374475156eb8d9ddc40c43cadbcc843efcf7a55180346d2d4b875c2791ab1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951594.996314, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_campaign_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "google_ads_ad_group_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_ad_group_history_data.csv", "original_file_path": "seeds/google_ads_ad_group_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_group_history_data"], "alias": "google_ads_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "82518353626bed4214f1dea514b77c97c96da2e4c7253734c3268e55111e67ce"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"customer_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_criterion_criterion_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_adgroup_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.997691, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_ad_group_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_ad_group_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "pinterest_ad_group_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_ad_group_history_data.csv", "original_file_path": "seeds/pinterest_ad_group_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_ad_group_history_data", "fqn": ["ad_reporting_integration_tests", "pinterest_ad_group_history_data"], "alias": "pinterest_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "1dd6628bd824b4b3626bff8bd0a8f7c5eadfbadfa0319f24e2dffa7f16ca9d0c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "ad_account_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951594.999276, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_ad_group_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_campaign_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "snapchat_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_campaign_history_data.csv", "original_file_path": "seeds/snapchat_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "snapchat_campaign_history_data"], "alias": "snapchat_campaign_history_data", "checksum": {"name": "sha256", "checksum": "640eb2ec082938ad70c430a6b3441711f6fed19eb6e28d7622f03294e92e5b70"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.000628, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_campaign_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_keyword_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "pinterest_keyword_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_keyword_history_data.csv", "original_file_path": "seeds/pinterest_keyword_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_keyword_history_data", "fqn": ["ad_reporting_integration_tests", "pinterest_keyword_history_data"], "alias": "pinterest_keyword_history_data", "checksum": {"name": "sha256", "checksum": "c2bee861548c505642cb588c90a9e97ce95b77d8246448031bb9225bc5e2db84"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "ad_account_id": "int64", "advertiser_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951595.0020092, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_keyword_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "facebook_ads_basic_ad_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "facebook_ads_basic_ad_data.csv", "original_file_path": "seeds/facebook_ads_basic_ad_data.csv", "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data", "fqn": ["ad_reporting_integration_tests", "facebook_ads_basic_ad_data"], "alias": "facebook_ads_basic_ad_data", "checksum": {"name": "sha256", "checksum": "66b31e24edd0ba75d3fee6ad4c1522fd9b43417943aac398f1c92f5076ba7ac0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"ad_id": "int64", "account_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"ad_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951595.003466, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_basic_ad_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "tiktok_ad_report_hourly_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "tiktok_ad_report_hourly_data.csv", "original_file_path": "seeds/tiktok_ad_report_hourly_data.csv", "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data", "fqn": ["ad_reporting_integration_tests", "tiktok_ad_report_hourly_data"], "alias": "tiktok_ad_report_hourly_data", "checksum": {"name": "sha256", "checksum": "9b3d7ee7492caed77e6bceb93384649b6221ff0d6cd4c582dcbc2e60e690cda8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.00488, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`tiktok_ad_report_hourly_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "microsoft_ads_ad_group_performance_daily_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_ad_group_performance_daily_report_data.csv", "original_file_path": "seeds/microsoft_ads_ad_group_performance_daily_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_ad_group_performance_daily_report_data"], "alias": "microsoft_ads_ad_group_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "d61e016b59c5195471adaeb79fccfad355d611af16f7f301f4754dc14d4e7aad"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}}, "created_at": 1731951595.0063229, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_ad_group_performance_daily_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_search_term_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "apple_search_search_term_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_search_term_report_data.csv", "original_file_path": "seeds/apple_search_search_term_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_search_term_report_data", "fqn": ["ad_reporting_integration_tests", "apple_search_search_term_report_data"], "alias": "apple_search_search_term_report_data", "checksum": {"name": "sha256", "checksum": "6add75b68a0f9a6f153a9fb83a682387a76a5b89d6dcd14fdbbcb5b418bb3b5a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.007679, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_search_term_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_account_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "reddit_ads_account_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_account_data.csv", "original_file_path": "seeds/reddit_ads_account_data.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_account_data", "fqn": ["ad_reporting_integration_tests", "reddit_ads_account_data"], "alias": "reddit_ads_account_data", "checksum": {"name": "sha256", "checksum": "4d672f0080db8e51bd896c8fe9a56a0f2e6cb4fe175ae3a55713449532cd6a67"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951595.0089998, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_account_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "snapchat_ad_squad_hourly_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_ad_squad_hourly_report_data.csv", "original_file_path": "seeds/snapchat_ad_squad_hourly_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_squad_hourly_report_data"], "alias": "snapchat_ad_squad_hourly_report_data", "checksum": {"name": "sha256", "checksum": "4bcd58c89168843edd94874f95222804c28b5b3571d66dbb194a498a0f8f85b7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.010356, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_ad_squad_hourly_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_ad_group_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_group_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_ad_group_report_data.csv", "original_file_path": "seeds/reddit_ads_ad_group_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_group_report_data", "fqn": ["ad_reporting_integration_tests", "reddit_ads_ad_group_report_data"], "alias": "reddit_ads_ad_group_report_data", "checksum": {"name": "sha256", "checksum": "18a4e6c21b4b4c6248b681cc49bad5d0d12171a2d0a699ca99af864737d40817"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"account_id": "INT64", "ad_group_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951595.011759, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_group_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "linkedin_ad_account_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "linkedin_ad_account_history_data.csv", "original_file_path": "seeds/linkedin_ad_account_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_account_history_data"], "alias": "linkedin_ad_account_history_data", "checksum": {"name": "sha256", "checksum": "f57fbb5e5a881a56457ed9b37150ec111e83e2e43deff5cc82891125ef61bc1d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp"}}, "created_at": 1731951595.01313, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_account_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_account_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "twitter_account_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_account_history_data.csv", "original_file_path": "seeds/twitter_account_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_account_history_data", "fqn": ["ad_reporting_integration_tests", "twitter_account_history_data"], "alias": "twitter_account_history_data", "checksum": {"name": "sha256", "checksum": "e880da5ea30536301dbb19627aa818f454eceae2b8bd10e40cada659e4585d64"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"name": "string"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"name": "{{ 'string' if target.type in ['bigquery','spark', 'databricks'] else 'varchar' }}"}}, "created_at": 1731951595.0151381, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_account_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_creative_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "snapchat_creative_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_creative_history_data.csv", "original_file_path": "seeds/snapchat_creative_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_history_data", "fqn": ["ad_reporting_integration_tests", "snapchat_creative_history_data"], "alias": "snapchat_creative_history_data", "checksum": {"name": "sha256", "checksum": "40505e1e47b59c850371007584560a03172120f078da2c81c6712aea77d868a8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.0165288, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_creative_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "linkedin_ad_analytics_by_campaign_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "linkedin_ad_analytics_by_campaign_data.csv", "original_file_path": "seeds/linkedin_ad_analytics_by_campaign_data.csv", "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_analytics_by_campaign_data"], "alias": "linkedin_ad_analytics_by_campaign_data", "checksum": {"name": "sha256", "checksum": "a6b72fcf11043561ec04bae0035659363e992cd11f8ed5376f056b7f4e5b5b32"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"day": "timestamp", "external_website_conversions": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"day": "timestamp", "external_website_conversions": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951595.017848, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_analytics_by_campaign_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_ad_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "google_ads_ad_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_ad_history_data.csv", "original_file_path": "seeds/google_ads_ad_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_history_data", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_history_data"], "alias": "google_ads_ad_history_data", "checksum": {"name": "sha256", "checksum": "d75e5e99b2a5e2c3cecf248666c708c739a75cdee2cd66068fc893d9fe7ad635"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"customer_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_criterion_criterion_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_adgroup_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951595.019298, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_ad_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "facebook_ads_ad_set_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "facebook_ads_ad_set_history_data.csv", "original_file_path": "seeds/facebook_ads_ad_set_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data", "fqn": ["ad_reporting_integration_tests", "facebook_ads_ad_set_history_data"], "alias": "facebook_ads_ad_set_history_data", "checksum": {"name": "sha256", "checksum": "da4e6b48f3feaa4bd2c3783b125909a14c5317b3c1484b4f6af5d7c1d88f5bd7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "int64", "account_id": "int64", "campaign_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951595.020681, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_ad_set_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_keyword_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "apple_search_keyword_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_keyword_report_data.csv", "original_file_path": "seeds/apple_search_keyword_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_report_data", "fqn": ["ad_reporting_integration_tests", "apple_search_keyword_report_data"], "alias": "apple_search_keyword_report_data", "checksum": {"name": "sha256", "checksum": "6aafe7098ea6f18764856a6631b190de106462f83f8bb1d3c8fb91e2d3cfffee"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.021991, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_keyword_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "snapchat_ad_hourly_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_ad_hourly_report_data.csv", "original_file_path": "seeds/snapchat_ad_hourly_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_hourly_report_data"], "alias": "snapchat_ad_hourly_report_data", "checksum": {"name": "sha256", "checksum": "44942448ec2f5fdab1d102948af6724bc9d10970c6d760cd5b9eb778a16aa12b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"date": "timestamp"}}, "created_at": 1731951595.023298, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_ad_hourly_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "amazon_ads_targeting_keyword_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_targeting_keyword_report_data.csv", "original_file_path": "seeds/amazon_ads_targeting_keyword_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_targeting_keyword_report_data"], "alias": "amazon_ads_targeting_keyword_report_data", "checksum": {"name": "sha256", "checksum": "465149df01ea42da88e6faab29bc91faaed75d50c2e04cece5c7a4a442e31994"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float", "keyword_bid": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float", "keyword_bid": "float"}}, "created_at": 1731951595.025502, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_targeting_keyword_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "microsoft_ads_ad_performance_daily_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_ad_performance_daily_report_data.csv", "original_file_path": "seeds/microsoft_ads_ad_performance_daily_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_ad_performance_daily_report_data"], "alias": "microsoft_ads_ad_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "2604c0155fbc98a0fba96b1c3805547be469d6b740f9f9b0763bdc55b7b01443"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951595.026947, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_ad_performance_daily_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_tweet_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "twitter_tweet_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_tweet_data.csv", "original_file_path": "seeds/twitter_tweet_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_data", "fqn": ["ad_reporting_integration_tests", "twitter_tweet_data"], "alias": "twitter_tweet_data", "checksum": {"name": "sha256", "checksum": "7e28de3484a806b3428f4898e035364e2a282ef5819cfe895f8c94f6455e726f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.028244, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_tweet_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "snapchat_campaign_hourly_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_campaign_hourly_report_data.csv", "original_file_path": "seeds/snapchat_campaign_hourly_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data", "fqn": ["ad_reporting_integration_tests", "snapchat_campaign_hourly_report_data"], "alias": "snapchat_campaign_hourly_report_data", "checksum": {"name": "sha256", "checksum": "90145700bcd091f7cfe9fa88155e2473a36b674778ec51ed934c6876ec23e91f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.029504, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_campaign_hourly_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "microsoft_ads_ad_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_ad_history_data.csv", "original_file_path": "seeds/microsoft_ads_ad_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_ad_history_data"], "alias": "microsoft_ads_ad_history_data", "checksum": {"name": "sha256", "checksum": "68d19aa9efd8111d82af64fb5ceadb9d124fe1f2d1ec9d87fb6a87e96b4e6eba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}}, "created_at": 1731951595.0308568, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_ad_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_actions_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "facebook_ads_basic_ad_actions_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "facebook_ads_basic_ad_actions_data.csv", "original_file_path": "seeds/facebook_ads_basic_ad_actions_data.csv", "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_actions_data", "fqn": ["ad_reporting_integration_tests", "facebook_ads_basic_ad_actions_data"], "alias": "facebook_ads_basic_ad_actions_data", "checksum": {"name": "sha256", "checksum": "ed0977ee47305aeb99778125280a699f5a7f0d6d36f7f115ff53c737b6c929ca"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"value": "float", "inline": "float", "_1_d_view": "float", "_7_d_click": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"value": "float", "inline": "float", "_1_d_view": "float", "_7_d_click": "float"}}, "created_at": 1731951595.032293, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_basic_ad_actions_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "twitter_line_item_keywords_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_line_item_keywords_report_data.csv", "original_file_path": "seeds/twitter_line_item_keywords_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data", "fqn": ["ad_reporting_integration_tests", "twitter_line_item_keywords_report_data"], "alias": "twitter_line_item_keywords_report_data", "checksum": {"name": "sha256", "checksum": "80107d8a67ce63a986c2e1a4d7af8d1e6572053a11e20e7df98f5d42e0da690e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.033911, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_line_item_keywords_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "snapchat_ad_account_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_ad_account_history_data.csv", "original_file_path": "seeds/snapchat_ad_account_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_account_history_data"], "alias": "snapchat_ad_account_history_data", "checksum": {"name": "sha256", "checksum": "0e1f3a58ee6a4863bb59fbd30c286606f0de77040fbb2903ab312e5d248454cb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.035559, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_ad_account_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "microsoft_ads_campaign_performance_daily_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_campaign_performance_daily_report_data.csv", "original_file_path": "seeds/microsoft_ads_campaign_performance_daily_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_campaign_performance_daily_report_data"], "alias": "microsoft_ads_campaign_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "d8dd92f23ecc97f6845e6b06977edfa44f0cc2a255aec5849b19449b6f294b57"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "INT64", "account_id": "INT64", "campaign_id": "INT64", "ad_group_id": "INT64", "ad_id": "INT64", "keyword_id": "INT64", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}}, "created_at": 1731951595.03697, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_campaign_performance_daily_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "google_ads_ad_group_criterion_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_ad_group_criterion_history_data.csv", "original_file_path": "seeds/google_ads_ad_group_criterion_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_group_criterion_history_data"], "alias": "google_ads_ad_group_criterion_history_data", "checksum": {"name": "sha256", "checksum": "ba922f14e5ead32ec131a2d000bede63d45f504b6c27fc84534b4bf56fc019f2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "INT64", "ad_id": "INT64", "campaign_id": "INT64", "id": "INT64", "base_campaign_id": "INT64", "base_ad_group_id": "INT64", "ad_group_id": "INT64", "ad_group_criterion_criterion_id": "INT64", "base_adgroup_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"customer_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_criterion_criterion_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_adgroup_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951595.038623, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_ad_group_criterion_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "amazon_ads_portfolio_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_portfolio_history_data.csv", "original_file_path": "seeds/amazon_ads_portfolio_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_portfolio_history_data"], "alias": "amazon_ads_portfolio_history_data", "checksum": {"name": "sha256", "checksum": "f35ce3ea8cd6309e50535134b9375861995eb6cda4e215efc0b170cae03a3eee"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.04017, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_portfolio_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_ad_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "apple_search_ad_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_ad_report_data.csv", "original_file_path": "seeds/apple_search_ad_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_report_data", "fqn": ["ad_reporting_integration_tests", "apple_search_ad_report_data"], "alias": "apple_search_ad_report_data", "checksum": {"name": "sha256", "checksum": "cec2ecc4c7e91cf19165a1e29734c42255fd997ade35f03a22609aac5fa8e5f3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.041444, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_ad_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "amazon_ads_keyword_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_keyword_history_data.csv", "original_file_path": "seeds/amazon_ads_keyword_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_keyword_history_data"], "alias": "amazon_ads_keyword_history_data", "checksum": {"name": "sha256", "checksum": "a76f88aeb6ebf78cec10fe06d07479eace29a79b9afa52b3278e32f65964dc33"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.0426922, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_keyword_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_campaign_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "reddit_ads_campaign_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_campaign_report_data.csv", "original_file_path": "seeds/reddit_ads_campaign_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_campaign_report_data", "fqn": ["ad_reporting_integration_tests", "reddit_ads_campaign_report_data"], "alias": "reddit_ads_campaign_report_data", "checksum": {"name": "sha256", "checksum": "73d181faba6c8451dcb1b7cc04f028642990fd68fbd13c2e84f952f0fa1b424e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"account_id": "INT64", "campaign_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951595.0442219, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_campaign_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_account_stats_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "google_ads_account_stats_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_account_stats_data.csv", "original_file_path": "seeds/google_ads_account_stats_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_stats_data", "fqn": ["ad_reporting_integration_tests", "google_ads_account_stats_data"], "alias": "google_ads_account_stats_data", "checksum": {"name": "sha256", "checksum": "d6b21f0858465ed0937e45a56e864fa023280d4e9a343e3e8442764386717ff7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.045912, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_account_stats_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_advertiser_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "pinterest_advertiser_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_advertiser_history_data.csv", "original_file_path": "seeds/pinterest_advertiser_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_advertiser_history_data", "fqn": ["ad_reporting_integration_tests", "pinterest_advertiser_history_data"], "alias": "pinterest_advertiser_history_data", "checksum": {"name": "sha256", "checksum": "d301cef7c69c7e1571a0df75ddbd36147977d804380dbbb528a8db432c9e7e5b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "ad_account_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951595.047275, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_advertiser_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "snapchat_creative_url_tag_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_creative_url_tag_history_data.csv", "original_file_path": "seeds/snapchat_creative_url_tag_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data", "fqn": ["ad_reporting_integration_tests", "snapchat_creative_url_tag_history_data"], "alias": "snapchat_creative_url_tag_history_data", "checksum": {"name": "sha256", "checksum": "c5e8dbafad038e142209d2145532d5d5e762922bf4fe44535901b46cd9797dcc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.0485811, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_creative_url_tag_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "tiktok_campaign_report_hourly_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "tiktok_campaign_report_hourly_data.csv", "original_file_path": "seeds/tiktok_campaign_report_hourly_data.csv", "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data", "fqn": ["ad_reporting_integration_tests", "tiktok_campaign_report_hourly_data"], "alias": "tiktok_campaign_report_hourly_data", "checksum": {"name": "sha256", "checksum": "baf505833c34b186203e988860c5a68c06d3a8d45379b10136bb3d08cec107bc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.049827, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`tiktok_campaign_report_hourly_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "microsoft_ads_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_campaign_history_data.csv", "original_file_path": "seeds/microsoft_ads_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_campaign_history_data"], "alias": "microsoft_ads_campaign_history_data", "checksum": {"name": "sha256", "checksum": "b713e54ffdbc25d2260c83c5a17eb48d98bde788bcdb5b62defa9cca936cb552"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.0511549, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_campaign_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_ad_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "reddit_ads_ad_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_ad_report_data.csv", "original_file_path": "seeds/reddit_ads_ad_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_report_data", "fqn": ["ad_reporting_integration_tests", "reddit_ads_ad_report_data"], "alias": "reddit_ads_ad_report_data", "checksum": {"name": "sha256", "checksum": "14c3bf5b4e2b66f5971ba77839d88bdabbef2a61b57a373335303973d27d5d33"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"ad_id": "INT64", "account_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951595.052444, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_pin_promotion_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "pinterest_pin_promotion_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_pin_promotion_report_data.csv", "original_file_path": "seeds/pinterest_pin_promotion_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_pin_promotion_report_data", "fqn": ["ad_reporting_integration_tests", "pinterest_pin_promotion_report_data"], "alias": "pinterest_pin_promotion_report_data", "checksum": {"name": "sha256", "checksum": "d38f800761cda64662a51255e2c98a4c0dffa9ace704960d44d666aead38cdf1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "int64", "campaign_id": "int64", "ad_group_id": "int64", "pin_id": "int64", "advertiser_id": "int64", "ad_account_id": "int64", "pin_promotion_id": "int64", "keyword_id": "int64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951595.05408, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_pin_promotion_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_account_conversions": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "reddit_ads_account_conversions", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_account_conversions.csv", "original_file_path": "seeds/reddit_ads_account_conversions.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_account_conversions", "fqn": ["ad_reporting_integration_tests", "reddit_ads_account_conversions"], "alias": "reddit_ads_account_conversions", "checksum": {"name": "sha256", "checksum": "4eb70e9496b0dcf31186020f33f9d19c67576af11b0e6c46300ffa2dde4e286a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.055779, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_account_conversions`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "apple_search_ad_group_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_ad_group_report_data.csv", "original_file_path": "seeds/apple_search_ad_group_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data", "fqn": ["ad_reporting_integration_tests", "apple_search_ad_group_report_data"], "alias": "apple_search_ad_group_report_data", "checksum": {"name": "sha256", "checksum": "135ee77ac9c3aa146d4f0281b04312c1034c271276f215b27145bb99f83534f5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.057201, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_ad_group_report_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "microsoft_ads_ad_group_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_ad_group_history_data.csv", "original_file_path": "seeds/microsoft_ads_ad_group_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_ad_group_history_data"], "alias": "microsoft_ads_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "4abd621bb94190bc111a86b471c7cde3b75308f0eee84a0c62fcdeb53bc54d9e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "INT64", "campaign_id": "INT64"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1731951595.058741, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_ad_group_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_ad_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "apple_search_ad_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_ad_history_data.csv", "original_file_path": "seeds/apple_search_ad_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_history_data", "fqn": ["ad_reporting_integration_tests", "apple_search_ad_history_data"], "alias": "apple_search_ad_history_data", "checksum": {"name": "sha256", "checksum": "e9e1a65339d24d616ce16ea8ee3cc902473a1b5048789ad338c4ba6ca57fe8e0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"creation_time": "timestamp", "modification_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"creation_time": "timestamp", "modification_time": "timestamp"}}, "created_at": 1731951595.060202, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_ad_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "tiktok_adgroup_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "tiktok_adgroup_history_data.csv", "original_file_path": "seeds/tiktok_adgroup_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data", "fqn": ["ad_reporting_integration_tests", "tiktok_adgroup_history_data"], "alias": "tiktok_adgroup_history_data", "checksum": {"name": "sha256", "checksum": "639ab801e23bda0eab7fc62a605781f2f926f1ef2bd935f12af67e56d9ffeb89"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1731951595.062112, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`tiktok_adgroup_history_data`", "raw_code": "", "root_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__account_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__account_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__account_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__account_daily_report"], "alias": "stg_microsoft_ads__account_daily_report", "checksum": {"name": "sha256", "checksum": "4a7438046c73940c8fc2f73a01712fd7e1182450d70242e17fa6b13ad83b11d1"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance by account and all non-metric columns.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.072717, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_daily_report`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__account_daily_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__account_daily_report_tmp')),\n staging_columns=get_account_daily_report_columns()\n )\n }}\n\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n device_os,\n device_type,\n network,\n currency_code, \n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as {{ dbt.type_int() }}), cast(conversions as {{ dbt.type_int() }})), 0) as conversions,\n coalesce(cast(revenue as {{ dbt.type_float() }}), 0) as conversions_value,\n coalesce(cast(all_conversions_qualified as {{ dbt.type_int() }}), 0) as all_conversions \n -- this report does not have an all_revenue or an all_conversions field\n\n {{ microsoft_ads_fill_pass_through_columns(pass_through_fields=var('microsoft_ads__account_passthrough_metrics'), except=['conversions', 'conversions_value', 'all_conversions']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__account_daily_report_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_daily_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_account_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_int", "macro.dbt.type_float", "macro.microsoft_ads_source.microsoft_ads_fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__account_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_daily_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_distribution\n \n as \n \n ad_distribution\n \n, \n \n \n bid_match_type\n \n as \n \n bid_match_type\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n delivered_match_type\n \n as \n \n delivered_match_type\n \n, \n \n \n device_os\n \n as \n \n device_os\n \n, \n \n \n device_type\n \n as \n \n device_type\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n network\n \n as \n \n network\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n top_vs_other\n \n as \n \n top_vs_other\n \n, \n \n \n conversions_qualified\n \n as \n \n conversions_qualified\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n revenue\n \n as \n \n revenue\n \n, \n \n \n all_conversions_qualified\n \n as \n \n all_conversions_qualified\n \n, \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n device_os,\n device_type,\n network,\n currency_code, \n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as INT64), cast(conversions as INT64)), 0) as conversions,\n coalesce(cast(revenue as FLOAT64), 0) as conversions_value,\n coalesce(cast(all_conversions_qualified as INT64), 0) as all_conversions \n -- this report does not have an all_revenue or an all_conversions field\n\n \n\n\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__search_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__search_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__search_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__search_daily_report"], "alias": "stg_microsoft_ads__search_daily_report", "checksum": {"name": "sha256", "checksum": "011dc208500160fa3388fe5afd4b888bdddeffbdc7e088767bf1bea1f58f6ffc"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad, keyword and all non-metric columns.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_query": {"name": "search_query", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.083004, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__search_daily_report`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__search_daily_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__search_daily_report_tmp')),\n staging_columns=get_search_daily_report_columns()\n )\n }}\n\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n ad_group_id,\n ad_id,\n keyword_id,\n search_query,\n device_os,\n device_type,\n network,\n language,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as {{ dbt.type_int() }}), cast(conversions as {{ dbt.type_int() }})), 0) as conversions,\n coalesce(cast(revenue as {{ dbt.type_float() }}), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as {{ dbt.type_int() }}), cast(all_conversions as {{ dbt.type_int() }})), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as {{ dbt.type_string() }}), ',', '') as {{ dbt.type_float() }}), 0) as all_conversions_value\n\n {{ microsoft_ads_fill_pass_through_columns(pass_through_fields=var('microsoft_ads__search_passthrough_metrics'), except=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__search_daily_report_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__search_daily_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_search_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string", "macro.microsoft_ads_source.microsoft_ads_fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__search_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__search_daily_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n bid_match_type\n \n as \n \n bid_match_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n delivered_match_type\n \n as \n \n delivered_match_type\n \n, \n \n \n device_os\n \n as \n \n device_os\n \n, \n \n \n device_type\n \n as \n \n device_type\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n keyword_id\n \n as \n \n keyword_id\n \n, \n \n \n language\n \n as \n \n language\n \n, \n \n \n network\n \n as \n \n network\n \n, \n \n \n search_query\n \n as \n \n search_query\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n top_vs_other\n \n as \n \n top_vs_other\n \n, \n \n \n conversions_qualified\n \n as \n \n conversions_qualified\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n revenue\n \n as \n \n revenue\n \n, \n \n \n all_conversions\n \n as \n \n all_conversions\n \n, \n \n \n all_conversions_qualified\n \n as \n \n all_conversions_qualified\n \n, \n \n \n all_revenue\n \n as \n \n all_revenue\n \n, \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n ad_group_id,\n ad_id,\n keyword_id,\n search_query,\n device_os,\n device_type,\n network,\n language,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as INT64), cast(conversions as INT64)), 0) as conversions,\n coalesce(cast(revenue as FLOAT64), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as INT64), cast(all_conversions as INT64)), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as string), ',', '') as FLOAT64), 0) as all_conversions_value\n\n \n\n\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__keyword_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__keyword_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__keyword_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__keyword_daily_report"], "alias": "stg_microsoft_ads__keyword_daily_report", "checksum": {"name": "sha256", "checksum": "2ff9d4f7f2cfca6d0a99dd0342fac5fdf7aba8adeb76461bec6e9ecb113a6c77"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad, keyword and all non-metric columns.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.0818932, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__keyword_daily_report`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__keyword_daily_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__keyword_daily_report_tmp')),\n staging_columns=get_keyword_daily_report_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n ad_group_id,\n ad_id,\n keyword_id,\n currency_code,\n device_os,\n device_type,\n network,\n language,\n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as {{ dbt.type_int() }}), cast(conversions as {{ dbt.type_int() }})), 0) as conversions,\n coalesce(cast(revenue as {{ dbt.type_float() }}), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as {{ dbt.type_int() }}), cast(all_conversions as {{ dbt.type_int() }})), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as {{ dbt.type_string() }}), ',', '') as {{ dbt.type_float() }}), 0) as all_conversions_value\n\n {{ microsoft_ads_fill_pass_through_columns(pass_through_fields=var('microsoft_ads__keyword_passthrough_metrics'), except=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }}\n \n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__keyword_daily_report_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__keyword_daily_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_keyword_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string", "macro.microsoft_ads_source.microsoft_ads_fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__keyword_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__keyword_daily_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_distribution\n \n as \n \n ad_distribution\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n bid_match_type\n \n as \n \n bid_match_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n delivered_match_type\n \n as \n \n delivered_match_type\n \n, \n \n \n device_os\n \n as \n \n device_os\n \n, \n \n \n device_type\n \n as \n \n device_type\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n keyword_id\n \n as \n \n keyword_id\n \n, \n \n \n language\n \n as \n \n language\n \n, \n \n \n network\n \n as \n \n network\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n top_vs_other\n \n as \n \n top_vs_other\n \n, \n \n \n conversions_qualified\n \n as \n \n conversions_qualified\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n revenue\n \n as \n \n revenue\n \n, \n \n \n all_conversions\n \n as \n \n all_conversions\n \n, \n \n \n all_conversions_qualified\n \n as \n \n all_conversions_qualified\n \n, \n \n \n all_revenue\n \n as \n \n all_revenue\n \n, \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n ad_group_id,\n ad_id,\n keyword_id,\n currency_code,\n device_os,\n device_type,\n network,\n language,\n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as INT64), cast(conversions as INT64)), 0) as conversions,\n coalesce(cast(revenue as FLOAT64), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as INT64), cast(all_conversions as INT64)), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as string), ',', '') as FLOAT64), 0) as all_conversions_value\n\n \n\n\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n \n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__campaign_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__campaign_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__campaign_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__campaign_daily_report"], "alias": "stg_microsoft_ads__campaign_daily_report", "checksum": {"name": "sha256", "checksum": "d4b969c827ea86ff39d2ded571f12ad17eb785a8ba28fcb2892e7c6d19c5d3c2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance by account, campaign and all non-metric columns.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_association_status": {"name": "budget_association_status", "description": "Indicates whether or not the campaign is currently spending from the budget mentioned in the BudgetName column. The possible values are `Current` and `Ended`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_name": {"name": "budget_name", "description": "The name of the budget. This column will be empty for unshared budgets.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_status": {"name": "budget_status", "description": "The budget status. The possible values are `Active` and `Deleted`. This column will be empty for unshared budgets.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.0798762, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__campaign_daily_report`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__campaign_daily_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__campaign_daily_report_tmp')),\n staging_columns=get_campaign_daily_report_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n currency_code,\n device_os,\n device_type,\n network,\n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n budget_association_status,\n budget_name,\n budget_status,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as {{ dbt.type_int() }}), cast(conversions as {{ dbt.type_int() }})), 0) as conversions,\n coalesce(cast(revenue as {{ dbt.type_float() }}), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as {{ dbt.type_int() }}), cast(all_conversions as {{ dbt.type_int() }})), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as {{ dbt.type_string() }}), ',', '') as {{ dbt.type_float() }}), 0) as all_conversions_value\n\n {{ microsoft_ads_fill_pass_through_columns(pass_through_fields=var('microsoft_ads__campaign_passthrough_metrics'), except=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__campaign_daily_report_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__campaign_daily_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_campaign_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string", "macro.microsoft_ads_source.microsoft_ads_fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__campaign_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__campaign_daily_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_distribution\n \n as \n \n ad_distribution\n \n, \n \n \n bid_match_type\n \n as \n \n bid_match_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n delivered_match_type\n \n as \n \n delivered_match_type\n \n, \n \n \n device_os\n \n as \n \n device_os\n \n, \n \n \n device_type\n \n as \n \n device_type\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n network\n \n as \n \n network\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n top_vs_other\n \n as \n \n top_vs_other\n \n, \n \n \n budget_association_status\n \n as \n \n budget_association_status\n \n, \n \n \n budget_name\n \n as \n \n budget_name\n \n, \n cast(null as string) as \n \n budget_status\n \n , \n \n \n conversions_qualified\n \n as \n \n conversions_qualified\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n revenue\n \n as \n \n revenue\n \n, \n \n \n all_conversions\n \n as \n \n all_conversions\n \n, \n \n \n all_conversions_qualified\n \n as \n \n all_conversions_qualified\n \n, \n \n \n all_revenue\n \n as \n \n all_revenue\n \n, \n cast(null as string) as \n \n assists\n \n , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n currency_code,\n device_os,\n device_type,\n network,\n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n budget_association_status,\n budget_name,\n budget_status,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as INT64), cast(conversions as INT64)), 0) as conversions,\n coalesce(cast(revenue as FLOAT64), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as INT64), cast(all_conversions as INT64)), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as string), ',', '') as FLOAT64), 0) as all_conversions_value\n\n \n\n\n \n \n \n , coalesce(cast(assists as FLOAT64), 0) as assists\n \n \n \n \n \n , coalesce(cast(revenue as FLOAT64), 0) as revenue\n \n \n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__keyword_history", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__keyword_history.sql", "original_file_path": "models/stg_microsoft_ads__keyword_history.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__keyword_history"], "alias": "stg_microsoft_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "1b41ee13cb41d4f43f8865259f69dfc0a7d054f31350eb97dc57184e1840792b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a version of one or more Microsoft keywords.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_name": {"name": "keyword_name", "description": "The keyword(s) associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "The match type associated with this record; values contain but may not be limited to 'Broad', 'Exact', 'Phrase'. Please refer to Microsoft Ad's [documentation](https://help.ads.microsoft.com/#apex/ads/en/50822/1).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of this keyword; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/keywordstatus?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.08082, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__keyword_history`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__keyword_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__keyword_history_tmp')),\n staging_columns=get_keyword_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as keyword_id,\n name as keyword_name,\n modified_time as modified_at,\n ad_group_id,\n match_type,\n status,\n row_number() over (partition by source_relation, id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__keyword_history_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__keyword_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_keyword_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__keyword_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__keyword_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n modified_time\n \n as \n \n modified_time\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n match_type\n \n as \n \n match_type\n \n, \n \n \n status\n \n as \n \n status\n \n\n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as keyword_id,\n name as keyword_name,\n modified_time as modified_at,\n ad_group_id,\n match_type,\n status,\n row_number() over (partition by source_relation, id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__ad_group_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__ad_group_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__ad_group_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_group_daily_report"], "alias": "stg_microsoft_ads__ad_group_daily_report", "checksum": {"name": "sha256", "checksum": "738115b30fed1e209f0844fd17a0c2e2cc80754f800a4104dcdc092b0d3794dd"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance by account, campaign, ad group and all non-metric columns.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.0756469, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_group_daily_report`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__ad_group_daily_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__ad_group_daily_report_tmp')),\n staging_columns=get_ad_group_daily_report_columns()\n )\n }}\n\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n ad_group_id,\n currency_code,\n device_os,\n device_type,\n network,\n language,\n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as {{ dbt.type_int() }}), cast(conversions as {{ dbt.type_int() }})), 0) as conversions,\n coalesce(cast(revenue as {{ dbt.type_float() }}), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as {{ dbt.type_int() }}), cast(all_conversions as {{ dbt.type_int() }})), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as {{ dbt.type_string() }}), ',', '') as {{ dbt.type_float() }}), 0) as all_conversions_value\n\n {{ microsoft_ads_fill_pass_through_columns(pass_through_fields=var('microsoft_ads__ad_group_passthrough_metrics'), except=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_group_daily_report_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_group_daily_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_ad_group_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string", "macro.microsoft_ads_source.microsoft_ads_fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_group_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_group_daily_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_distribution\n \n as \n \n ad_distribution\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n bid_match_type\n \n as \n \n bid_match_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n delivered_match_type\n \n as \n \n delivered_match_type\n \n, \n \n \n device_os\n \n as \n \n device_os\n \n, \n \n \n device_type\n \n as \n \n device_type\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n language\n \n as \n \n language\n \n, \n \n \n network\n \n as \n \n network\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n top_vs_other\n \n as \n \n top_vs_other\n \n, \n \n \n conversions_qualified\n \n as \n \n conversions_qualified\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n revenue\n \n as \n \n revenue\n \n, \n \n \n all_conversions\n \n as \n \n all_conversions\n \n, \n \n \n all_conversions_qualified\n \n as \n \n all_conversions_qualified\n \n, \n \n \n all_revenue\n \n as \n \n all_revenue\n \n, \n \n \n all_conversions\n \n as multipled_all_conversions , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n ad_group_id,\n currency_code,\n device_os,\n device_type,\n network,\n language,\n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as INT64), cast(conversions as INT64)), 0) as conversions,\n coalesce(cast(revenue as FLOAT64), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as INT64), cast(all_conversions as INT64)), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as string), ',', '') as FLOAT64), 0) as all_conversions_value\n\n \n\n\n \n \n \n , coalesce(cast(multipled_all_conversions as FLOAT64), 0) as multipled_all_conversions\n \n \n \n \n \n , coalesce(cast(all_conversions_qualified as FLOAT64), 0) as all_conversions_qualified\n \n \n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__ad_group_history", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__ad_group_history.sql", "original_file_path": "models/stg_microsoft_ads__ad_group_history.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_group_history"], "alias": "stg_microsoft_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "522dc7275a382654d9a32a61c5bb344b1ff07437c7e99118430a1578d539a39e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a version of one or more Microsoft ad groups.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The date in which an ad group starts running.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The date in which this ad group will no longer run.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of this ad group; see the following [documentation](https://help.ads.microsoft.com/apex/index/3/en/53094) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.0739908, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_group_history`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__ad_group_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__ad_group_history_tmp')),\n staging_columns=get_ad_group_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_group_id,\n name as ad_group_name,\n campaign_id,\n modified_time as modified_at,\n start_date,\n end_date,\n status,\n row_number() over (partition by source_relation, id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_group_history_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_group_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_group_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n modified_time\n \n as \n \n modified_time\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n status\n \n as \n \n status\n \n\n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_group_id,\n name as ad_group_name,\n campaign_id,\n modified_time as modified_at,\n start_date,\n end_date,\n status,\n row_number() over (partition by source_relation, id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__ad_history", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__ad_history.sql", "original_file_path": "models/stg_microsoft_ads__ad_history.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_history"], "alias": "stg_microsoft_ads__ad_history", "checksum": {"name": "sha256", "checksum": "e5426f0499f23a3271624b79d87fd3535cd21c20517a873e75f1956ab4a70bd4"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a version of one or more Microsoft ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the corresponding ad; `title_part_1` is used as the ad name as a proxy as one is not provided by the data source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "final_url": {"name": "final_url", "description": "The full URL that the ad links to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of this ad; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/adstatus?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The ad type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/adtype?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.076743, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_history`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__ad_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__ad_history_tmp')),\n staging_columns=get_ad_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_id,\n title_part_1 as ad_name,\n final_url,\n ad_group_id,\n modified_time as modified_at,\n status,\n type,\n row_number() over (partition by source_relation, id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_history_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n title_part_1\n \n as \n \n title_part_1\n \n, \n \n \n final_url\n \n as \n \n final_url\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n modified_time\n \n as \n \n modified_time\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_id,\n title_part_1 as ad_name,\n final_url,\n ad_group_id,\n modified_time as modified_at,\n status,\n type,\n row_number() over (partition by source_relation, id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__ad_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__ad_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__ad_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_daily_report"], "alias": "stg_microsoft_ads__ad_daily_report", "checksum": {"name": "sha256", "checksum": "27e176700147c6e8e180632c13babf7051e5b1081c2c1e5ceb002648116514c0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad and all non-metric columns.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.0778198, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_daily_report`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__ad_daily_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__ad_daily_report_tmp')),\n staging_columns=get_ad_daily_report_columns()\n )\n }}\n\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n ad_group_id,\n ad_id,\n currency_code,\n device_os,\n device_type,\n network,\n language,\n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as {{ dbt.type_int() }}), cast(conversions as {{ dbt.type_int() }})), 0) as conversions,\n coalesce(cast(revenue as {{ dbt.type_float() }}), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as {{ dbt.type_int() }}), cast(all_conversions as {{ dbt.type_int() }})), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as {{ dbt.type_string() }}), ',', '') as {{ dbt.type_float() }}), 0) as all_conversions_value\n\n {{ microsoft_ads_fill_pass_through_columns(pass_through_fields=var('microsoft_ads__ad_passthrough_metrics'), except=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_daily_report_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_daily_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_ad_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string", "macro.microsoft_ads_source.microsoft_ads_fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_daily_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_distribution\n \n as \n \n ad_distribution\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n bid_match_type\n \n as \n \n bid_match_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n delivered_match_type\n \n as \n \n delivered_match_type\n \n, \n \n \n device_os\n \n as \n \n device_os\n \n, \n \n \n device_type\n \n as \n \n device_type\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n language\n \n as \n \n language\n \n, \n \n \n network\n \n as \n \n network\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n top_vs_other\n \n as \n \n top_vs_other\n \n, \n \n \n conversions_qualified\n \n as \n \n conversions_qualified\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n revenue\n \n as \n \n revenue\n \n, \n \n \n all_conversions\n \n as \n \n all_conversions\n \n, \n \n \n all_conversions_qualified\n \n as \n \n all_conversions_qualified\n \n, \n \n \n all_revenue\n \n as \n \n all_revenue\n \n, \n cast(null as string) as \n \n assists\n \n , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n ad_group_id,\n ad_id,\n currency_code,\n device_os,\n device_type,\n network,\n language,\n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as INT64), cast(conversions as INT64)), 0) as conversions,\n coalesce(cast(revenue as FLOAT64), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as INT64), cast(all_conversions as INT64)), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as string), ',', '') as FLOAT64), 0) as all_conversions_value\n\n \n\n\n \n \n \n , coalesce(cast(assists as FLOAT64), 0) as assists\n \n \n \n \n \n , coalesce(cast(revenue as FLOAT64), 0) as revenue\n \n \n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__account_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__account_history", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__account_history.sql", "original_file_path": "models/stg_microsoft_ads__account_history.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__account_history"], "alias": "stg_microsoft_ads__account_history", "checksum": {"name": "sha256", "checksum": "a4c82fe874592f0a94ef610e065f28e0bdc08014e5be80ed4b006839a2f81f4c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a version of one or more Microsoft accounts.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.070986, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_history`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__account_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__account_history_tmp')),\n staging_columns=get_account_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as account_id,\n name as account_name,\n last_modified_time as modified_at,\n time_zone,\n currency_code,\n row_number() over (partition by source_relation, id order by last_modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__account_history_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__account_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n last_modified_time\n \n as \n \n last_modified_time\n \n, \n \n \n time_zone\n \n as \n \n time_zone\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n\n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as account_id,\n name as account_name,\n last_modified_time as modified_at,\n time_zone,\n currency_code,\n row_number() over (partition by source_relation, id order by last_modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__campaign_history", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__campaign_history.sql", "original_file_path": "models/stg_microsoft_ads__campaign_history.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__campaign_history"], "alias": "stg_microsoft_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "c8c1c422bc1f13e466d3bd4883776fd1f58357cafd190ac9bc789477b7a10bf0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a version of one or more Microsoft campaigns.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The campaign type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaigntype?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of this campaign; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaignstatus?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.078812, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__campaign_history`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__campaign_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as campaign_id,\n name as campaign_name,\n account_id,\n modified_time as modified_at,\n type,\n time_zone,\n status,\n row_number() over (partition by source_relation, id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__campaign_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n modified_time\n \n as \n \n modified_time\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n time_zone\n \n as \n \n time_zone\n \n, \n \n \n status\n \n as \n \n status\n \n\n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as campaign_id,\n name as campaign_name,\n account_id,\n modified_time as modified_at,\n type,\n time_zone,\n status,\n row_number() over (partition by source_relation, id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__search_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__search_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__search_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__search_daily_report_tmp"], "alias": "stg_microsoft_ads__search_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "8f27e7884d86a03eb7ec2e1d7f8a378eda6a48e57d081cca828b1002debb1bc5"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.3440828, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__search_daily_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='search_query_performance_daily_report', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='search_query_performance_daily_report',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "search_query_performance_daily_report"], ["microsoft_ads", "search_query_performance_daily_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__search_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_search_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__ad_group_history_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_group_history_tmp"], "alias": "stg_microsoft_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "b905cec7651ee727a417649b9aaea92a03f66a52d40f8b94578560f0aafdea8a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.364948, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_group_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_history', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='ad_group_history',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "ad_group_history"], ["microsoft_ads", "ad_group_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_group_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_ad_group_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__campaign_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__campaign_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__campaign_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__campaign_daily_report_tmp"], "alias": "stg_microsoft_ads__campaign_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "edc77058afb2077fa307bf5329cbcb91f6576e9086179311461d29a9f5692685"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.370234, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__campaign_daily_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_performance_daily_report', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='campaign_performance_daily_report',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "campaign_performance_daily_report"], ["microsoft_ads", "campaign_performance_daily_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__campaign_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_campaign_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__ad_history_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__ad_history_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_history_tmp"], "alias": "stg_microsoft_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "112b59bf099851182216bee8068b9c46db94f23a34d346b35adbbe68c4f27125"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.3763268, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_history', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='ad_history',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "ad_history"], ["microsoft_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__account_history_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__account_history_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__account_history_tmp"], "alias": "stg_microsoft_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "e4a541bca0e1a5818bea2f2e2a18f6870e9038d01abf498c46b4429c063a9c32"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.3808, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_history', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='account_history',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "account_history"], ["microsoft_ads", "account_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.account_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__account_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__ad_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__ad_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__ad_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_daily_report_tmp"], "alias": "stg_microsoft_ads__ad_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "a98acb9f5a96358e8acd938475360474ca2feb6e80011b258bf883f58eac9874"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.3857229, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_daily_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_performance_daily_report', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='ad_performance_daily_report',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "ad_performance_daily_report"], ["microsoft_ads", "ad_performance_daily_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_ad_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__ad_group_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__ad_group_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__ad_group_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_group_daily_report_tmp"], "alias": "stg_microsoft_ads__ad_group_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "20f2de80c669c0939efd8b8b5d09d3616401124cfa3f0ab770c0542f2bae5c46"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.3910851, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_group_daily_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_performance_daily_report', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='ad_group_performance_daily_report',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "ad_group_performance_daily_report"], ["microsoft_ads", "ad_group_performance_daily_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_group_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_ad_group_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__keyword_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__keyword_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__keyword_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__keyword_daily_report_tmp"], "alias": "stg_microsoft_ads__keyword_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "6da7982b6783028d2d89332042f9ebd4137ac07544fd9f8d539864713d80f242"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.4527922, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__keyword_daily_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='keyword_performance_daily_report', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='keyword_performance_daily_report',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "keyword_performance_daily_report"], ["microsoft_ads", "keyword_performance_daily_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__keyword_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_keyword_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__keyword_history_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__keyword_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__keyword_history_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__keyword_history_tmp"], "alias": "stg_microsoft_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "784b760534fc1e06b9dc0ea24b2dfccf9a5e182ae9459f749765aa8680b882cc"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.457789, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__keyword_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='keyword_history', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='keyword_history',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "keyword_history"], ["microsoft_ads", "keyword_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.keyword_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__keyword_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_keyword_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__campaign_history_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__campaign_history_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__campaign_history_tmp"], "alias": "stg_microsoft_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "2e3d5a3532a6e00dc2bd9a81d57c5f307969cbb012bdf9a925cde76c1b625dbc"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.462372, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__campaign_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='campaign_history',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "campaign_history"], ["microsoft_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.campaign_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_microsoft_ads__account_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__account_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__account_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__account_daily_report_tmp"], "alias": "stg_microsoft_ads__account_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "621b94d4a5611282d036759accd3863ed4efaaf67596939dc98c5a8e7cec9425"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.4679282, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_daily_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_performance_daily_report', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='account_performance_daily_report',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "account_performance_daily_report"], ["microsoft_ads", "account_performance_daily_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.account_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__account_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_account_performance_daily_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads.tiktok_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "tiktok_ads__ad_group_report", "resource_type": "model", "package_name": "tiktok_ads", "path": "tiktok_ads__ad_group_report.sql", "original_file_path": "models/tiktok_ads__ad_group_report.sql", "unique_id": "model.tiktok_ads.tiktok_ads__ad_group_report", "fqn": ["tiktok_ads", "tiktok_ads__ad_group_report"], "alias": "tiktok_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "8ffa6a17cc576c9b7668dbf3e9c716419e1cef365164d456190531fadd3134aa"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the ad group level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Day of record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget": {"name": "budget", "description": "Ad budget. Returns 0.0 when Campaign Budget Optimization (budget_optimize_switch) is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversion_value": {"name": "total_conversion_value", "description": "The accumulated value of `total_purchase_value` and `total_sales_lead_value`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpm": {"name": "daily_cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_ctr": {"name": "daily_ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.20028, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__ad_group_report`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith hourly as (\n \n select *\n from {{ var('ad_group_report_hourly') }}\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from {{ var('advertiser') }}\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record\n), \n\naggregated as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n ad_groups.advertiser_id,\n advertiser.advertiser_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n hourly.ad_group_id,\n ad_groups.ad_group_name,\n advertiser.currency, \n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n sum(hourly.impressions) as impressions,\n sum(hourly.clicks) as clicks,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s,\n sum(hourly.video_watched_6_s) as video_watched_6_s,\n sum(hourly.video_views_p_25) as video_views_p_25,\n sum(hourly.video_views_p_50) as video_views_p_50, \n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value, \n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value, \n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n \n {{ tiktok_ads_persist_pass_through_columns(pass_through_variable='tiktok_ads__ad_group_hourly_passthrough_metrics', identifier='hourly', transform='sum', coalesce_with=0, exclude_fields=['real_time_conversion','total_purchase_value','total_sales_lead_value']) }} \n\n from hourly\n left join ad_groups \n on hourly.ad_group_id = ad_groups.ad_group_id\n and hourly.source_relation = ad_groups.source_relation\n left join advertiser\n on ad_groups.advertiser_id = advertiser.advertiser_id\n and ad_groups.source_relation = advertiser.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n {{ dbt_utils.group_by(13) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_group_report_hourly", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_tiktok_ads__advertiser", "package": null, "version": null}, {"name": "stg_tiktok_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads.tiktok_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_group_report_hourly`\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_group_history`\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__advertiser`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__campaign_history`\n where is_most_recent_record\n), \n\naggregated as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n ad_groups.advertiser_id,\n advertiser.advertiser_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n hourly.ad_group_id,\n ad_groups.ad_group_name,\n advertiser.currency, \n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n sum(hourly.impressions) as impressions,\n sum(hourly.clicks) as clicks,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s,\n sum(hourly.video_watched_6_s) as video_watched_6_s,\n sum(hourly.video_views_p_25) as video_views_p_25,\n sum(hourly.video_views_p_50) as video_views_p_50, \n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value, \n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value, \n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n \n \n\n\n \n \n \n , sum(coalesce(hourly.real_time_conversions, 0)) as real_time_conversions\n \n \n \n \n , sum(coalesce(hourly.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(hourly.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(hourly.videos, 0)) as videos\n \n \n\n\n \n\n from hourly\n left join ad_groups \n on hourly.ad_group_id = ad_groups.ad_group_id\n and hourly.source_relation = ad_groups.source_relation\n left join advertiser\n on ad_groups.advertiser_id = advertiser.advertiser_id\n and ad_groups.source_relation = advertiser.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads.tiktok_ads__url_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "tiktok_ads__url_report", "resource_type": "model", "package_name": "tiktok_ads", "path": "tiktok_ads__url_report.sql", "original_file_path": "models/tiktok_ads__url_report.sql", "unique_id": "model.tiktok_ads.tiktok_ads__url_report", "fqn": ["tiktok_ads", "tiktok_ads__url_report"], "alias": "tiktok_ads__url_report", "checksum": {"name": "sha256", "checksum": "7c54e99ede66f00d25614a1b314d50870fbd97f50e71e29ae452c5e051713a16"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the URL level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Day of record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget": {"name": "budget", "description": "Ad budget. Returns 0.0 when Campaign Budget Optimization (budget_optimize_switch) is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversion_value": {"name": "total_conversion_value", "description": "The accumulated value of `total_purchase_value` and `total_sales_lead_value`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpm": {"name": "daily_cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_ctr": {"name": "daily_ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.205201, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__url_report`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith hourly as (\n \n select *\n from {{ var('ad_report_hourly') }}\n), \n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from {{ var('advertiser') }}\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record\n), \n\naggregated as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n ad_groups.advertiser_id,\n advertiser.advertiser_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_groups.ad_group_id,\n ad_groups.ad_group_name,\n hourly.ad_id,\n ads.ad_name,\n ads.base_url,\n ads.url_host,\n ads.url_path,\n ads.utm_source,\n ads.utm_medium,\n ads.utm_campaign,\n ads.utm_content,\n ads.utm_term,\n advertiser.currency,\n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n sum(hourly.impressions) as impressions,\n sum(hourly.clicks) as clicks,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s,\n sum(hourly.video_watched_6_s) as video_watched_6_s,\n sum(hourly.video_views_p_25) as video_views_p_25,\n sum(hourly.video_views_p_50) as video_views_p_50, \n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value,\n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value,\n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n\n {{ tiktok_ads_persist_pass_through_columns(pass_through_variable='tiktok_ads__ad_hourly_passthrough_metrics', identifier='hourly', transform='sum', coalesce_with=0, exclude_fields=['real_time_conversion','total_purchase_value','total_sales_lead_value']) }}\n\n from hourly\n left join ads\n on hourly.ad_id = ads.ad_id\n and hourly.source_relation = ads.source_relation\n left join ad_groups \n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n and ads.source_relation = advertiser.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n -- We are filtering for only ads where url fields are populated.\n where ads.landing_page_url is not null\n {% endif %}\n\n {{ dbt_utils.group_by(23) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_report_hourly", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_history", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_tiktok_ads__advertiser", "package": null, "version": null}, {"name": "stg_tiktok_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads.tiktok_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_report_hourly`\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_history`\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_group_history`\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__advertiser`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__campaign_history`\n where is_most_recent_record\n), \n\naggregated as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n ad_groups.advertiser_id,\n advertiser.advertiser_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_groups.ad_group_id,\n ad_groups.ad_group_name,\n hourly.ad_id,\n ads.ad_name,\n ads.base_url,\n ads.url_host,\n ads.url_path,\n ads.utm_source,\n ads.utm_medium,\n ads.utm_campaign,\n ads.utm_content,\n ads.utm_term,\n advertiser.currency,\n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n sum(hourly.impressions) as impressions,\n sum(hourly.clicks) as clicks,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s,\n sum(hourly.video_watched_6_s) as video_watched_6_s,\n sum(hourly.video_views_p_25) as video_views_p_25,\n sum(hourly.video_views_p_50) as video_views_p_50, \n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value,\n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value,\n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n\n \n\n\n \n \n \n , sum(coalesce(hourly.real_time_conversions, 0)) as real_time_conversions\n \n \n \n \n , sum(coalesce(hourly.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(hourly.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(hourly.videos, 0)) as videos\n \n \n\n\n\n\n from hourly\n left join ads\n on hourly.ad_id = ads.ad_id\n and hourly.source_relation = ads.source_relation\n left join ad_groups \n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n and ads.source_relation = advertiser.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n\n \n -- We are filtering for only ads where url fields are populated.\n where ads.landing_page_url is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads.tiktok_ads__campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "tiktok_ads__campaign_report", "resource_type": "model", "package_name": "tiktok_ads", "path": "tiktok_ads__campaign_report.sql", "original_file_path": "models/tiktok_ads__campaign_report.sql", "unique_id": "model.tiktok_ads.tiktok_ads__campaign_report", "fqn": ["tiktok_ads", "tiktok_ads__campaign_report"], "alias": "tiktok_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "09fd12c2c005686b5c7839c1bda78a0d6f512bb0c37132d60f9a92b07bb5c0de"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the campaign level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Day of record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversion_value": {"name": "total_conversion_value", "description": "The accumulated value of `total_purchase_value` and `total_sales_lead_value`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpm": {"name": "daily_cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_ctr": {"name": "daily_ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.201452, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith hourly as (\n \n select *\n from {{ var('campaign_report_hourly') }}\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from {{ var('advertiser') }}\n), \n\naggregated as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n advertiser.advertiser_id,\n advertiser.advertiser_name,\n hourly.campaign_id,\n campaigns.campaign_name,\n advertiser.currency,\n sum(hourly.impressions) as impressions,\n sum(hourly.clicks) as clicks,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s,\n sum(hourly.video_watched_6_s) as video_watched_6_s,\n sum(hourly.video_views_p_25) as video_views_p_25,\n sum(hourly.video_views_p_50) as video_views_p_50, \n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value,\n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value,\n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n\n {{ tiktok_ads_persist_pass_through_columns(pass_through_variable='tiktok_ads__campaign_hourly_passthrough_metrics', identifier='hourly', transform='sum', coalesce_with=0, exclude_fields=['real_time_conversion','total_purchase_value','total_sales_lead_value']) }} \n\n from hourly\n left join campaigns\n on hourly.campaign_id = campaigns.campaign_id\n and hourly.source_relation = campaigns.source_relation\n left join advertiser\n on campaigns.advertiser_id = advertiser.advertiser_id\n and campaigns.source_relation = advertiser.source_relation\n {{ dbt_utils.group_by(7) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_tiktok_ads__campaign_report_hourly", "package": null, "version": null}, {"name": "stg_tiktok_ads__campaign_history", "package": null, "version": null}, {"name": "stg_tiktok_ads__advertiser", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads.tiktok_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history", "model.tiktok_ads_source.stg_tiktok_ads__advertiser"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__campaign_report_hourly`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__campaign_history`\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__advertiser`\n), \n\naggregated as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n advertiser.advertiser_id,\n advertiser.advertiser_name,\n hourly.campaign_id,\n campaigns.campaign_name,\n advertiser.currency,\n sum(hourly.impressions) as impressions,\n sum(hourly.clicks) as clicks,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s,\n sum(hourly.video_watched_6_s) as video_watched_6_s,\n sum(hourly.video_views_p_25) as video_views_p_25,\n sum(hourly.video_views_p_50) as video_views_p_50, \n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value,\n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value,\n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n\n \n\n\n \n \n \n , sum(coalesce(hourly.real_time_conversions, 0)) as real_time_conversions\n \n \n \n \n , sum(coalesce(hourly.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(hourly.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(hourly.videos, 0)) as videos\n \n \n\n\n \n\n from hourly\n left join campaigns\n on hourly.campaign_id = campaigns.campaign_id\n and hourly.source_relation = campaigns.source_relation\n left join advertiser\n on campaigns.advertiser_id = advertiser.advertiser_id\n and campaigns.source_relation = advertiser.source_relation\n group by 1,2,3,4,5,6,7\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads.tiktok_ads__ad_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "tiktok_ads__ad_report", "resource_type": "model", "package_name": "tiktok_ads", "path": "tiktok_ads__ad_report.sql", "original_file_path": "models/tiktok_ads__ad_report.sql", "unique_id": "model.tiktok_ads.tiktok_ads__ad_report", "fqn": ["tiktok_ads", "tiktok_ads__ad_report"], "alias": "tiktok_ads__ad_report", "checksum": {"name": "sha256", "checksum": "965374bcbdbff0e31f81ce1a9d372bd2554448007caecab0e3fff8ded9ca0dfa"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the ad level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Day of record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget": {"name": "budget", "description": "Ad budget. Returns 0.0 when Campaign Budget Optimization (budget_optimize_switch) is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversion_value": {"name": "total_conversion_value", "description": "The accumulated value of `total_purchase_value` and `total_sales_lead_value`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpm": {"name": "daily_cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_ctr": {"name": "daily_ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.1989188, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__ad_report`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith hourly as (\n \n select *\n from {{ var('ad_report_hourly') }}\n), \n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from {{ var('advertiser') }}\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record\n),\n\naggregated as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n ad_groups.advertiser_id,\n advertiser.advertiser_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_groups.ad_group_id,\n ad_groups.ad_group_name,\n hourly.ad_id,\n ads.ad_name,\n advertiser.currency,\n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n sum(hourly.impressions) as impressions,\n sum(hourly.clicks) as clicks,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s,\n sum(hourly.video_watched_6_s) as video_watched_6_s,\n sum(hourly.video_views_p_25) as video_views_p_25,\n sum(hourly.video_views_p_50) as video_views_p_50, \n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value,\n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value,\n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n\n {{ tiktok_ads_persist_pass_through_columns(pass_through_variable='tiktok_ads__ad_hourly_passthrough_metrics', identifier='hourly', transform='sum', coalesce_with=0, exclude_fields=['real_time_conversion','total_purchase_value','total_sales_lead_value']) }} \n\n from hourly\n left join ads\n on hourly.ad_id = ads.ad_id\n and hourly.source_relation = ads.source_relation\n left join ad_groups \n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n and ads.source_relation = advertiser.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n {{ dbt_utils.group_by(15) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_report_hourly", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_history", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_tiktok_ads__advertiser", "package": null, "version": null}, {"name": "stg_tiktok_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads.tiktok_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_report_hourly`\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_history`\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_group_history`\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__advertiser`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__campaign_history`\n where is_most_recent_record\n),\n\naggregated as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n ad_groups.advertiser_id,\n advertiser.advertiser_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_groups.ad_group_id,\n ad_groups.ad_group_name,\n hourly.ad_id,\n ads.ad_name,\n advertiser.currency,\n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n sum(hourly.impressions) as impressions,\n sum(hourly.clicks) as clicks,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s,\n sum(hourly.video_watched_6_s) as video_watched_6_s,\n sum(hourly.video_views_p_25) as video_views_p_25,\n sum(hourly.video_views_p_50) as video_views_p_50, \n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value,\n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value,\n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n\n \n\n\n \n \n \n , sum(coalesce(hourly.real_time_conversions, 0)) as real_time_conversions\n \n \n \n \n , sum(coalesce(hourly.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(hourly.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(hourly.videos, 0)) as videos\n \n \n\n\n \n\n from hourly\n left join ads\n on hourly.ad_id = ads.ad_id\n and hourly.source_relation = ads.source_relation\n left join ad_groups \n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n and ads.source_relation = advertiser.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads.tiktok_ads__advertiser_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "tiktok_ads__advertiser_report", "resource_type": "model", "package_name": "tiktok_ads", "path": "tiktok_ads__advertiser_report.sql", "original_file_path": "models/tiktok_ads__advertiser_report.sql", "unique_id": "model.tiktok_ads.tiktok_ads__advertiser_report", "fqn": ["tiktok_ads", "tiktok_ads__advertiser_report"], "alias": "tiktok_ads__advertiser_report", "checksum": {"name": "sha256", "checksum": "2864322d2b43627936097dc82a145062861fa4410764fc5bd6e266ea70be8317"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Day of record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversion_value": {"name": "total_conversion_value", "description": "The accumulated value of `total_purchase_value` and `total_sales_lead_value`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpm": {"name": "daily_cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_ctr": {"name": "daily_ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.196994, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__advertiser_report`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith hourly as (\n \n select *\n from {{ var('ad_report_hourly') }}\n),\n\nadvertiser as (\n\n select *\n from {{ var('advertiser') }}\n), \n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record\n), \n\njoined as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n ads.advertiser_id,\n advertiser.advertiser_name,\n advertiser.currency,\n sum(hourly.clicks) as clicks,\n sum(hourly.impressions) as impressions,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s, \n sum(hourly.video_watched_6_s) as video_watched_6_s, \n sum(hourly.video_views_p_25) as video_views_p_25, \n sum(hourly.video_views_p_50) as video_views_p_50,\n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value,\n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value,\n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n\n {{ tiktok_ads_persist_pass_through_columns(pass_through_variable='tiktok_ads__ad_hourly_passthrough_metrics', identifier='hourly', transform='sum', coalesce_with=0, exclude_fields=['real_time_conversion','total_purchase_value','total_sales_lead_value']) }} \n\n from hourly\n left join ads\n on hourly.ad_id = ads.ad_id\n and hourly.source_relation = ads.source_relation\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n and ads.source_relation = advertiser.source_relation\n {{ dbt_utils.group_by(5) }}\n\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_report_hourly", "package": null, "version": null}, {"name": "stg_tiktok_ads__advertiser", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads.tiktok_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__ad_history"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__advertiser_report.sql", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_report_hourly`\n),\n\nadvertiser as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__advertiser`\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_history`\n where is_most_recent_record\n), \n\njoined as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n ads.advertiser_id,\n advertiser.advertiser_name,\n advertiser.currency,\n sum(hourly.clicks) as clicks,\n sum(hourly.impressions) as impressions,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s, \n sum(hourly.video_watched_6_s) as video_watched_6_s, \n sum(hourly.video_views_p_25) as video_views_p_25, \n sum(hourly.video_views_p_50) as video_views_p_50,\n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value,\n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value,\n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n\n \n\n\n \n \n \n , sum(coalesce(hourly.real_time_conversions, 0)) as real_time_conversions\n \n \n \n \n , sum(coalesce(hourly.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(hourly.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(hourly.videos, 0)) as videos\n \n \n\n\n \n\n from hourly\n left join ads\n on hourly.ad_id = ads.ad_id\n and hourly.source_relation = ads.source_relation\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n and ads.source_relation = advertiser.source_relation\n group by 1,2,3,4,5\n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads.twitter_ads__account_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "twitter_ads__account_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__account_report.sql", "original_file_path": "models/twitter_ads__account_report.sql", "unique_id": "model.twitter_ads.twitter_ads__account_report", "fqn": ["twitter_ads", "twitter_ads__account_report"], "alias": "twitter_ads__account_report", "checksum": {"name": "sha256", "checksum": "1c01032cde12cebe694d9b68ee1d347411201f67357c33f1a290f23886544d9d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account level, within a placement in Twitter.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend (in micros) for the account on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the account on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for th account on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the account on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the account on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_id": {"name": "business_id", "description": "The ID of the related business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_name": {"name": "business_name", "description": "The name of the related business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "industry_type": {"name": "industry_type", "description": "The industry of the accounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The timezone the account is set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone_switched_timestamp": {"name": "timezone_switched_timestamp", "description": "The timestamp the account's timezone was last changed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "Sum of all fields included in `twitter_ads__conversion_fields` variable (default = conversion_purchases_metric + conversion_custom_metric).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_sale_amount": {"name": "total_conversions_sale_amount", "description": "Sum of all fields included in `twitter_ads__conversion_sale_amount_fields` variable (default = conversion_purchases_sale_amount + conversion_custom_sale_amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.33356, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__account_report`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith accounts as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\npromoted_tweet_report as (\n \n select \n *,\n {# Let's sum up conversions into general fields for ease of use #}\n {{ var('twitter_ads__conversion_fields') | join(' + ') if var('twitter_ads__conversion_fields') else 0 }} as total_conversions,\n {{ var('twitter_ads__conversion_sale_amount_fields') | join(' + ') if var('twitter_ads__conversion_sale_amount_fields') else 0 }} as total_conversions_sale_amount\n\n from {{ var('promoted_tweet_report') }}\n),\n\nrollup_report as (\n\n select \n source_relation,\n date_day,\n account_id,\n placement,\n sum(clicks) as clicks, \n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(spend_micro) as spend_micro,\n sum(url_clicks) as url_clicks,\n sum(total_conversions) as total_conversions,\n sum(total_conversions_sale_amount) as total_conversions_sale_amount\n\n {# Persist all of the customizable fields #}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__promoted_tweet_report_passthrough_metrics') }}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_sale_amount_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__promoted_tweet_report_passthrough_metrics') }}\n {{ fivetran_utils.persist_pass_through_columns('twitter_ads__promoted_tweet_report_passthrough_metrics', transform='sum') }}\n \n from promoted_tweet_report\n {{ dbt_utils.group_by(4) }}\n\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n report.account_id,\n accounts.name as account_name,\n accounts.is_deleted,\n accounts.timezone,\n accounts.industry_type,\n accounts.approval_status,\n accounts.business_name,\n accounts.business_id,\n accounts.created_timestamp,\n accounts.updated_timestamp,\n accounts.timezone_switched_timestamp,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n {# Persist all of the customizable fields #}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__promoted_tweet_report_passthrough_metrics') }}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_sale_amount_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__promoted_tweet_report_passthrough_metrics') }}\n {{ fivetran_utils.persist_pass_through_columns('twitter_ads__promoted_tweet_report_passthrough_metrics', transform='sum') }}\n\n from rollup_report as report\n left join accounts \n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n {{ dbt_utils.group_by(14) }}\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__account_history", "package": null, "version": null}, {"name": "stg_twitter_ads__promoted_tweet_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads.twitter_ads_persist_pass_through_columns", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith accounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__account_history`\n where is_latest_version\n),\n\npromoted_tweet_report as (\n \n select \n *,\n \n conversion_purchases_metric + conversion_custom_metric as total_conversions,\n conversion_purchases_sale_amount + conversion_custom_sale_amount + conversion_sign_ups_sale_amount as total_conversions_sale_amount\n\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__promoted_tweet_report`\n),\n\nrollup_report as (\n\n select \n source_relation,\n date_day,\n account_id,\n placement,\n sum(clicks) as clicks, \n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(spend_micro) as spend_micro,\n sum(url_clicks) as url_clicks,\n sum(total_conversions) as total_conversions,\n sum(total_conversions_sale_amount) as total_conversions_sale_amount\n\n \n \n\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n \n \n \n \n , sum(coalesce(conversion_custom_metric, 0)) as conversion_custom_metric\n \n \n\n\n\n \n\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_sale_amount, 0)) as conversion_purchases_sale_amount\n \n \n \n , sum(coalesce(conversion_custom_sale_amount, 0)) as conversion_custom_sale_amount\n \n \n \n , sum(coalesce(conversion_sign_ups_sale_amount, 0)) as conversion_sign_ups_sale_amount\n \n \n\n\n\n \n\n\n \n , sum(conversions) as conversions\n \n , sum(installs) as installs\n \n , sum(videos) as videos\n \n\n\n\n \n from promoted_tweet_report\n group by 1,2,3,4\n\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n report.account_id,\n accounts.name as account_name,\n accounts.is_deleted,\n accounts.timezone,\n accounts.industry_type,\n accounts.approval_status,\n accounts.business_name,\n accounts.business_id,\n accounts.created_timestamp,\n accounts.updated_timestamp,\n accounts.timezone_switched_timestamp,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n \n \n\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n \n \n \n \n , sum(coalesce(conversion_custom_metric, 0)) as conversion_custom_metric\n \n \n\n\n\n \n\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_sale_amount, 0)) as conversion_purchases_sale_amount\n \n \n \n , sum(coalesce(conversion_custom_sale_amount, 0)) as conversion_custom_sale_amount\n \n \n \n , sum(coalesce(conversion_sign_ups_sale_amount, 0)) as conversion_sign_ups_sale_amount\n \n \n\n\n\n \n\n\n \n , sum(conversions) as conversions\n \n , sum(installs) as installs\n \n , sum(videos) as videos\n \n\n\n\n\n from rollup_report as report\n left join accounts \n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads.twitter_ads__campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "twitter_ads__campaign_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__campaign_report.sql", "original_file_path": "models/twitter_ads__campaign_report.sql", "unique_id": "model.twitter_ads.twitter_ads__campaign_report", "fqn": ["twitter_ads", "twitter_ads__campaign_report"], "alias": "twitter_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "9dbe42c209d7eb027a722795563374228911cefe492aec5995d4d540e0c97bb0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account and campaign level, within a placement in Twitter.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on that date. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions on that date. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend on that date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The amount of spend, in micros, on that date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The number of URL clicks on that date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "The time the campaign will end", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency_cap": {"name": "frequency_cap", "description": "The maximum number of times an ad could be delivered to a user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_servable": {"name": "is_servable", "description": "Whether the campaign is in a state to be actively served to users.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_standard_delivery": {"name": "is_standard_delivery", "description": "Whether standard delivery is enabled (vs accelerated delivery).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "The time the campaign will start.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Reference to the funding instrument.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_amount": {"name": "daily_budget_amount", "description": "The daily budget amount to be allocated to the campaign. The currency associated with the specified funding instrument will be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_budget_amount": {"name": "total_budget_amount", "description": "The total budget amount to be allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "Sum of all fields included in `twitter_ads__conversion_fields` variable (default = conversion_purchases_metric + conversion_custom_metric).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_sale_amount": {"name": "total_conversions_sale_amount", "description": "Sum of all fields included in `twitter_ads__conversion_sale_amount_fields` variable (default = conversion_purchases_sale_amount + conversion_custom_sale_amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.3271732, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith report as (\n\n select \n *,\n {# Let's sum up conversions into general fields for ease of use #}\n {{ var('twitter_ads__conversion_fields') | join(' + ') if var('twitter_ads__conversion_fields') else 0 }} as total_conversions,\n {{ var('twitter_ads__conversion_sale_amount_fields') | join(' + ') if var('twitter_ads__conversion_sale_amount_fields') else 0 }} as total_conversions_sale_amount\n\n from {{ var('campaign_report') }}\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n report.account_id,\n accounts.name as account_name,\n report.campaign_id,\n campaigns.campaign_name,\n campaigns.is_deleted,\n campaigns.entity_status as campaign_status,\n campaigns.currency,\n campaigns.is_servable,\n campaigns.is_standard_delivery,\n campaigns.frequency_cap,\n campaigns.start_timestamp,\n campaigns.end_timestamp,\n campaigns.created_timestamp,\n campaigns.updated_timestamp,\n campaigns.funding_instrument_id,\n campaigns.daily_budget_amount,\n campaigns.total_budget_amount,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n {# Persist all of the customizable fields #}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__campaign_report_passthrough_metrics') }}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_sale_amount_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__campaign_report_passthrough_metrics') }}\n {{ fivetran_utils.persist_pass_through_columns('twitter_ads__campaign_report_passthrough_metrics', transform='sum') }}\n\n from report \n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n {{ dbt_utils.group_by(20) }}\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_report", "package": null, "version": null}, {"name": "stg_twitter_ads__campaign_history", "package": null, "version": null}, {"name": "stg_twitter_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads.twitter_ads_persist_pass_through_columns", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__account_history"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select \n *,\n \n conversion_purchases_metric + conversion_custom_metric as total_conversions,\n conversion_purchases_sale_amount + conversion_custom_sale_amount + conversion_sign_ups_sale_amount as total_conversions_sale_amount\n\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__campaign_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__campaign_history`\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__account_history`\n where is_latest_version\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n report.account_id,\n accounts.name as account_name,\n report.campaign_id,\n campaigns.campaign_name,\n campaigns.is_deleted,\n campaigns.entity_status as campaign_status,\n campaigns.currency,\n campaigns.is_servable,\n campaigns.is_standard_delivery,\n campaigns.frequency_cap,\n campaigns.start_timestamp,\n campaigns.end_timestamp,\n campaigns.created_timestamp,\n campaigns.updated_timestamp,\n campaigns.funding_instrument_id,\n campaigns.daily_budget_amount,\n campaigns.total_budget_amount,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n \n \n\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n \n \n \n \n , sum(coalesce(conversion_custom_metric, 0)) as conversion_custom_metric\n \n \n\n\n\n \n\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_sale_amount, 0)) as conversion_purchases_sale_amount\n \n \n \n , sum(coalesce(conversion_custom_sale_amount, 0)) as conversion_custom_sale_amount\n \n \n \n , sum(coalesce(conversion_sign_ups_sale_amount, 0)) as conversion_sign_ups_sale_amount\n \n \n\n\n\n \n\n\n \n , sum(conversions) as conversions\n \n , sum(installs) as installs\n \n , sum(videos) as videos\n \n\n\n\n\n from report \n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads.twitter_ads__url_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "twitter_ads__url_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__url_report.sql", "original_file_path": "models/twitter_ads__url_report.sql", "unique_id": "model.twitter_ads.twitter_ads__url_report", "fqn": ["twitter_ads", "twitter_ads__url_report"], "alias": "twitter_ads__url_report", "checksum": {"name": "sha256", "checksum": "f6f4aab372789ea4e160e91bcd807cc1f3413cf5ee1ec8fb87a68febd63b76fe"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account, campaign, line item (ad group), promoted tweet, and url level, within a placement in Twitter.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item (ad group).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_name": {"name": "line_item_name", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "promoted_tweet_id": {"name": "promoted_tweet_id", "description": "The ID of the promoted tweet that the URL appeared in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_name": {"name": "tweet_name", "description": "The name, if provided, of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_full_text": {"name": "tweet_full_text", "description": "The full text of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The URL as it will be displayed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expanded_url": {"name": "expanded_url", "description": "The fully expanded URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the promoted tweet + URL on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the promoted tweet + URL on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the promoted tweet + URL on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend, in micros, for the tweet + URL on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The URL clicks for the promoted tweet + URL on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "Sum of all fields included in `twitter_ads__conversion_fields` variable (default = conversion_purchases_metric + conversion_custom_metric).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_sale_amount": {"name": "total_conversions_sale_amount", "description": "Sum of all fields included in `twitter_ads__conversion_sale_amount_fields` variable (default = conversion_purchases_sale_amount + conversion_custom_sale_amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.338124, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__url_report`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith report as (\n\n select \n *,\n {# Let's sum up conversions into general fields for ease of use #}\n {{ var('twitter_ads__conversion_fields') | join(' + ') if var('twitter_ads__conversion_fields') else 0 }} as total_conversions,\n {{ var('twitter_ads__conversion_sale_amount_fields') | join(' + ') if var('twitter_ads__conversion_sale_amount_fields') else 0 }} as total_conversions_sale_amount\n\n from {{ var('promoted_tweet_report') }}\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from {{ var('line_item_history') }}\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from {{ var('promoted_tweet_history') }}\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from {{ var('tweet') }}\n),\n\ntweet_url as (\n\n select *\n from {{ var('tweet_url') }}\n where index = 0\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n accounts.account_id,\n accounts.name as account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n line_items.line_item_id,\n line_items.name as line_item_name,\n promoted_tweets.promoted_tweet_id,\n promoted_tweets.tweet_id,\n tweets.name as tweet_name,\n tweets.full_text as tweet_full_text,\n tweet_url.base_url,\n tweet_url.url_host,\n tweet_url.url_path,\n tweet_url.utm_source,\n tweet_url.utm_medium,\n tweet_url.utm_campaign,\n tweet_url.utm_content,\n tweet_url.utm_term,\n tweet_url.expanded_url,\n tweet_url.display_url,\n campaigns.currency,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n {# Persist all of the customizable fields #}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__promoted_tweet_report_passthrough_metrics') }}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_sale_amount_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__promoted_tweet_report_passthrough_metrics') }}\n {{ fivetran_utils.persist_pass_through_columns('twitter_ads__promoted_tweet_report_passthrough_metrics', transform='sum') }}\n\n from report \n left join promoted_tweets \n on report.promoted_tweet_id = promoted_tweets.promoted_tweet_id\n and report.source_relation = promoted_tweets.source_relation\n left join tweet_url \n on promoted_tweets.tweet_id = tweet_url.tweet_id\n and promoted_tweets.source_relation = tweet_url.source_relation\n left join tweets\n on promoted_tweets.tweet_id = tweets.tweet_id\n and promoted_tweets.source_relation = tweets.source_relation\n left join line_items\n on promoted_tweets.line_item_id = line_items.line_item_id\n and promoted_tweets.source_relation = line_items.source_relation\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n and line_items.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n \n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where tweet_url.expanded_url is not null\n {% endif %}\n\n {{ dbt_utils.group_by(24) }}\n\n \n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_report", "package": null, "version": null}, {"name": "stg_twitter_ads__campaign_history", "package": null, "version": null}, {"name": "stg_twitter_ads__account_history", "package": null, "version": null}, {"name": "stg_twitter_ads__line_item_history", "package": null, "version": null}, {"name": "stg_twitter_ads__promoted_tweet_history", "package": null, "version": null}, {"name": "stg_twitter_ads__tweet", "package": null, "version": null}, {"name": "stg_twitter_ads__tweet_url", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads.twitter_ads_persist_pass_through_columns", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "model.twitter_ads_source.stg_twitter_ads__tweet", "model.twitter_ads_source.stg_twitter_ads__tweet_url"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select \n *,\n \n conversion_purchases_metric + conversion_custom_metric as total_conversions,\n conversion_purchases_sale_amount + conversion_custom_sale_amount + conversion_sign_ups_sale_amount as total_conversions_sale_amount\n\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__promoted_tweet_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__campaign_history`\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__account_history`\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_history`\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__promoted_tweet_history`\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__tweet`\n),\n\ntweet_url as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__tweet_url`\n where index = 0\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n accounts.account_id,\n accounts.name as account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n line_items.line_item_id,\n line_items.name as line_item_name,\n promoted_tweets.promoted_tweet_id,\n promoted_tweets.tweet_id,\n tweets.name as tweet_name,\n tweets.full_text as tweet_full_text,\n tweet_url.base_url,\n tweet_url.url_host,\n tweet_url.url_path,\n tweet_url.utm_source,\n tweet_url.utm_medium,\n tweet_url.utm_campaign,\n tweet_url.utm_content,\n tweet_url.utm_term,\n tweet_url.expanded_url,\n tweet_url.display_url,\n campaigns.currency,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n \n \n\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n \n \n \n \n , sum(coalesce(conversion_custom_metric, 0)) as conversion_custom_metric\n \n \n\n\n\n \n\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_sale_amount, 0)) as conversion_purchases_sale_amount\n \n \n \n , sum(coalesce(conversion_custom_sale_amount, 0)) as conversion_custom_sale_amount\n \n \n \n , sum(coalesce(conversion_sign_ups_sale_amount, 0)) as conversion_sign_ups_sale_amount\n \n \n\n\n\n \n\n\n \n , sum(conversions) as conversions\n \n , sum(installs) as installs\n \n , sum(videos) as videos\n \n\n\n\n\n from report \n left join promoted_tweets \n on report.promoted_tweet_id = promoted_tweets.promoted_tweet_id\n and report.source_relation = promoted_tweets.source_relation\n left join tweet_url \n on promoted_tweets.tweet_id = tweet_url.tweet_id\n and promoted_tweets.source_relation = tweet_url.source_relation\n left join tweets\n on promoted_tweets.tweet_id = tweets.tweet_id\n and promoted_tweets.source_relation = tweets.source_relation\n left join line_items\n on promoted_tweets.line_item_id = line_items.line_item_id\n and promoted_tweets.source_relation = line_items.source_relation\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n and line_items.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n \n \n where tweet_url.expanded_url is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\n\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads.twitter_ads__promoted_tweet_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "twitter_ads__promoted_tweet_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__promoted_tweet_report.sql", "original_file_path": "models/twitter_ads__promoted_tweet_report.sql", "unique_id": "model.twitter_ads.twitter_ads__promoted_tweet_report", "fqn": ["twitter_ads", "twitter_ads__promoted_tweet_report"], "alias": "twitter_ads__promoted_tweet_report", "checksum": {"name": "sha256", "checksum": "41ca91cfdbaefea30d695d45b273fd8bec77a23ea452ba123c64db8d12fd217e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account, campaign, line item (ad group), and promoted tweet level, within a placement in Twitter.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item (ad group).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_name": {"name": "line_item_name", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "promoted_tweet_id": {"name": "promoted_tweet_id", "description": "The ID of the promoted tweet that the URL appeared in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_name": {"name": "tweet_name", "description": "The name, if provided, of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_text": {"name": "full_text", "description": "The full text of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the promoted tweet + URL on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the promoted tweet + URL on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the promoted tweet + URL on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend, in micros, for the tweet + URL on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The URL clicks for the promoted tweet + URL on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "promoted_tweet_status": {"name": "promoted_tweet_status", "description": "The status of the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the tweet's campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_status": {"name": "line_item_status", "description": "The status of the tweet's line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "Two-letter language code of the tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "Sum of all fields included in `twitter_ads__conversion_fields` variable (default = conversion_purchases_metric + conversion_custom_metric).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_sale_amount": {"name": "total_conversions_sale_amount", "description": "Sum of all fields included in `twitter_ads__conversion_sale_amount_fields` variable (default = conversion_purchases_sale_amount + conversion_custom_sale_amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.336458, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__promoted_tweet_report`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith report as (\n\n select \n *,\n {# Let's sum up conversions into general fields for ease of use #}\n {{ var('twitter_ads__conversion_fields') | join(' + ') if var('twitter_ads__conversion_fields') else 0 }} as total_conversions,\n {{ var('twitter_ads__conversion_sale_amount_fields') | join(' + ') if var('twitter_ads__conversion_sale_amount_fields') else 0 }} as total_conversions_sale_amount\n\n from {{ var('promoted_tweet_report') }}\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from {{ var('line_item_history') }}\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from {{ var('promoted_tweet_history') }}\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from {{ var('tweet') }}\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n accounts.account_id,\n accounts.name as account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n line_items.line_item_id,\n line_items.name as line_item_name,\n promoted_tweets.promoted_tweet_id,\n promoted_tweets.tweet_id,\n tweets.name as tweet_name,\n tweets.full_text,\n promoted_tweets.is_deleted,\n promoted_tweets.entity_status as promoted_tweet_status,\n campaigns.entity_status as campaign_status,\n line_items.entity_status as line_item_status,\n tweets.language,\n campaigns.currency,\n promoted_tweets.approval_status,\n promoted_tweets.created_timestamp,\n promoted_tweets.updated_timestamp,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n {# Persist all of the customizable fields #}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__promoted_tweet_report_passthrough_metrics') }}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_sale_amount_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__promoted_tweet_report_passthrough_metrics') }}\n {{ fivetran_utils.persist_pass_through_columns('twitter_ads__promoted_tweet_report_passthrough_metrics', transform='sum') }}\n\n from report \n left join promoted_tweets \n on report.promoted_tweet_id = promoted_tweets.promoted_tweet_id\n and report.source_relation = promoted_tweets.source_relation\n left join tweets\n on promoted_tweets.tweet_id = tweets.tweet_id\n and promoted_tweets.source_relation = tweets.source_relation\n left join line_items\n on promoted_tweets.line_item_id = line_items.line_item_id\n and promoted_tweets.source_relation = line_items.source_relation\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n and line_items.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n {{ dbt_utils.group_by(22) }}\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_report", "package": null, "version": null}, {"name": "stg_twitter_ads__campaign_history", "package": null, "version": null}, {"name": "stg_twitter_ads__account_history", "package": null, "version": null}, {"name": "stg_twitter_ads__line_item_history", "package": null, "version": null}, {"name": "stg_twitter_ads__promoted_tweet_history", "package": null, "version": null}, {"name": "stg_twitter_ads__tweet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads.twitter_ads_persist_pass_through_columns", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "model.twitter_ads_source.stg_twitter_ads__tweet"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__promoted_tweet_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select \n *,\n \n conversion_purchases_metric + conversion_custom_metric as total_conversions,\n conversion_purchases_sale_amount + conversion_custom_sale_amount + conversion_sign_ups_sale_amount as total_conversions_sale_amount\n\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__promoted_tweet_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__campaign_history`\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__account_history`\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_history`\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__promoted_tweet_history`\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__tweet`\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n accounts.account_id,\n accounts.name as account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n line_items.line_item_id,\n line_items.name as line_item_name,\n promoted_tweets.promoted_tweet_id,\n promoted_tweets.tweet_id,\n tweets.name as tweet_name,\n tweets.full_text,\n promoted_tweets.is_deleted,\n promoted_tweets.entity_status as promoted_tweet_status,\n campaigns.entity_status as campaign_status,\n line_items.entity_status as line_item_status,\n tweets.language,\n campaigns.currency,\n promoted_tweets.approval_status,\n promoted_tweets.created_timestamp,\n promoted_tweets.updated_timestamp,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n \n \n\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n \n \n \n \n , sum(coalesce(conversion_custom_metric, 0)) as conversion_custom_metric\n \n \n\n\n\n \n\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_sale_amount, 0)) as conversion_purchases_sale_amount\n \n \n \n , sum(coalesce(conversion_custom_sale_amount, 0)) as conversion_custom_sale_amount\n \n \n \n , sum(coalesce(conversion_sign_ups_sale_amount, 0)) as conversion_sign_ups_sale_amount\n \n \n\n\n\n \n\n\n \n , sum(conversions) as conversions\n \n , sum(installs) as installs\n \n , sum(videos) as videos\n \n\n\n\n\n from report \n left join promoted_tweets \n on report.promoted_tweet_id = promoted_tweets.promoted_tweet_id\n and report.source_relation = promoted_tweets.source_relation\n left join tweets\n on promoted_tweets.tweet_id = tweets.tweet_id\n and promoted_tweets.source_relation = tweets.source_relation\n left join line_items\n on promoted_tweets.line_item_id = line_items.line_item_id\n and promoted_tweets.source_relation = line_items.source_relation\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n and line_items.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads.twitter_ads__line_item_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "twitter_ads__line_item_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__line_item_report.sql", "original_file_path": "models/twitter_ads__line_item_report.sql", "unique_id": "model.twitter_ads.twitter_ads__line_item_report", "fqn": ["twitter_ads", "twitter_ads__line_item_report"], "alias": "twitter_ads__line_item_report", "checksum": {"name": "sha256", "checksum": "4235dc7ccb275b987287e1497226672a8ce71faf425e527359e795c1bba89116"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account, campaign, and line item (ad group) level, within a placement in Twitter.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the line item's campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the line item's campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on that date. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions on that date. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_name": {"name": "line_item_name", "description": "The name of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend on that date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The amount of spend, in micros, on that date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The number of URL clicks on that date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_domain": {"name": "advertiser_domain", "description": "The website domain for this advertiser, without the protocol specification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_user_id": {"name": "advertiser_user_id", "description": "The Twitter user identifier for the handle promoting the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_type": {"name": "bid_type", "description": "The bidding mechanism.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_unit": {"name": "bid_unit", "description": "The bid unit for this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "charge_by": {"name": "charge_by", "description": "The unit to charge this line item by.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_source": {"name": "creative_source", "description": "The source of the creatives for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency in which metrics will be reported.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "The timestamp at which the line item will stop being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_status": {"name": "line_item_status", "description": "The status of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the line item's related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The campaign objective for this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization": {"name": "optimization", "description": "The optimization setting to use with this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_web_event_tag": {"name": "primary_web_event_tag", "description": "The identifier of the primary web event tag. Allows more accurate tracking of engagements for the campaign pertaining to this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "product_type": {"name": "product_type", "description": "The type of promoted product that this line item will contain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "The timestamp at which the line item will start being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount": {"name": "bid_amount", "description": "The bid amount to be associated with this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_budget_amount": {"name": "total_budget_amount", "description": "The total budget amount to be allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "target_cpa": {"name": "target_cpa", "description": "The target cost per acquisition for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "Sum of all fields included in `twitter_ads__conversion_fields` variable (default = conversion_purchases_metric + conversion_custom_metric).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_sale_amount": {"name": "total_conversions_sale_amount", "description": "Sum of all fields included in `twitter_ads__conversion_sale_amount_fields` variable (default = conversion_purchases_sale_amount + conversion_custom_sale_amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.331598, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__line_item_report`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith report as (\n\n select \n *,\n {# Let's sum up conversions into general fields for ease of use #}\n {{ var('twitter_ads__conversion_fields') | join(' + ') if var('twitter_ads__conversion_fields') else 0 }} as total_conversions,\n {{ var('twitter_ads__conversion_sale_amount_fields') | join(' + ') if var('twitter_ads__conversion_sale_amount_fields') else 0 }} as total_conversions_sale_amount\n\n from {{ var('line_item_report') }}\n),\n\nline_items as (\n\n select *\n from {{ var('line_item_history') }}\n where is_latest_version\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n report.account_id,\n accounts.name as account_name,\n line_items.campaign_id,\n campaigns.campaign_name,\n report.line_item_id,\n line_items.name as line_item_name,\n line_items.is_deleted,\n line_items.entity_status as line_item_status,\n campaigns.entity_status as campaign_status,\n line_items.currency,\n line_items.advertiser_domain,\n line_items.advertiser_user_id,\n line_items.bid_type,\n line_items.bid_unit,\n line_items.charge_by,\n line_items.objective,\n line_items.optimization,\n line_items.product_type,\n line_items.primary_web_event_tag,\n line_items.creative_source,\n line_items.start_timestamp,\n line_items.end_timestamp,\n line_items.created_timestamp,\n line_items.updated_timestamp,\n line_items.target_cpa,\n line_items.total_budget_amount,\n line_items.bid_amount,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n {# Persist all of the customizable fields #}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__line_item_report_passthrough_metrics') }}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_sale_amount_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__line_item_report_passthrough_metrics') }}\n {{ fivetran_utils.persist_pass_through_columns('twitter_ads__line_item_report_passthrough_metrics', transform='sum')}}\n\n from report \n left join line_items\n on report.line_item_id = line_items.line_item_id\n and report.source_relation = line_items.source_relation\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n and line_items.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n {{ dbt_utils.group_by(30) }}\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_report", "package": null, "version": null}, {"name": "stg_twitter_ads__line_item_history", "package": null, "version": null}, {"name": "stg_twitter_ads__campaign_history", "package": null, "version": null}, {"name": "stg_twitter_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads.twitter_ads_persist_pass_through_columns", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__account_history"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__line_item_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select \n *,\n \n conversion_purchases_metric + conversion_custom_metric as total_conversions,\n conversion_purchases_sale_amount + conversion_custom_sale_amount + conversion_sign_ups_sale_amount as total_conversions_sale_amount\n\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_report`\n),\n\nline_items as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_history`\n where is_latest_version\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__campaign_history`\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__account_history`\n where is_latest_version\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n report.account_id,\n accounts.name as account_name,\n line_items.campaign_id,\n campaigns.campaign_name,\n report.line_item_id,\n line_items.name as line_item_name,\n line_items.is_deleted,\n line_items.entity_status as line_item_status,\n campaigns.entity_status as campaign_status,\n line_items.currency,\n line_items.advertiser_domain,\n line_items.advertiser_user_id,\n line_items.bid_type,\n line_items.bid_unit,\n line_items.charge_by,\n line_items.objective,\n line_items.optimization,\n line_items.product_type,\n line_items.primary_web_event_tag,\n line_items.creative_source,\n line_items.start_timestamp,\n line_items.end_timestamp,\n line_items.created_timestamp,\n line_items.updated_timestamp,\n line_items.target_cpa,\n line_items.total_budget_amount,\n line_items.bid_amount,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n \n \n\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n \n \n \n \n , sum(coalesce(conversion_custom_metric, 0)) as conversion_custom_metric\n \n \n\n\n\n \n\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_sale_amount, 0)) as conversion_purchases_sale_amount\n \n \n \n , sum(coalesce(conversion_custom_sale_amount, 0)) as conversion_custom_sale_amount\n \n \n \n , sum(coalesce(conversion_sign_ups_sale_amount, 0)) as conversion_sign_ups_sale_amount\n \n \n\n\n\n \n\n\n \n , sum(conversions) as conversions\n \n , sum(installs) as installs\n \n , sum(videos) as videos\n \n\n\n\n\n from report \n left join line_items\n on report.line_item_id = line_items.line_item_id\n and report.source_relation = line_items.source_relation\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n and line_items.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads.reddit_ads__campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "reddit_ads__campaign_report", "resource_type": "model", "package_name": "reddit_ads", "path": "reddit_ads__campaign_report.sql", "original_file_path": "models/reddit_ads__campaign_report.sql", "unique_id": "model.reddit_ads.reddit_ads__campaign_report", "fqn": ["reddit_ads", "reddit_ads__campaign_report"], "alias": "reddit_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "58b0c34ac5f977a30056d0df65cd65e7505f1d902b5e588ac951bf3662912fe3"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily number of clicks, impressions, and spend per campaign, along with account information.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.39311, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('campaign_daily_report') }}\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign') }}\n),\n\naccounts as (\n\n select *\n from {{ var('account') }}\n),\n\n{# This includes data at the event type level that we'll need to roll up and pivot out #}\nconversions_report as (\n\n select *\n from {{ var('campaign_conversions_report') }}\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n campaign_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__campaign_conversions_passthrough_metrics', transform = 'sum') }}\n\n from conversions_report\n\n {% if var('reddit_ads__conversion_event_types') %}\n where \n {% for event_type in var('reddit_ads__conversion_event_types') %}\n event_name = '{{ event_type|lower }}'\n {% if not loop.last %} or {% endif %} \n {% endfor %}\n {% endif %}\n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n accounts.currency,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n {{ reddit_ads_persist_pass_through_columns(pass_through_variable='reddit_ads__campaign_passthrough_metrics', identifier = 'report', transform = 'sum', alias_fields=['conversions', 'view_through_conversions', 'total_value', 'total_items']) }}\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__campaign_conversions_passthrough_metrics', transform = 'sum') }}\n\n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join rollup_conversions_report\n on report.campaign_id = rollup_conversions_report.campaign_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n {{ dbt_utils.group_by(6) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign_report", "package": null, "version": null}, {"name": "stg_reddit_ads__campaign", "package": null, "version": null}, {"name": "stg_reddit_ads__account", "package": null, "version": null}, {"name": "stg_reddit_ads__campaign_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.reddit_ads.reddit_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_report", "model.reddit_ads_source.stg_reddit_ads__campaign", "model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign`\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account`\n),\n\n\nconversions_report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign_conversions_report`\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n campaign_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n \n\n\n\n\n\n from conversions_report\n\n \n where \n \n event_name = 'lead'\n or \n \n event_name = 'purchase'\n or \n \n event_name = 'custom'\n \n \n \n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n accounts.currency,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n \n\n\n \n \n , sum(cast(report.conversions as FLOAT64)) \n as conversions_c\n \n \n , sum(cast(report.installs as FLOAT64)) \n as installs\n \n \n , sum(cast(report.videos as FLOAT64)) \n as videos\n \n\n\n\n\n \n\n\n\n\n\n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join rollup_conversions_report\n on report.campaign_id = rollup_conversions_report.campaign_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n group by 1,2,3,4,5,6\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads.reddit_ads__url_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "reddit_ads__url_report", "resource_type": "model", "package_name": "reddit_ads", "path": "reddit_ads__url_report.sql", "original_file_path": "models/reddit_ads__url_report.sql", "unique_id": "model.reddit_ads.reddit_ads__url_report", "fqn": ["reddit_ads", "reddit_ads__url_report"], "alias": "reddit_ads__url_report", "checksum": {"name": "sha256", "checksum": "a0f2385ea82d16057f45e5537941a121b507f685b5ac2ed2541c4ee806ee6c76"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily number of clicks, impressions, and spend per url and utm parameters, along with post,ad, account, campaign, and ad group information.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_id": {"name": "post_id", "description": "The ID of the post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_url": {"name": "post_url", "description": "The URL belonging to the post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_url": {"name": "click_url", "description": "The destination url, or the website address, that a visitor goes to when they click on the ad", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `click_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `click_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `click_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The site that sent traffic to your page. Microsoft Advertising sets this to Bing; extracted from the `click_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "Which channel was used. Microsoft Advertising sets this to cp; extracted from the `click_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "Which campaign the keyword came from; extracted from the `click_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "Which ad group the keyword came from; extracted from the `click_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "Which keyword brought people to your website; extracted from the `click_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.39501, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__url_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_daily_report') }}\n),\n\nads as (\n\n select *\n from {{ var('ad') }}\n),\n\nad_groups as (\n\n select *\n from {{ var('ad_group') }}\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account') }}\n),\n\n{# This includes data at the event type level that we'll need to roll up and pivot out #}\nconversions_report as (\n\n select *\n from {{ var('ad_conversions_report') }}\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n ad_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_conversions_passthrough_metrics', transform = 'sum') }}\n\n from conversions_report\n\n {% if var('reddit_ads__conversion_event_types') %}\n where \n {% for event_type in var('reddit_ads__conversion_event_types') %}\n event_name = '{{ event_type|lower }}'\n {% if not loop.last %} or {% endif %} \n {% endfor %}\n {% endif %}\n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n ads.ad_name,\n report.ad_id,\n report.account_id,\n campaigns.campaign_name,\n ads.campaign_id,\n ad_groups.ad_group_name,\n ads.ad_group_id,\n accounts.currency,\n ads.post_id,\n ads.post_url,\n ads.click_url,\n {{ dbt.split_part('ads.click_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('ads.click_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('ads.click_url') }} as url_path,\n {{ reddit_ads.reddit_ads_extract_url_parameter('ads.click_url', 'utm_source') }} as utm_source,\n {{ reddit_ads.reddit_ads_extract_url_parameter('ads.click_url', 'utm_medium') }} as utm_medium,\n {{ reddit_ads.reddit_ads_extract_url_parameter('ads.click_url', 'utm_term') }} as utm_term,\n {{ reddit_ads.reddit_ads_extract_url_parameter('ads.click_url', 'utm_content') }} as utm_content,\n coalesce( {{ reddit_ads.reddit_ads_extract_url_parameter('ads.click_url', 'utm_campaign') }}, campaigns.campaign_name) as utm_campaign,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n {{ reddit_ads_persist_pass_through_columns(pass_through_variable='reddit_ads__ad_passthrough_metrics', identifier = 'report', transform = 'sum', alias_fields=['conversions', 'view_through_conversions', 'total_value', 'total_items']) }}\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_conversions_passthrough_metrics', transform = 'sum') }}\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join rollup_conversions_report\n on report.ad_id = rollup_conversions_report.ad_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n \n {{ dbt_utils.group_by(20) }}\n), \n\nfiltered as (\n\n select *\n from joined\n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where click_url is not null -- filter for only ads with valid URLs\n {% endif %}\n)\n\nselect *\nfrom filtered", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_report", "package": null, "version": null}, {"name": "stg_reddit_ads__ad", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_group", "package": null, "version": null}, {"name": "stg_reddit_ads__campaign", "package": null, "version": null}, {"name": "stg_reddit_ads__account", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.reddit_ads.reddit_ads_extract_url_parameter", "macro.reddit_ads.reddit_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_report", "model.reddit_ads_source.stg_reddit_ads__ad", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__campaign", "model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_report`\n),\n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad`\n),\n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account`\n),\n\n\nconversions_report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_conversions_report`\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n ad_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n \n\n\n\n\n\n from conversions_report\n\n \n where \n \n event_name = 'lead'\n or \n \n event_name = 'purchase'\n or \n \n event_name = 'custom'\n \n \n \n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n ads.ad_name,\n report.ad_id,\n report.account_id,\n campaigns.campaign_name,\n ads.campaign_id,\n ad_groups.ad_group_name,\n ads.ad_group_id,\n accounts.currency,\n ads.post_id,\n ads.post_url,\n ads.click_url,\n \n\n \n split(\n ads.click_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_host,\n '/' || safe_cast(\n\n \n split(\n \n\n case when \n\n length(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ) = 0\n then ''\n else\n substr(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n -1 * (\n\n length(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_path,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.click_url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.click_url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.click_url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.click_url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n coalesce( nullif(\n\n \n split(\n \n\n \n split(\n ads.click_url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,''), campaigns.campaign_name) as utm_campaign,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n \n\n\n \n \n , sum(cast(report.conversions as FLOAT64)) \n as conversions_c\n \n \n , sum(cast(report.installs as FLOAT64)) \n as installs\n \n \n , sum(cast(report.videos as FLOAT64)) \n as videos\n \n\n\n\n\n \n\n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join rollup_conversions_report\n on report.ad_id = rollup_conversions_report.ad_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n \n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20\n), \n\nfiltered as (\n\n select *\n from joined\n\n \n where click_url is not null -- filter for only ads with valid URLs\n \n)\n\nselect *\nfrom filtered", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads.reddit_ads__account_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "reddit_ads__account_report", "resource_type": "model", "package_name": "reddit_ads", "path": "reddit_ads__account_report.sql", "original_file_path": "models/reddit_ads__account_report.sql", "unique_id": "model.reddit_ads.reddit_ads__account_report", "fqn": ["reddit_ads", "reddit_ads__account_report"], "alias": "reddit_ads__account_report", "checksum": {"name": "sha256", "checksum": "d2f85cb8344c998d2eaef5efbf48e12ab9d42bb8de2f14c60a960c42c8ced12d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily number of clicks, impressions, and spend of ads by account, account timezone, attribution type, and currency.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attribution_type": {"name": "attribution_type", "description": "Attribution type: \"CLICK_THROUGH_CONVERSION\", \"VIEW_THROUGH_CONVERSION\", or \"ALL_CONVERSION\".\nCLICK_THROUGH_CONVERSION: A user clicked on your ad and then completed the conversion action on your site. \nVIEW_THROUGH_CONVERSION: A user saw your ad and did not click it, but did complete the conversion action on your site.\nALL_CONVERSION: Combination of both.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current state of the advertiser. \"PENDING_BILLING\", \"VALID\", \"TRUSTED\", \"ADMIN\", \"FAILED_BILLING\", \"SUSPICIOUS\", \"SUSPENDED\", or \"BANNED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone_id": {"name": "time_zone_id", "description": "The time zone id preference for this account", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.390669, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__account_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('account_daily_report') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account') }}\n),\n\n{# This includes data at the event type level that we'll need to roll up and pivot out #}\nconversions_report as (\n\n select *\n from {{ var('account_conversions_report') }}\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n account_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__account_conversions_passthrough_metrics', transform = 'sum') }}\n\n from conversions_report\n\n {% if var('reddit_ads__conversion_event_types') %}\n where \n {% for event_type in var('reddit_ads__conversion_event_types') %}\n event_name = '{{ event_type|lower }}'\n {% if not loop.last %} or {% endif %} \n {% endfor %}\n {% endif %}\n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n report.account_id,\n accounts.currency,\n accounts.attribution_type,\n accounts.status,\n accounts.time_zone_id,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n {{ reddit_ads_persist_pass_through_columns(pass_through_variable='reddit_ads__account_passthrough_metrics', identifier = 'report', transform = 'sum', alias_fields=['conversions', 'view_through_conversions', 'total_value', 'total_items']) }}\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__account_conversions_passthrough_metrics', transform = 'sum') }}\n\n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join rollup_conversions_report\n on report.account_id = rollup_conversions_report.account_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_reddit_ads__account_report", "package": null, "version": null}, {"name": "stg_reddit_ads__account", "package": null, "version": null}, {"name": "stg_reddit_ads__account_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.reddit_ads.reddit_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_report", "model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__account_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account_report`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account`\n),\n\n\nconversions_report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account_conversions_report`\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n account_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n \n\n\n\n\n\n from conversions_report\n\n \n where \n \n event_name = 'lead'\n or \n \n event_name = 'purchase'\n or \n \n event_name = 'custom'\n \n \n \n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n report.account_id,\n accounts.currency,\n accounts.attribution_type,\n accounts.status,\n accounts.time_zone_id,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n \n\n\n \n \n , sum(cast(report.conversions as FLOAT64)) \n as conversions_c\n \n \n , sum(cast(report.installs as FLOAT64)) \n as installs\n \n \n , sum(cast(report.videos as FLOAT64)) \n as videos\n \n\n\n\n\n \n\n\n\n\n\n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join rollup_conversions_report\n on report.account_id = rollup_conversions_report.account_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads.reddit_ads__ad_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "reddit_ads__ad_report", "resource_type": "model", "package_name": "reddit_ads", "path": "reddit_ads__ad_report.sql", "original_file_path": "models/reddit_ads__ad_report.sql", "unique_id": "model.reddit_ads.reddit_ads__ad_report", "fqn": ["reddit_ads", "reddit_ads__ad_report"], "alias": "reddit_ads__ad_report", "checksum": {"name": "sha256", "checksum": "f15b1a5a445a33560d83b5793146341f7446a9e68202be4f7c998af2529b76ba"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily number of clicks, impressions, and spend per ad, along with account, campaign, ad group, and post information.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_id": {"name": "post_id", "description": "The ID of the post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.392319, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__ad_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_daily_report') }}\n),\n\nads as (\n\n select *\n from {{ var('ad') }}\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group') }}\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign') }}\n),\n\naccounts as (\n\n select *\n from {{ var('account') }}\n),\n\n{# This includes data at the event type level that we'll need to roll up and pivot out #}\nconversions_report as (\n\n select *\n from {{ var('ad_conversions_report') }}\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n ad_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_conversions_passthrough_metrics', transform = 'sum') }}\n\n from conversions_report\n\n {% if var('reddit_ads__conversion_event_types') %}\n where \n {% for event_type in var('reddit_ads__conversion_event_types') %}\n event_name = '{{ event_type|lower }}'\n {% if not loop.last %} or {% endif %} \n {% endfor %}\n {% endif %}\n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n report.ad_id,\n ads.ad_name,\n report.account_id,\n campaigns.campaign_name,\n ads.campaign_id,\n ad_groups.ad_group_name,\n ads.ad_group_id,\n accounts.currency,\n ads.post_id,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n {{ reddit_ads_persist_pass_through_columns(pass_through_variable='reddit_ads__ad_passthrough_metrics', identifier = 'report', transform = 'sum', alias_fields=['conversions', 'view_through_conversions', 'total_value', 'total_items']) }}\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_conversions_passthrough_metrics', transform = 'sum') }}\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join rollup_conversions_report\n on report.ad_id = rollup_conversions_report.ad_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n {{ dbt_utils.group_by(11) }}\n\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_report", "package": null, "version": null}, {"name": "stg_reddit_ads__ad", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_group", "package": null, "version": null}, {"name": "stg_reddit_ads__campaign", "package": null, "version": null}, {"name": "stg_reddit_ads__account", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.reddit_ads.reddit_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_report", "model.reddit_ads_source.stg_reddit_ads__ad", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__campaign", "model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_report`\n),\n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad`\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign`\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account`\n),\n\n\nconversions_report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_conversions_report`\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n ad_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n \n\n\n\n\n\n from conversions_report\n\n \n where \n \n event_name = 'lead'\n or \n \n event_name = 'purchase'\n or \n \n event_name = 'custom'\n \n \n \n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n report.ad_id,\n ads.ad_name,\n report.account_id,\n campaigns.campaign_name,\n ads.campaign_id,\n ad_groups.ad_group_name,\n ads.ad_group_id,\n accounts.currency,\n ads.post_id,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n \n\n\n \n \n , sum(cast(report.conversions as FLOAT64)) \n as conversions_c\n \n \n , sum(cast(report.installs as FLOAT64)) \n as installs\n \n \n , sum(cast(report.videos as FLOAT64)) \n as videos\n \n\n\n\n\n \n\n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join rollup_conversions_report\n on report.ad_id = rollup_conversions_report.ad_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n group by 1,2,3,4,5,6,7,8,9,10,11\n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads.reddit_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "reddit_ads__ad_group_report", "resource_type": "model", "package_name": "reddit_ads", "path": "reddit_ads__ad_group_report.sql", "original_file_path": "models/reddit_ads__ad_group_report.sql", "unique_id": "model.reddit_ads.reddit_ads__ad_group_report", "fqn": ["reddit_ads", "reddit_ads__ad_group_report"], "alias": "reddit_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "da3e58c2430f6d79ff4238d481dce7d78a509733639e6c94900c09fe418fdd67"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily number of clicks, impressions, and spend per ad group, along with campaign and account information.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.391346, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__ad_group_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_group_daily_report') }}\n),\n\nad_groups as (\n\n select *\n from {{ var('ad_group') }}\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign') }}\n),\n\naccounts as (\n\n select *\n from {{ var('account') }}\n),\n\n{# This includes data at the event type level that we'll need to roll up and pivot out #}\nconversions_report as (\n\n select *\n from {{ var('ad_group_conversions_report') }}\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n ad_group_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_group_conversions_passthrough_metrics', transform = 'sum') }}\n\n from conversions_report\n\n {% if var('reddit_ads__conversion_event_types') %}\n where \n {% for event_type in var('reddit_ads__conversion_event_types') %}\n event_name = '{{ event_type|lower }}'\n {% if not loop.last %} or {% endif %} \n {% endfor %}\n {% endif %}\n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n report.account_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n campaigns.campaign_name,\n ad_groups.campaign_id,\n accounts.currency,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n {{ reddit_ads_persist_pass_through_columns(pass_through_variable='reddit_ads__ad_group_passthrough_metrics', identifier = 'report', transform = 'sum', alias_fields=['conversions', 'view_through_conversions', 'total_value', 'total_items']) }}\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_group_conversions_passthrough_metrics', transform = 'sum') }}\n\n from report\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join rollup_conversions_report\n on report.ad_group_id = rollup_conversions_report.ad_group_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n {{ dbt_utils.group_by(8) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group_report", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_group", "package": null, "version": null}, {"name": "stg_reddit_ads__campaign", "package": null, "version": null}, {"name": "stg_reddit_ads__account", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_group_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.reddit_ads.reddit_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__campaign", "model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group_report`\n),\n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign`\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account`\n),\n\n\nconversions_report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group_conversions_report`\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n ad_group_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n \n\n\n\n\n\n from conversions_report\n\n \n where \n \n event_name = 'lead'\n or \n \n event_name = 'purchase'\n or \n \n event_name = 'custom'\n \n \n \n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n report.account_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n campaigns.campaign_name,\n ad_groups.campaign_id,\n accounts.currency,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n \n\n\n \n \n , sum(cast(report.conversions as FLOAT64)) \n as conversions_c\n \n \n , sum(cast(report.installs as FLOAT64)) \n as installs\n \n \n , sum(cast(report.videos as FLOAT64)) \n as videos\n \n\n\n\n\n \n\n\n\n\n\n from report\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join rollup_conversions_report\n on report.ad_group_id = rollup_conversions_report.ad_group_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n group by 1,2,3,4,5,6,7,8\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest.pinterest_ads__url_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "pinterest_ads__url_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__url_report.sql", "original_file_path": "models/pinterest_ads__url_report.sql", "unique_id": "model.pinterest.pinterest_ads__url_report", "fqn": ["pinterest", "pinterest_ads__url_report"], "alias": "pinterest_ads__url_report", "checksum": {"name": "sha256", "checksum": "908c1c84386adf832d657f43f0a9b735d52e26816bffe046d985b35f035a42c9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the advertiser, campaign, ad group, and url level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "destination_url": {"name": "destination_url", "description": "Pin destination URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_name": {"name": "pin_name", "description": "Pin promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_status": {"name": "pin_status", "description": "The status of the Pin promotion. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_type": {"name": "creative_type", "description": "The creative type. \nOne of \"APP\", \"APP_VIDEO\", \"BOARD\", \"CAROUSEL\", \"CINEMATIC\", \"COMMERCE\", \"MAX_VIDEO\", \"NATIVE_VIDEO\", \"REGULAR\", \n\"SEARCH_PROMINENCE\", \"SEARCH_PROMINENCE_CAROUSEL\", \"SHOPPING\", \"SHOP_THE_PIN\", \"THIRD_PARTY\", or \"VIDEO\".\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.4394162, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__url_report`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('pin_promotion_report') }}\n), \n\npins as (\n\n select *\n from {{ var('pin_promotion_history') }}\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from {{ var('advertiser_history') }}\n where is_most_recent_record = True\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n campaigns.advertiser_id,\n advertisers.advertiser_name,\n report.campaign_id,\n campaigns.campaign_name,\n campaigns.campaign_status,\n report.ad_group_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_status,\n pins.destination_url,\n pins.creative_type,\n report.pin_promotion_id,\n pins.pin_name,\n pins.pin_status,\n pins.base_url,\n pins.url_host,\n pins.url_path,\n pins.utm_source,\n pins.utm_medium,\n pins.utm_campaign,\n pins.utm_content,\n pins.utm_term,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n {{ pinterest_ads_persist_pass_through_columns(pass_through_variable='pinterest__pin_promotion_report_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from report \n left join pins \n on report.pin_promotion_id = pins.pin_promotion_id\n and report.source_relation = pins.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where pins.destination_url is not null\n {% endif %}\n\n {{ dbt_utils.group_by(23) }}\n)\n\nselect * \nfrom joined", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_report", "package": null, "version": null}, {"name": "stg_pinterest_ads__pin_promotion_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__campaign_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__advertiser_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest.pinterest_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report", "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__pin_promotion_report`\n), \n\npins as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__pin_promotion_history`\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n campaigns.advertiser_id,\n advertisers.advertiser_name,\n report.campaign_id,\n campaigns.campaign_name,\n campaigns.campaign_status,\n report.ad_group_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_status,\n pins.destination_url,\n pins.creative_type,\n report.pin_promotion_id,\n pins.pin_name,\n pins.pin_status,\n pins.base_url,\n pins.url_host,\n pins.url_path,\n pins.utm_source,\n pins.utm_medium,\n pins.utm_campaign,\n pins.utm_content,\n pins.utm_term,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n \n\n\n \n \n \n \n \n \n , sum(coalesce(report.paid_impression, 0)) as paid_impression\n \n \n \n \n , sum(coalesce(report.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n\n\n from report \n left join pins \n on report.pin_promotion_id = pins.pin_promotion_id\n and report.source_relation = pins.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n\n \n where pins.destination_url is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest.pinterest_ads__campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "pinterest_ads__campaign_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__campaign_report.sql", "original_file_path": "models/pinterest_ads__campaign_report.sql", "unique_id": "model.pinterest.pinterest_ads__campaign_report", "fqn": ["pinterest", "pinterest_ads__campaign_report"], "alias": "pinterest_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "97debbf37bc67d00cc1588959af5618dd61a1ae76870bf7b89d465a0327ad519"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the advertiser and campaign level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.441251, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('campaign_report') }}\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nadvertisers as (\n select *\n from {{ var('advertiser_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n\n select\n report.source_relation,\n report.date_day,\n advertisers.advertiser_name,\n advertisers.advertiser_id,\n campaigns.campaign_name,\n report.campaign_id,\n campaigns.campaign_status,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n {{ pinterest_ads_persist_pass_through_columns(pass_through_variable='pinterest__campaign_report_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from report\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_pinterest_ads__campaign_report", "package": null, "version": null}, {"name": "stg_pinterest_ads__campaign_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__advertiser_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest.pinterest_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__campaign_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nadvertisers as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n),\n\nfields as (\n\n select\n report.source_relation,\n report.date_day,\n advertisers.advertiser_name,\n advertisers.advertiser_id,\n campaigns.campaign_name,\n report.campaign_id,\n campaigns.campaign_status,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n \n\n\n \n \n \n \n \n \n , sum(coalesce(report.paid_impression, 0)) as paid_impression\n \n \n \n \n , sum(coalesce(report.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n\n\n from report\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest.pinterest_ads__keyword_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "pinterest_ads__keyword_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__keyword_report.sql", "original_file_path": "models/pinterest_ads__keyword_report.sql", "unique_id": "model.pinterest.pinterest_ads__keyword_report", "fqn": ["pinterest", "pinterest_ads__keyword_report"], "alias": "pinterest_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "4db46d33b34396c5696e32650cf799d469ec8af67c1532d76c6fe8f312c98634"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of a keyword at the advertiser, campaign, ad group, and keyword level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of match the keyword is tied to. Either Exact or Broad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_type": {"name": "parent_type", "description": "Identifier of what grain the parent type is. Ad group or campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_value": {"name": "keyword_value", "description": "The text value that makes upd the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.443017, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__keyword_report`", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__pinterest_ads_enabled','pinterest__using_keywords'])) }}\n\nwith report as (\n\n select *\n from {{ var('keyword_report') }}\n), \n\nadvertisers as (\n\n select *\n from {{ var('advertiser_history') }}\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nkeywords as (\n\n select *\n from {{ var('keyword_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n report.source_relation,\n report.date_day,\n advertisers.advertiser_name,\n advertisers.advertiser_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n report.keyword_id,\n keywords.match_type,\n keywords.parent_type,\n keywords.keyword_value,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n {{ pinterest_ads_persist_pass_through_columns(pass_through_variable='pinterest__keyword_report_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from report\n left join keywords\n on report.keyword_id = keywords.keyword_id\n and report.source_relation = keywords.source_relation\n left join ad_groups\n on keywords.ad_group_id = ad_groups.ad_group_id\n and keywords.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_pinterest_ads__keyword_report", "package": null, "version": null}, {"name": "stg_pinterest_ads__advertiser_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__campaign_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.pinterest.pinterest_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report", "model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__keyword_history"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__keyword_report`\n), \n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__campaign_history`\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\nkeywords as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__keyword_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n report.source_relation,\n report.date_day,\n advertisers.advertiser_name,\n advertisers.advertiser_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n report.keyword_id,\n keywords.match_type,\n keywords.parent_type,\n keywords.keyword_value,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n \n\n\n \n \n \n , sum(coalesce(report.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n\n\n from report\n left join keywords\n on report.keyword_id = keywords.keyword_id\n and report.source_relation = keywords.source_relation\n left join ad_groups\n on keywords.ad_group_id = ad_groups.ad_group_id\n and keywords.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest.pinterest_ads__advertiser_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "pinterest_ads__advertiser_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__advertiser_report.sql", "original_file_path": "models/pinterest_ads__advertiser_report.sql", "unique_id": "model.pinterest.pinterest_ads__advertiser_report", "fqn": ["pinterest", "pinterest_ads__advertiser_report"], "alias": "pinterest_ads__advertiser_report", "checksum": {"name": "sha256", "checksum": "e278c2ba9130d51525dcc95b70cec41005fc7837f94320f103a44ea5208caee0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of an advertiser on the Pinterest Ads platform.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code which the advertiser is set up using.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country code where the advertiser is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.442018, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__advertiser_report`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('advertiser_report') }}\n), \n\nadvertisers as (\n\n select *\n from {{ var('advertiser_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n report.source_relation,\n report.date_day,\n advertisers.advertiser_name,\n report.advertiser_id,\n advertisers.currency_code,\n advertisers.country,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n {{ pinterest_ads_persist_pass_through_columns(pass_through_variable='pinterest__advertiser_report_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from report\n left join advertisers\n on cast(report.advertiser_id as {{ dbt.type_string() }}) = cast(advertisers.advertiser_id as {{ dbt.type_string() }})\n and report.source_relation = advertisers.source_relation\n {{ dbt_utils.group_by(6) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_pinterest_ads__advertiser_report", "package": null, "version": null}, {"name": "stg_pinterest_ads__advertiser_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest.pinterest_ads_persist_pass_through_columns", "macro.dbt.type_string", "macro.dbt_utils.group_by"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report", "model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__advertiser_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_report`\n), \n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n report.source_relation,\n report.date_day,\n advertisers.advertiser_name,\n report.advertiser_id,\n advertisers.currency_code,\n advertisers.country,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n \n\n\n \n \n \n , sum(coalesce(report.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n\n\n from report\n left join advertisers\n on cast(report.advertiser_id as string) = cast(advertisers.advertiser_id as string)\n and report.source_relation = advertisers.source_relation\n group by 1,2,3,4,5,6\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest.pinterest_ads__pin_promotion_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "pinterest_ads__pin_promotion_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__pin_promotion_report.sql", "original_file_path": "models/pinterest_ads__pin_promotion_report.sql", "unique_id": "model.pinterest.pinterest_ads__pin_promotion_report", "fqn": ["pinterest", "pinterest_ads__pin_promotion_report"], "alias": "pinterest_ads__pin_promotion_report", "checksum": {"name": "sha256", "checksum": "6dd79a968e4ad499186896c5309136cfad2f3fc076da09949051d96d64dfc75c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the advertiser, campaign, ad group, and pin level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_type": {"name": "creative_type", "description": "The creative type. \nOne of \"APP\", \"APP_VIDEO\", \"BOARD\", \"CAROUSEL\", \"CINEMATIC\", \"COMMERCE\", \"MAX_VIDEO\", \"NATIVE_VIDEO\", \"REGULAR\", \n\"SEARCH_PROMINENCE\", \"SEARCH_PROMINENCE_CAROUSEL\", \"SHOPPING\", \"SHOP_THE_PIN\", \"THIRD_PARTY\", or \"VIDEO\".\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_name": {"name": "pin_name", "description": "Name of the pin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_status": {"name": "pin_status", "description": "Status of the pin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "destination_url": {"name": "destination_url", "description": "Pin destination URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.4438348, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__pin_promotion_report`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('pin_promotion_report') }}\n), \n\npins as (\n\n select *\n from {{ var('pin_promotion_history') }}\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from {{ var('advertiser_history') }}\n where is_most_recent_record = True\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n campaigns.advertiser_id,\n advertisers.advertiser_name,\n report.campaign_id,\n campaigns.campaign_name,\n campaigns.campaign_status,\n report.ad_group_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_status,\n pins.creative_type,\n report.pin_promotion_id,\n pins.pin_name,\n pins.pin_status,\n pins.destination_url,\n pins.base_url,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n {{ pinterest_ads_persist_pass_through_columns(pass_through_variable='pinterest__pin_promotion_report_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from report \n left join pins \n on report.pin_promotion_id = pins.pin_promotion_id\n and report.source_relation = pins.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n\n {{ dbt_utils.group_by(16) }}\n)\n\nselect * \nfrom joined", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_report", "package": null, "version": null}, {"name": "stg_pinterest_ads__pin_promotion_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__campaign_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__advertiser_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest.pinterest_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report", "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__pin_promotion_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__pin_promotion_report`\n), \n\npins as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__pin_promotion_history`\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n campaigns.advertiser_id,\n advertisers.advertiser_name,\n report.campaign_id,\n campaigns.campaign_name,\n campaigns.campaign_status,\n report.ad_group_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_status,\n pins.creative_type,\n report.pin_promotion_id,\n pins.pin_name,\n pins.pin_status,\n pins.destination_url,\n pins.base_url,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n \n\n\n \n \n \n \n \n \n , sum(coalesce(report.paid_impression, 0)) as paid_impression\n \n \n \n \n , sum(coalesce(report.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n\n\n from report \n left join pins \n on report.pin_promotion_id = pins.pin_promotion_id\n and report.source_relation = pins.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest.pinterest_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "pinterest_ads__ad_group_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__ad_group_report.sql", "original_file_path": "models/pinterest_ads__ad_group_report.sql", "unique_id": "model.pinterest.pinterest_ads__ad_group_report", "fqn": ["pinterest", "pinterest_ads__ad_group_report"], "alias": "pinterest_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "0c9041bc4c1dc47e46d201b0939350615001c4054f31af8a75248905b7c61c9b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the campaign, advertiser, and ad group level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Ad group creation time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Ad group start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "Ad group end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.440656, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__ad_group_report`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_group_report') }}\n), \n\nadvertisers as (\n\n select *\n from {{ var('advertiser_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n report.source_relation,\n report.date_day,\n advertisers.advertiser_name,\n advertisers.advertiser_id,\n campaigns.campaign_name,\n campaigns.campaign_status,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ad_groups.created_at,\n ad_groups.start_time,\n ad_groups.end_time,\n ad_groups.ad_group_status,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n {{ pinterest_ads_persist_pass_through_columns(pass_through_variable='pinterest__ad_group_report_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from report\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n {{ dbt_utils.group_by(13) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_pinterest_ads__ad_group_report", "package": null, "version": null}, {"name": "stg_pinterest_ads__advertiser_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__campaign_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest.pinterest_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report", "model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__ad_group_history"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__ad_group_report`\n), \n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n report.source_relation,\n report.date_day,\n advertisers.advertiser_name,\n advertisers.advertiser_id,\n campaigns.campaign_name,\n campaigns.campaign_status,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ad_groups.created_at,\n ad_groups.start_time,\n ad_groups.end_time,\n ad_groups.ad_group_status,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n \n\n\n \n \n \n , sum(coalesce(report.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n\n\n from report\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_conversions_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__ad_conversions_report.sql", "original_file_path": "models/stg_reddit_ads__ad_conversions_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__ad_conversions_report"], "alias": "stg_reddit_ads__ad_conversions_report", "checksum": {"name": "sha256", "checksum": "8178e2eaffb6eeaa3d0d51b1f20a93c1fdb87268d81ac6165172e4ad99a301a0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Provides a summary of conversion events at the individual ad level, aggregating key metrics by event and day such as view-through and click-through conversions.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.5174248, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_conversions_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__ad_conversions_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__ad_conversions_report_tmp')),\n staging_columns=get_ad_conversions_report_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n _fivetran_synced,\n account_id,\n ad_id,\n date as date_day,\n lower(event_name) as event_name,\n coalesce(total_items,0) as total_items,\n coalesce(total_value,0) as total_value,\n coalesce(click_through_conversion_attribution_window_month,0) as conversions,\n coalesce(view_through_conversion_attribution_window_month,0) as view_through_conversions\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__ad_conversions_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_conversions_report_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_conversions_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_ad_conversions_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__ad_conversions_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_conversions_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n click_through_conversion_attribution_window_month\n \n as \n \n click_through_conversion_attribution_window_month\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n event_name\n \n as \n \n event_name\n \n, \n \n \n total_items\n \n as \n \n total_items\n \n, \n \n \n total_value\n \n as \n \n total_value\n \n, \n \n \n view_through_conversion_attribution_window_month\n \n as \n \n view_through_conversion_attribution_window_month\n \n\n\n\n \n\n\n, cast('' as string) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n _fivetran_synced,\n account_id,\n ad_id,\n date as date_day,\n lower(event_name) as event_name,\n coalesce(total_items,0) as total_items,\n coalesce(total_value,0) as total_value,\n coalesce(click_through_conversion_attribution_window_month,0) as conversions,\n coalesce(view_through_conversion_attribution_window_month,0) as view_through_conversions\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_conversions_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__ad_group_conversions_report.sql", "original_file_path": "models/stg_reddit_ads__ad_group_conversions_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__ad_group_conversions_report"], "alias": "stg_reddit_ads__ad_group_conversions_report", "checksum": {"name": "sha256", "checksum": "f60f2d427e2bd055808696f3e4d0664ce380fc68733f53d2da846647feac0080"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Provides a summary of conversion events at the ad group level, aggregating key metrics by event and day such as view-through and click-through conversions.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.5165, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group_conversions_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__ad_group_conversions_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__ad_group_conversions_report_tmp')),\n staging_columns=get_ad_group_conversions_report_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n _fivetran_synced,\n account_id,\n ad_group_id,\n date as date_day,\n lower(event_name) as event_name,\n coalesce(total_items,0) as total_items,\n coalesce(total_value,0) as total_value,\n coalesce(click_through_conversion_attribution_window_month,0) as conversions,\n coalesce(view_through_conversion_attribution_window_month,0) as view_through_conversions\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__ad_group_conversions_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group_conversions_report_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_group_conversions_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_ad_group_conversions_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__ad_group_conversions_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group_conversions_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n click_through_conversion_attribution_window_month\n \n as \n \n click_through_conversion_attribution_window_month\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n event_name\n \n as \n \n event_name\n \n, \n \n \n total_items\n \n as \n \n total_items\n \n, \n \n \n total_value\n \n as \n \n total_value\n \n, \n \n \n view_through_conversion_attribution_window_month\n \n as \n \n view_through_conversion_attribution_window_month\n \n\n\n\n \n\n\n, cast('' as string) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n _fivetran_synced,\n account_id,\n ad_group_id,\n date as date_day,\n lower(event_name) as event_name,\n coalesce(total_items,0) as total_items,\n coalesce(total_value,0) as total_value,\n coalesce(click_through_conversion_attribution_window_month,0) as conversions,\n coalesce(view_through_conversion_attribution_window_month,0) as view_through_conversions\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__account_conversions_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__account_conversions_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__account_conversions_report.sql", "original_file_path": "models/stg_reddit_ads__account_conversions_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_conversions_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__account_conversions_report"], "alias": "stg_reddit_ads__account_conversions_report", "checksum": {"name": "sha256", "checksum": "b4b613ebec06cf0929e4f85092dd4fa3d12c90fd9a85f29a20570dae58459ba2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Provides a summary of conversion events at the account level, aggregating key metrics by event and day such as view-through and click-through conversions.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.515929, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account_conversions_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__account_conversions_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__account_conversions_report_tmp')),\n staging_columns=get_account_conversions_report_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n _fivetran_synced,\n account_id,\n date as date_day,\n lower(event_name) as event_name,\n coalesce(total_items,0) as total_items,\n coalesce(total_value,0) as total_value,\n coalesce(click_through_conversion_attribution_window_month,0) as conversions,\n coalesce(view_through_conversion_attribution_window_month,0) as view_through_conversions\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__account_conversions_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__account_conversions_report_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__account_conversions_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_account_conversions_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__account_conversions_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account_conversions_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n click_through_conversion_attribution_window_month\n \n as \n \n click_through_conversion_attribution_window_month\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n event_name\n \n as \n \n event_name\n \n, \n \n \n total_items\n \n as \n \n total_items\n \n, \n \n \n total_value\n \n as \n \n total_value\n \n, \n \n \n view_through_conversion_attribution_window_month\n \n as \n \n view_through_conversion_attribution_window_month\n \n\n\n\n \n\n\n, cast('' as string) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n _fivetran_synced,\n account_id,\n date as date_day,\n lower(event_name) as event_name,\n coalesce(total_items,0) as total_items,\n coalesce(total_value,0) as total_value,\n coalesce(click_through_conversion_attribution_window_month,0) as conversions,\n coalesce(view_through_conversion_attribution_window_month,0) as view_through_conversions\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_group": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_group", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__ad_group.sql", "original_file_path": "models/stg_reddit_ads__ad_group.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group", "fqn": ["reddit_ads_source", "stg_reddit_ads__ad_group"], "alias": "stg_reddit_ads__ad_group", "checksum": {"name": "sha256", "checksum": "1af74e7161cb11686b326a7adc30aafdda49c74059628509590d5f356655ff7c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents information about each ad group.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_strategy": {"name": "bid_strategy", "description": "The bid strategy for this entity. \"MAXIMIZE_VOLUME\", \"MANUAL_BIDDING\", or \"BIDLESS\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_value": {"name": "bid_value", "description": "The amount to pay in microcurrency per bidding event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time_at": {"name": "end_time_at", "description": "When the entity will stop delivering.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expand_targeting": {"name": "expand_targeting", "description": "Boolean that when selected, allows Reddit to expand your targeting to maximize your results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "goal_type": {"name": "goal_type", "description": "The type of goal for the entity. \"IMPRESSIONS\", \"PERCENTAGE\", \"CLICKS\", \"CONVERSIONS\", \"LIFETIME_SPEND\", \"DAILY_SPEND\", or \"VIDEO_VIEWABLE_IMPRESSIONS\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "goal_value": {"name": "goal_value", "description": "The value used to determine the goal has been met. This is measured in microcurrency for monetary goals types.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization_strategy_type": {"name": "optimization_strategy_type", "description": "The strategy to use when optimizing the delivery of an ad. \"DOWNSTREAM_CONVERSIONS\" or \"APP_INSTALLS\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time_at": {"name": "start_time_at", "description": "When the entity will begin to deliver.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.513568, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__ad_group_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__ad_group_tmp')),\n staging_columns=get_ad_group_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n bid_strategy,\n bid_value,\n campaign_id,\n configured_status,\n effective_status,\n cast(end_time as {{ dbt.type_timestamp() }}) as end_time_at,\n expand_targeting,\n goal_type,\n goal_value,\n id as ad_group_id,\n is_processing,\n name as ad_group_name,\n optimization_strategy_type,\n cast(start_time as {{ dbt.type_timestamp() }}) as start_time_at\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_group_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_ad_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__ad_group.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n bid_strategy\n \n as \n \n bid_strategy\n \n, \n \n \n bid_value\n \n as \n \n bid_value\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n configured_status\n \n as \n \n configured_status\n \n, \n \n \n effective_status\n \n as \n \n effective_status\n \n, \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n expand_targeting\n \n as \n \n expand_targeting\n \n, \n \n \n goal_type\n \n as \n \n goal_type\n \n, \n \n \n goal_value\n \n as \n \n goal_value\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_processing\n \n as \n \n is_processing\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n optimization_strategy_type\n \n as \n \n optimization_strategy_type\n \n, \n \n \n start_time\n \n as \n \n start_time\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n bid_strategy,\n bid_value,\n campaign_id,\n configured_status,\n effective_status,\n cast(end_time as timestamp) as end_time_at,\n expand_targeting,\n goal_type,\n goal_value,\n id as ad_group_id,\n is_processing,\n name as ad_group_name,\n optimization_strategy_type,\n cast(start_time as timestamp) as start_time_at\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__ad.sql", "original_file_path": "models/stg_reddit_ads__ad.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad", "fqn": ["reddit_ads_source", "stg_reddit_ads__ad"], "alias": "stg_reddit_ads__ad", "checksum": {"name": "sha256", "checksum": "6c0f29e4d4380766f63917eb0e1fc5b9a9c79d9636ba214f97eec44e55f51157"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents information about each ad.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_url": {"name": "click_url", "description": "The destination url, or the website address, that a visitor goes to when they click on the ad", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_id": {"name": "post_id", "description": "The ID of the post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_url": {"name": "post_url", "description": "The URL belonging to the post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rejection_reason": {"name": "rejection_reason", "description": "Reason why entity was rejected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.511997, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__ad_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__ad_tmp')),\n staging_columns=get_ad_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n account_id,\n ad_group_id,\n campaign_id,\n click_url,\n configured_status,\n effective_status,\n id as ad_id,\n is_processing,\n name as ad_name,\n post_id,\n post_url,\n rejection_reason\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_ad_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__ad.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n click_url\n \n as \n \n click_url\n \n, \n \n \n configured_status\n \n as \n \n configured_status\n \n, \n \n \n effective_status\n \n as \n \n effective_status\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_processing\n \n as \n \n is_processing\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n post_id\n \n as \n \n post_id\n \n, \n \n \n post_url\n \n as \n \n post_url\n \n, \n \n \n rejection_reason\n \n as \n \n rejection_reason\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n account_id,\n ad_group_id,\n campaign_id,\n click_url,\n configured_status,\n effective_status,\n id as ad_id,\n is_processing,\n name as ad_name,\n post_id,\n post_url,\n rejection_reason\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__campaign_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__campaign_report.sql", "original_file_path": "models/stg_reddit_ads__campaign_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__campaign_report"], "alias": "stg_reddit_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "e7e0a9fa9d9338c1acbb60d6fcee39a3233f20d15cbd732395c0dcae6821ab34"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a summary of events for each given date and campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.515402, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__campaign_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__campaign_report_tmp')),\n staging_columns=get_campaign_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n campaign_id,\n coalesce(clicks,0) as clicks,\n date as date_day,\n coalesce(impressions,0) as impressions,\n region,\n coalesce((spend/1000000),0) as spend\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__campaign_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign_report_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__campaign_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_campaign_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n region\n \n as \n \n region\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n \n \n `date`\n \n \n \n as date_day , \n cast(null as string) as \n \n conversions\n \n , \n \n \n app_install_metrics_install\n \n as installs , \n \n \n video_started\n \n as videos \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n campaign_id,\n coalesce(clicks,0) as clicks,\n date as date_day,\n coalesce(impressions,0) as impressions,\n region,\n coalesce((spend/1000000),0) as spend\n \n \n\n\n \n \n \n , conversions\n \n \n \n \n \n , installs\n \n \n \n \n \n , videos\n \n \n \n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__account": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__account", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__account.sql", "original_file_path": "models/stg_reddit_ads__account.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__account", "fqn": ["reddit_ads_source", "stg_reddit_ads__account"], "alias": "stg_reddit_ads__account", "checksum": {"name": "sha256", "checksum": "9d483fdfc8706aa4eb1cfb477f23310eac813413c9d5c2f30a64d3d860edb101"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents information about an account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attribution_type": {"name": "attribution_type", "description": "Attribution type: \"CLICK_THROUGH_CONVERSION\", \"VIEW_THROUGH_CONVERSION\", or \"ALL_CONVERSION\".\nCLICK_THROUGH_CONVERSION: A user clicked on your ad and then completed the conversion action on your site. \nVIEW_THROUGH_CONVERSION: A user saw your ad and did not click it, but did complete the conversion action on your site.\nALL_CONVERSION: Combination of both.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_attribution_window": {"name": "click_attribution_window", "description": "Determines how long after clicking on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current state of the advertiser. \"PENDING_BILLING\", \"VALID\", \"TRUSTED\", \"ADMIN\", \"FAILED_BILLING\", \"SUSPICIOUS\", \"SUSPENDED\", or \"BANNED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone_id": {"name": "time_zone_id", "description": "The time zone id preference for this account", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_attribution_window": {"name": "view_attribution_window", "description": "Determines how long after viewing on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.5108402, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__account_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__account_tmp')),\n staging_columns=get_account_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n attribution_type,\n click_attribution_window,\n cast(created_at as {{ dbt.type_timestamp() }}) as created_at,\n currency,\n id as account_id,\n status,\n time_zone_id,\n view_attribution_window\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__account_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__account_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__account.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n attribution_type\n \n as \n \n attribution_type\n \n, \n \n \n click_attribution_window\n \n as \n \n click_attribution_window\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n time_zone_id\n \n as \n \n time_zone_id\n \n, \n \n \n view_attribution_window\n \n as \n \n view_attribution_window\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n attribution_type,\n click_attribution_window,\n cast(created_at as timestamp) as created_at,\n currency,\n id as account_id,\n status,\n time_zone_id,\n view_attribution_window\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__campaign_conversions_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__campaign_conversions_report.sql", "original_file_path": "models/stg_reddit_ads__campaign_conversions_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__campaign_conversions_report"], "alias": "stg_reddit_ads__campaign_conversions_report", "checksum": {"name": "sha256", "checksum": "46383c46cc0428ae3f28578793575503356d3598d9fc22d534f6bc2bfec29d10"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Provides a summary of conversion events at the campaign level, aggregating key metrics by event and day such as view-through and click-through conversions.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.518292, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign_conversions_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__campaign_conversions_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__campaign_conversions_report_tmp')),\n staging_columns=get_campaign_conversions_report_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n _fivetran_synced,\n account_id,\n campaign_id,\n date as date_day,\n lower(event_name) as event_name,\n coalesce(total_items,0) as total_items,\n coalesce(total_value,0) as total_value,\n coalesce(click_through_conversion_attribution_window_month,0) as conversions,\n coalesce(view_through_conversion_attribution_window_month,0) as view_through_conversions\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__campaign_conversions_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign_conversions_report_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__campaign_conversions_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_campaign_conversions_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__campaign_conversions_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign_conversions_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n click_through_conversion_attribution_window_month\n \n as \n \n click_through_conversion_attribution_window_month\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n event_name\n \n as \n \n event_name\n \n, \n \n \n total_items\n \n as \n \n total_items\n \n, \n \n \n total_value\n \n as \n \n total_value\n \n, \n \n \n view_through_conversion_attribution_window_month\n \n as \n \n view_through_conversion_attribution_window_month\n \n\n\n\n \n\n\n, cast('' as string) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n _fivetran_synced,\n account_id,\n campaign_id,\n date as date_day,\n lower(event_name) as event_name,\n coalesce(total_items,0) as total_items,\n coalesce(total_value,0) as total_value,\n coalesce(click_through_conversion_attribution_window_month,0) as conversions,\n coalesce(view_through_conversion_attribution_window_month,0) as view_through_conversions\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__account_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__account_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__account_report.sql", "original_file_path": "models/stg_reddit_ads__account_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__account_report"], "alias": "stg_reddit_ads__account_report", "checksum": {"name": "sha256", "checksum": "53e677ea4dc69c19a911841b64a8a902f050e053e802f8eb69379280be188f56"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a summary of events for each given date and account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.511373, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__account_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__account_report_tmp')),\n staging_columns=get_account_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n coalesce(clicks,0) as clicks,\n date as date_day,\n coalesce(impressions,0) as impressions,\n region,\n coalesce((spend/1000000),0) as spend\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__account_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__account_report_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__account_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_account_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n region\n \n as \n \n region\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n \n \n `date`\n \n \n \n as date_day , \n cast(null as string) as \n \n conversions\n \n , \n \n \n app_install_metrics_install\n \n as installs , \n \n \n video_started\n \n as videos \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n coalesce(clicks,0) as clicks,\n date as date_day,\n coalesce(impressions,0) as impressions,\n region,\n coalesce((spend/1000000),0) as spend\n \n \n\n\n \n \n \n , conversions\n \n \n \n \n \n , installs\n \n \n \n \n \n , videos\n \n \n \n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__ad_report.sql", "original_file_path": "models/stg_reddit_ads__ad_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__ad_report"], "alias": "stg_reddit_ads__ad_report", "checksum": {"name": "sha256", "checksum": "acd7771a1d092830b40039eafc650b1de89d3e9cec6b8d70dd426f394d236e4f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a summary of events for each given date and ad.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.512502, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__ad_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__ad_report_tmp')),\n staging_columns=get_ad_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n account_id,\n ad_id,\n coalesce(clicks,0) as clicks,\n date as date_day,\n coalesce(impressions,0) as impressions,\n region,\n coalesce((spend/1000000),0) as spend\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__ad_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_report_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_ad_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n region\n \n as \n \n region\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n \n \n `date`\n \n \n \n as date_day , \n cast(null as string) as \n \n conversions\n \n , \n \n \n app_install_metrics_install\n \n as installs , \n \n \n video_started\n \n as videos \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n account_id,\n ad_id,\n coalesce(clicks,0) as clicks,\n date as date_day,\n coalesce(impressions,0) as impressions,\n region,\n coalesce((spend/1000000),0) as spend\n \n \n\n\n \n \n \n , conversions\n \n \n \n \n \n , installs\n \n \n \n \n \n , videos\n \n \n \n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__campaign": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__campaign", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__campaign.sql", "original_file_path": "models/stg_reddit_ads__campaign.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign", "fqn": ["reddit_ads_source", "stg_reddit_ads__campaign"], "alias": "stg_reddit_ads__campaign", "checksum": {"name": "sha256", "checksum": "6636ef83b99871bb567c3232022490a35f298eb119c2bc236ac10be2c577c33d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents information about each campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Campaign level funding instrument id", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The objective type of a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.5147572, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__campaign_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__campaign_tmp')),\n staging_columns=get_campaign_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n configured_status,\n effective_status,\n funding_instrument_id,\n id as campaign_id,\n is_processing,\n name as campaign_name,\n objective\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__campaign_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_campaign_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__campaign.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n configured_status\n \n as \n \n configured_status\n \n, \n \n \n effective_status\n \n as \n \n effective_status\n \n, \n \n \n funding_instrument_id\n \n as \n \n funding_instrument_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_processing\n \n as \n \n is_processing\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n objective\n \n as \n \n objective\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n configured_status,\n effective_status,\n funding_instrument_id,\n id as campaign_id,\n is_processing,\n name as campaign_name,\n objective\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__ad_group_report.sql", "original_file_path": "models/stg_reddit_ads__ad_group_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__ad_group_report"], "alias": "stg_reddit_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "310c0039b021f42a29dc17aea23d7eca76fccac0d56f85e2ccd9b41afbc1de34"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a summary of events for each given date and ad group.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.5140522, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__ad_group_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__ad_group_report_tmp')),\n staging_columns=get_ad_group_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n account_id,\n ad_group_id,\n coalesce(clicks,0) as clicks,\n date as date_day,\n coalesce(impressions,0) as impressions,\n region,\n coalesce((spend/1000000),0) as spend\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__ad_group_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group_report_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_group_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_ad_group_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n region\n \n as \n \n region\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n \n \n `date`\n \n \n \n as date_day , \n cast(null as string) as \n \n conversions\n \n , \n \n \n app_install_metrics_install\n \n as installs , \n \n \n video_started\n \n as videos \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n account_id,\n ad_group_id,\n coalesce(clicks,0) as clicks,\n date as date_day,\n coalesce(impressions,0) as impressions,\n region,\n coalesce((spend/1000000),0) as spend\n \n \n\n\n \n \n \n , conversions\n \n \n \n \n \n , installs\n \n \n \n \n \n , videos\n \n \n \n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__campaign_conversions_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__campaign_conversions_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__campaign_conversions_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__campaign_conversions_report_tmp"], "alias": "stg_reddit_ads__campaign_conversions_report_tmp", "checksum": {"name": "sha256", "checksum": "1733299c7e9e1f64bcb7a8b8a0607ef2b506ae2515a10d91d6cc26b8076418d9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.968532, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign_conversions_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_conversions_report', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='campaign_conversions_report',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "campaign_conversions_report"], ["reddit_ads", "campaign_conversions_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.campaign_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__campaign_conversions_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_campaign_conversions`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__campaign_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__campaign_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__campaign_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__campaign_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__campaign_tmp"], "alias": "stg_reddit_ads__campaign_tmp", "checksum": {"name": "sha256", "checksum": "4d4435020ecdff835411a074498b4dc17da6a74789bdff3ba708de7b0a087c6a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.973205, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='campaign',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "campaign"], ["reddit_ads", "campaign"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.campaign"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__campaign_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_campaign_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__ad_group_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__ad_group_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__ad_group_report_tmp"], "alias": "stg_reddit_ads__ad_group_report_tmp", "checksum": {"name": "sha256", "checksum": "4a51b7ef16211bb47421f59ada38a330470d179558d47b9ed631d1c66fb1edd5"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.979153, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_report', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='ad_group_report',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "ad_group_report"], ["reddit_ads", "ad_group_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__ad_group_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_group_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_conversions_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__ad_group_conversions_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__ad_group_conversions_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__ad_group_conversions_report_tmp"], "alias": "stg_reddit_ads__ad_group_conversions_report_tmp", "checksum": {"name": "sha256", "checksum": "0e5a406fae1ecf1cbe5c86fd272e11a261882ac7e7ee4e91e83bf33644978f19"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.9835892, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group_conversions_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_conversions_report', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='ad_group_conversions_report',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "ad_group_conversions_report"], ["reddit_ads", "ad_group_conversions_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.ad_group_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__ad_group_conversions_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_group_conversions`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__account_conversions_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__account_conversions_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__account_conversions_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__account_conversions_report_tmp"], "alias": "stg_reddit_ads__account_conversions_report_tmp", "checksum": {"name": "sha256", "checksum": "61a2056f621c4024aa2f58bdf611090a0d68386b3882991912c55cad128b097d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.988789, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account_conversions_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_conversions_report', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='account_conversions_report',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "account_conversions_report"], ["reddit_ads", "account_conversions_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.account_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__account_conversions_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_account_conversions`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__campaign_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__campaign_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__campaign_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__campaign_report_tmp"], "alias": "stg_reddit_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "50c0bfb7a7336ba7044f1ecc4225f9efade5a8269f3f8190048541343fe56ef0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.994855, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_report', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='campaign_report',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "campaign_report"], ["reddit_ads", "campaign_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.campaign_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__campaign_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_campaign_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__account_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__account_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__account_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__account_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__account_report_tmp"], "alias": "stg_reddit_ads__account_report_tmp", "checksum": {"name": "sha256", "checksum": "6867e31cd7eb185dde000130a00d63c56bb1598e46dcd009b5038c7fd7f54927"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951595.999928, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_report', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='account_report',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "account_report"], ["reddit_ads", "account_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.account_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__account_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_account_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__account_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__account_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__account_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__account_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__account_tmp"], "alias": "stg_reddit_ads__account_tmp", "checksum": {"name": "sha256", "checksum": "972af2e96860e35d96195754ec159ac88a9d96f216d72eb92ac7a9f795d1e8e0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951596.004616, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='account',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "account"], ["reddit_ads", "account"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.account"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__account_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_account_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_conversions_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__ad_conversions_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__ad_conversions_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__ad_conversions_report_tmp"], "alias": "stg_reddit_ads__ad_conversions_report_tmp", "checksum": {"name": "sha256", "checksum": "e0504666a60042e3f5714817c4121b9724aa2aa209b03d4611bd4d33524da474"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951596.010141, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_conversions_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_conversions_report', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='ad_conversions_report',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "ad_conversions_report"], ["reddit_ads", "ad_conversions_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.ad_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__ad_conversions_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_conversions`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__ad_group_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__ad_group_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__ad_group_tmp"], "alias": "stg_reddit_ads__ad_group_tmp", "checksum": {"name": "sha256", "checksum": "5f0c7dc0a9a3ce9c686d6f5292c3cf37267be63724fe24dfbe0f77c13b480289"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951596.0167959, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='ad_group',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "ad_group"], ["reddit_ads", "ad_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.ad_group"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__ad_group_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_group_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__ad_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__ad_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__ad_report_tmp"], "alias": "stg_reddit_ads__ad_report_tmp", "checksum": {"name": "sha256", "checksum": "b030efa9ab67719baf7173f9acde9d70307e31d0a7e0825e2e87610fdfca2903"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951596.021307, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_report', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='ad_report',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "ad_report"], ["reddit_ads", "ad_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.ad_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__ad_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_reddit_ads__ad_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__ad_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__ad_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__ad_tmp"], "alias": "stg_reddit_ads__ad_tmp", "checksum": {"name": "sha256", "checksum": "014059acc078b839d20487dfedb750a7ed3850b74d41c4770367043f5ff942d9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951596.025868, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='ad',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "ad"], ["reddit_ads", "ad"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.ad"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__ad_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads.google_ads__keyword_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "google_ads__keyword_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__keyword_report.sql", "original_file_path": "models/google_ads__keyword_report.sql", "unique_id": "model.google_ads.google_ads__keyword_report", "fqn": ["google_ads", "google_ads__keyword_report"], "alias": "google_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "635f2c12fc302aecf57b19cd9d286ef0301a0508e7320d45970166db7d8b8409"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the ad group level for keywords.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency which the account uses.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "criterion_id": {"name": "criterion_id", "description": "The unique identifier of the criterion being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of keyword ad being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the keyword ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_match_type": {"name": "keyword_match_type", "description": "The match type criteria used for the keyword ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The specific keyword text that is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.657331, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__keyword_report`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith stats as (\n\n select *\n from {{ var('keyword_stats') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\ncriterions as (\n\n select *\n from {{ var('ad_group_criterion_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n stats.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n stats.campaign_id,\n ad_groups.ad_group_name,\n stats.ad_group_id,\n stats.criterion_id,\n criterions.type,\n criterions.status,\n criterions.keyword_match_type,\n criterions.keyword_text,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n {{ google_ads_persist_pass_through_columns(pass_through_variable='google_ads__keyword_stats_passthrough_metrics', identifier='stats', transform='sum', coalesce_with=0, exclude_fields=['conversions','conversions_value','view_through_conversions']) }}\n\n from stats\n left join criterions\n on stats.criterion_id = criterions.criterion_id\n and stats.source_relation = criterions.source_relation\n left join ad_groups\n on stats.ad_group_id = ad_groups.ad_group_id\n and stats.source_relation = ad_groups.source_relation\n left join campaigns\n on stats.campaign_id = campaigns.campaign_id\n and stats.source_relation = campaigns.source_relation\n left join accounts\n on stats.account_id = accounts.account_id\n and stats.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(14) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_google_ads__keyword_stats", "package": null, "version": null}, {"name": "stg_google_ads__account_history", "package": null, "version": null}, {"name": "stg_google_ads__campaign_history", "package": null, "version": null}, {"name": "stg_google_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_google_ads__ad_group_criterion_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads.google_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats", "model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__campaign_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__ad_group_criterion_history"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__keyword_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__campaign_history`\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\ncriterions as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_criterion_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n stats.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n stats.campaign_id,\n ad_groups.ad_group_name,\n stats.ad_group_id,\n stats.criterion_id,\n criterions.type,\n criterions.status,\n criterions.keyword_match_type,\n criterions.keyword_text,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n \n\n\n \n \n \n \n \n \n \n \n \n , sum(coalesce(stats.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(stats.videos, 0)) as videos\n \n \n\n\n\n\n from stats\n left join criterions\n on stats.criterion_id = criterions.criterion_id\n and stats.source_relation = criterions.source_relation\n left join ad_groups\n on stats.ad_group_id = ad_groups.ad_group_id\n and stats.source_relation = ad_groups.source_relation\n left join campaigns\n on stats.campaign_id = campaigns.campaign_id\n and stats.source_relation = campaigns.source_relation\n left join accounts\n on stats.account_id = accounts.account_id\n and stats.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads.google_ads__campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "google_ads__campaign_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__campaign_report.sql", "original_file_path": "models/google_ads__campaign_report.sql", "unique_id": "model.google_ads.google_ads__campaign_report", "fqn": ["google_ads", "google_ads__campaign_report"], "alias": "google_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "3fd81cc858986339bbccd9ba00d56233b84572ee2b9d6593ab30fdf7c7b9685c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of a campaign at the campaign/advertising_channel/advertising_channel_subtype level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency which the account uses.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertising_channel_type": {"name": "advertising_channel_type", "description": "The channel type of the ads being served within the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertising_channel_subtype": {"name": "advertising_channel_subtype", "description": "The channel subtype of the ads being served within the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.655963, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith stats as (\n\n select *\n from {{ var('campaign_stats') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n stats.campaign_id,\n campaigns.advertising_channel_type,\n campaigns.advertising_channel_subtype,\n campaigns.status,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n {{ google_ads_persist_pass_through_columns(pass_through_variable='google_ads__campaign_stats_passthrough_metrics', identifier='stats', transform='sum', coalesce_with=0, exclude_fields=['conversions','conversions_value','view_through_conversions']) }}\n\n from stats\n left join campaigns\n on stats.campaign_id = campaigns.campaign_id\n and stats.source_relation = campaigns.source_relation\n left join accounts\n on campaigns.account_id = accounts.account_id\n and campaigns.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(10) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_google_ads__campaign_stats", "package": null, "version": null}, {"name": "stg_google_ads__account_history", "package": null, "version": null}, {"name": "stg_google_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads.google_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats", "model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__campaign_history"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__campaign_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__campaign_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n stats.campaign_id,\n campaigns.advertising_channel_type,\n campaigns.advertising_channel_subtype,\n campaigns.status,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n \n\n\n \n \n \n \n \n \n , sum(coalesce(stats.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(stats.videos, 0)) as videos\n \n \n\n\n\n\n from stats\n left join campaigns\n on stats.campaign_id = campaigns.campaign_id\n and stats.source_relation = campaigns.source_relation\n left join accounts\n on campaigns.account_id = accounts.account_id\n and campaigns.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7,8,9,10\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads.google_ads__url_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "google_ads__url_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__url_report.sql", "original_file_path": "models/google_ads__url_report.sql", "unique_id": "model.google_ads.google_ads__url_report", "fqn": ["google_ads", "google_ads__url_report"], "alias": "google_ads__url_report", "checksum": {"name": "sha256", "checksum": "8d2cd4722f82eee2577f710682e39810ee3ae509fda9edaddd35be5355ec90ca"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of URLs at the ad level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency which the account uses.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The unique identifier of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.651476, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__url_report`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith stats as (\n\n select *\n from {{ var('ad_stats') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n stats.ad_group_id,\n stats.ad_id,\n ads.base_url,\n ads.url_host,\n ads.url_path,\n\n {% if var('google_auto_tagging_enabled', false) %}\n\n coalesce( {{ google_ads_source.google_ads_extract_url_parameter('ads.final_url', 'utm_source') }} , 'google') as utm_source,\n coalesce( {{ google_ads_source.google_ads_extract_url_parameter('ads.final_url', 'utm_medium') }} , 'cpc') as utm_medium,\n coalesce( {{ google_ads_source.google_ads_extract_url_parameter('ads.final_url', 'utm_campaign') }} , campaigns.campaign_name) as utm_campaign,\n coalesce( {{ google_ads_source.google_ads_extract_url_parameter('ads.final_url', 'utm_content') }} , ad_groups.ad_group_name) as utm_content,\n\n {% else %}\n\n ads.utm_source,\n ads.utm_medium,\n ads.utm_campaign,\n ads.utm_content,\n \n {% endif %}\n\n ads.utm_term,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n {{ google_ads_persist_pass_through_columns(pass_through_variable='google_ads__ad_stats_passthrough_metrics', identifier='stats', transform='sum', coalesce_with=0, exclude_fields=['conversions','conversions_value','view_through_conversions']) }}\n\n from stats\n left join ads\n on stats.ad_id = ads.ad_id\n and stats.source_relation = ads.source_relation\n and stats.ad_group_id = ads.ad_group_id\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join accounts\n on campaigns.account_id = accounts.account_id\n and campaigns.source_relation = accounts.source_relation\n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where ads.source_final_urls is not null\n {% endif %}\n\n {{ dbt_utils.group_by(18) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_google_ads__ad_stats", "package": null, "version": null}, {"name": "stg_google_ads__account_history", "package": null, "version": null}, {"name": "stg_google_ads__campaign_history", "package": null, "version": null}, {"name": "stg_google_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_google_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads.google_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats", "model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__campaign_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__ad_history"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__campaign_history`\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_history`\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n stats.ad_group_id,\n stats.ad_id,\n ads.base_url,\n ads.url_host,\n ads.url_path,\n\n \n\n ads.utm_source,\n ads.utm_medium,\n ads.utm_campaign,\n ads.utm_content,\n \n \n\n ads.utm_term,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n \n\n\n \n \n \n \n \n \n , sum(coalesce(stats.view_through_conversions_aliased, 0)) as view_through_conversions_aliased\n \n \n \n \n , sum(coalesce(stats.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(stats.videos, 0)) as videos\n \n \n\n\n\n\n from stats\n left join ads\n on stats.ad_id = ads.ad_id\n and stats.source_relation = ads.source_relation\n and stats.ad_group_id = ads.ad_group_id\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join accounts\n on campaigns.account_id = accounts.account_id\n and campaigns.source_relation = accounts.source_relation\n\n \n where ads.source_final_urls is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads.google_ads__ad_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "google_ads__ad_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__ad_report.sql", "original_file_path": "models/google_ads__ad_report.sql", "unique_id": "model.google_ads.google_ads__ad_report", "fqn": ["google_ads", "google_ads__ad_report"], "alias": "google_ads__ad_report", "checksum": {"name": "sha256", "checksum": "0803e815b631052074e61fa9e8e42a2eb69d06c128d06592c7ea918c6e9eb7b9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the ad level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency which the account uses.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The unique identifier of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The url which is displayed with the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_final_urls": {"name": "source_final_urls", "description": "The final urls that are used within the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_status": {"name": "ad_status", "description": "The status of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_type": {"name": "ad_type", "description": "The type of the ad that is being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.654816, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__ad_report`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith stats as (\n\n select *\n from {{ var('ad_stats') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n stats.ad_group_id,\n stats.ad_id,\n ads.ad_name,\n ads.ad_status,\n ads.ad_type,\n ads.display_url,\n ads.source_final_urls,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n {{ google_ads_persist_pass_through_columns(pass_through_variable='google_ads__ad_stats_passthrough_metrics', identifier='stats', transform='sum', coalesce_with=0, exclude_fields=['conversions','conversions_value','view_through_conversions']) }}\n\n from stats\n left join ads\n on stats.ad_id = ads.ad_id\n and stats.source_relation = ads.source_relation\n and stats.ad_group_id = ads.ad_group_id\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join accounts\n on campaigns.account_id = accounts.account_id\n and campaigns.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(15) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_google_ads__ad_stats", "package": null, "version": null}, {"name": "stg_google_ads__account_history", "package": null, "version": null}, {"name": "stg_google_ads__campaign_history", "package": null, "version": null}, {"name": "stg_google_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_google_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads.google_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats", "model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__campaign_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__ad_history"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__campaign_history`\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_history`\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n stats.ad_group_id,\n stats.ad_id,\n ads.ad_name,\n ads.ad_status,\n ads.ad_type,\n ads.display_url,\n ads.source_final_urls,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n \n\n\n \n \n \n \n \n \n , sum(coalesce(stats.view_through_conversions_aliased, 0)) as view_through_conversions_aliased\n \n \n \n \n , sum(coalesce(stats.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(stats.videos, 0)) as videos\n \n \n\n\n\n\n from stats\n left join ads\n on stats.ad_id = ads.ad_id\n and stats.source_relation = ads.source_relation\n and stats.ad_group_id = ads.ad_group_id\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join accounts\n on campaigns.account_id = accounts.account_id\n and campaigns.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads.google_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "google_ads__ad_group_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__ad_group_report.sql", "original_file_path": "models/google_ads__ad_group_report.sql", "unique_id": "model.google_ads.google_ads__ad_group_report", "fqn": ["google_ads", "google_ads__ad_group_report"], "alias": "google_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "452be61a44029a8145fe60fc172cd1bd27ba45e4de2054865633e87c9bd3a596"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the ad group level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency which the account uses.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "The status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_type": {"name": "ad_group_type", "description": "The type of ad group which is serving ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.6535318, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__ad_group_report`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith stats as (\n\n select *\n from {{ var('ad_group_stats') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n stats.ad_group_id,\n ad_groups.ad_group_status,\n ad_groups.ad_group_type,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n {{ google_ads_persist_pass_through_columns(pass_through_variable='google_ads__ad_group_stats_passthrough_metrics', identifier='stats', transform='sum', coalesce_with=0, exclude_fields=['conversions','conversions_value','view_through_conversions']) }}\n\n from stats\n left join ad_groups\n on stats.ad_group_id = ad_groups.ad_group_id\n and stats.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join accounts\n on campaigns.account_id = accounts.account_id\n and campaigns.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(11) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_stats", "package": null, "version": null}, {"name": "stg_google_ads__account_history", "package": null, "version": null}, {"name": "stg_google_ads__campaign_history", "package": null, "version": null}, {"name": "stg_google_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads.google_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats", "model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__campaign_history", "model.google_ads_source.stg_google_ads__ad_group_history"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n stats.ad_group_id,\n ad_groups.ad_group_status,\n ad_groups.ad_group_type,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n \n\n\n \n \n \n \n \n \n \n \n \n , sum(coalesce(stats.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(stats.videos, 0)) as videos\n \n \n\n\n\n\n from stats\n left join ad_groups\n on stats.ad_group_id = ad_groups.ad_group_id\n and stats.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join accounts\n on campaigns.account_id = accounts.account_id\n and campaigns.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads.google_ads__account_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "google_ads__account_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__account_report.sql", "original_file_path": "models/google_ads__account_report.sql", "unique_id": "model.google_ads.google_ads__account_report", "fqn": ["google_ads", "google_ads__account_report"], "alias": "google_ads__account_report", "checksum": {"name": "sha256", "checksum": "2740f351b276fc153ca4e7a3bfb94697d65305ceb9fed6e5717ea6896514f21b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the account level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone which the account is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency which the account uses.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "auto_tagging_enabled": {"name": "auto_tagging_enabled", "description": "Boolean indicating if the account uses auto tagging within ad urls.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.6524422, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__account_report`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith stats as (\n\n select *\n from {{ var('account_stats') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n stats.account_id,\n accounts.currency_code,\n accounts.auto_tagging_enabled,\n accounts.time_zone,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(stats.conversions) as conversions,\n sum(stats.conversions_value) as conversions_value,\n sum(stats.view_through_conversions) as view_through_conversions\n\n {{ google_ads_persist_pass_through_columns(pass_through_variable='google_ads__account_stats_passthrough_metrics', identifier='stats', transform='sum', coalesce_with=0, exclude_fields=['conversions','conversions_value','view_through_conversions']) }}\n\n from stats\n left join accounts\n on stats.account_id = accounts.account_id\n and stats.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_google_ads__account_stats", "package": null, "version": null}, {"name": "stg_google_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads.google_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats", "model.google_ads_source.stg_google_ads__account_history"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_history`\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n stats.account_id,\n accounts.currency_code,\n accounts.auto_tagging_enabled,\n accounts.time_zone,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(stats.conversions) as conversions,\n sum(stats.conversions_value) as conversions_value,\n sum(stats.view_through_conversions) as view_through_conversions\n\n \n\n\n \n \n \n \n \n \n , sum(coalesce(stats.view_through_conversions_aliased, 0)) as view_through_conversions_aliased\n \n \n \n \n , sum(coalesce(stats.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(stats.videos, 0)) as videos\n \n \n\n\n\n\n from stats\n left join accounts\n on stats.account_id = accounts.account_id\n and stats.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__campaign_level_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__campaign_level_report", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__campaign_level_report.sql", "original_file_path": "models/stg_amazon_ads__campaign_level_report.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "fqn": ["amazon_ads_source", "stg_amazon_ads__campaign_level_report"], "alias": "stg_amazon_ads__campaign_level_report", "checksum": {"name": "sha256", "checksum": "faff85e0a0f4e67a8a53f8de1035e545336154fc516d4fc1dd0b994c0228ec01"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Campaign reports contain performance data broken down at the campaign level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_applicable_budget_rule_id": {"name": "campaign_applicable_budget_rule_id", "description": "The ID associated to the active budget rule for a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_applicable_budget_rule_name": {"name": "campaign_applicable_budget_rule_name", "description": "The name associated to the active budget rule for a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_rule_based_budget_amount": {"name": "campaign_rule_based_budget_amount", "description": "The value of the rule-based budget for a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951599.701528, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_level_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__campaign_level_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__campaign_level_report_tmp')),\n staging_columns=get_campaign_level_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n campaign_applicable_budget_rule_id,\n campaign_applicable_budget_rule_name,\n campaign_bidding_strategy,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n campaign_rule_based_budget_amount,\n clicks,\n cost,\n date as date_day,\n impressions,\n purchases_30_d,\n sales_30_d\n\n {{ amazon_ads_fill_pass_through_columns(pass_through_fields=var('amazon_ads__campaign_passthrough_metrics'), except=['purchases_30_d', 'sales_30_d']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_level_report_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_level_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_campaign_level_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.amazon_ads_source.amazon_ads_fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__campaign_level_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_level_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n campaign_applicable_budget_rule_id\n \n as \n \n campaign_applicable_budget_rule_id\n \n, \n \n \n campaign_applicable_budget_rule_name\n \n as \n \n campaign_applicable_budget_rule_name\n \n, \n \n \n campaign_bidding_strategy\n \n as \n \n campaign_bidding_strategy\n \n, \n \n \n campaign_budget_amount\n \n as \n \n campaign_budget_amount\n \n, \n \n \n campaign_budget_currency_code\n \n as \n \n campaign_budget_currency_code\n \n, \n \n \n campaign_budget_type\n \n as \n \n campaign_budget_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n campaign_rule_based_budget_amount\n \n as \n \n campaign_rule_based_budget_amount\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost\n \n as \n \n cost\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n purchases_30_d\n \n as \n \n purchases_30_d\n \n, \n \n \n sales_30_d\n \n as \n \n sales_30_d\n \n, \n \n \n purchases_30_d\n \n as conversions , \n \n \n sales_30_d\n \n as sales_30_d_alias , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n campaign_applicable_budget_rule_id,\n campaign_applicable_budget_rule_name,\n campaign_bidding_strategy,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n cast(campaign_id as string) as campaign_id,\n campaign_rule_based_budget_amount,\n clicks,\n cost,\n date as date_day,\n impressions,\n purchases_30_d,\n sales_30_d\n\n \n\n\n \n \n \n , coalesce(cast(conversions as FLOAT64), 0) as conversions\n \n \n \n \n \n , coalesce(cast(sales_30_d_alias as FLOAT64), 0) as sales_30_d_alias\n \n \n \n \n \n , coalesce(cast(installs as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(videos as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__ad_group_level_report", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__ad_group_level_report.sql", "original_file_path": "models/stg_amazon_ads__ad_group_level_report.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "fqn": ["amazon_ads_source", "stg_amazon_ads__ad_group_level_report"], "alias": "stg_amazon_ads__ad_group_level_report", "checksum": {"name": "sha256", "checksum": "e9a02b686f84b5e0bfaff8e878e8f3459f669cb340f7344e3b61994b7be15d6d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance by Amazon ad group.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951599.697533, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__ad_group_level_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__ad_group_level_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__ad_group_level_report_tmp')),\n staging_columns=get_ad_group_level_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n campaign_bidding_strategy,\n clicks,\n cost,\n date as date_day,\n impressions,\n purchases_30_d,\n sales_30_d\n \n {{ amazon_ads_fill_pass_through_columns(pass_through_fields=var('amazon_ads__ad_group_passthrough_metrics'), except=['purchases_30_d', 'sales_30_d']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__ad_group_level_report_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__ad_group_level_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_ad_group_level_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.amazon_ads_source.amazon_ads_fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__ad_group_level_report.sql", "compiled": true, "compiled_code": "\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__ad_group_level_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n campaign_bidding_strategy\n \n as \n \n campaign_bidding_strategy\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost\n \n as \n \n cost\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n cast(null as INT64) as \n \n purchases_30_d\n \n , \n cast(null as FLOAT64) as \n \n sales_30_d\n \n , \n cast(null as string) as conversions , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_group_id as string) as ad_group_id,\n campaign_bidding_strategy,\n clicks,\n cost,\n date as date_day,\n impressions,\n purchases_30_d,\n sales_30_d\n \n \n\n\n \n \n \n , coalesce(cast(conversions as FLOAT64), 0) as conversions\n \n \n \n \n \n , coalesce(cast(installs as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(videos as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__advertised_product_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__advertised_product_report", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__advertised_product_report.sql", "original_file_path": "models/stg_amazon_ads__advertised_product_report.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "fqn": ["amazon_ads_source", "stg_amazon_ads__advertised_product_report"], "alias": "stg_amazon_ads__advertised_product_report", "checksum": {"name": "sha256", "checksum": "d68ba58014d1c07153a6527dfd801e0b7472e9c4c80704c9b591659154ed6553"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Advertised product reports contain performance data for products that are advertised as part of your campaigns.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertised_asin": {"name": "advertised_asin", "description": "The ASIN associated to an advertised product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertised_sku": {"name": "advertised_sku", "description": "The SKU being advertised.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951599.698956, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__advertised_product_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__advertised_product_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__advertised_product_report_tmp')),\n staging_columns=get_advertised_product_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_id as {{ dbt.type_string() }}) as ad_id,\n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n advertised_asin,\n advertised_sku,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n purchases_30_d,\n sales_30_d\n \n {{ amazon_ads_fill_pass_through_columns(pass_through_fields=var('amazon_ads__advertised_product_passthrough_metrics'), except=['purchases_30_d', 'sales_30_d']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__advertised_product_report_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__advertised_product_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_advertised_product_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.amazon_ads_source.amazon_ads_fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__advertised_product_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__advertised_product_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n cast(null as string) as \n \n advertised_asin\n \n , \n cast(null as string) as \n \n advertised_sku\n \n , \n \n \n campaign_budget_amount\n \n as \n \n campaign_budget_amount\n \n, \n \n \n campaign_budget_currency_code\n \n as \n \n campaign_budget_currency_code\n \n, \n \n \n campaign_budget_type\n \n as \n \n campaign_budget_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost\n \n as \n \n cost\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n cast(null as INT64) as \n \n purchases_30_d\n \n , \n cast(null as FLOAT64) as \n \n sales_30_d\n \n , \n cast(null as string) as conversions , \n cast(null as string) as sales_30_d_alias , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_id as string) as ad_id,\n cast(ad_group_id as string) as ad_group_id,\n advertised_asin,\n advertised_sku,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n cast(campaign_id as string) as campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n purchases_30_d,\n sales_30_d\n \n \n\n\n \n \n \n , coalesce(cast(conversions as FLOAT64), 0) as conversions\n \n \n \n \n \n , coalesce(cast(sales_30_d_alias as FLOAT64), 0) as sales_30_d_alias\n \n \n \n \n \n , coalesce(cast(installs as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(videos as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__portfolio_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__portfolio_history", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__portfolio_history.sql", "original_file_path": "models/stg_amazon_ads__portfolio_history.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history", "fqn": ["amazon_ads_source", "stg_amazon_ads__portfolio_history"], "alias": "stg_amazon_ads__portfolio_history", "checksum": {"name": "sha256", "checksum": "7492e34b2032f5ee64914c76852d669aa3cee452d469f9db719aaa40d7901ec9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a portfolio in Amazon Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_amount": {"name": "budget_amount", "description": "The budget amount associated with the portfolio. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_currency_code": {"name": "budget_currency_code", "description": "The currency used for all monetary values for entities under this profile. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_end_date": {"name": "budget_end_date", "description": "The end date after which the budget is no longer applied. Optional if policy is set to dateRange or monthlyRecurring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_start_date": {"name": "budget_start_date", "description": "The starting date in YYYYMMDD format to which the budget is applied. Required if policy is set to dateRange. Not specified if policy is set to monthlyRecurring. Note that the starting date for monthlyRecurring is the date when the policy is set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_policy": {"name": "budget_policy", "description": "The budget policy. Set to dateRange to specify a budget for a specific period of time. Set to monthlyRecurring to specify a budget that is automatically renewed at the beginning of each month. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "in_budget": {"name": "in_budget", "description": "Indicates the current budget status of the portfolio. Set to true if the portfolio is in budget, set to false if the portfolio is out of budget.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating whether record was the most recent instance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951599.70492, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__portfolio_history`", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__amazon_ads_enabled','amazon_ads__portfolio_history_enabled'])) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__portfolio_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__portfolio_history_tmp')),\n staging_columns=get_portfolio_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as portfolio_id,\n budget_amount,\n budget_currency_code,\n budget_end_date,\n budget_policy,\n budget_start_date,\n creation_date,\n in_budget,\n last_updated_date,\n name as portfolio_name,\n cast(profile_id as {{ dbt.type_string() }}) as profile_id,\n serving_status,\n state,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__portfolio_history_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__portfolio_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.amazon_ads_source.get_portfolio_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__portfolio_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__portfolio_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n budget_amount\n \n as \n \n budget_amount\n \n, \n \n \n budget_currency_code\n \n as \n \n budget_currency_code\n \n, \n \n \n budget_end_date\n \n as \n \n budget_end_date\n \n, \n \n \n budget_policy\n \n as \n \n budget_policy\n \n, \n \n \n budget_start_date\n \n as \n \n budget_start_date\n \n, \n \n \n creation_date\n \n as \n \n creation_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n in_budget\n \n as \n \n in_budget\n \n, \n \n \n last_updated_date\n \n as \n \n last_updated_date\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n profile_id\n \n as \n \n profile_id\n \n, \n \n \n serving_status\n \n as \n \n serving_status\n \n, \n \n \n state\n \n as \n \n state\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as string) as portfolio_id,\n budget_amount,\n budget_currency_code,\n budget_end_date,\n budget_policy,\n budget_start_date,\n creation_date,\n in_budget,\n last_updated_date,\n name as portfolio_name,\n cast(profile_id as string) as profile_id,\n serving_status,\n state,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__campaign_history", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__campaign_history.sql", "original_file_path": "models/stg_amazon_ads__campaign_history.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history", "fqn": ["amazon_ads_source", "stg_amazon_ads__campaign_history"], "alias": "stg_amazon_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "2d4efd6602d2d8e18cacbb116dd66d4ca8969a8b7623902fd7084a4572325aca"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a campaign in Amazon Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bidding_strategy": {"name": "bidding_strategy", "description": "The bidding strategy associated with a campaign (legacyForSales, autoForSales, or manual.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget": {"name": "budget", "description": "The budget for the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_type": {"name": "budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_budget": {"name": "effective_budget", "description": "Adjusted budget for the campaign that has been impacted by a budget rule.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "targeting_type": {"name": "targeting_type", "description": "The type of targeting used for the campaign, either manual or auto.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating whether record was the most recent instance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951599.700487, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_history`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__campaign_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as campaign_id,\n last_updated_date,\n bidding_strategy,\n creation_date,\n end_date,\n name as campaign_name,\n cast(portfolio_id as {{ dbt.type_string() }}) as portfolio_id,\n cast(profile_id as {{ dbt.type_string() }}) as profile_id,\n serving_status,\n start_date,\n state,\n targeting_type,\n budget,\n budget_type,\n effective_budget,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n bidding_strategy\n \n as \n \n bidding_strategy\n \n, \n \n \n creation_date\n \n as \n \n creation_date\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_updated_date\n \n as \n \n last_updated_date\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n portfolio_id\n \n as \n \n portfolio_id\n \n, \n \n \n profile_id\n \n as \n \n profile_id\n \n, \n \n \n serving_status\n \n as \n \n serving_status\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n targeting_type\n \n as \n \n targeting_type\n \n, \n \n \n budget\n \n as \n \n budget\n \n, \n \n \n budget_type\n \n as \n \n budget_type\n \n, \n \n \n effective_budget\n \n as \n \n effective_budget\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as string) as campaign_id,\n last_updated_date,\n bidding_strategy,\n creation_date,\n end_date,\n name as campaign_name,\n cast(portfolio_id as string) as portfolio_id,\n cast(profile_id as string) as profile_id,\n serving_status,\n start_date,\n state,\n targeting_type,\n budget,\n budget_type,\n effective_budget,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__product_ad_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__product_ad_history", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__product_ad_history.sql", "original_file_path": "models/stg_amazon_ads__product_ad_history.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history", "fqn": ["amazon_ads_source", "stg_amazon_ads__product_ad_history"], "alias": "stg_amazon_ads__product_ad_history", "checksum": {"name": "sha256", "checksum": "a561e039270a2906c3b2c4612600325afadd04e43ede1e59146f94f89a09e86c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a product in Amazon Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "asin": {"name": "asin", "description": "The ASIN associated with the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sku": {"name": "sku", "description": "The product SKU associated with the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating whether record was the most recent instance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951599.705778, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__product_ad_history`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__product_ad_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__product_ad_history_tmp')),\n staging_columns=get_product_ad_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as ad_id,\n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n asin,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n creation_date,\n last_updated_date,\n serving_status,\n sku,\n state,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__product_ad_history_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__product_ad_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_product_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__product_ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__product_ad_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n asin\n \n as \n \n asin\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n creation_date\n \n as \n \n creation_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_updated_date\n \n as \n \n last_updated_date\n \n, \n \n \n serving_status\n \n as \n \n serving_status\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n state\n \n as \n \n state\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as string) as ad_id,\n cast(ad_group_id as string) as ad_group_id,\n asin,\n cast(campaign_id as string) as campaign_id,\n creation_date,\n last_updated_date,\n serving_status,\n sku,\n state,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__targeting_keyword_report", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__targeting_keyword_report.sql", "original_file_path": "models/stg_amazon_ads__targeting_keyword_report.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report", "fqn": ["amazon_ads_source", "stg_amazon_ads__targeting_keyword_report"], "alias": "stg_amazon_ads__targeting_keyword_report", "checksum": {"name": "sha256", "checksum": "70565b72db3435e73426ccce95715ecb48b66aa5e390ea51ff0b19c60eb2d6f1"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Targeting reports contain performance metrics broken down by both targeting expressions and keywords.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_keyword_status": {"name": "ad_keyword_status", "description": "Current status of a keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_bid": {"name": "keyword_bid", "description": "Bid associated with a keyword or targeting expression.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_type": {"name": "keyword_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "targeting": {"name": "targeting", "description": "A string representation of the expression object used in the targeting clause.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951599.709184, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__targeting_keyword_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__targeting_keyword_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__targeting_keyword_report_tmp')),\n staging_columns=get_targeting_keyword_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n ad_keyword_status,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n keyword_bid,\n cast(keyword_id as {{ dbt.type_string() }}) as keyword_id,\n keyword_type,\n match_type,\n targeting,\n purchases_30_d,\n sales_30_d\n\n {{ amazon_ads_fill_pass_through_columns(pass_through_fields=var('amazon_ads__targeting_keyword_passthrough_metrics'), except=['purchases_30_d', 'sales_30_d']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__targeting_keyword_report_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__targeting_keyword_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_targeting_keyword_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.amazon_ads_source.amazon_ads_fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__targeting_keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__targeting_keyword_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_keyword_status\n \n as \n \n ad_keyword_status\n \n, \n \n \n campaign_budget_amount\n \n as \n \n campaign_budget_amount\n \n, \n \n \n campaign_budget_currency_code\n \n as \n \n campaign_budget_currency_code\n \n, \n \n \n campaign_budget_type\n \n as \n \n campaign_budget_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost\n \n as \n \n cost\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n keyword_bid\n \n as \n \n keyword_bid\n \n, \n \n \n keyword_id\n \n as \n \n keyword_id\n \n, \n \n \n keyword_type\n \n as \n \n keyword_type\n \n, \n \n \n match_type\n \n as \n \n match_type\n \n, \n \n \n targeting\n \n as \n \n targeting\n \n, \n cast(null as INT64) as \n \n purchases_30_d\n \n , \n cast(null as FLOAT64) as \n \n sales_30_d\n \n , \n cast(null as string) as conversions , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_group_id as string) as ad_group_id,\n ad_keyword_status,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n cast(campaign_id as string) as campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n keyword_bid,\n cast(keyword_id as string) as keyword_id,\n keyword_type,\n match_type,\n targeting,\n purchases_30_d,\n sales_30_d\n\n \n\n\n \n \n \n , coalesce(cast(conversions as FLOAT64), 0) as conversions\n \n \n \n \n \n , coalesce(cast(installs as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(videos as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__profile": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__profile", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__profile.sql", "original_file_path": "models/stg_amazon_ads__profile.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile", "fqn": ["amazon_ads_source", "stg_amazon_ads__profile"], "alias": "stg_amazon_ads__profile", "checksum": {"name": "sha256", "checksum": "b19222876f75b5b7f2172737e7020be2bd0fe52e2fa55ecfb2eb1c437ac054bf"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a profile. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_marketplace_string_id": {"name": "account_marketplace_string_id", "description": "The identifier of the marketplace to which the account is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account subtype.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "One of seller, vendor, or agency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_valid_payment_method": {"name": "account_valid_payment_method", "description": "For Vendors, this returns if the Advertiser has set up a valid payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency used for all monetary values for entities under this profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget for Sponsored Product campaigns for seller type accounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The time zone used for all date-based campaign management and reporting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951599.707663, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__profile`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__profile_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__profile_tmp')),\n staging_columns=get_profile_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as profile_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n account_marketplace_string_id,\n account_name,\n account_sub_type,\n account_type,\n account_valid_payment_method,\n country_code,\n currency_code,\n daily_budget,\n timezone,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__profile_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__profile_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__profile_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__profile.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__profile_tmp`\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n account_marketplace_string_id\n \n as \n \n account_marketplace_string_id\n \n, \n \n \n account_name\n \n as \n \n account_name\n \n, \n \n \n account_sub_type\n \n as \n \n account_sub_type\n \n, \n \n \n account_type\n \n as \n \n account_type\n \n, \n \n \n account_valid_payment_method\n \n as \n \n account_valid_payment_method\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n daily_budget\n \n as \n \n daily_budget\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as string) as profile_id,\n cast(account_id as string) as account_id,\n account_marketplace_string_id,\n account_name,\n account_sub_type,\n account_type,\n account_valid_payment_method,\n country_code,\n currency_code,\n daily_budget,\n timezone,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__keyword_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__keyword_history", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__keyword_history.sql", "original_file_path": "models/stg_amazon_ads__keyword_history.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history", "fqn": ["amazon_ads_source", "stg_amazon_ads__keyword_history"], "alias": "stg_amazon_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "8fef1df7058e8d7f41b82c40ee263ed0969637aafc90670ab3c2068f3be788fd"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a keyword in Amazon Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid": {"name": "bid", "description": "Bid associated with this keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The exact text for the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "One of (broad, exact, or phrase.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_language_keyword": {"name": "native_language_keyword", "description": "The unlocalized keyword text in the preferred locale of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_language_locale": {"name": "native_language_locale", "description": "The preferred language locale of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating whether record was the most recent instance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951599.702666, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__keyword_history`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__keyword_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__keyword_history_tmp')),\n staging_columns=get_keyword_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as keyword_id,\n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n bid,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n creation_date,\n keyword_text,\n last_updated_date,\n match_type,\n native_language_keyword,\n serving_status,\n state,\n native_language_locale,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__keyword_history_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__keyword_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_keyword_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__keyword_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__keyword_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n bid\n \n as \n \n bid\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n creation_date\n \n as \n \n creation_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n keyword_text\n \n as \n \n keyword_text\n \n, \n \n \n last_updated_date\n \n as \n \n last_updated_date\n \n, \n \n \n match_type\n \n as \n \n match_type\n \n, \n \n \n native_language_keyword\n \n as \n \n native_language_keyword\n \n, \n \n \n serving_status\n \n as \n \n serving_status\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n native_language_locale\n \n as \n \n native_language_locale\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as string) as keyword_id,\n cast(ad_group_id as string) as ad_group_id,\n bid,\n cast(campaign_id as string) as campaign_id,\n creation_date,\n keyword_text,\n last_updated_date,\n match_type,\n native_language_keyword,\n serving_status,\n state,\n native_language_locale,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__ad_group_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__ad_group_history", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__ad_group_history.sql", "original_file_path": "models/stg_amazon_ads__ad_group_history.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "fqn": ["amazon_ads_source", "stg_amazon_ads__ad_group_history"], "alias": "stg_amazon_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "ad915eee0f9060ec6076a785633fb14e6a4197f55b4a2f5dfe8e523b3428d7fe"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents an ad group in Amazon Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_bid": {"name": "default_bid", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating whether record was the most recent instance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951599.6964312, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__ad_group_history`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__ad_group_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__ad_group_history_tmp')),\n staging_columns=get_ad_group_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as ad_group_id,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n creation_date,\n default_bid,\n last_updated_date,\n name as ad_group_name,\n serving_status,\n state,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__ad_group_history_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__ad_group_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__ad_group_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n creation_date\n \n as \n \n creation_date\n \n, \n \n \n default_bid\n \n as \n \n default_bid\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_updated_date\n \n as \n \n last_updated_date\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n serving_status\n \n as \n \n serving_status\n \n, \n \n \n state\n \n as \n \n state\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as string) as ad_group_id,\n cast(campaign_id as string) as campaign_id,\n creation_date,\n default_bid,\n last_updated_date,\n name as ad_group_name,\n serving_status,\n state,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__search_term_ad_keyword_report", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__search_term_ad_keyword_report.sql", "original_file_path": "models/stg_amazon_ads__search_term_ad_keyword_report.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report", "fqn": ["amazon_ads_source", "stg_amazon_ads__search_term_ad_keyword_report"], "alias": "stg_amazon_ads__search_term_ad_keyword_report", "checksum": {"name": "sha256", "checksum": "43ad5dca44d474500e342be039a6942d725816f1006303d496722f8931f00410"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Search term reports contain search term performance metrics broken down by targeting expressions and keywords.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_keyword_status": {"name": "ad_keyword_status", "description": "Current status of a keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_bid": {"name": "keyword_bid", "description": "Bid associated with a keyword or targeting expression.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_term": {"name": "search_term", "description": "The search term used by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "targeting": {"name": "targeting", "description": "A string representation of the expression object used in the targeting clause.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951599.710006, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__search_term_ad_keyword_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__search_term_ad_keyword_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__search_term_ad_keyword_report_tmp')),\n staging_columns=get_search_term_ad_keyword_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n ad_keyword_status,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n keyword_bid,\n cast(keyword_id as {{ dbt.type_string() }}) as keyword_id,\n search_term,\n targeting,\n purchases_30_d,\n sales_30_d\n\n {{ amazon_ads_fill_pass_through_columns(pass_through_fields=var('amazon_ads__search_term_ad_keyword_passthrough_metrics'), except=['purchases_30_d', 'sales_30_d']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__search_term_ad_keyword_report_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__search_term_ad_keyword_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_search_term_ad_keyword_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.amazon_ads_source.amazon_ads_fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__search_term_ad_keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__search_term_ad_keyword_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n cast(null as string) as \n \n ad_keyword_status\n \n , \n \n \n campaign_budget_amount\n \n as \n \n campaign_budget_amount\n \n, \n \n \n campaign_budget_currency_code\n \n as \n \n campaign_budget_currency_code\n \n, \n \n \n campaign_budget_type\n \n as \n \n campaign_budget_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost\n \n as \n \n cost\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n keyword_bid\n \n as \n \n keyword_bid\n \n, \n \n \n keyword_id\n \n as \n \n keyword_id\n \n, \n \n \n search_term\n \n as \n \n search_term\n \n, \n \n \n targeting\n \n as \n \n targeting\n \n, \n cast(null as INT64) as \n \n purchases_30_d\n \n , \n cast(null as FLOAT64) as \n \n sales_30_d\n \n , \n cast(null as string) as conversions , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_group_id as string) as ad_group_id,\n ad_keyword_status,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n cast(campaign_id as string) as campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n keyword_bid,\n cast(keyword_id as string) as keyword_id,\n search_term,\n targeting,\n purchases_30_d,\n sales_30_d\n\n \n\n\n \n \n \n , coalesce(cast(conversions as FLOAT64), 0) as conversions\n \n \n \n \n \n , coalesce(cast(installs as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(videos as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__keyword_history_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__keyword_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__keyword_history_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__keyword_history_tmp"], "alias": "stg_amazon_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "c142330a3f12a74e80ec0f0645c51afe68190e156f8e55913f9653d58bade07d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951596.320687, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__keyword_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='keyword_history', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='keyword_history',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "keyword_history"], ["amazon_ads", "keyword_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.keyword_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__keyword_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_keyword_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__profile_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__profile_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__profile_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__profile_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__profile_tmp"], "alias": "stg_amazon_ads__profile_tmp", "checksum": {"name": "sha256", "checksum": "3b418e24c0a6ea40bf9d5a6855a3aeb96c4548339c127142014b61602b62da35"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951596.3258991, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__profile_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='profile', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='profile',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "profile"], ["amazon_ads", "profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.profile"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__profile_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_profile_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__search_term_ad_keyword_report_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__search_term_ad_keyword_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__search_term_ad_keyword_report_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__search_term_ad_keyword_report_tmp"], "alias": "stg_amazon_ads__search_term_ad_keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "ae1c9bf47b0cc22b217eaf505173ce06e0b1861722b9415ab54d4a8f13eac3cc"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951596.3314161, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__search_term_ad_keyword_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='search_term_ad_keyword_report', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='search_term_ad_keyword_report',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "search_term_ad_keyword_report"], ["amazon_ads", "search_term_ad_keyword_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__search_term_ad_keyword_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_search_term_ad_keyword_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__product_ad_history_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__product_ad_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__product_ad_history_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__product_ad_history_tmp"], "alias": "stg_amazon_ads__product_ad_history_tmp", "checksum": {"name": "sha256", "checksum": "5cf7d1f7a9db1fc2e083a4c66e20630efb5268b83337f2b51e9134fb74c91062"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951596.3363981, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__product_ad_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='product_ad_history', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='product_ad_history',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "product_ad_history"], ["amazon_ads", "product_ad_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.product_ad_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__product_ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_product_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__ad_group_history_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__ad_group_history_tmp"], "alias": "stg_amazon_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "a4a15e75690b1457f5e0f40d7dccd135bf8ac2c8598152a159fdac4e7df9c110"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951596.342113, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__ad_group_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_history', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='ad_group_history',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "ad_group_history"], ["amazon_ads", "ad_group_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.ad_group_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_ad_group_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__campaign_level_report_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__campaign_level_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__campaign_level_report_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__campaign_level_report_tmp"], "alias": "stg_amazon_ads__campaign_level_report_tmp", "checksum": {"name": "sha256", "checksum": "34b2a26051b11d48d8a3c29349032a928ecd80207c1d2e9222407fa6b3cdd835"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951596.347049, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_level_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_level_report', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='campaign_level_report',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "campaign_level_report"], ["amazon_ads", "campaign_level_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.campaign_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__campaign_level_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_campaign_level_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__targeting_keyword_report_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__targeting_keyword_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__targeting_keyword_report_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__targeting_keyword_report_tmp"], "alias": "stg_amazon_ads__targeting_keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "b4171c02c2583338e3767f969b5799359e262da90821bebe28da24bf0db030ce"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951596.351769, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__targeting_keyword_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='targeting_keyword_report', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='targeting_keyword_report',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "targeting_keyword_report"], ["amazon_ads", "targeting_keyword_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.targeting_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__targeting_keyword_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_targeting_keyword_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__portfolio_history_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__portfolio_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__portfolio_history_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__portfolio_history_tmp"], "alias": "stg_amazon_ads__portfolio_history_tmp", "checksum": {"name": "sha256", "checksum": "e3d32e4c31e5335c6eb282ec238bcedbcbe559a9f08e0e3daf3ac682f965b806"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951596.356989, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__portfolio_history_tmp`", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__amazon_ads_enabled','amazon_ads__portfolio_history_enabled'])) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='portfolio_history', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='portfolio_history',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "portfolio_history"], ["amazon_ads", "portfolio_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.portfolio_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__portfolio_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_portfolio_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__campaign_history_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__campaign_history_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__campaign_history_tmp"], "alias": "stg_amazon_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "0187c7725896fbcdf1bbcbae9d300353ed94df3ec8b0d90e8e63f4bf0d266a15"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951596.361682, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='campaign_history',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "campaign_history"], ["amazon_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.campaign_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__ad_group_level_report_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__ad_group_level_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__ad_group_level_report_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__ad_group_level_report_tmp"], "alias": "stg_amazon_ads__ad_group_level_report_tmp", "checksum": {"name": "sha256", "checksum": "8482674eabaf3fd22e7f482b0baa19f8289a10598455aebc81d56fe90b63f60f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951596.3662798, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__ad_group_level_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_level_report', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='ad_group_level_report',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "ad_group_level_report"], ["amazon_ads", "ad_group_level_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.ad_group_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__ad_group_level_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_ad_group_level_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_amazon_ads__advertised_product_report_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__advertised_product_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__advertised_product_report_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__advertised_product_report_tmp"], "alias": "stg_amazon_ads__advertised_product_report_tmp", "checksum": {"name": "sha256", "checksum": "630c5233213d1ccc88fe253f8eeac5b8e4bc415443891fff3687dbdb50ee8ca0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951596.3707159, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__advertised_product_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='advertised_product_report', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='advertised_product_report',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "advertised_product_report"], ["amazon_ads", "advertised_product_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.advertised_product_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__advertised_product_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_advertised_product_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__creative_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__creative_history", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__creative_history.sql", "original_file_path": "models/stg_linkedin_ads__creative_history.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history", "fqn": ["linkedin_source", "stg_linkedin_ads__creative_history"], "alias": "stg_linkedin_ads__creative_history", "checksum": {"name": "sha256", "checksum": "559125ae69af3c1a6852e7444aa527530fccd8479f194fc07239fbd6c0e9c0a9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a 'version' of a creative.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "Unique internal ID representing the creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the creative was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign the creative belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "ACTIVE - Creative creation is complete and creative is available for review and serve.\nPAUSED - Creative creation is complete and creative is current, but should temporarily not be served. This status is not valid upon creation.\nDRAFT - Creative creation is incomplete and may still be edited.\nARCHIVED - Creative creation is complete, but creative should not be served and should be separated from non-archived creatives in any UI.\nCANCELED - Creative is permanently canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_uri": {"name": "click_uri", "description": "Required when creative type is TEXT_AD. Maximum character limit of 500 after URL encoding all special characters. \nLimit does not include the \"https://\" prefix.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Boolean of whether the record is the latest version of the creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.7777312, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__creative_history`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_linkedin_ads__creative_history_tmp') }}\n\n), macro as (\n\n select \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__creative_history_tmp')),\n staging_columns=get_creative_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='linkedin_ads_union_schemas', \n union_database_variable='linkedin_ads_union_databases') \n }}\n\n from base\n\n), fields as (\n\n select\n source_relation,\n id as creative_id,\n campaign_id,\n coalesce(status, intended_status) as status,\n click_uri,\n cast(coalesce(last_modified_time, last_modified_at) as {{ dbt.type_timestamp() }}) as last_modified_at,\n cast(coalesce(created_time, created_at) as {{ dbt.type_timestamp() }}) as created_at,\n row_number() over (partition by source_relation, id order by coalesce(last_modified_time, last_modified_at) desc) = 1 as is_latest_version\n\n from macro\n\n), url_fields as (\n\n select \n *,\n {{ dbt.split_part('click_uri', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('click_uri') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('click_uri') }} as url_path,\n {{ linkedin_source.linkedin_ads_extract_url_parameter('click_uri', 'utm_source') }} as utm_source,\n {{ linkedin_source.linkedin_ads_extract_url_parameter('click_uri', 'utm_medium') }} as utm_medium,\n {{ linkedin_source.linkedin_ads_extract_url_parameter('click_uri', 'utm_campaign') }} as utm_campaign,\n {{ linkedin_source.linkedin_ads_extract_url_parameter('click_uri', 'utm_content') }} as utm_content,\n {{ linkedin_source.linkedin_ads_extract_url_parameter('click_uri', 'utm_term') }} as utm_term\n \n from fields\n)\n\nselect *\nfrom url_fields", "language": "sql", "refs": [{"name": "stg_linkedin_ads__creative_history_tmp", "package": null, "version": null}, {"name": "stg_linkedin_ads__creative_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_creative_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.linkedin_source.linkedin_ads_extract_url_parameter"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history_tmp"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__creative_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__creative_history_tmp`\n\n), macro as (\n\n select \n \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n click_uri\n \n as \n \n click_uri\n \n, \n \n \n created_time\n \n as \n \n created_time\n \n, \n cast(null as timestamp) as \n \n created_at\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_modified_time\n \n as \n \n last_modified_time\n \n, \n cast(null as timestamp) as \n \n last_modified_at\n \n , \n cast(null as string) as \n \n intended_status\n \n , \n \n \n status\n \n as \n \n status\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n\n), fields as (\n\n select\n source_relation,\n id as creative_id,\n campaign_id,\n coalesce(status, intended_status) as status,\n click_uri,\n cast(coalesce(last_modified_time, last_modified_at) as timestamp) as last_modified_at,\n cast(coalesce(created_time, created_at) as timestamp) as created_at,\n row_number() over (partition by source_relation, id order by coalesce(last_modified_time, last_modified_at) desc) = 1 as is_latest_version\n\n from macro\n\n), url_fields as (\n\n select \n *,\n \n\n \n split(\n click_uri,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_host,\n '/' || safe_cast(\n\n \n split(\n \n\n case when \n\n length(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ) = 0\n then ''\n else\n substr(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n -1 * (\n\n length(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_path,\n nullif(\n\n \n split(\n \n\n \n split(\n click_uri,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n click_uri,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n click_uri,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n click_uri,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n nullif(\n\n \n split(\n \n\n \n split(\n click_uri,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term\n \n from fields\n)\n\nselect *\nfrom url_fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__campaign_history", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__campaign_history.sql", "original_file_path": "models/stg_linkedin_ads__campaign_history.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history", "fqn": ["linkedin_source", "stg_linkedin_ads__campaign_history"], "alias": "stg_linkedin_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "c4d92f9ceab27d6533e3b2dd36e2db445814c8dee4bcf382046eb95047e79cf8"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a 'version' of a campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Unique internal ID representing the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account the campaign belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "The ID of the campaign group the campaign belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the campaign was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "A label for the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_audience_expansion_enabled": {"name": "is_audience_expansion_enabled", "description": "Boolean (default=false) representing whether Audience Expansion is enabled for the campaign provides query expansion for certain targeting criteria.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_type": {"name": "cost_type", "description": "CPM - Cost per thousand advertising impressions. If type=SPONSORED_INMAILS; cost per send(CPS) is measured as CPM x 1000.\nCPC- Cost per individual click on the associated link.\nCPV- Cost per view for video ads.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_selection": {"name": "creative_selection", "description": "ROUND_ROBIN - Rotate through available creatives to serve them as evenly as possible.\nOPTIMIZED (default) - Bias selection taking into account such as expected performance. Not available for Message and Conversation Ads (type=SPONSORED_INMAILS).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_amount": {"name": "daily_budget_amount", "description": "Maximum amount to spend per day UTC. The amount of money as a real number string.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_currency_code": {"name": "daily_budget_currency_code", "description": "ISO currency code. The currency must match that of the parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "format": {"name": "format", "description": "The ad format on the campaign level. See https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads/campaign-formats?view=li-lms-2022-07", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "locale_country": {"name": "locale_country", "description": "Locale of the campaign. An uppercase two-letter country code as defined by ISO-3166.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "locale_language": {"name": "locale_language", "description": "Locale of the campaign. A lowercase two-letter language code as defined by ISO-639.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective_type": {"name": "objective_type", "description": "Campaign Objective type values. Click [here](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ad-budget-pricing-type-combinations?view=li-lms-2022-07) for Campaign Objective descriptions. One of: - BRAND_AWARENESS - ENGAGEMENT - JOB_APPLICANTS - LEAD_GENERATION - WEBSITE_CONVERSIONS - WEBSITE_VISITS - VIDEO_VIEWS\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_offsite_delivery_enabled": {"name": "is_offsite_delivery_enabled", "description": "Boolean indicating if this campaign to allowed to be served on the LinkedIn Audience Network to extend the reach of your campaign by delivering ads beyond the LinkedIn feed to members on third-party apps and sites.\t(default will be \"True\" from June 30, 2022)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization_target_type": {"name": "optimization_target_type", "description": "Determines how this campaign is optimized for spending. If this is not set, there is no optimization. Refer to the documentation here. Default = 'NONE'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_start_at": {"name": "run_schedule_start_at", "description": "Scheduled date range to run associated creatives. The start date must be non-null. Represents the inclusive (greater than or equal to) value in which to start the range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_end_at": {"name": "run_schedule_end_at", "description": "Scheduled date range to run associated creatives. The start date must be non-null. Represents the exclusive (strictly less than) value in which to end the range, if provided.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "ACTIVE - Denotes that the campaign is fully servable.\nPAUSED - Denotes that the campaign meets all requirements to be served, but temporarily should not be.\nARCHIVED - Denotes that the campaign is presently inactive, and should mostly be hidden in the UI until un-archived.\nCOMPLETED - Denotes that the campaign has reached a specified budgetary or chronological limit.\nCANCELED - Denotes that the campaign has been permanently canceled, such as when an advertising account is permanently closed.\nDRAFT - Denotes that the campaign is still being edited and not eligible for serving. Some validation will be postponed until the campaign is activated.\nPENDING_DELETION - Denotes that the campaign has been requested to be deleted that is currently pending.\nREMOVED - Denotes that the campaign was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "TEXT_AD - Text-based ads that show up in the right column or top of the page on LinkedIn.\nSPONSORED_UPDATES - Native ads that promote a company's content updates in the LinkedIn feed.\nSPONSORED_INMAILS - Personalized messages with a call-to-action button delivered to a LinkedIn's member inbox.\nDYNAMIC - Ads that are dynamically personalized.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "This value is used as one of the following: amount to bid (for manual bidding), amount which is the target cost (for target cost bidding) per click, impression, or other event depending on the pricing model, or cost cap (for cost cap bidding). The amount of money as a real number string. The amount should be non-negative if the bidding strategy is manual, target cost, or cost cap bidding. The default is 0 with the currency code set to match that of the associated account.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Amount to bid per click, impression, or other event depending on the pricing model. The default is 0 with the currency code set to match that of the associated account. ISO currency code.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Boolean of whether the record is the latest version of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.7808928, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_history`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_linkedin_ads__campaign_history_tmp') }}\n\n), macro as (\n\n select \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='linkedin_ads_union_schemas', \n union_database_variable='linkedin_ads_union_databases') \n }}\n\n from base\n\n), fields as (\n\n select \n source_relation,\n id as campaign_id,\n name as campaign_name,\n cast(version_tag as numeric) as version_tag,\n campaign_group_id,\n account_id,\n status,\n type,\n cost_type,\n creative_selection,\n daily_budget_amount,\n daily_budget_currency_code,\n unit_cost_amount,\n unit_cost_currency_code,\n format,\n locale_country,\n locale_language,\n objective_type,\n optimization_target_type,\n audience_expansion_enabled as is_audience_expansion_enabled,\n offsite_delivery_enabled as is_offsite_delivery_enabled,\n cast(run_schedule_start as {{ dbt.type_timestamp() }}) as run_schedule_start_at,\n cast(run_schedule_end as {{ dbt.type_timestamp() }}) as run_schedule_end_at,\n cast(last_modified_time as {{ dbt.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt.type_timestamp() }}) as created_at,\n row_number() over (partition by source_relation, id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_history_tmp`\n\n), macro as (\n\n select \n \n \n \n account_id\n \n as \n \n account_id\n \n, \n cast(null as boolean) as \n \n audience_expansion_enabled\n \n , \n \n \n campaign_group_id\n \n as \n \n campaign_group_id\n \n, \n cast(null as string) as \n \n cost_type\n \n , \n \n \n created_time\n \n as \n \n created_time\n \n, \n cast(null as string) as \n \n creative_selection\n \n , \n cast(null as FLOAT64) as \n \n daily_budget_amount\n \n , \n cast(null as string) as \n \n daily_budget_currency_code\n \n , \n cast(null as string) as \n \n format\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_modified_time\n \n as \n \n last_modified_time\n \n, \n cast(null as string) as \n \n locale_country\n \n , \n cast(null as string) as \n \n locale_language\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as string) as \n \n objective_type\n \n , \n cast(null as boolean) as \n \n offsite_delivery_enabled\n \n , \n cast(null as string) as \n \n optimization_target_type\n \n , \n cast(null as timestamp) as \n \n run_schedule_end\n \n , \n cast(null as timestamp) as \n \n run_schedule_start\n \n , \n cast(null as string) as \n \n status\n \n , \n cast(null as string) as \n \n type\n \n , \n cast(null as FLOAT64) as \n \n unit_cost_amount\n \n , \n cast(null as string) as \n \n unit_cost_currency_code\n \n , \n \n \n version_tag\n \n as \n \n version_tag\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n\n), fields as (\n\n select \n source_relation,\n id as campaign_id,\n name as campaign_name,\n cast(version_tag as numeric) as version_tag,\n campaign_group_id,\n account_id,\n status,\n type,\n cost_type,\n creative_selection,\n daily_budget_amount,\n daily_budget_currency_code,\n unit_cost_amount,\n unit_cost_currency_code,\n format,\n locale_country,\n locale_language,\n objective_type,\n optimization_target_type,\n audience_expansion_enabled as is_audience_expansion_enabled,\n offsite_delivery_enabled as is_offsite_delivery_enabled,\n cast(run_schedule_start as timestamp) as run_schedule_start_at,\n cast(run_schedule_end as timestamp) as run_schedule_end_at,\n cast(last_modified_time as timestamp) as last_modified_at,\n cast(created_time as timestamp) as created_at,\n row_number() over (partition by source_relation, id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__ad_analytics_by_campaign", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__ad_analytics_by_campaign.sql", "original_file_path": "models/stg_linkedin_ads__ad_analytics_by_campaign.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "fqn": ["linkedin_source", "stg_linkedin_ads__ad_analytics_by_campaign"], "alias": "stg_linkedin_ads__ad_analytics_by_campaign", "checksum": {"name": "sha256", "checksum": "1b532a9a4e1b9aeeccd19e0294f9420fff6721de9807f6854aa40d4b8f584a68"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the campaign level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.776631, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__ad_analytics_by_campaign`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_linkedin_ads__ad_analytics_by_campaign_tmp') }}\n),\n\nmacro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__ad_analytics_by_campaign_tmp')),\n staging_columns=get_ad_analytics_by_campaign_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='linkedin_ads_union_schemas', \n union_database_variable='linkedin_ads_union_databases') \n }}\n\n from base\n),\n\nfields as (\n \n select \n source_relation,\n {{ dbt.date_trunc('day', 'day') }} as date_day,\n campaign_id,\n clicks,\n impressions,\n {% if var('linkedin_ads__use_local_currency', false) %}\n cost_in_local_currency as cost,\n {% else %}\n cost_in_usd as cost,\n {% endif %}\n\n coalesce(cast(conversion_value_in_local_currency as {{ dbt.type_float() }}), 0) as conversion_value_in_local_currency\n\n {% for conversion in var('linkedin_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {{ linkedin_ads_fill_pass_through_columns(pass_through_fields=var('linkedin_ads__campaign_passthrough_metrics'), except=(var('linkedin_ads__conversion_fields') + ['conversion_value_in_local_currency'])) }}\n\n from macro\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "package": null, "version": null}, {"name": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_ad_analytics_by_campaign_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_float", "macro.dbt.type_bigint", "macro.linkedin_source.linkedin_ads_fill_pass_through_columns"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__ad_analytics_by_campaign.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__ad_analytics_by_campaign_tmp`\n),\n\nmacro as (\n\n select\n \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost_in_local_currency\n \n as \n \n cost_in_local_currency\n \n, \n \n \n cost_in_usd\n \n as \n \n cost_in_usd\n \n, \n \n \n day\n \n as \n \n day\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n conversion_value_in_local_currency\n \n as \n \n conversion_value_in_local_currency\n \n, \n \n \n external_website_conversions\n \n as \n \n external_website_conversions\n \n, \n \n \n one_click_leads\n \n as \n \n one_click_leads\n \n, \n \n \n one_click_leads\n \n as conversions , \n \n \n video_views\n \n as videos \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfields as (\n \n select \n source_relation,\n timestamp_trunc(\n cast(day as timestamp),\n day\n ) as date_day,\n campaign_id,\n clicks,\n impressions,\n \n cost_in_usd as cost,\n \n\n coalesce(cast(conversion_value_in_local_currency as FLOAT64), 0) as conversion_value_in_local_currency\n\n \n , coalesce(cast(external_website_conversions as bigint), 0) as external_website_conversions\n \n , coalesce(cast(one_click_leads as bigint), 0) as one_click_leads\n \n\n \n\n\n \n \n \n \n \n , coalesce(cast(conversions + external_website_conversions as FLOAT64), 0) as conversions\n \n \n \n \n \n \n \n , coalesce(cast(videos as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from macro\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__campaign_group_history", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__campaign_group_history.sql", "original_file_path": "models/stg_linkedin_ads__campaign_group_history.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "fqn": ["linkedin_source", "stg_linkedin_ads__campaign_group_history"], "alias": "stg_linkedin_ads__campaign_group_history", "checksum": {"name": "sha256", "checksum": "87e765f2462f412b9e9e340c37c8d227862258c2d7368761342870e22dc7fd18"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a 'version' of a campaign group.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account the campaign group belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the campaign group was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_backfilled": {"name": "is_backfilled", "description": "Flag that denotes whether the campaign group was created organically or to backfill existing campaigns. This is a read-only field set by the system. Default = false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_start_at": {"name": "run_schedule_start_at", "description": "Represents the inclusive (greater than or equal to) date when to start running the associated campaigns under this campaign group. This field is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_end_at": {"name": "run_schedule_end_at", "description": "Represents the exclusive (strictly less than) date when to stop running the associated campaigns under this campaign group. If this field is unset, it indicates an open range with no end date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of campaign group. Possible values are: ACTIVE - Denotes that the campaign group is capable of serving ads, subject to run date and budget limitations (as well as any other limitations at the account or campaign level). ARCHIVED - Denotes that the campaign group is presently inactive, and should mostly be hidden in the UI until un-archived. CANCELLED - Denotes that the campaign group has been permanently canceled and cannot be reactivated. Not a settable status. DRAFT - Denotes that the campaign group is in a preliminary state and should temporarily not be served. PAUSED - Denotes that the campaign group meets all requirements to be served, but temporarily should not be. PENDING_DELETION - Denotes that the campaign group has been requested to be deleted that is currently pending. REMOVED - Denoted that the campaign group was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Boolean of whether the record is the latest version of the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.781728, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_group_history`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_linkedin_ads__campaign_group_history_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__campaign_group_history_tmp')),\n staging_columns=get_campaign_group_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='linkedin_ads_union_schemas', \n union_database_variable='linkedin_ads_union_databases') \n }}\n\n from base\n\n), fields as (\n\n select \n source_relation,\n id as campaign_group_id,\n name as campaign_group_name,\n account_id,\n status,\n backfilled as is_backfilled,\n cast(run_schedule_start as {{ dbt.type_timestamp() }}) as run_schedule_start_at,\n cast(run_schedule_end as {{ dbt.type_timestamp() }}) as run_schedule_end_at,\n cast(last_modified_time as {{ dbt.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt.type_timestamp() }}) as created_at,\n row_number() over (partition by source_relation, id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_group_history_tmp", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_group_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_campaign_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__campaign_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_group_history_tmp`\n\n), macro as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n cast(null as boolean) as \n \n backfilled\n \n , \n \n \n created_time\n \n as \n \n created_time\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_modified_time\n \n as \n \n last_modified_time\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as timestamp) as \n \n run_schedule_end\n \n , \n cast(null as timestamp) as \n \n run_schedule_start\n \n , \n cast(null as string) as \n \n status\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n\n), fields as (\n\n select \n source_relation,\n id as campaign_group_id,\n name as campaign_group_name,\n account_id,\n status,\n backfilled as is_backfilled,\n cast(run_schedule_start as timestamp) as run_schedule_start_at,\n cast(run_schedule_end as timestamp) as run_schedule_end_at,\n cast(last_modified_time as timestamp) as last_modified_at,\n cast(created_time as timestamp) as created_at,\n row_number() over (partition by source_relation, id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__account_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__account_history", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__account_history.sql", "original_file_path": "models/stg_linkedin_ads__account_history.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history", "fqn": ["linkedin_source", "stg_linkedin_ads__account_history"], "alias": "stg_linkedin_ads__account_history", "checksum": {"name": "sha256", "checksum": "c9a77c7118e632df070b7d30bf13f924e4b787dbef81ad0d1320df5a1a83be9c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a 'version' of an account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The ISO 4217 currency code of the account, such as 'USD' for United States Dollar (default).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "ACTIVE - Account is active; this is the default state\nCANCELLED - Account has been permanently cancelled\nDRAFT - Account is in draft status, meaning it's not yet fully set up and it is not serving\nPENDING_DELETION - Denotes that the account has been requested to be deleted that is currently pending\nREMOVED - Denotes that the account was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "BUSINESS - This is the only value allowed when creating accounts through the API.\nENTERPRISE - This value cannot be used to create accounts through the API and is reserved for accounts created by LinkedIn's internal ad operations systems.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Boolean of whether the record is the latest version of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.7822888, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__account_history`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_linkedin_ads__account_history_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__account_history_tmp')),\n staging_columns=get_account_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='linkedin_ads_union_schemas', \n union_database_variable='linkedin_ads_union_databases') \n }}\n\n from base\n\n), fields as (\n\n select \n source_relation,\n id as account_id,\n name as account_name,\n currency,\n cast(version_tag as numeric) as version_tag,\n status,\n type,\n cast(last_modified_time as {{ dbt.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt.type_timestamp() }}) as created_at,\n row_number() over (partition by source_relation, id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_linkedin_ads__account_history_tmp", "package": null, "version": null}, {"name": "stg_linkedin_ads__account_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history_tmp"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__account_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__account_history_tmp`\n\n), macro as (\n\n select\n \n \n \n created_time\n \n as \n \n created_time\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_modified_time\n \n as \n \n last_modified_time\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as string) as \n \n status\n \n , \n cast(null as string) as \n \n type\n \n , \n \n \n version_tag\n \n as \n \n version_tag\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n\n), fields as (\n\n select \n source_relation,\n id as account_id,\n name as account_name,\n currency,\n cast(version_tag as numeric) as version_tag,\n status,\n type,\n cast(last_modified_time as timestamp) as last_modified_at,\n cast(created_time as timestamp) as created_at,\n row_number() over (partition by source_relation, id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__ad_analytics_by_creative", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__ad_analytics_by_creative.sql", "original_file_path": "models/stg_linkedin_ads__ad_analytics_by_creative.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative", "fqn": ["linkedin_source", "stg_linkedin_ads__ad_analytics_by_creative"], "alias": "stg_linkedin_ads__ad_analytics_by_creative", "checksum": {"name": "sha256", "checksum": "c8c3dd2d342376a278622b3d904ca93abbf7f3108ef7ad2c3c2a7471a6019e58"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the creative level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.776105, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__ad_analytics_by_creative`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_linkedin_ads__ad_analytics_by_creative_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__ad_analytics_by_creative_tmp')),\n staging_columns=get_ad_analytics_by_creative_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='linkedin_ads_union_schemas', \n union_database_variable='linkedin_ads_union_databases') \n }}\n\n from base\n\n), fields as (\n\n select\n source_relation,\n {{ dbt.date_trunc('day', 'day') }} as date_day,\n creative_id,\n clicks, \n impressions,\n {% if var('linkedin_ads__use_local_currency', false) %}\n cost_in_local_currency as cost,\n {% else %}\n cost_in_usd as cost,\n {% endif %}\n\n coalesce(cast(conversion_value_in_local_currency as {{ dbt.type_float() }}), 0) as conversion_value_in_local_currency\n\n {% for conversion in var('linkedin_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {{ linkedin_ads_fill_pass_through_columns(pass_through_fields=var('linkedin_ads__creative_passthrough_metrics'), except=(var('linkedin_ads__conversion_fields') + ['conversion_value_in_local_currency'])) }}\n\n from macro\n\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "package": null, "version": null}, {"name": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_ad_analytics_by_creative_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_float", "macro.dbt.type_bigint", "macro.linkedin_source.linkedin_ads_fill_pass_through_columns"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__ad_analytics_by_creative.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__ad_analytics_by_creative_tmp`\n\n), macro as (\n\n select\n \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost_in_local_currency\n \n as \n \n cost_in_local_currency\n \n, \n \n \n cost_in_usd\n \n as \n \n cost_in_usd\n \n, \n \n \n creative_id\n \n as \n \n creative_id\n \n, \n \n \n day\n \n as \n \n day\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n conversion_value_in_local_currency\n \n as \n \n conversion_value_in_local_currency\n \n, \n \n \n external_website_conversions\n \n as \n \n external_website_conversions\n \n, \n \n \n one_click_leads\n \n as \n \n one_click_leads\n \n, \n \n \n one_click_leads\n \n as conversions , \n \n \n video_views\n \n as videos \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n\n), fields as (\n\n select\n source_relation,\n timestamp_trunc(\n cast(day as timestamp),\n day\n ) as date_day,\n creative_id,\n clicks, \n impressions,\n \n cost_in_usd as cost,\n \n\n coalesce(cast(conversion_value_in_local_currency as FLOAT64), 0) as conversion_value_in_local_currency\n\n \n , coalesce(cast(external_website_conversions as bigint), 0) as external_website_conversions\n \n , coalesce(cast(one_click_leads as bigint), 0) as one_click_leads\n \n\n \n\n\n \n \n \n \n \n , coalesce(cast(conversions + external_website_conversions as FLOAT64), 0) as conversions\n \n \n \n \n \n \n \n , coalesce(cast(videos as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__ad_analytics_by_creative_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__ad_analytics_by_creative_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__ad_analytics_by_creative_tmp"], "alias": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "checksum": {"name": "sha256", "checksum": "3875350fd6f19fb9585c697c1f6413f7e56e37cf7419dc340b5c94b94d0fe987"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951596.480334, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__ad_analytics_by_creative_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_analytics_by_creative', \n database_variable='linkedin_ads_database', \n schema_variable='linkedin_ads_schema', \n default_database=target.database,\n default_schema='linkedin_ads',\n default_variable='ad_analytics_by_creative',\n union_schema_variable='linkedin_ads_union_schemas',\n union_database_variable='linkedin_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["linkedin_ads", "ad_analytics_by_creative"], ["linkedin_ads", "ad_analytics_by_creative"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.linkedin_source.linkedin_ads.ad_analytics_by_creative"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__ad_analytics_by_creative_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_analytics_by_creative_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__campaign_history_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__campaign_history_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__campaign_history_tmp"], "alias": "stg_linkedin_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "57277904daa40b519f861f012daf16c101dfef12ba3e9d613b718c5cdb8de610"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951596.485904, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='linkedin_ads_database', \n schema_variable='linkedin_ads_schema', \n default_database=target.database,\n default_schema='linkedin_ads',\n default_variable='campaign_history',\n union_schema_variable='linkedin_ads_union_schemas',\n union_database_variable='linkedin_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["linkedin_ads", "campaign_history"], ["linkedin_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.linkedin_source.linkedin_ads.campaign_history"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__account_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__account_history_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__account_history_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__account_history_tmp"], "alias": "stg_linkedin_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "caea086945e8fcbcc122f063bc8667a1f509f2b210498598e49fa310ab53c04b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951596.491207, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__account_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_history', \n database_variable='linkedin_ads_database', \n schema_variable='linkedin_ads_schema', \n default_database=target.database,\n default_schema='linkedin_ads',\n default_variable='account_history',\n union_schema_variable='linkedin_ads_union_schemas',\n union_database_variable='linkedin_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["linkedin_ads", "account_history"], ["linkedin_ads", "account_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.linkedin_source.linkedin_ads.account_history"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__account_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__campaign_group_history_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__campaign_group_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__campaign_group_history_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__campaign_group_history_tmp"], "alias": "stg_linkedin_ads__campaign_group_history_tmp", "checksum": {"name": "sha256", "checksum": "ab81fdc6f9397f2481b6b809fc4a571f4c82405a2b1ff9fd526bd00e5c2b9aca"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951596.496036, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_group_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_group_history', \n database_variable='linkedin_ads_database', \n schema_variable='linkedin_ads_schema', \n default_database=target.database,\n default_schema='linkedin_ads',\n default_variable='campaign_group_history',\n union_schema_variable='linkedin_ads_union_schemas',\n union_database_variable='linkedin_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["linkedin_ads", "campaign_group_history"], ["linkedin_ads", "campaign_group_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.linkedin_source.linkedin_ads.campaign_group_history"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__campaign_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_campaign_group_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__creative_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__creative_history_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__creative_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__creative_history_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__creative_history_tmp"], "alias": "stg_linkedin_ads__creative_history_tmp", "checksum": {"name": "sha256", "checksum": "8834c1345f54ac9a8e39e4a0efcad9912cf619fc02ba4c686764f0cd332a6fe2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951596.501332, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__creative_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='creative_history', \n database_variable='linkedin_ads_database', \n schema_variable='linkedin_ads_schema', \n default_database=target.database,\n default_schema='linkedin_ads',\n default_variable='creative_history',\n union_schema_variable='linkedin_ads_union_schemas',\n union_database_variable='linkedin_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["linkedin_ads", "creative_history"], ["linkedin_ads", "creative_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.linkedin_source.linkedin_ads.creative_history"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__creative_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_creative_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__ad_analytics_by_campaign_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__ad_analytics_by_campaign_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__ad_analytics_by_campaign_tmp"], "alias": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "checksum": {"name": "sha256", "checksum": "1970c620d47208b109aea8708b078f745b755c3961e4be604524ee6c6af698f5"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951596.507287, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__ad_analytics_by_campaign_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_analytics_by_campaign', \n database_variable='linkedin_ads_database', \n schema_variable='linkedin_ads_schema', \n default_database=target.database,\n default_schema='linkedin_ads',\n default_variable='ad_analytics_by_campaign',\n union_schema_variable='linkedin_ads_union_schemas',\n union_database_variable='linkedin_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["linkedin_ads", "ad_analytics_by_campaign"], ["linkedin_ads", "ad_analytics_by_campaign"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.linkedin_source.linkedin_ads.ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__ad_analytics_by_campaign_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_analytics_by_campaign_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads.amazon_ads__portfolio_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "amazon_ads__portfolio_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__portfolio_report.sql", "original_file_path": "models/amazon_ads__portfolio_report.sql", "unique_id": "model.amazon_ads.amazon_ads__portfolio_report", "fqn": ["amazon_ads", "amazon_ads__portfolio_report"], "alias": "amazon_ads__portfolio_report", "checksum": {"name": "sha256", "checksum": "51082e4847994f4c12b8ff5651fd864a541d5a4ea45d3d15c7d3e38be96a1556"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the portfolio level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_amount": {"name": "budget_amount", "description": "The budget amount associated with the portfolio. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_currency_code": {"name": "budget_currency_code", "description": "The currency used for all monetary values for entities under this profile. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_end_date": {"name": "budget_end_date", "description": "The end date after which the budget is no longer applied. Optional if policy is set to dateRange or monthlyRecurring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_start_date": {"name": "budget_start_date", "description": "The starting date in YYYYMMDD format to which the budget is applied. Required if policy is set to dateRange. Not specified if policy is set to monthlyRecurring. Note that the starting date for monthlyRecurring is the date when the policy is set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_policy": {"name": "budget_policy", "description": "The budget policy. Set to dateRange to specify a budget for a specific period of time. Set to monthlyRecurring to specify a budget that is automatically renewed at the beginning of each month. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "in_budget": {"name": "in_budget", "description": "Indicates the current budget status of the portfolio. Set to true if the portfolio is in budget, set to false if the portfolio is out of budget.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.834831, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__portfolio_report`", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__amazon_ads_enabled','amazon_ads__portfolio_history_enabled'])) }}\n\nwith report as (\n select *\n --use campaign report since portfolio report not provided\n from {{ var('campaign_level_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ var('portfolio_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n portfolios.budget_amount,\n portfolios.budget_currency_code,\n portfolios.budget_start_date,\n portfolios.budget_end_date,\n portfolios.budget_policy,\n portfolios.in_budget,\n portfolios.serving_status,\n portfolios.state,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n {{ amazon_ads_persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['purchases_30_d','sales_30_d']) }} \n\n from portfolios\n\n left join campaigns\n on campaigns.portfolio_id = portfolios.portfolio_id\n and campaigns.source_relation = portfolios.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n left join report\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n\n {{ dbt_utils.group_by(16) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_level_report", "package": null, "version": null}, {"name": "stg_amazon_ads__profile", "package": null, "version": null}, {"name": "stg_amazon_ads__portfolio_history", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.amazon_ads.amazon_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__portfolio_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n --use campaign report since portfolio report not provided\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_level_report`\n), \n\naccount_info as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__profile`\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__portfolio_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n portfolios.budget_amount,\n portfolios.budget_currency_code,\n portfolios.budget_start_date,\n portfolios.budget_end_date,\n portfolios.budget_policy,\n portfolios.in_budget,\n portfolios.serving_status,\n portfolios.state,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n \n\n\n \n \n \n , sum(coalesce(report.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(report.sales_30_d_alias, 0)) as sales_30_d_alias\n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n \n\n from portfolios\n\n left join campaigns\n on campaigns.portfolio_id = portfolios.portfolio_id\n and campaigns.source_relation = portfolios.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n left join report\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads.amazon_ads__search_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "amazon_ads__search_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__search_report.sql", "original_file_path": "models/amazon_ads__search_report.sql", "unique_id": "model.amazon_ads.amazon_ads__search_report", "fqn": ["amazon_ads", "amazon_ads__search_report"], "alias": "amazon_ads__search_report", "checksum": {"name": "sha256", "checksum": "53ae303090bb93999e58de71448ae75e0c4ac7a252acbea8b17dfe31342aa9ed"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the search term level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The exact text for the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_term": {"name": "search_term", "description": "The search term used by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "targeting": {"name": "targeting", "description": "A string representation of the expression object used in the targeting clause.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.8366988, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__search_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('search_term_ad_keyword_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from {{ var('keyword_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.keyword_id,\n keywords.keyword_text,\n keywords.match_type,\n keywords.serving_status,\n keywords.state,\n report.search_term,\n report.targeting,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n {{ amazon_ads_persist_pass_through_columns(pass_through_variable='amazon_ads__search_term_ad_keyword_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['purchases_30_d','sales_30_d']) }} \n\n from report\n\n left join keywords\n on keywords.keyword_id = report.keyword_id\n and keywords.source_relation = report.source_relation\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n and ad_groups.source_relation = report.source_relation\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n\n {{ dbt_utils.group_by(19) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_amazon_ads__search_term_ad_keyword_report", "package": null, "version": null}, {"name": "stg_amazon_ads__profile", "package": null, "version": null}, {"name": "int_amazon_ads__portfolio_history", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}, {"name": "stg_amazon_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_amazon_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads.amazon_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__search_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__search_term_ad_keyword_report`\n), \n\naccount_info as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__profile`\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`int_amazon_ads__portfolio_history`\n), \n\ncampaigns as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__keyword_history`\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.keyword_id,\n keywords.keyword_text,\n keywords.match_type,\n keywords.serving_status,\n keywords.state,\n report.search_term,\n report.targeting,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n \n\n\n \n \n \n , sum(coalesce(report.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n \n\n from report\n\n left join keywords\n on keywords.keyword_id = report.keyword_id\n and keywords.source_relation = report.source_relation\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n and ad_groups.source_relation = report.source_relation\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads.amazon_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "amazon_ads__ad_group_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__ad_group_report.sql", "original_file_path": "models/amazon_ads__ad_group_report.sql", "unique_id": "model.amazon_ads.amazon_ads__ad_group_report", "fqn": ["amazon_ads", "amazon_ads__ad_group_report"], "alias": "amazon_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "86308d6f351c465b283d0ee99e548bf769b2f9040ad43f6d5c34e839fb40fe98"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the ad group level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_bid": {"name": "default_bid", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.8324218, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__ad_group_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('ad_group_level_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ad_groups.serving_status,\n ad_groups.state,\n ad_groups.default_bid,\n report.campaign_bidding_strategy,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n {{ amazon_ads_persist_pass_through_columns(pass_through_variable='amazon_ads__ad_group_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['purchases_30_d','sales_30_d']) }}\n\n from report\n\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n and ad_groups.source_relation = report.source_relation\n left join campaigns\n on campaigns.campaign_id = ad_groups.campaign_id\n and campaigns.source_relation = ad_groups.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n\n {{ dbt_utils.group_by(16) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_amazon_ads__ad_group_level_report", "package": null, "version": null}, {"name": "stg_amazon_ads__profile", "package": null, "version": null}, {"name": "int_amazon_ads__portfolio_history", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}, {"name": "stg_amazon_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads.amazon_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__ad_group_level_report`\n), \n\naccount_info as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__profile`\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`int_amazon_ads__portfolio_history`\n), \n\ncampaigns as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ad_groups.serving_status,\n ad_groups.state,\n ad_groups.default_bid,\n report.campaign_bidding_strategy,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n \n\n\n \n \n \n , sum(coalesce(report.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n\n\n from report\n\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n and ad_groups.source_relation = report.source_relation\n left join campaigns\n on campaigns.campaign_id = ad_groups.campaign_id\n and campaigns.source_relation = ad_groups.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads.amazon_ads__keyword_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "amazon_ads__keyword_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__keyword_report.sql", "original_file_path": "models/amazon_ads__keyword_report.sql", "unique_id": "model.amazon_ads.amazon_ads__keyword_report", "fqn": ["amazon_ads", "amazon_ads__keyword_report"], "alias": "amazon_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "537907f2ff10aeb390a0fe795fdd6a15fa2ccb9d812ee18d566f7454195c7ffb"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the keyword level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_bid": {"name": "keyword_bid", "description": "Bid associated with a keyword or targeting expression.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The exact text for the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_type": {"name": "keyword_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.835702, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__keyword_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('targeting_keyword_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from {{ var('keyword_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.keyword_id,\n keywords.keyword_text,\n keywords.serving_status,\n keywords.state,\n report.keyword_bid,\n report.keyword_type,\n report.match_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n {{ amazon_ads_persist_pass_through_columns(pass_through_variable='amazon_ads__targeting_keyword_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['purchases_30_d','sales_30_d']) }}\n\n from report\n\n left join keywords\n on keywords.keyword_id = report.keyword_id\n and keywords.source_relation = report.source_relation\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n and ad_groups.source_relation = report.source_relation\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n\n {{ dbt_utils.group_by(19) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_amazon_ads__targeting_keyword_report", "package": null, "version": null}, {"name": "stg_amazon_ads__profile", "package": null, "version": null}, {"name": "int_amazon_ads__portfolio_history", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}, {"name": "stg_amazon_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_amazon_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads.amazon_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__targeting_keyword_report`\n), \n\naccount_info as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__profile`\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`int_amazon_ads__portfolio_history`\n), \n\ncampaigns as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__keyword_history`\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.keyword_id,\n keywords.keyword_text,\n keywords.serving_status,\n keywords.state,\n report.keyword_bid,\n report.keyword_type,\n report.match_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n \n\n\n \n \n \n , sum(coalesce(report.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n\n\n from report\n\n left join keywords\n on keywords.keyword_id = report.keyword_id\n and keywords.source_relation = report.source_relation\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n and ad_groups.source_relation = report.source_relation\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads.amazon_ads__campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "amazon_ads__campaign_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__campaign_report.sql", "original_file_path": "models/amazon_ads__campaign_report.sql", "unique_id": "model.amazon_ads.amazon_ads__campaign_report", "fqn": ["amazon_ads", "amazon_ads__campaign_report"], "alias": "amazon_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "96235a5e080d57ca27ecb691353d2d3040fc44b9edd887700da32d02bb1a75da"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the campaign level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.8340118, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('campaign_level_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n report.campaign_bidding_strategy,\n report.campaign_budget_amount,\n report.campaign_budget_currency_code,\n report.campaign_budget_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n {{ amazon_ads_persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['purchases_30_d','sales_30_d']) }} \n\n from report\n\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation \n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation \n\n {{ dbt_utils.group_by(14) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_level_report", "package": null, "version": null}, {"name": "stg_amazon_ads__profile", "package": null, "version": null}, {"name": "int_amazon_ads__portfolio_history", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads.amazon_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_level_report`\n), \n\naccount_info as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__profile`\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`int_amazon_ads__portfolio_history`\n), \n\ncampaigns as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n report.campaign_bidding_strategy,\n report.campaign_budget_amount,\n report.campaign_budget_currency_code,\n report.campaign_budget_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n \n\n\n \n \n \n , sum(coalesce(report.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(report.sales_30_d_alias, 0)) as sales_30_d_alias\n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n \n\n from report\n\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation \n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads.amazon_ads__account_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "amazon_ads__account_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__account_report.sql", "original_file_path": "models/amazon_ads__account_report.sql", "unique_id": "model.amazon_ads.amazon_ads__account_report", "fqn": ["amazon_ads", "amazon_ads__account_report"], "alias": "amazon_ads__account_report", "checksum": {"name": "sha256", "checksum": "96e024b6d0bba898b6217c46302599c0dd71314373844d87fd1326e4f355dcc5"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the account level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.831548, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__account_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n --use campaign report since account report not provided\n from {{ var('campaign_level_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n {{ amazon_ads_persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['purchases_30_d','sales_30_d']) }}\n\n from report\n\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n \n\n {{ dbt_utils.group_by(6) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_level_report", "package": null, "version": null}, {"name": "stg_amazon_ads__profile", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads.amazon_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n --use campaign report since account report not provided\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_level_report`\n), \n\naccount_info as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__profile`\n where _fivetran_deleted = False\n),\n\ncampaigns as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n \n\n\n \n \n \n , sum(coalesce(report.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(report.sales_30_d_alias, 0)) as sales_30_d_alias\n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n\n\n from report\n\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n \n\n group by 1,2,3,4,5,6\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads.amazon_ads__ad_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "amazon_ads__ad_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__ad_report.sql", "original_file_path": "models/amazon_ads__ad_report.sql", "unique_id": "model.amazon_ads.amazon_ads__ad_report", "fqn": ["amazon_ads", "amazon_ads__ad_report"], "alias": "amazon_ads__ad_report", "checksum": {"name": "sha256", "checksum": "eb55ea57fa0faebf74b1d3eefcc27cb7e10e1fbacb3cf4a785f7f2ee585896be"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the ad level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertised_asin": {"name": "advertised_asin", "description": "The ASIN associated to an advertised product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertised_sku": {"name": "advertised_sku", "description": "The SKU being advertised.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951599.8332732, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__ad_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('advertised_product_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nads as (\n select *\n from {{ var('product_ad_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.ad_id,\n ads.serving_status,\n ads.state,\n report.advertised_asin,\n report.advertised_sku,\n report.campaign_budget_amount,\n report.campaign_budget_currency_code,\n report.campaign_budget_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n {{ amazon_ads_persist_pass_through_columns(pass_through_variable='amazon_ads__advertised_product_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['purchases_30_d','sales_30_d']) }}\n\n from report\n \n left join ads\n on ads.ad_id = report.ad_id\n and ads.source_relation = report.source_relation\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n and ad_groups.source_relation = report.source_relation\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation \n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation \n\n {{ dbt_utils.group_by(20) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_amazon_ads__advertised_product_report", "package": null, "version": null}, {"name": "stg_amazon_ads__profile", "package": null, "version": null}, {"name": "int_amazon_ads__portfolio_history", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}, {"name": "stg_amazon_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_amazon_ads__product_ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads.amazon_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__product_ad_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__advertised_product_report`\n), \n\naccount_info as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__profile`\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`int_amazon_ads__portfolio_history`\n), \n\ncampaigns as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\nads as (\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__product_ad_history`\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.ad_id,\n ads.serving_status,\n ads.state,\n report.advertised_asin,\n report.advertised_sku,\n report.campaign_budget_amount,\n report.campaign_budget_currency_code,\n report.campaign_budget_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n \n\n\n \n \n \n , sum(coalesce(report.conversions, 0)) as conversions\n \n \n \n \n , sum(coalesce(report.sales_30_d_alias, 0)) as sales_30_d_alias\n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n\n\n from report\n \n left join ads\n on ads.ad_id = report.ad_id\n and ads.source_relation = report.source_relation\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n and ad_groups.source_relation = report.source_relation\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation \n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads.int_amazon_ads__portfolio_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "int_amazon_ads__portfolio_history", "resource_type": "model", "package_name": "amazon_ads", "path": "intermediate/int_amazon_ads__portfolio_history.sql", "original_file_path": "models/intermediate/int_amazon_ads__portfolio_history.sql", "unique_id": "model.amazon_ads.int_amazon_ads__portfolio_history", "fqn": ["amazon_ads", "intermediate", "int_amazon_ads__portfolio_history"], "alias": "int_amazon_ads__portfolio_history", "checksum": {"name": "sha256", "checksum": "a82e6f8deab555d84fbf0bd7cd0035b1a5301cac631f14b6e23a3ddcfc03d319"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951596.644979, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`int_amazon_ads__portfolio_history`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{# This intermediate model creates a dummy portfolio table if the user does not use portfolios. \nIf they are using them, the normal portfolio_history will be used. #}\n\nwith portfolios as (\n select\n {% if var('amazon_ads__portfolio_history_enabled', True) %}\n *\n from {{ var('portfolio_history') }}\n where is_most_recent_record = True\n {% else %}\n cast(null as {{ dbt.type_string() }}) as source_relation,\n {# uses the columns macro from the source package to populate column names #}\n {%- set columns = amazon_ads_source.get_portfolio_history_columns() -%}\n {% for column in columns %}\n {# set null for each column #}\n {%- if column['name'] == 'id' -%}\n cast(null as {{ dbt.type_string() }}) as portfolio_id\n {%- elif column['name'] == 'name' -%}\n cast(null as {{ dbt.type_string() }}) as portfolio_name\n {%- elif column['name'] == 'profile_id' -%}\n cast(null as {{ dbt.type_string() }}) as profile_id\n {%- else -%}\n cast(null as {{ column['datatype'] }}) as {{ column['name'] }}\n {%- endif -%}\n {# add comma if not the last column #}\n {%- if not loop.last -%} , {% endif -%}\n {% endfor %}\n {% endif %}\n)\n\nselect * \nfrom portfolios", "language": "sql", "refs": [{"name": "stg_amazon_ads__portfolio_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"]}, "compiled_path": "target/compiled/amazon_ads/models/intermediate/int_amazon_ads__portfolio_history.sql", "compiled": true, "compiled_code": "\n\n\n\nwith portfolios as (\n select\n \n *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__portfolio_history`\n where is_most_recent_record = True\n \n)\n\nselect * \nfrom portfolios", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads.facebook_ads__url_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "facebook_ads__url_report", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__url_report.sql", "original_file_path": "models/facebook_ads__url_report.sql", "unique_id": "model.facebook_ads.facebook_ads__url_report", "fqn": ["facebook_ads", "facebook_ads__url_report"], "alias": "facebook_ads__url_report", "checksum": {"name": "sha256", "checksum": "c2f762b35e296244858277cfd59ca3ddac6745199d12e4e06d92352c285f83e1"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Facebook ad at the URL level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "The ID of the related ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "The name of the related ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the related ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the related ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_name": {"name": "creative_name", "description": "The name of the related creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the page_link and template_page_link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the page_link and template_page_link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the page_link and template_page_link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the page_link and template_page_link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the page_link and template_page_link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the page_link and template_page_link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the page_link and template_page_link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the page_link and template_page_link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total number of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "Total monetary of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.030078, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__url_report`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('basic_ad') }}\n\n), \n\nconversion_report as (\n\n select *\n from {{ ref('int_facebook_ads__conversions') }}\n\n), \n\ncreatives as (\n\n select *\n from {{ ref('int_facebook_ads__creative_history') }}\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = true\n\n), \n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = true\n\n), \n\nad_sets as (\n\n select *\n from {{ var('ad_set_history') }}\n where is_most_recent_record = true\n\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = true\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_sets.ad_set_id,\n ad_sets.ad_set_name,\n ads.ad_id,\n ads.ad_name,\n creatives.creative_id,\n creatives.creative_name,\n creatives.base_url,\n creatives.url_host,\n creatives.url_path,\n creatives.utm_source,\n creatives.utm_medium,\n creatives.utm_campaign,\n creatives.utm_content,\n creatives.utm_term,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum', exclude_fields=['conversions', 'conversions_value']) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_actions_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_action_values_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n\n from report\n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join ads \n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join creatives\n on ads.creative_id = creatives.creative_id\n and ads.source_relation = creatives.source_relation\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n and ads.source_relation = ad_sets.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation \n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where creatives.url is not null\n {% endif %}\n \n {{ dbt_utils.group_by(20) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "package": null, "version": null}, {"name": "int_facebook_ads__conversions", "package": null, "version": null}, {"name": "int_facebook_ads__creative_history", "package": null, "version": null}, {"name": "stg_facebook_ads__account_history", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_history", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_set_history", "package": null, "version": null}, {"name": "stg_facebook_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads.facebook_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads.int_facebook_ads__creative_history", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__campaign_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad`\n\n), \n\nconversion_report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`int_facebook_ads__conversions`\n\n), \n\ncreatives as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`int_facebook_ads__creative_history`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__account_history`\n where is_most_recent_record = true\n\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_history`\n where is_most_recent_record = true\n\n), \n\nad_sets as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_set_history`\n where is_most_recent_record = true\n\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__campaign_history`\n where is_most_recent_record = true\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_sets.ad_set_id,\n ad_sets.ad_set_name,\n ads.ad_id,\n ads.ad_name,\n creatives.creative_id,\n creatives.creative_name,\n creatives.base_url,\n creatives.url_host,\n creatives.url_path,\n creatives.utm_source,\n creatives.utm_medium,\n creatives.utm_campaign,\n creatives.utm_content,\n creatives.utm_term,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n \n\n\n \n \n \n , sum(cast(reach as FLOAT64)) as reach\n \n \n \n \n \n \n \n , sum(cast(fake_freq_name as FLOAT64)) as fake_freq_name\n \n \n\n\n\n \n\n\n \n \n \n , sum(cast(coalesce(conversion_value_inline, 0) as FLOAT64)) as conversion_value_inline\n \n \n \n \n , sum(cast(coalesce(installs, 0) as FLOAT64)) as installs\n \n \n \n \n , sum(cast(coalesce(videos, 0) as FLOAT64)) as videos\n \n \n\n\n\n \n\n\n \n \n \n , sum(cast(coalesce(_7_d_click, 0) as FLOAT64)) as _7_d_click\n \n \n\n\n\n\n from report\n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join ads \n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join creatives\n on ads.creative_id = creatives.creative_id\n and ads.source_relation = creatives.source_relation\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n and ads.source_relation = ad_sets.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation \n\n \n where creatives.url is not null\n \n \n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads.facebook_ads__url_tags": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "facebook_ads__url_tags", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__url_tags.sql", "original_file_path": "models/facebook_ads__url_tags.sql", "unique_id": "model.facebook_ads.facebook_ads__url_tags", "fqn": ["facebook_ads", "facebook_ads__url_tags"], "alias": "facebook_ads__url_tags", "checksum": {"name": "sha256", "checksum": "e1f8604d2933345b434018baac4526837cc97cfca2d75a89a9facc28a0db8e75"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a unique combination of creative_id and corresponding key, value, type contained in the url_tags field", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "The unique fivetran ID for this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The associated creative_id for this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "key": {"name": "key", "description": "The url tag object name e.g. utm_source associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "value": {"name": "value", "description": "The value assigned to the url tag object associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type assigned to the url tag object e.g. 'AD_VIDEO'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.1094458, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__url_tags`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ var('creative_history') }}\n where is_most_recent_record = true\n), \n\nrequired_fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n url_tags\n from base\n where url_tags is not null\n), \n\n{{ get_url_tags_query() }} \n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_facebook_ads__creative_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads.get_url_tags_query"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__url_tags.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__creative_history`\n where is_most_recent_record = true\n), \n\nrequired_fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n url_tags\n from base\n where url_tags is not null\n), \n\n\n\n cleaned_json as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n json_extract_array(replace(trim(url_tags, '\"'),'\\\\','')) as cleaned_url_tags\n from required_fields\n ), \n\n unnested as (\n\n select \n source_relation,\n _fivetran_id, \n creative_id, \n url_tag_element\n from cleaned_json\n left join unnest(cleaned_url_tags) as url_tag_element\n where cleaned_url_tags is not null\n ), \n\n fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n json_extract_scalar(url_tag_element, '$.key') as key,\n json_extract_scalar(url_tag_element, '$.value') as value,\n json_extract_scalar(url_tag_element, '$.type') as type\n from unnested\n )\n\n \n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads.facebook_ads__campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "facebook_ads__campaign_report", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__campaign_report.sql", "original_file_path": "models/facebook_ads__campaign_report.sql", "unique_id": "model.facebook_ads.facebook_ads__campaign_report", "fqn": ["facebook_ads", "facebook_ads__campaign_report"], "alias": "facebook_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "83733ea9fd36d94313f03106c99767134deb563b66a633a7e0792f0076872f10"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Facebook campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total number of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "Total monetary of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "Timestamp of designated campaign start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "Timestamp of designated campaign end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "lifetime_budget": {"name": "lifetime_budget", "description": "Lifetime budget of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.0666308, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('basic_ad') }}\n\n), \n\nconversion_report as (\n\n select *\n from {{ ref('int_facebook_ads__conversions') }}\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = true\n\n),\n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n campaigns.start_at,\n campaigns.end_at,\n campaigns.status,\n campaigns.daily_budget,\n campaigns.lifetime_budget,\n campaigns.budget_remaining,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend, \n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum', exclude_fields=['conversions', 'conversions_value']) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_actions_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_action_values_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n\n from report \n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ads \n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "package": null, "version": null}, {"name": "int_facebook_ads__conversions", "package": null, "version": null}, {"name": "stg_facebook_ads__account_history", "package": null, "version": null}, {"name": "stg_facebook_ads__campaign_history", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads.facebook_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__campaign_history", "model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad`\n\n), \n\nconversion_report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`int_facebook_ads__conversions`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__account_history`\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__campaign_history`\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_history`\n where is_most_recent_record = true\n\n),\n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n campaigns.start_at,\n campaigns.end_at,\n campaigns.status,\n campaigns.daily_budget,\n campaigns.lifetime_budget,\n campaigns.budget_remaining,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend, \n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n \n\n\n \n \n \n , sum(cast(reach as FLOAT64)) as reach\n \n \n \n \n \n \n \n , sum(cast(fake_freq_name as FLOAT64)) as fake_freq_name\n \n \n\n\n\n \n\n\n \n \n \n , sum(cast(coalesce(conversion_value_inline, 0) as FLOAT64)) as conversion_value_inline\n \n \n \n \n , sum(cast(coalesce(installs, 0) as FLOAT64)) as installs\n \n \n \n \n , sum(cast(coalesce(videos, 0) as FLOAT64)) as videos\n \n \n\n\n\n \n\n\n \n \n \n , sum(cast(coalesce(_7_d_click, 0) as FLOAT64)) as _7_d_click\n \n \n\n\n\n\n from report \n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ads \n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads.facebook_ads__account_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "facebook_ads__account_report", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__account_report.sql", "original_file_path": "models/facebook_ads__account_report.sql", "unique_id": "model.facebook_ads.facebook_ads__account_report", "fqn": ["facebook_ads", "facebook_ads__account_report"], "alias": "facebook_ads__account_report", "checksum": {"name": "sha256", "checksum": "1f66182ee3093654137c3448e0fbb6538831e570b3213562997e2093e528a02a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Facebook account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total number of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "Total monetary of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_status": {"name": "account_status", "description": "Current status of account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_country_code": {"name": "business_country_code", "description": "Country code of business associated to account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The time account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency associated with account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone_name": {"name": "timezone_name", "description": "Timezone associated with account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.106785, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__account_report`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('basic_ad') }}\n\n), \n\nconversion_report as (\n\n select *\n from {{ ref('int_facebook_ads__conversions') }}\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = true\n\n),\n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n accounts.account_status,\n accounts.business_country_code,\n accounts.created_at,\n accounts.currency,\n accounts.timezone_name,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum', exclude_fields=['conversions', 'conversions_value']) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_actions_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_action_values_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n\n from report \n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(9) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "package": null, "version": null}, {"name": "int_facebook_ads__conversions", "package": null, "version": null}, {"name": "stg_facebook_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads.facebook_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads_source.stg_facebook_ads__account_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad`\n\n), \n\nconversion_report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`int_facebook_ads__conversions`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__account_history`\n where is_most_recent_record = true\n\n),\n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n accounts.account_status,\n accounts.business_country_code,\n accounts.created_at,\n accounts.currency,\n accounts.timezone_name,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n \n\n\n \n \n \n , sum(cast(reach as FLOAT64)) as reach\n \n \n \n \n \n \n \n , sum(cast(fake_freq_name as FLOAT64)) as fake_freq_name\n \n \n\n\n\n \n\n\n \n \n \n , sum(cast(coalesce(conversion_value_inline, 0) as FLOAT64)) as conversion_value_inline\n \n \n \n \n , sum(cast(coalesce(installs, 0) as FLOAT64)) as installs\n \n \n \n \n , sum(cast(coalesce(videos, 0) as FLOAT64)) as videos\n \n \n\n\n\n \n\n\n \n \n \n , sum(cast(coalesce(_7_d_click, 0) as FLOAT64)) as _7_d_click\n \n \n\n\n\n\n from report \n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7,8,9\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads.facebook_ads__ad_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "facebook_ads__ad_report", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__ad_report.sql", "original_file_path": "models/facebook_ads__ad_report.sql", "unique_id": "model.facebook_ads.facebook_ads__ad_report", "fqn": ["facebook_ads", "facebook_ads__ad_report"], "alias": "facebook_ads__ad_report", "checksum": {"name": "sha256", "checksum": "c033cd34839fdeb566f36442ea5216dbd1942c627fefc03fbb2bb26b5033f346"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Facebook ad.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "The ID of the related ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "The name of the related ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the related ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the related ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total number of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "Total monetary of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_domain": {"name": "conversion_domain", "description": "The domain you've configured the ad to convert to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.034592, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__ad_report`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('basic_ad') }}\n\n), \n\nconversion_report as (\n\n select *\n from {{ ref('int_facebook_ads__conversions') }}\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = true\n\n),\n\nad_sets as (\n\n select *\n from {{ var('ad_set_history') }}\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = true\n\n),\n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_sets.ad_set_id,\n ad_sets.ad_set_name,\n ads.ad_id,\n ads.ad_name,\n ads.conversion_domain,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum', exclude_fields=['conversions', 'conversions_value']) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_actions_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_action_values_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n\n from report \n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ads \n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n and ads.source_relation = ad_sets.source_relation\n {{ dbt_utils.group_by(11) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "package": null, "version": null}, {"name": "int_facebook_ads__conversions", "package": null, "version": null}, {"name": "stg_facebook_ads__account_history", "package": null, "version": null}, {"name": "stg_facebook_ads__campaign_history", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_set_history", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads.facebook_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__campaign_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad`\n\n), \n\nconversion_report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`int_facebook_ads__conversions`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__account_history`\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__campaign_history`\n where is_most_recent_record = true\n\n),\n\nad_sets as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_set_history`\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_history`\n where is_most_recent_record = true\n\n),\n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_sets.ad_set_id,\n ad_sets.ad_set_name,\n ads.ad_id,\n ads.ad_name,\n ads.conversion_domain,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n \n\n\n \n \n \n , sum(cast(reach as FLOAT64)) as reach\n \n \n \n \n \n \n \n , sum(cast(fake_freq_name as FLOAT64)) as fake_freq_name\n \n \n\n\n\n \n\n\n \n \n \n , sum(cast(coalesce(conversion_value_inline, 0) as FLOAT64)) as conversion_value_inline\n \n \n \n \n , sum(cast(coalesce(installs, 0) as FLOAT64)) as installs\n \n \n \n \n , sum(cast(coalesce(videos, 0) as FLOAT64)) as videos\n \n \n\n\n\n \n\n\n \n \n \n , sum(cast(coalesce(_7_d_click, 0) as FLOAT64)) as _7_d_click\n \n \n\n\n\n\n from report \n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ads \n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n and ads.source_relation = ad_sets.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads.facebook_ads__ad_set_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "facebook_ads__ad_set_report", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__ad_set_report.sql", "original_file_path": "models/facebook_ads__ad_set_report.sql", "unique_id": "model.facebook_ads.facebook_ads__ad_set_report", "fqn": ["facebook_ads", "facebook_ads__ad_set_report"], "alias": "facebook_ads__ad_set_report", "checksum": {"name": "sha256", "checksum": "92331eb480c1a0ea7da1e7e6bde0d1d56accc9ae638c508df81185a0682aa47a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Facebook ad set.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "The ID of the related ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "The name of the related ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total number of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "Total monetary of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization_goal": {"name": "optimization_goal", "description": "The optimization goal this ad set is using. Possible values defined [here](https://developers.facebook.com/docs/marketing-api/reference/ad-campaign/#fields).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "Timestamp of designated ad set start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "Timestamp of designated ad set end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_strategy": {"name": "bid_strategy", "description": "Bid strategy values are - 'LOWEST_COST_WITHOUT_CAP', 'LOWEST_COST_WITH_BID_CAP', 'COST_CAP', 'LOWEST_COST_WITH_MIN_ROAS'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.0402792, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__ad_set_report`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('basic_ad') }}\n\n), \n\nconversion_report as (\n\n select *\n from {{ ref('int_facebook_ads__conversions') }}\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = true\n\n),\n\nad_sets as (\n\n select *\n from {{ var('ad_set_history') }}\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = true\n\n),\n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_sets.ad_set_id,\n ad_sets.ad_set_name,\n ad_sets.start_at,\n ad_sets.end_at,\n ad_sets.bid_strategy,\n ad_sets.daily_budget,\n ad_sets.budget_remaining,\n ad_sets.optimization_goal,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend, \n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum', exclude_fields=['conversions', 'conversions_value']) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_actions_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_action_values_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n\n from report \n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ads \n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n and ads.source_relation = ad_sets.source_relation\n {{ dbt_utils.group_by(14) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "package": null, "version": null}, {"name": "int_facebook_ads__conversions", "package": null, "version": null}, {"name": "stg_facebook_ads__account_history", "package": null, "version": null}, {"name": "stg_facebook_ads__campaign_history", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_set_history", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads.facebook_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__campaign_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__ad_set_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad`\n\n), \n\nconversion_report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`int_facebook_ads__conversions`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__account_history`\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__campaign_history`\n where is_most_recent_record = true\n\n),\n\nad_sets as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_set_history`\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_history`\n where is_most_recent_record = true\n\n),\n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_sets.ad_set_id,\n ad_sets.ad_set_name,\n ad_sets.start_at,\n ad_sets.end_at,\n ad_sets.bid_strategy,\n ad_sets.daily_budget,\n ad_sets.budget_remaining,\n ad_sets.optimization_goal,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend, \n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n \n\n\n \n \n \n , sum(cast(reach as FLOAT64)) as reach\n \n \n \n \n \n \n \n , sum(cast(fake_freq_name as FLOAT64)) as fake_freq_name\n \n \n\n\n\n \n\n\n \n \n \n , sum(cast(coalesce(conversion_value_inline, 0) as FLOAT64)) as conversion_value_inline\n \n \n \n \n , sum(cast(coalesce(installs, 0) as FLOAT64)) as installs\n \n \n \n \n , sum(cast(coalesce(videos, 0) as FLOAT64)) as videos\n \n \n\n\n\n \n\n\n \n \n \n , sum(cast(coalesce(_7_d_click, 0) as FLOAT64)) as _7_d_click\n \n \n\n\n\n\n from report \n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ads \n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n and ads.source_relation = ad_sets.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads.int_facebook_ads__creative_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "int_facebook_ads__creative_history", "resource_type": "model", "package_name": "facebook_ads", "path": "intermediate/int_facebook_ads__creative_history.sql", "original_file_path": "models/intermediate/int_facebook_ads__creative_history.sql", "unique_id": "model.facebook_ads.int_facebook_ads__creative_history", "fqn": ["facebook_ads", "intermediate", "int_facebook_ads__creative_history"], "alias": "int_facebook_ads__creative_history", "checksum": {"name": "sha256", "checksum": "2f21264af6d7266e71e63edb82592db433d2f0d3578416f4ab4a2907dc458b6e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951596.72384, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`int_facebook_ads__creative_history`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{% set url_field = \"coalesce(page_link,template_page_link)\" %}\n\nwith base as (\n\n select *\n from {{ var('creative_history') }}\n where is_most_recent_record = true\n\n), \n\nurl_tags as (\n\n select *\n from {{ ref('facebook_ads__url_tags') }}\n), \n\nurl_tags_pivoted as (\n\n select \n source_relation,\n _fivetran_id,\n creative_id,\n min(case when key = 'utm_source' then value end) as utm_source,\n min(case when key = 'utm_medium' then value end) as utm_medium,\n min(case when key = 'utm_campaign' then value end) as utm_campaign,\n min(case when key = 'utm_content' then value end) as utm_content,\n min(case when key = 'utm_term' then value end) as utm_term\n from url_tags\n group by 1,2,3\n\n), \n\nfields as (\n\n select\n base.source_relation,\n base._fivetran_id,\n base.creative_id,\n base.account_id,\n base.creative_name,\n {{ url_field }} as url,\n {{ dbt.split_part(url_field, \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host(url_field) }} as url_host,\n '/' || {{ dbt_utils.get_url_path(url_field) }} as url_path,\n coalesce(url_tags_pivoted.utm_source, {{ facebook_ads.facebook_ads_extract_url_parameter(url_field, 'utm_source') }}) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, {{ facebook_ads.facebook_ads_extract_url_parameter(url_field, 'utm_medium') }}) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, {{ facebook_ads.facebook_ads_extract_url_parameter(url_field, 'utm_campaign') }}) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, {{ facebook_ads.facebook_ads_extract_url_parameter(url_field, 'utm_content') }}) as utm_content,\n coalesce(url_tags_pivoted.utm_term, {{ facebook_ads.facebook_ads_extract_url_parameter(url_field, 'utm_term') }}) as utm_term\n from base\n left join url_tags_pivoted\n on base._fivetran_id = url_tags_pivoted._fivetran_id\n and base.source_relation = url_tags_pivoted.source_relation\n and base.creative_id = url_tags_pivoted.creative_id\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_facebook_ads__creative_history", "package": null, "version": null}, {"name": "facebook_ads__url_tags", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.facebook_ads.facebook_ads_extract_url_parameter"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history", "model.facebook_ads.facebook_ads__url_tags"]}, "compiled_path": "target/compiled/facebook_ads/models/intermediate/int_facebook_ads__creative_history.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__creative_history`\n where is_most_recent_record = true\n\n), \n\nurl_tags as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__url_tags`\n), \n\nurl_tags_pivoted as (\n\n select \n source_relation,\n _fivetran_id,\n creative_id,\n min(case when key = 'utm_source' then value end) as utm_source,\n min(case when key = 'utm_medium' then value end) as utm_medium,\n min(case when key = 'utm_campaign' then value end) as utm_campaign,\n min(case when key = 'utm_content' then value end) as utm_content,\n min(case when key = 'utm_term' then value end) as utm_term\n from url_tags\n group by 1,2,3\n\n), \n\nfields as (\n\n select\n base.source_relation,\n base._fivetran_id,\n base.creative_id,\n base.account_id,\n base.creative_name,\n coalesce(page_link,template_page_link) as url,\n \n\n \n split(\n coalesce(page_link,template_page_link),\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_host,\n '/' || safe_cast(\n\n \n split(\n \n\n case when \n\n length(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ) = 0\n then ''\n else\n substr(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n -1 * (\n\n length(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n coalesce(page_link,template_page_link),\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n coalesce(page_link,template_page_link),\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n coalesce(page_link,template_page_link),\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n coalesce(page_link,template_page_link),\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n coalesce(page_link,template_page_link),\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base._fivetran_id = url_tags_pivoted._fivetran_id\n and base.source_relation = url_tags_pivoted.source_relation\n and base.creative_id = url_tags_pivoted.creative_id\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads.int_facebook_ads__conversions": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "int_facebook_ads__conversions", "resource_type": "model", "package_name": "facebook_ads", "path": "intermediate/int_facebook_ads__conversions.sql", "original_file_path": "models/intermediate/int_facebook_ads__conversions.sql", "unique_id": "model.facebook_ads.int_facebook_ads__conversions", "fqn": ["facebook_ads", "intermediate", "int_facebook_ads__conversions"], "alias": "int_facebook_ads__conversions", "checksum": {"name": "sha256", "checksum": "f06e390f9dbba15f465d0235a974c459a5420255bca5b00c4f7980dd19055ddd"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951596.736938, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`int_facebook_ads__conversions`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith actions_report as (\n\n select *\n from {{ var('basic_ad_actions') }}\n),\n\naction_values_report as (\n\n select *\n from {{ var('basic_ad_action_values') }}\n),\n\naction_metrics as (\n\n select\n source_relation,\n ad_id,\n date_day,\n sum(conversions) as conversions\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_actions_passthrough_metrics', transform='sum') }}\n\n from actions_report\n {% if var('facebook_ads__conversion_action_types') -%}\n where \n {# Limit conversions to the chosen action types #}\n {% for action_type in var('facebook_ads__conversion_action_types') -%}\n (\n {%- if action_type.name -%}\n action_type = '{{ action_type.name }}'\n {%- elif action_type.pattern -%}\n action_type like '{{ action_type.pattern }}'\n {%- endif -%}\n\n {% if action_type.where_sql %}\n and {{ action_type.where_sql }}\n {%- endif -%}\n ) {% if not loop.last %} or {% endif %}\n {%- endfor %}\n {% endif %}\n group by 1,2,3\n),\n\naction_value_metrics as (\n\n select\n source_relation,\n ad_id,\n date_day,\n sum(conversions_value) as conversions_value\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_action_values_passthrough_metrics', transform='sum') }}\n\n from action_values_report\n {% if var('facebook_ads__conversion_action_types') -%}\n where \n {# Limit conversions to the chosen action types #}\n {% for action_type in var('facebook_ads__conversion_action_types') -%}\n (\n {%- if action_type.name -%}\n action_type = '{{ action_type.name }}'\n {%- elif action_type.pattern -%}\n action_type like '{{ action_type.pattern }}'\n {%- endif -%}\n\n {% if action_type.where_sql %}\n and {{ action_type.where_sql }}\n {%- endif -%}\n ) {% if not loop.last %} or {% endif %}\n {%- endfor %}\n {% endif %}\n\n group by 1,2,3\n),\n\nmetrics_join as (\n\n select\n action_metrics.source_relation,\n action_metrics.ad_id,\n action_metrics.date_day,\n action_metrics.conversions,\n action_value_metrics.conversions_value\n \n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_actions_passthrough_metrics', identifier='action_metrics') }}\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_action_values_passthrough_metrics', identifier='action_value_metrics') }}\n\n from action_metrics \n left join action_value_metrics\n on action_metrics.source_relation = action_value_metrics.source_relation\n and action_metrics.ad_id = action_value_metrics.ad_id\n and action_metrics.date_day = action_value_metrics.date_day\n)\n\nselect * \nfrom metrics_join", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad_actions", "package": null, "version": null}, {"name": "stg_facebook_ads__basic_ad_action_values", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_actions", "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values"]}, "compiled_path": "target/compiled/facebook_ads/models/intermediate/int_facebook_ads__conversions.sql", "compiled": true, "compiled_code": "\n\nwith actions_report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad_actions`\n),\n\naction_values_report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad_action_values`\n),\n\naction_metrics as (\n\n select\n source_relation,\n ad_id,\n date_day,\n sum(conversions) as conversions\n\n \n\n\n \n , sum(conversion_value_inline) as conversion_value_inline\n \n , sum(installs) as installs\n \n , sum(videos) as videos\n \n\n\n\n\n from actions_report\n where \n \n (action_type = 'onsite_conversion.purchase') or (action_type = 'onsite_conversion.lead_grouped') or (action_type = 'offsite_conversion.fb_pixel_purchase') or (action_type = 'offsite_conversion.fb_pixel_lead') or (action_type = 'offsite_conversion.fb_pixel_custom') \n \n group by 1,2,3\n),\n\naction_value_metrics as (\n\n select\n source_relation,\n ad_id,\n date_day,\n sum(conversions_value) as conversions_value\n\n \n\n\n \n , sum(_7_d_click) as _7_d_click\n \n\n\n\n\n from action_values_report\n where \n \n (action_type = 'onsite_conversion.purchase') or (action_type = 'onsite_conversion.lead_grouped') or (action_type = 'offsite_conversion.fb_pixel_purchase') or (action_type = 'offsite_conversion.fb_pixel_lead') or (action_type = 'offsite_conversion.fb_pixel_custom') \n \n\n group by 1,2,3\n),\n\nmetrics_join as (\n\n select\n action_metrics.source_relation,\n action_metrics.ad_id,\n action_metrics.date_day,\n action_metrics.conversions,\n action_value_metrics.conversions_value\n \n \n\n\n \n , (action_metrics.conversion_value_inline) as conversion_value_inline\n \n , (action_metrics.installs) as installs\n \n , (action_metrics.videos) as videos\n \n\n\n\n \n\n\n \n , (action_value_metrics._7_d_click) as _7_d_click\n \n\n\n\n\n from action_metrics \n left join action_value_metrics\n on action_metrics.source_relation = action_value_metrics.source_relation\n and action_metrics.ad_id = action_value_metrics.ad_id\n and action_metrics.date_day = action_value_metrics.date_day\n)\n\nselect * \nfrom metrics_join", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads.snapchat_ads__ad_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "snapchat_ads__ad_report", "resource_type": "model", "package_name": "snapchat_ads", "path": "snapchat_ads__ad_report.sql", "original_file_path": "models/snapchat_ads__ad_report.sql", "unique_id": "model.snapchat_ads.snapchat_ads__ad_report", "fqn": ["snapchat_ads", "snapchat_ads__ad_report"], "alias": "snapchat_ads__ad_report", "checksum": {"name": "sha256", "checksum": "b8c200b335e6a9bc0aad27a812b925fe064a04395fa28dde73f305c9cd1f129f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Snapchat ad account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the ad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `snapchat_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.160856, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__ad_report`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith ad_hourly as (\n\n select *,\n {% if var('snapchat_ads__conversion_fields', none) %}\n {{ var('snapchat_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_hourly_report') }}\n\n), creatives as (\n\n select *\n from {{ ref('snapchat_ads__creative_history_prep') }}\n\n), account as (\n\n select *\n from {{ var('ad_account_history') }}\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = true\n\n), aggregated as (\n\n select\n ad_hourly.source_relation,\n cast(ad_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n ad_hourly.ad_id,\n ads.ad_name,\n account.currency,\n sum(ad_hourly.swipes) as swipes,\n sum(ad_hourly.impressions) as impressions,\n round(sum(ad_hourly.spend),2) as spend,\n sum(ad_hourly.total_conversions) as total_conversions,\n round(cast(sum(ad_hourly.conversion_purchases_value) as {{ dbt.type_numeric() }}), 2) as conversion_purchases_value\n\n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='snapchat_ads__ad_hourly_passthrough_metrics', exclude_fields=['conversion_purchases_value']) }}\n\n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_hourly_passthrough_metrics', transform='sum', exclude_fields=['conversion_purchases_value']) }}\n\n from ad_hourly\n left join ads \n on ad_hourly.ad_id = ads.ad_id\n and ad_hourly.source_relation = ads.source_relation\n left join creatives\n on ads.creative_id = creatives.creative_id\n and ads.source_relation = creatives.source_relation\n left join account\n on creatives.ad_account_id = account.ad_account_id\n and creatives.source_relation = account.source_relation\n \n {{ dbt_utils.group_by(7) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_hourly_report", "package": null, "version": null}, {"name": "snapchat_ads__creative_history_prep", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_account_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.snapchat_ads.snapchat_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "model.snapchat_ads.snapchat_ads__creative_history_prep", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_history`\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_url_tag_history`\n where is_most_recent_record = true\n\n), url_tags_pivoted as (\n\n select \n source_relation,\n creative_id,\n min(case when param_key = 'utm_source' then param_value end) as utm_source,\n min(case when param_key = 'utm_medium' then param_value end) as utm_medium,\n min(case when param_key = 'utm_campaign' then param_value end) as utm_campaign,\n min(case when param_key = 'utm_content' then param_value end) as utm_content,\n min(case when param_key = 'utm_term' then param_value end) as utm_term\n from url_tags\n group by 1,2\n\n), fields as (\n\n select\n base.source_relation,\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n split(\n base.url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_host,\n '/' || safe_cast(\n\n \n split(\n \n\n case when \n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ) = 0\n then ''\n else\n substr(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n -1 * (\n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n and base.source_relation = url_tags_pivoted.source_relation\n\n)\n\nselect *\nfrom fields\n), ad_hourly as (\n\n select *,\n \n conversion_purchases as total_conversions\n \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_hourly_report`\n\n), creatives as (\n\n select *\n from __dbt__cte__snapchat_ads__creative_history_prep\n\n), account as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_account_history`\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_history`\n where is_most_recent_record = true\n\n), aggregated as (\n\n select\n ad_hourly.source_relation,\n cast(ad_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n ad_hourly.ad_id,\n ads.ad_name,\n account.currency,\n sum(ad_hourly.swipes) as swipes,\n sum(ad_hourly.impressions) as impressions,\n round(sum(ad_hourly.spend),2) as spend,\n sum(ad_hourly.total_conversions) as total_conversions,\n round(cast(sum(ad_hourly.conversion_purchases_value) as numeric), 2) as conversion_purchases_value\n\n \n\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n \n\n\n\n \n \n \n \n\n \n\n\n\n\n \n\n\n\n\n\n \n\n\n\n \n \n \n \n , sum(conversion_add_billing_alias) as conversion_add_billing_alias\n \n\n \n \n \n \n\n \n \n \n \n , sum(conversions) as conversions\n \n\n \n \n \n \n , sum(installs) as installs\n \n\n \n \n \n \n , sum(videos) as videos\n \n\n \n\n\n\n\n from ad_hourly\n left join ads \n on ad_hourly.ad_id = ads.ad_id\n and ad_hourly.source_relation = ads.source_relation\n left join creatives\n on ads.creative_id = creatives.creative_id\n and ads.source_relation = creatives.source_relation\n left join account\n on creatives.ad_account_id = account.ad_account_id\n and creatives.source_relation = account.source_relation\n \n group by 1,2,3,4,5,6,7\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.snapchat_ads.snapchat_ads__creative_history_prep", "sql": " __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_history`\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_url_tag_history`\n where is_most_recent_record = true\n\n), url_tags_pivoted as (\n\n select \n source_relation,\n creative_id,\n min(case when param_key = 'utm_source' then param_value end) as utm_source,\n min(case when param_key = 'utm_medium' then param_value end) as utm_medium,\n min(case when param_key = 'utm_campaign' then param_value end) as utm_campaign,\n min(case when param_key = 'utm_content' then param_value end) as utm_content,\n min(case when param_key = 'utm_term' then param_value end) as utm_term\n from url_tags\n group by 1,2\n\n), fields as (\n\n select\n base.source_relation,\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n split(\n base.url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_host,\n '/' || safe_cast(\n\n \n split(\n \n\n case when \n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ) = 0\n then ''\n else\n substr(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n -1 * (\n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n and base.source_relation = url_tags_pivoted.source_relation\n\n)\n\nselect *\nfrom fields\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads.snapchat_ads__url_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "snapchat_ads__url_report", "resource_type": "model", "package_name": "snapchat_ads", "path": "snapchat_ads__url_report.sql", "original_file_path": "models/snapchat_ads__url_report.sql", "unique_id": "model.snapchat_ads.snapchat_ads__url_report", "fqn": ["snapchat_ads", "snapchat_ads__url_report"], "alias": "snapchat_ads__url_report", "checksum": {"name": "sha256", "checksum": "87d45159b72f1440b95f729fe41df3cc9dc77d5b57e173f30f93ecedf8b1eda6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of Snapchat ads that leverage urls.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the ad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_name": {"name": "ad_squad_name", "description": "The name of the ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the web_view_url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the web_view_url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the web_view_url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the web_view_url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the web_view_url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the web_view_url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the web_view_url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the web_view_url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `snapchat_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.163639, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__url_report`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith ad_hourly as (\n\n select *,\n {% if var('snapchat_ads__conversion_fields', none) %}\n {{ var('snapchat_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_hourly_report') }}\n\n), creatives as (\n\n select *\n from {{ ref('snapchat_ads__creative_history_prep') }}\n\n), account as (\n\n select *\n from {{ var('ad_account_history') }}\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from {{ var('ad_squad_history') }}\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\n ad_hourly.source_relation,\n cast(ad_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n ad_hourly.ad_id,\n ads.ad_name,\n ad_squads.ad_squad_id,\n ad_squads.ad_squad_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n account.currency,\n creatives.base_url,\n creatives.url_host,\n creatives.url_path,\n creatives.utm_source,\n creatives.utm_medium,\n creatives.utm_campaign,\n creatives.utm_content,\n creatives.utm_term,\n sum(ad_hourly.swipes) as swipes,\n sum(ad_hourly.impressions) as impressions,\n round(sum(ad_hourly.spend),2) as spend,\n sum(ad_hourly.total_conversions) as total_conversions,\n round(cast(sum(ad_hourly.conversion_purchases_value) as {{ dbt.type_numeric() }}), 2) as conversion_purchases_value\n \n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='snapchat_ads__ad_hourly_passthrough_metrics', exclude_fields=['conversion_purchases_value']) }}\n\n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_hourly_passthrough_metrics', transform='sum', exclude_fields=['conversion_purchases_value']) }}\n \n from ad_hourly\n left join ads \n on ad_hourly.ad_id = ads.ad_id\n and ad_hourly.source_relation = ads.source_relation\n left join creatives\n on ads.creative_id = creatives.creative_id\n and ads.source_relation = creatives.source_relation\n left join ad_squads\n on ads.ad_squad_id = ad_squads.ad_squad_id\n and ads.source_relation = ad_squads.source_relation\n left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n and ad_squads.source_relation = campaigns.source_relation\n left join account\n on creatives.ad_account_id = account.ad_account_id\n and creatives.source_relation = account.source_relation\n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n -- We only want utm ads to populate this report. Therefore, we filter where url ads are populated.\n where creatives.url is not null\n {% endif %}\n\n {{ dbt_utils.group_by(19) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_hourly_report", "package": null, "version": null}, {"name": "snapchat_ads__creative_history_prep", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_account_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_squad_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.snapchat_ads.snapchat_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "model.snapchat_ads.snapchat_ads__creative_history_prep", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_history`\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_url_tag_history`\n where is_most_recent_record = true\n\n), url_tags_pivoted as (\n\n select \n source_relation,\n creative_id,\n min(case when param_key = 'utm_source' then param_value end) as utm_source,\n min(case when param_key = 'utm_medium' then param_value end) as utm_medium,\n min(case when param_key = 'utm_campaign' then param_value end) as utm_campaign,\n min(case when param_key = 'utm_content' then param_value end) as utm_content,\n min(case when param_key = 'utm_term' then param_value end) as utm_term\n from url_tags\n group by 1,2\n\n), fields as (\n\n select\n base.source_relation,\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n split(\n base.url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_host,\n '/' || safe_cast(\n\n \n split(\n \n\n case when \n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ) = 0\n then ''\n else\n substr(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n -1 * (\n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n and base.source_relation = url_tags_pivoted.source_relation\n\n)\n\nselect *\nfrom fields\n), ad_hourly as (\n\n select *,\n \n conversion_purchases as total_conversions\n \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_hourly_report`\n\n), creatives as (\n\n select *\n from __dbt__cte__snapchat_ads__creative_history_prep\n\n), account as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_account_history`\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_history`\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_squad_history`\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__campaign_history`\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\n ad_hourly.source_relation,\n cast(ad_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n ad_hourly.ad_id,\n ads.ad_name,\n ad_squads.ad_squad_id,\n ad_squads.ad_squad_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n account.currency,\n creatives.base_url,\n creatives.url_host,\n creatives.url_path,\n creatives.utm_source,\n creatives.utm_medium,\n creatives.utm_campaign,\n creatives.utm_content,\n creatives.utm_term,\n sum(ad_hourly.swipes) as swipes,\n sum(ad_hourly.impressions) as impressions,\n round(sum(ad_hourly.spend),2) as spend,\n sum(ad_hourly.total_conversions) as total_conversions,\n round(cast(sum(ad_hourly.conversion_purchases_value) as numeric), 2) as conversion_purchases_value\n \n \n\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n \n\n\n\n \n \n \n \n\n \n\n\n\n\n \n\n\n\n\n\n \n\n\n\n \n \n \n \n , sum(conversion_add_billing_alias) as conversion_add_billing_alias\n \n\n \n \n \n \n\n \n \n \n \n , sum(conversions) as conversions\n \n\n \n \n \n \n , sum(installs) as installs\n \n\n \n \n \n \n , sum(videos) as videos\n \n\n \n\n\n\n \n from ad_hourly\n left join ads \n on ad_hourly.ad_id = ads.ad_id\n and ad_hourly.source_relation = ads.source_relation\n left join creatives\n on ads.creative_id = creatives.creative_id\n and ads.source_relation = creatives.source_relation\n left join ad_squads\n on ads.ad_squad_id = ad_squads.ad_squad_id\n and ads.source_relation = ad_squads.source_relation\n left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n and ad_squads.source_relation = campaigns.source_relation\n left join account\n on creatives.ad_account_id = account.ad_account_id\n and creatives.source_relation = account.source_relation\n\n \n -- We only want utm ads to populate this report. Therefore, we filter where url ads are populated.\n where creatives.url is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.snapchat_ads.snapchat_ads__creative_history_prep", "sql": " __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_history`\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_url_tag_history`\n where is_most_recent_record = true\n\n), url_tags_pivoted as (\n\n select \n source_relation,\n creative_id,\n min(case when param_key = 'utm_source' then param_value end) as utm_source,\n min(case when param_key = 'utm_medium' then param_value end) as utm_medium,\n min(case when param_key = 'utm_campaign' then param_value end) as utm_campaign,\n min(case when param_key = 'utm_content' then param_value end) as utm_content,\n min(case when param_key = 'utm_term' then param_value end) as utm_term\n from url_tags\n group by 1,2\n\n), fields as (\n\n select\n base.source_relation,\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n split(\n base.url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_host,\n '/' || safe_cast(\n\n \n split(\n \n\n case when \n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ) = 0\n then ''\n else\n substr(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n -1 * (\n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n and base.source_relation = url_tags_pivoted.source_relation\n\n)\n\nselect *\nfrom fields\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads.snapchat_ads__account_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "snapchat_ads__account_report", "resource_type": "model", "package_name": "snapchat_ads", "path": "snapchat_ads__account_report.sql", "original_file_path": "models/snapchat_ads__account_report.sql", "unique_id": "model.snapchat_ads.snapchat_ads__account_report", "fqn": ["snapchat_ads", "snapchat_ads__account_report"], "alias": "snapchat_ads__account_report", "checksum": {"name": "sha256", "checksum": "b1f8ee646f82a94a902428080dc066c1a5df73879a405e677c5263adfd80e187"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Snapchat ad account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `snapchat_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.160059, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__account_report`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith ad_hourly as (\n\n select *,\n {% if var('snapchat_ads__conversion_fields', none) %}\n {{ var('snapchat_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_hourly_report') }}\n\n), account as (\n\n select *\n from {{ var('ad_account_history') }}\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from {{ var('ad_squad_history') }}\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\n ad_hourly.source_relation,\n cast(ad_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n account.currency,\n sum(ad_hourly.swipes) as swipes,\n sum(ad_hourly.impressions) as impressions,\n round(sum(ad_hourly.spend),2) as spend,\n sum(ad_hourly.total_conversions) as total_conversions,\n round(cast(sum(ad_hourly.conversion_purchases_value) as {{ dbt.type_numeric() }}), 2) as conversion_purchases_value\n\n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='snapchat_ads__ad_hourly_passthrough_metrics', exclude_fields=['conversion_purchases_value']) }}\n\n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_hourly_passthrough_metrics', transform='sum', exclude_fields=['conversion_purchases_value']) }}\n\n from ad_hourly\n left join ads \n on ad_hourly.ad_id = ads.ad_id\n and ad_hourly.source_relation = ads.source_relation\n left join ad_squads\n on ads.ad_squad_id = ad_squads.ad_squad_id\n and ads.source_relation = ad_squads.source_relation\n left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n and ad_squads.source_relation = campaigns.source_relation\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n and campaigns.source_relation = account.source_relation\n\n {{ dbt_utils.group_by(5) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_hourly_report", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_account_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_squad_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.snapchat_ads.snapchat_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith ad_hourly as (\n\n select *,\n \n conversion_purchases as total_conversions\n \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_hourly_report`\n\n), account as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_account_history`\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_history`\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_squad_history`\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__campaign_history`\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\n ad_hourly.source_relation,\n cast(ad_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n account.currency,\n sum(ad_hourly.swipes) as swipes,\n sum(ad_hourly.impressions) as impressions,\n round(sum(ad_hourly.spend),2) as spend,\n sum(ad_hourly.total_conversions) as total_conversions,\n round(cast(sum(ad_hourly.conversion_purchases_value) as numeric), 2) as conversion_purchases_value\n\n \n\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n \n\n\n\n \n \n \n \n\n \n\n\n\n\n \n\n\n\n\n\n \n\n\n\n \n \n \n \n , sum(conversion_add_billing_alias) as conversion_add_billing_alias\n \n\n \n \n \n \n\n \n \n \n \n , sum(conversions) as conversions\n \n\n \n \n \n \n , sum(installs) as installs\n \n\n \n \n \n \n , sum(videos) as videos\n \n\n \n\n\n\n\n from ad_hourly\n left join ads \n on ad_hourly.ad_id = ads.ad_id\n and ad_hourly.source_relation = ads.source_relation\n left join ad_squads\n on ads.ad_squad_id = ad_squads.ad_squad_id\n and ads.source_relation = ad_squads.source_relation\n left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n and ad_squads.source_relation = campaigns.source_relation\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n and campaigns.source_relation = account.source_relation\n\n group by 1,2,3,4,5\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads.snapchat_ads__ad_squad_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "snapchat_ads__ad_squad_report", "resource_type": "model", "package_name": "snapchat_ads", "path": "snapchat_ads__ad_squad_report.sql", "original_file_path": "models/snapchat_ads__ad_squad_report.sql", "unique_id": "model.snapchat_ads.snapchat_ads__ad_squad_report", "fqn": ["snapchat_ads", "snapchat_ads__ad_squad_report"], "alias": "snapchat_ads__ad_squad_report", "checksum": {"name": "sha256", "checksum": "ce3c64584fef4a76d391b6153123ebc53bc4397cacb99027a88425b4c93af44c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Snapchat ad squad.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_name": {"name": "ad_squad_name", "description": "The name of the ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `snapchat_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.1627488, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__ad_squad_report`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith ad_squad_hourly as (\n\n select *,\n {% if var('snapchat_ads__conversion_fields', none) %}\n {{ var('snapchat_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_squad_hourly_report') }}\n\n), account as (\n\n select *\n from {{ var('ad_account_history') }}\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from {{ var('ad_squad_history') }}\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\n ad_squad_hourly.source_relation,\n cast(ad_squad_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_squad_hourly.ad_squad_id,\n ad_squads.ad_squad_name,\n account.currency,\n sum(ad_squad_hourly.swipes) as swipes,\n sum(ad_squad_hourly.impressions) as impressions,\n round(sum(ad_squad_hourly.spend),2) as spend,\n sum(ad_squad_hourly.total_conversions) as total_conversions,\n round(cast(sum(ad_squad_hourly.conversion_purchases_value) as {{ dbt.type_numeric() }}), 2) as conversion_purchases_value\n\n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='snapchat_ads__ad_squad_hourly_passthrough_metrics', exclude_fields=['conversion_purchases_value']) }}\n \n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_squad_hourly_passthrough_metrics', transform='sum', exclude_fields=['conversion_purchases_value']) }}\n\n from ad_squad_hourly\n left join ad_squads\n on ad_squad_hourly.ad_squad_id = ad_squads.ad_squad_id\n and ad_squad_hourly.source_relation = ad_squads.source_relation\n left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n and ad_squads.source_relation = campaigns.source_relation\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n and campaigns.source_relation = account.source_relation\n \n {{ dbt_utils.group_by(9) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_hourly_report", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_account_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_squad_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.snapchat_ads.snapchat_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__ad_squad_report.sql", "compiled": true, "compiled_code": "\n\nwith ad_squad_hourly as (\n\n select *,\n \n conversion_purchases as total_conversions\n \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_squad_hourly_report`\n\n), account as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_account_history`\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_squad_history`\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__campaign_history`\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\n ad_squad_hourly.source_relation,\n cast(ad_squad_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_squad_hourly.ad_squad_id,\n ad_squads.ad_squad_name,\n account.currency,\n sum(ad_squad_hourly.swipes) as swipes,\n sum(ad_squad_hourly.impressions) as impressions,\n round(sum(ad_squad_hourly.spend),2) as spend,\n sum(ad_squad_hourly.total_conversions) as total_conversions,\n round(cast(sum(ad_squad_hourly.conversion_purchases_value) as numeric), 2) as conversion_purchases_value\n\n \n\n\n\n \n \n \n \n \n \n \n \n\n\n\n \n\n\n\n \n \n \n \n\n \n\n\n\n \n \n\n\n\n\n\n \n\n\n\n \n \n \n \n , sum(conversions) as conversions\n \n\n \n \n \n \n , sum(installs) as installs\n \n\n \n \n \n \n , sum(videos) as videos\n \n\n \n\n\n\n\n from ad_squad_hourly\n left join ad_squads\n on ad_squad_hourly.ad_squad_id = ad_squads.ad_squad_id\n and ad_squad_hourly.source_relation = ad_squads.source_relation\n left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n and ad_squads.source_relation = campaigns.source_relation\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n and campaigns.source_relation = account.source_relation\n \n group by 1,2,3,4,5,6,7,8,9\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads.snapchat_ads__campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "snapchat_ads__campaign_report", "resource_type": "model", "package_name": "snapchat_ads", "path": "snapchat_ads__campaign_report.sql", "original_file_path": "models/snapchat_ads__campaign_report.sql", "unique_id": "model.snapchat_ads.snapchat_ads__campaign_report", "fqn": ["snapchat_ads", "snapchat_ads__campaign_report"], "alias": "snapchat_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "ce111e14c24a3748fec1557f9c2bfe540a3e7fac7dc95cbb6d36069415ec9e13"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Snapchat campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `snapchat_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.161648, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith campaign_hourly as (\n\n select *,\n {% if var('snapchat_ads__conversion_fields', none) %}\n {{ var('snapchat_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('campaign_hourly_report') }}\n\n), account as (\n\n select *\n from {{ var('ad_account_history') }}\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\n campaign_hourly.source_relation,\n cast(campaign_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n campaign_hourly.campaign_id,\n campaigns.campaign_name,\n account.currency,\n sum(campaign_hourly.swipes) as swipes,\n sum(campaign_hourly.impressions) as impressions,\n round(sum(campaign_hourly.spend),2) as spend,\n sum(campaign_hourly.total_conversions) as total_conversions,\n round(cast(sum(campaign_hourly.conversion_purchases_value) as {{ dbt.type_numeric() }}), 2) as conversion_purchases_value\n\n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='snapchat_ads__campaign_hourly_report_passthrough_metrics', exclude_fields=['conversion_purchases_value']) }}\n \n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__campaign_hourly_report_passthrough_metrics', transform='sum', exclude_fields=['conversion_purchases_value']) }}\n \n from campaign_hourly\n left join campaigns\n on campaign_hourly.campaign_id = campaigns.campaign_id\n and campaign_hourly.source_relation = campaigns.source_relation\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n and campaigns.source_relation = account.source_relation\n \n {{ dbt_utils.group_by(7) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_hourly_report", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_account_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.snapchat_ads.snapchat_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith campaign_hourly as (\n\n select *,\n \n conversion_purchases as total_conversions\n \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__campaign_hourly_report`\n\n), account as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_account_history`\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__campaign_history`\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\n campaign_hourly.source_relation,\n cast(campaign_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n campaign_hourly.campaign_id,\n campaigns.campaign_name,\n account.currency,\n sum(campaign_hourly.swipes) as swipes,\n sum(campaign_hourly.impressions) as impressions,\n round(sum(campaign_hourly.spend),2) as spend,\n sum(campaign_hourly.total_conversions) as total_conversions,\n round(cast(sum(campaign_hourly.conversion_purchases_value) as numeric), 2) as conversion_purchases_value\n\n \n\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n \n\n\n\n \n \n \n \n\n \n\n\n\n \n \n\n\n\n\n\n \n\n\n\n \n \n \n \n , sum(conversion_add_billing_alias) as conversion_add_billing_alias\n \n\n \n \n \n \n\n \n \n \n \n , sum(conversions) as conversions\n \n\n \n \n \n \n , sum(installs) as installs\n \n\n \n \n \n \n , sum(videos) as videos\n \n\n \n\n\n\n \n from campaign_hourly\n left join campaigns\n on campaign_hourly.campaign_id = campaigns.campaign_id\n and campaign_hourly.source_relation = campaigns.source_relation\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n and campaigns.source_relation = account.source_relation\n \n group by 1,2,3,4,5,6,7\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads.snapchat_ads__creative_history_prep": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "snapchat_ads__creative_history_prep", "resource_type": "model", "package_name": "snapchat_ads", "path": "intermediate/snapchat_ads__creative_history_prep.sql", "original_file_path": "models/intermediate/snapchat_ads__creative_history_prep.sql", "unique_id": "model.snapchat_ads.snapchat_ads__creative_history_prep", "fqn": ["snapchat_ads", "intermediate", "snapchat_ads__creative_history_prep"], "alias": "snapchat_ads__creative_history_prep", "checksum": {"name": "sha256", "checksum": "e3cefdb96080d7616e006c39ed116afc1bfdf99c32ae5f8cf01f72a16e86a8a6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1731951596.80345, "relation_name": null, "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\nwith base as (\n\n select *\n from {{ var('creative_history') }}\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from {{ var('creative_url_tag_history') }}\n where is_most_recent_record = true\n\n), url_tags_pivoted as (\n\n select \n source_relation,\n creative_id,\n min(case when param_key = 'utm_source' then param_value end) as utm_source,\n min(case when param_key = 'utm_medium' then param_value end) as utm_medium,\n min(case when param_key = 'utm_campaign' then param_value end) as utm_campaign,\n min(case when param_key = 'utm_content' then param_value end) as utm_content,\n min(case when param_key = 'utm_term' then param_value end) as utm_term\n from url_tags\n group by 1,2\n\n), fields as (\n\n select\n base.source_relation,\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n {{ dbt.split_part('base.url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('base.url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('base.url') }} as url_path,\n coalesce(url_tags_pivoted.utm_source, {{ snapchat_ads.snapchat_ads_extract_url_parameter('base.url', 'utm_source') }}) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, {{ snapchat_ads.snapchat_ads_extract_url_parameter('base.url', 'utm_medium') }}) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, {{ snapchat_ads.snapchat_ads_extract_url_parameter('base.url', 'utm_campaign') }}) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, {{ snapchat_ads.snapchat_ads_extract_url_parameter('base.url', 'utm_content') }}) as utm_content,\n coalesce(url_tags_pivoted.utm_term, {{ snapchat_ads.snapchat_ads_extract_url_parameter('base.url', 'utm_term') }}) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n and base.source_relation = url_tags_pivoted.source_relation\n\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_snapchat_ads__creative_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__creative_url_tag_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.snapchat_ads.snapchat_ads_extract_url_parameter"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history", "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"]}, "compiled_path": "target/compiled/snapchat_ads/models/intermediate/snapchat_ads__creative_history_prep.sql", "compiled": true, "compiled_code": "\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_history`\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_url_tag_history`\n where is_most_recent_record = true\n\n), url_tags_pivoted as (\n\n select \n source_relation,\n creative_id,\n min(case when param_key = 'utm_source' then param_value end) as utm_source,\n min(case when param_key = 'utm_medium' then param_value end) as utm_medium,\n min(case when param_key = 'utm_campaign' then param_value end) as utm_campaign,\n min(case when param_key = 'utm_content' then param_value end) as utm_content,\n min(case when param_key = 'utm_term' then param_value end) as utm_term\n from url_tags\n group by 1,2\n\n), fields as (\n\n select\n base.source_relation,\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n split(\n base.url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_host,\n '/' || safe_cast(\n\n \n split(\n \n\n case when \n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ) = 0\n then ''\n else\n substr(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n -1 * (\n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n split(\n \n\n \n split(\n base.url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n and base.source_relation = url_tags_pivoted.source_relation\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_group_stats": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_group_stats", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__ad_group_stats.sql", "original_file_path": "models/stg_google_ads__ad_group_stats.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats", "fqn": ["google_ads_source", "stg_google_ads__ad_group_stats"], "alias": "stg_google_ads__ad_group_stats", "checksum": {"name": "sha256", "checksum": "bfb7ed2f43bbdc003f595169de8364408a1ed968c097b4d6ff7b686177728ce3"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of an ad group in Google Ads broken down to the ad network and device type.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.209314, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_stats`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__ad_group_stats_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__ad_group_stats_tmp')),\n staging_columns=get_ad_group_stats_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n customer_id as account_id, \n date as date_day, \n cast(id as {{ dbt.type_string() }}) as ad_group_id, \n campaign_id, \n device,\n ad_network_type,\n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n \n {{ google_ads_fill_pass_through_columns(pass_through_fields=var('google_ads__ad_group_stats_passthrough_metrics'), except=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_stats_tmp", "package": null, "version": null}, {"name": "stg_google_ads__ad_group_stats_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_ad_group_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.google_ads_source.google_ads_fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_group_stats.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_stats_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_network_type\n \n as \n \n ad_network_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost_micros\n \n as \n \n cost_micros\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n device\n \n as \n \n device\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n conversions_value\n \n as \n \n conversions_value\n \n, \n \n \n view_through_conversions\n \n as \n \n view_through_conversions\n \n, \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n customer_id as account_id, \n date as date_day, \n cast(id as string) as ad_group_id, \n campaign_id, \n device,\n ad_network_type,\n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n \n \n\n\n \n \n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__account_stats": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__account_stats", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__account_stats.sql", "original_file_path": "models/stg_google_ads__account_stats.sql", "unique_id": "model.google_ads_source.stg_google_ads__account_stats", "fqn": ["google_ads_source", "stg_google_ads__account_stats"], "alias": "stg_google_ads__account_stats", "checksum": {"name": "sha256", "checksum": "7d2d7b2362eaedb37320f8dd5c60ca91a34965bf4d8f60e9296cc9e802363f64"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of an account in Google Ads broken down to the ad network and device type.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.21157, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_stats`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__account_stats_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__account_stats_tmp')),\n staging_columns=get_account_stats_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n customer_id as account_id, \n date as date_day,\n ad_network_type,\n device,\n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n \n {{ google_ads_fill_pass_through_columns(pass_through_fields=var('google_ads__account_stats_passthrough_metrics'), except=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_google_ads__account_stats_tmp", "package": null, "version": null}, {"name": "stg_google_ads__account_stats_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_account_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.google_ads_source.google_ads_fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__account_stats.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_stats_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_network_type\n \n as \n \n ad_network_type\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost_micros\n \n as \n \n cost_micros\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n device\n \n as \n \n device\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n conversions_value\n \n as \n \n conversions_value\n \n, \n \n \n view_through_conversions\n \n as \n \n view_through_conversions\n \n, \n \n \n view_through_conversions\n \n as view_through_conversions_aliased , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n customer_id as account_id, \n date as date_day,\n ad_network_type,\n device,\n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n \n \n\n\n \n \n \n \n \n , coalesce(cast(view_through_conversions_aliased as FLOAT64), 0) as view_through_conversions_aliased\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_group_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_group_history", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__ad_group_history.sql", "original_file_path": "models/stg_google_ads__ad_group_history.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history", "fqn": ["google_ads_source", "stg_google_ads__ad_group_history"], "alias": "stg_google_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "fcafb02e78df209c9a612dd410917873e4452ab3eeffc76ae4f3cd276a0b7683"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of an ad group in Google Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_type": {"name": "ad_group_type", "description": "The type of the ad group in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.2049558, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_history`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__ad_group_history_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__ad_group_history_tmp')),\n staging_columns=get_ad_group_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as ad_group_id,\n updated_at,\n type as ad_group_type, \n campaign_id, \n campaign_name, \n name as ad_group_name, \n status as ad_group_status,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_history_tmp", "package": null, "version": null}, {"name": "stg_google_ads__ad_group_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_history_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_history_tmp`\n\n),\n\nfields as (\n\n select\n \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n campaign_name\n \n as \n \n campaign_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n cast(null as boolean) as \n \n _fivetran_active\n \n \n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as string) as ad_group_id,\n updated_at,\n type as ad_group_type, \n campaign_id, \n campaign_name, \n name as ad_group_name, \n status as ad_group_status,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_history", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__ad_history.sql", "original_file_path": "models/stg_google_ads__ad_history.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_history", "fqn": ["google_ads_source", "stg_google_ads__ad_history"], "alias": "stg_google_ads__ad_history", "checksum": {"name": "sha256", "checksum": "dfb14371dddca0865cf728b2724a131758522d19391bef8689824b0eb398cede"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of an ad in Google Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The display url of the ad that is being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_type": {"name": "ad_type", "description": "The type of the ad in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_status": {"name": "ad_status", "description": "Status of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_final_urls": {"name": "source_final_urls", "description": "The original list of final urls expressed as an array. Please be aware the test used on this field is intended to warn you if you have fields with multiple urls. If you do, the `final_url` field will filter down the urls within the array to just the first. Therefore, this package will only leverage one of possibly many urls within this field array.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "final_url": {"name": "final_url", "description": "The first url in the list of the urls within the `final_urls` source field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.205653, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_history`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__ad_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__ad_history_tmp')),\n staging_columns=get_ad_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id, \n id as ad_id,\n name as ad_name,\n updated_at,\n type as ad_type,\n status as ad_status,\n display_url,\n final_urls as source_final_urls,\n replace(replace(final_urls, '[', ''),']','') as final_urls,\n row_number() over (partition by source_relation, id, ad_group_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n),\n\nfinal_urls as (\n\n select \n *,\n --Extract the first url within the list of urls provided within the final_urls field\n {{ dbt.split_part(string_text='final_urls', delimiter_text=\"','\", part_number=1) }} as final_url\n\n from final\n\n),\n\nurl_fields as (\n select \n *,\n {{ dbt.split_part('final_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('final_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('final_url') }} as url_path,\n {{ google_ads_source.google_ads_extract_url_parameter('final_url', 'utm_source') }} as utm_source,\n {{ google_ads_source.google_ads_extract_url_parameter('final_url', 'utm_medium') }} as utm_medium,\n {{ google_ads_source.google_ads_extract_url_parameter('final_url', 'utm_campaign') }} as utm_campaign,\n {{ google_ads_source.google_ads_extract_url_parameter('final_url', 'utm_content') }} as utm_content,\n {{ google_ads_source.google_ads_extract_url_parameter('final_url', 'utm_term') }} as utm_term\n from final_urls\n)\n\nselect * \nfrom url_fields", "language": "sql", "refs": [{"name": "stg_google_ads__ad_history_tmp", "package": null, "version": null}, {"name": "stg_google_ads__ad_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.google_ads_source.google_ads_extract_url_parameter"], "nodes": ["model.google_ads_source.stg_google_ads__ad_history_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n display_url\n \n as \n \n display_url\n \n, \n \n \n final_urls\n \n as \n \n final_urls\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n cast(null as boolean) as \n \n _fivetran_active\n \n \n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_group_id as string) as ad_group_id, \n id as ad_id,\n name as ad_name,\n updated_at,\n type as ad_type,\n status as ad_status,\n display_url,\n final_urls as source_final_urls,\n replace(replace(final_urls, '[', ''),']','') as final_urls,\n row_number() over (partition by source_relation, id, ad_group_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n),\n\nfinal_urls as (\n\n select \n *,\n --Extract the first url within the list of urls provided within the final_urls field\n \n\n \n split(\n final_urls,\n ','\n )[safe_offset(0)]\n \n\n as final_url\n\n from final\n\n),\n\nurl_fields as (\n select \n *,\n \n\n \n split(\n final_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n final_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_host,\n '/' || safe_cast(\n\n \n split(\n \n\n case when \n\n length(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ) = 0\n then ''\n else\n substr(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n -1 * (\n\n length(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_path,\n nullif(\n\n \n split(\n \n\n \n split(\n final_url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n final_url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n final_url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n final_url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n nullif(\n\n \n split(\n \n\n \n split(\n final_url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term\n from final_urls\n)\n\nselect * \nfrom url_fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__keyword_stats": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__keyword_stats", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__keyword_stats.sql", "original_file_path": "models/stg_google_ads__keyword_stats.sql", "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats", "fqn": ["google_ads_source", "stg_google_ads__keyword_stats"], "alias": "stg_google_ads__keyword_stats", "checksum": {"name": "sha256", "checksum": "bdbdc14def8247f6f22db4da24dc6f86da3d5ec56ae7af55741d0cf4d1cd291a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a keyword in Google Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The unique ID of the keyword record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "criterion_id": {"name": "criterion_id", "description": "Reference to the ad group criterion used for the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.210774, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__keyword_stats`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__keyword_stats_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__keyword_stats_tmp')),\n staging_columns=get_keyword_stats_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n _fivetran_id as keyword_id,\n customer_id as account_id, \n date as date_day, \n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n ad_group_criterion_criterion_id as criterion_id,\n campaign_id, \n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n \n {{ google_ads_fill_pass_through_columns(pass_through_fields=var('google_ads__keyword_stats_passthrough_metrics'), except=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_google_ads__keyword_stats_tmp", "package": null, "version": null}, {"name": "stg_google_ads__keyword_stats_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_keyword_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.google_ads_source.google_ads_fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__keyword_stats.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__keyword_stats_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_group_criterion_criterion_id\n \n as \n \n ad_group_criterion_criterion_id\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_network_type\n \n as \n \n ad_network_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost_micros\n \n as \n \n cost_micros\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n device\n \n as \n \n device\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n conversions_value\n \n as \n \n conversions_value\n \n, \n \n \n view_through_conversions\n \n as \n \n view_through_conversions\n \n, \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n _fivetran_id as keyword_id,\n customer_id as account_id, \n date as date_day, \n cast(ad_group_id as string) as ad_group_id,\n ad_group_criterion_criterion_id as criterion_id,\n campaign_id, \n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n \n \n\n\n \n \n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_stats": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_stats", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__ad_stats.sql", "original_file_path": "models/stg_google_ads__ad_stats.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_stats", "fqn": ["google_ads_source", "stg_google_ads__ad_stats"], "alias": "stg_google_ads__ad_stats", "checksum": {"name": "sha256", "checksum": "3d9153d0c78940f772fdcad173fe4caf48a1bcba23e3114727d3dfc5206922b6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of an ad in Google Ads broken down to the ad network, device type, and ad_group_id.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_ad_group_criterion": {"name": "keyword_ad_group_criterion", "description": "The ad group which the keyword criterion resides.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.2068439, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_stats`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__ad_stats_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__ad_stats_tmp')),\n staging_columns=get_ad_stats_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n customer_id as account_id, \n date as date_day, \n {% if target.type in ('spark','databricks') %}\n coalesce(cast(ad_group_id as {{ dbt.type_string() }}), split(ad_group,'adGroups/')[1]) as ad_group_id,\n {% else %}\n coalesce(cast(ad_group_id as {{ dbt.type_string() }}), {{ dbt.split_part(string_text='ad_group', delimiter_text=\"'adGroups/'\", part_number=2) }}) as ad_group_id,\n {% endif %}\n keyword_ad_group_criterion,\n ad_network_type,\n device,\n ad_id, \n campaign_id, \n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n\n {{ google_ads_fill_pass_through_columns(pass_through_fields=var('google_ads__ad_stats_passthrough_metrics'), except=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n from fields\n)\n\nselect * from final", "language": "sql", "refs": [{"name": "stg_google_ads__ad_stats_tmp", "package": null, "version": null}, {"name": "stg_google_ads__ad_stats_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_ad_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.split_part", "macro.google_ads_source.google_ads_fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_stats.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_stats_tmp`\n\n),\n\nfields as (\n\n select\n \n \n \n ad_group\n \n as \n \n ad_group\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n ad_network_type\n \n as \n \n ad_network_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost_micros\n \n as \n \n cost_micros\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n device\n \n as \n \n device\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n keyword_ad_group_criterion\n \n as \n \n keyword_ad_group_criterion\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n conversions_value\n \n as \n \n conversions_value\n \n, \n \n \n view_through_conversions\n \n as \n \n view_through_conversions\n \n, \n \n \n view_through_conversions\n \n as view_through_conversions_aliased , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n customer_id as account_id, \n date as date_day, \n \n coalesce(cast(ad_group_id as string), \n\n \n split(\n ad_group,\n 'adGroups/'\n )[safe_offset(1)]\n \n\n) as ad_group_id,\n \n keyword_ad_group_criterion,\n ad_network_type,\n device,\n ad_id, \n campaign_id, \n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n\n \n\n\n \n \n \n \n \n , coalesce(cast(view_through_conversions_aliased as FLOAT64), 0) as view_through_conversions_aliased\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_group_criterion_history", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__ad_group_criterion_history.sql", "original_file_path": "models/stg_google_ads__ad_group_criterion_history.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history", "fqn": ["google_ads_source", "stg_google_ads__ad_group_criterion_history"], "alias": "stg_google_ads__ad_group_criterion_history", "checksum": {"name": "sha256", "checksum": "6f52de4d9c75239528727d3b83277cfe3d2ae624f85f7d51acc6e9d76058e81d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a historical version of an ad group criterion in Google Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "criterion_id": {"name": "criterion_id", "description": "Unique identifier of the ad group criterion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_campaign_id": {"name": "base_campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of ad group criterion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad group criterion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_match_type": {"name": "keyword_match_type", "description": "The match type which dictate how closely the keyword needs to match with the user\u2019s search query so that the ad can be considered for the auction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The text used within the keyword criterion that is being matched against.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.208503, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_criterion_history`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__ad_group_criterion_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__ad_group_criterion_history_tmp')),\n staging_columns=get_ad_group_criterion_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as criterion_id,\n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n base_campaign_id,\n updated_at,\n type,\n status,\n keyword_match_type,\n keyword_text,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_criterion_history_tmp", "package": null, "version": null}, {"name": "stg_google_ads__ad_group_criterion_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_ad_group_criterion_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_group_criterion_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_criterion_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n base_campaign_id\n \n as \n \n base_campaign_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n keyword_match_type\n \n as \n \n keyword_match_type\n \n, \n \n \n keyword_text\n \n as \n \n keyword_text\n \n, \n cast(null as boolean) as \n \n _fivetran_active\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as criterion_id,\n cast(ad_group_id as string) as ad_group_id,\n base_campaign_id,\n updated_at,\n type,\n status,\n keyword_match_type,\n keyword_text,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__campaign_stats": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__campaign_stats", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__campaign_stats.sql", "original_file_path": "models/stg_google_ads__campaign_stats.sql", "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats", "fqn": ["google_ads_source", "stg_google_ads__campaign_stats"], "alias": "stg_google_ads__campaign_stats", "checksum": {"name": "sha256", "checksum": "999db701077c8ea2d7204928d8f200f1cb75c4922382f75a8ad3943209793dc3"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a campaign in Google Ads broken down to the ad network and device type.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.21012, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__campaign_stats`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__campaign_stats_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__campaign_stats_tmp')),\n staging_columns=get_campaign_stats_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n customer_id as account_id, \n date as date_day, \n id as campaign_id, \n ad_network_type,\n device,\n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n \n {{ google_ads_fill_pass_through_columns(pass_through_fields=var('google_ads__campaign_stats_passthrough_metrics'), except=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_google_ads__campaign_stats_tmp", "package": null, "version": null}, {"name": "stg_google_ads__campaign_stats_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_campaign_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.google_ads_source.google_ads_fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__campaign_stats.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__campaign_stats_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_network_type\n \n as \n \n ad_network_type\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost_micros\n \n as \n \n cost_micros\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n device\n \n as \n \n device\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n conversions_value\n \n as \n \n conversions_value\n \n, \n \n \n view_through_conversions\n \n as \n \n view_through_conversions\n \n, \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n customer_id as account_id, \n date as date_day, \n id as campaign_id, \n ad_network_type,\n device,\n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n \n \n\n\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__campaign_history", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__campaign_history.sql", "original_file_path": "models/stg_google_ads__campaign_history.sql", "unique_id": "model.google_ads_source.stg_google_ads__campaign_history", "fqn": ["google_ads_source", "stg_google_ads__campaign_history"], "alias": "stg_google_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "d46649f5c27047aa1e33e81154c92f77835c18d889d3db874355a67c1eb42359"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of a campaign in Google Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertising_channel_type": {"name": "advertising_channel_type", "description": "The type of advertising channel being used by the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertising_channel_subtype": {"name": "advertising_channel_subtype", "description": "The advertising channel subtype that is being used by the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "Status of the ads and how they are currently being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "General status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tracking_url_template": {"name": "tracking_url_template", "description": "The tracking url template being used throughout the campaign ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.207802, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__campaign_history`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__campaign_history_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as campaign_id, \n updated_at,\n name as campaign_name,\n customer_id as account_id,\n advertising_channel_type,\n advertising_channel_subtype,\n start_date,\n end_date,\n serving_status,\n status,\n tracking_url_template,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_google_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_google_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__campaign_history_tmp`\n\n),\n\nfields as (\n\n select\n \n \n \n advertising_channel_subtype\n \n as \n \n advertising_channel_subtype\n \n, \n \n \n advertising_channel_type\n \n as \n \n advertising_channel_type\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n serving_status\n \n as \n \n serving_status\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n tracking_url_template\n \n as \n \n tracking_url_template\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n cast(null as boolean) as \n \n _fivetran_active\n \n \n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as campaign_id, \n updated_at,\n name as campaign_name,\n customer_id as account_id,\n advertising_channel_type,\n advertising_channel_subtype,\n start_date,\n end_date,\n serving_status,\n status,\n tracking_url_template,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__account_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__account_history", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__account_history.sql", "original_file_path": "models/stg_google_ads__account_history.sql", "unique_id": "model.google_ads_source.stg_google_ads__account_history", "fqn": ["google_ads_source", "stg_google_ads__account_history"], "alias": "stg_google_ads__account_history", "checksum": {"name": "sha256", "checksum": "851559735dd5553d76ec6b4ec596719d9f1ee1ed47042df4d861d15bb64ca96e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of an account in Google Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the Account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency of the spend reported.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "auto_tagging_enabled": {"name": "auto_tagging_enabled", "description": "Boolean indicating if auto tagging is enabled on the account ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone of the account ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.20443, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_history`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__account_history_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__account_history_tmp')),\n staging_columns=get_account_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as account_id,\n updated_at,\n currency_code,\n auto_tagging_enabled,\n time_zone,\n descriptive_name as account_name,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_google_ads__account_history_tmp", "package": null, "version": null}, {"name": "stg_google_ads__account_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.google_ads_source.stg_google_ads__account_history_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__account_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_history_tmp`\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n auto_tagging_enabled\n \n as \n \n auto_tagging_enabled\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n descriptive_name\n \n as \n \n descriptive_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n time_zone\n \n as \n \n time_zone\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n cast(null as boolean) as \n \n _fivetran_active\n \n \n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as account_id,\n updated_at,\n currency_code,\n auto_tagging_enabled,\n time_zone,\n descriptive_name as account_name,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__account_stats_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__account_stats_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__account_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__account_stats_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__account_stats_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__account_stats_tmp"], "alias": "stg_google_ads__account_stats_tmp", "checksum": {"name": "sha256", "checksum": "53bf3e1d8bb8072a5eeecc61aea3ac8e6bcd886fe778eae4d09936a8a15cf1a4"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.0281248, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_stats_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_stats', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='account_stats',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "account_stats"], ["google_ads", "account_stats"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.account_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__account_stats_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`google_ads_account_stats_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_group_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_group_history_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_group_history_tmp"], "alias": "stg_google_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "27917221395112d60ce764fff5a10d6ed86afb2788ad6a04a1f79c9d5fd8e3e0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.0334651, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_history', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='ad_group_history',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "ad_group_history"], ["google_ads", "ad_group_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.ad_group_history"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`google_ads_ad_group_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__campaign_stats_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__campaign_stats_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__campaign_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__campaign_stats_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__campaign_stats_tmp"], "alias": "stg_google_ads__campaign_stats_tmp", "checksum": {"name": "sha256", "checksum": "c6d7ed9fb5b4d735912bea35c575b0a2b306a9a56f11db4d84c3fbbb5f53251e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.0382369, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__campaign_stats_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_stats', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='campaign_stats',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "campaign_stats"], ["google_ads", "campaign_stats"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.campaign_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__campaign_stats_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`google_ads_campaign_stats_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_stats_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_stats_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__ad_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_stats_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_stats_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_stats_tmp"], "alias": "stg_google_ads__ad_stats_tmp", "checksum": {"name": "sha256", "checksum": "0e8698cde9ab2db188086002af848006aaf04516286b9f5a510ac39f1157b2d5"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.043553, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_stats_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_stats', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='ad_stats',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "ad_stats"], ["google_ads", "ad_stats"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.ad_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_stats_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`google_ads_ad_stats_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__campaign_history_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__campaign_history_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__campaign_history_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__campaign_history_tmp"], "alias": "stg_google_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "14370258c20a027e6253cd40b5d937da847aac202403f5392f46fb65511f61c2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.049448, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__campaign_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='campaign_history',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "campaign_history"], ["google_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.campaign_history"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`google_ads_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_group_criterion_history_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__ad_group_criterion_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_group_criterion_history_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_group_criterion_history_tmp"], "alias": "stg_google_ads__ad_group_criterion_history_tmp", "checksum": {"name": "sha256", "checksum": "ddef66fa4107a20f2f166e866289eccb2fae8c06639044433e3cd34048f03d4c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.054632, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_criterion_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_criterion_history', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='ad_group_criterion_history',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "ad_group_criterion_history"], ["google_ads", "ad_group_criterion_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.ad_group_criterion_history"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_group_criterion_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`google_ads_ad_group_criterion_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_group_stats_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_group_stats_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__ad_group_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_group_stats_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_group_stats_tmp"], "alias": "stg_google_ads__ad_group_stats_tmp", "checksum": {"name": "sha256", "checksum": "e5eaa10da4d6f25ac4988386a9added765eb7b7638065692723b7508abad2fc9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.059834, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_stats_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_stats', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='ad_group_stats',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "ad_group_stats"], ["google_ads", "ad_group_stats"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.ad_group_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_group_stats_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`google_ads_ad_group_stats_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__keyword_stats_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__keyword_stats_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__keyword_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__keyword_stats_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__keyword_stats_tmp"], "alias": "stg_google_ads__keyword_stats_tmp", "checksum": {"name": "sha256", "checksum": "488ddf5cbf005ec6f18520bc87007fab72de55a77c67ef05e5b359fe5d685440"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.065877, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__keyword_stats_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='keyword_stats', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='keyword_stats',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "keyword_stats"], ["google_ads", "keyword_stats"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.keyword_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__keyword_stats_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`google_ads_keyword_stats_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__ad_history_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_history_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_history_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_history_tmp"], "alias": "stg_google_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "d5b44fadc77a3ade124cc55b4930d84d15805ecb6ca2c74c2f622f1a2747f687"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.071934, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_history', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='ad_history',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "ad_history"], ["google_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.ad_history"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`google_ads_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__account_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_google_ads__account_history_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__account_history_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__account_history_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__account_history_tmp"], "alias": "stg_google_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "5f3a32b7b4a588718f7925dd1317ec47506168ad46d7fb39658af3ad12c6402b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.077305, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_history', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='account_history',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "account_history"], ["google_ads", "account_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.account_history"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__account_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`google_ads_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads.apple_search_ads__ad_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "apple_search_ads__ad_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__ad_report.sql", "original_file_path": "models/apple_search_ads__ad_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__ad_report", "fqn": ["apple_search_ads", "apple_search_ads__ad_report"], "alias": "apple_search_ads__ad_report", "checksum": {"name": "sha256", "checksum": "c65e94aeba9e77935d57377e2797eceae2f4c41d20c299bb4be4c1554479af75"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily ad performance of each ad.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_status": {"name": "ad_status", "description": "The status of the ad associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on ad group on given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed app of ad group in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Number of user downloads where user deletes app and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device of ad group in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of ad group in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on ad group in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.284398, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__ad_report`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_report') }}\n), \n\nad as (\n\n select * \n from {{ var('ad_history') }}\n where is_most_recent_record = True\n), \n\nad_group as (\n\n select * \n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from {{ var('organization') }}\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n campaign.campaign_id, \n campaign.campaign_name, \n ad_group.ad_group_id,\n ad_group.ad_group_name,\n ad.ad_id,\n ad.ad_name,\n report.currency,\n ad.ad_status,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ apple_search_ads_persist_pass_through_columns(\n pass_through_variable = 'apple_search_ads__ad_passthrough_metrics',\n identifier = 'report',\n transform = 'sum',\n coalesce_with = 0,\n exclude_fields = ['conversions']) }}\n\n from report\n join ad \n on report.ad_id = ad.ad_id\n and report.source_relation = ad.source_relation\n join ad_group \n on report.ad_group_id = ad_group.ad_group_id\n and report.source_relation = ad_group.source_relation\n join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n join organization \n on ad.organization_id = organization.organization_id\n and ad.source_relation = organization.source_relation\n {{ dbt_utils.group_by(12) }}\n)\n\nselect * \nfrom joined", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_report", "package": null, "version": null}, {"name": "stg_apple_search_ads__ad_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads.apple_search_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report", "model.apple_search_ads_source.stg_apple_search_ads__ad_history", "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_report`\n), \n\nad as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_history`\n where is_most_recent_record = True\n), \n\nad_group as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_history`\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__organization`\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n campaign.campaign_id, \n campaign.campaign_name, \n ad_group.ad_group_id,\n ad_group.ad_group_name,\n ad.ad_id,\n ad.ad_name,\n report.currency,\n ad.ad_status,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n \n \n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n\n\n from report\n join ad \n on report.ad_id = ad.ad_id\n and report.source_relation = ad.source_relation\n join ad_group \n on report.ad_group_id = ad_group.ad_group_id\n and report.source_relation = ad_group.source_relation\n join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n join organization \n on ad.organization_id = organization.organization_id\n and ad.source_relation = organization.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads.apple_search_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "apple_search_ads__ad_group_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__ad_group_report.sql", "original_file_path": "models/apple_search_ads__ad_group_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__ad_group_report", "fqn": ["apple_search_ads", "apple_search_ads__ad_group_report"], "alias": "apple_search_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "74f566ced04d730d480d549e6f5e788d0ec3731ee5693c2ed341746ce7e415df"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily ad performance of each ad group.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "The status of the ad group associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "The start timestamp for this ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "The end timestamp for this ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on ad group on given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed app of ad group in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Number of user downloads where user deletes app and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device of ad group in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of ad group in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on ad group in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.283602, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__ad_group_report`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_group_report') }}\n), \n\nad_group as (\n\n select * \n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from {{ var('organization') }}\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n campaign.campaign_id, \n campaign.campaign_name, \n ad_group.ad_group_id,\n ad_group.ad_group_name,\n report.currency,\n ad_group.ad_group_status,\n ad_group.start_at, \n ad_group.end_at,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ apple_search_ads_persist_pass_through_columns(\n pass_through_variable = 'apple_search_ads__ad_group_passthrough_metrics',\n identifier = 'report',\n transform = 'sum',\n coalesce_with = 0,\n exclude_fields = ['conversions']) }}\n\n from report\n join ad_group \n on report.ad_group_id = ad_group.ad_group_id\n and report.source_relation = ad_group.source_relation\n join campaign \n on ad_group.campaign_id = campaign.campaign_id\n and ad_group.source_relation = campaign.source_relation\n join organization \n on ad_group.organization_id = organization.organization_id\n and ad_group.source_relation = organization.source_relation\n {{ dbt_utils.group_by(12) }}\n)\n\nselect * \nfrom joined", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_report", "package": null, "version": null}, {"name": "stg_apple_search_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads.apple_search_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report", "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_group_report`\n), \n\nad_group as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_history`\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__organization`\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n campaign.campaign_id, \n campaign.campaign_name, \n ad_group.ad_group_id,\n ad_group.ad_group_name,\n report.currency,\n ad_group.ad_group_status,\n ad_group.start_at, \n ad_group.end_at,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n \n \n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n\n\n from report\n join ad_group \n on report.ad_group_id = ad_group.ad_group_id\n and report.source_relation = ad_group.source_relation\n join campaign \n on ad_group.campaign_id = campaign.campaign_id\n and ad_group.source_relation = campaign.source_relation\n join organization \n on ad_group.organization_id = organization.organization_id\n and ad_group.source_relation = organization.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads.apple_search_ads__keyword_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "apple_search_ads__keyword_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__keyword_report.sql", "original_file_path": "models/apple_search_ads__keyword_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__keyword_report", "fqn": ["apple_search_ads", "apple_search_ads__keyword_report"], "alias": "apple_search_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "76b7cb0a60b6f30d7bf222bdf439af7143394b789e2d20ba420d70c6c8d05c53"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily ad performance of each creative set.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Creative set name associatd with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "Creative set ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; EXACT or BROAD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_status": {"name": "keyword_status", "description": "The status of the keyword associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on keyword on given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed app of keyword in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Number of user downloads where user deletes app and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device of keyword in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of keyword in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on keyword in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.285953, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__keyword_report`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('keyword_report') }}\n), \n\nkeyword as (\n\n select *\n from {{ var('keyword_history') }}\n where is_most_recent_record = True\n), \n\nad_group as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from {{ var('organization') }}\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n campaign.campaign_id, \n campaign.campaign_name, \n ad_group.ad_group_id,\n ad_group.ad_group_name,\n keyword.keyword_id,\n keyword.keyword_text,\n keyword.match_type,\n report.currency,\n keyword.keyword_status,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ apple_search_ads_persist_pass_through_columns(\n pass_through_variable = 'apple_search_ads__keyword_passthrough_metrics',\n identifier = 'report',\n transform = 'sum',\n coalesce_with = 0,\n exclude_fields = ['conversions']) }}\n\n from report\n join keyword \n on report.keyword_id = keyword.keyword_id\n and report.source_relation = keyword.source_relation\n join ad_group \n on keyword.ad_group_id = ad_group.ad_group_id\n and keyword.source_relation = ad_group.source_relation\n join campaign \n on ad_group.campaign_id = campaign.campaign_id\n and ad_group.source_relation = campaign.source_relation\n join organization \n on ad_group.organization_id = organization.organization_id\n and ad_group.source_relation = organization.source_relation\n {{ dbt_utils.group_by(13) }}\n)\n\nselect * \nfrom joined", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_report", "package": null, "version": null}, {"name": "stg_apple_search_ads__keyword_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads.apple_search_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report", "model.apple_search_ads_source.stg_apple_search_ads__keyword_history", "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__keyword_report`\n), \n\nkeyword as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__keyword_history`\n where is_most_recent_record = True\n), \n\nad_group as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_history`\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__organization`\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n campaign.campaign_id, \n campaign.campaign_name, \n ad_group.ad_group_id,\n ad_group.ad_group_name,\n keyword.keyword_id,\n keyword.keyword_text,\n keyword.match_type,\n report.currency,\n keyword.keyword_status,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n \n \n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n\n\n from report\n join keyword \n on report.keyword_id = keyword.keyword_id\n and report.source_relation = keyword.source_relation\n join ad_group \n on keyword.ad_group_id = ad_group.ad_group_id\n and keyword.source_relation = ad_group.source_relation\n join campaign \n on ad_group.campaign_id = campaign.campaign_id\n and ad_group.source_relation = campaign.source_relation\n join organization \n on ad_group.organization_id = organization.organization_id\n and ad_group.source_relation = organization.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads.apple_search_ads__search_term_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "apple_search_ads__search_term_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__search_term_report.sql", "original_file_path": "models/apple_search_ads__search_term_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__search_term_report", "fqn": ["apple_search_ads", "apple_search_ads__search_term_report"], "alias": "apple_search_ads__search_term_report", "checksum": {"name": "sha256", "checksum": "39242aebf3a157079f6c34790a1ab67d116c159b0f150e7521b54dfe94d88e9c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily ad performance of each search term, only includes records with search term values.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; EXACT or BROAD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_term_text": {"name": "search_term_text", "description": "Search term text.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on organization on given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed app of organization in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Number of user downloads where user deletes app and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device of organization in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of organization in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on organization in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Creative set name associatd with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "Creative set ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.287471, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__search_term_report`", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__apple_search_ads_enabled','apple_search_ads__using_search_terms'])) }}\n\nwith report as (\n\n select *\n from {{ var('search_term_report') }}\n), \n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from {{ var('organization') }}\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n campaign.campaign_id, \n campaign.campaign_name, \n report.ad_group_id,\n report.ad_group_name,\n report.keyword_id,\n report.keyword_text,\n report.search_term_text,\n report.match_type,\n report.currency,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ apple_search_ads_persist_pass_through_columns(\n pass_through_variable = 'apple_search_ads__search_term_passthrough_metrics',\n identifier = 'report',\n transform = 'sum',\n coalesce_with = 0,\n exclude_fields = ['conversions']) }}\n\n from report\n join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n join organization \n on campaign.organization_id = organization.organization_id\n and campaign.source_relation = organization.source_relation\n where report.search_term_text is not null\n {{ dbt_utils.group_by(13) }}\n)\n\nselect * \nfrom joined", "language": "sql", "refs": [{"name": "stg_apple_search_ads__search_term_report", "package": null, "version": null}, {"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.apple_search_ads.apple_search_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__search_term_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__search_term_report`\n), \n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_history`\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__organization`\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n campaign.campaign_id, \n campaign.campaign_name, \n report.ad_group_id,\n report.ad_group_name,\n report.keyword_id,\n report.keyword_text,\n report.search_term_text,\n report.match_type,\n report.currency,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n \n \n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n\n\n from report\n join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n join organization \n on campaign.organization_id = organization.organization_id\n and campaign.source_relation = organization.source_relation\n where report.search_term_text is not null\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads.apple_search_ads__campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "apple_search_ads__campaign_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__campaign_report.sql", "original_file_path": "models/apple_search_ads__campaign_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__campaign_report", "fqn": ["apple_search_ads", "apple_search_ads__campaign_report"], "alias": "apple_search_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "a4cdcbd53d7dea9ac7ccc63853c6fc035cde951d09c020127cd557413cc466c0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily ad performance of each campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the campaign associted with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "The start timestamp of this campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "The end timestamp of this campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on campaign on given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed app of campaign in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Number of user downloads where user deletes app and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device of campaign in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of campaign in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on campaign in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.2850702, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith report as (\n \n select *\n from {{ var('campaign_report') }}\n\n), \n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from {{ var('organization') }}\n\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n campaign.organization_id,\n organization.organization_name,\n campaign.campaign_id, \n campaign.campaign_name, \n report.currency,\n campaign.campaign_status,\n campaign.start_at,\n campaign.end_at,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ apple_search_ads_persist_pass_through_columns(\n pass_through_variable = 'apple_search_ads__campaign_passthrough_metrics',\n identifier = 'report',\n transform = 'sum',\n coalesce_with = 0,\n exclude_fields = ['conversions']) }}\n\n from report\n join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n join organization \n on campaign.organization_id = organization.organization_id\n and campaign.source_relation = organization.source_relation\n {{ dbt_utils.group_by(10) }}\n)\n\nselect * \nfrom joined", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_report", "package": null, "version": null}, {"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads.apple_search_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_report`\n\n), \n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_history`\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__organization`\n\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n campaign.organization_id,\n organization.organization_name,\n campaign.campaign_id, \n campaign.campaign_name, \n report.currency,\n campaign.campaign_status,\n campaign.start_at,\n campaign.end_at,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n \n \n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n\n\n from report\n join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n join organization \n on campaign.organization_id = organization.organization_id\n and campaign.source_relation = organization.source_relation\n group by 1,2,3,4,5,6,7,8,9,10\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads.apple_search_ads__organization_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "apple_search_ads__organization_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__organization_report.sql", "original_file_path": "models/apple_search_ads__organization_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__organization_report", "fqn": ["apple_search_ads", "apple_search_ads__organization_report"], "alias": "apple_search_ads__organization_report", "checksum": {"name": "sha256", "checksum": "2dd193c8c753546eefd5de57c481a69fbf83ca18eb2150632dcb80b2f332e730"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily ad performance of each organization.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on organization on given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed app of organization in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Number of user downloads where user deletes app and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device of organization in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of organization in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on organization in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.2865548, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__organization_report`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith report as (\n \n select *\n from {{ var('campaign_report') }}\n), \n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from {{ var('organization') }}\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n organization.currency,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ apple_search_ads_persist_pass_through_columns(\n pass_through_variable = 'apple_search_ads__campaign_passthrough_metrics',\n identifier = 'report',\n transform = 'sum',\n coalesce_with = 0,\n exclude_fields = ['conversions']) }}\n\n from report\n join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n join organization \n on campaign.organization_id = organization.organization_id\n and campaign.source_relation = organization.source_relation\n {{ dbt_utils.group_by(5) }}\n)\n\nselect * \nfrom joined", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_report", "package": null, "version": null}, {"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads.apple_search_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__organization_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n \n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_report`\n), \n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_history`\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__organization`\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n organization.currency,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n \n \n \n \n \n \n , sum(coalesce(report.installs, 0)) as installs\n \n \n \n \n , sum(coalesce(report.videos, 0)) as videos\n \n \n\n\n\n\n from report\n join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n join organization \n on campaign.organization_id = organization.organization_id\n and campaign.source_relation = organization.source_relation\n group by 1,2,3,4,5\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.ad_reporting__campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "ad_reporting__campaign_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__campaign_report.sql", "original_file_path": "models/ad_reporting__campaign_report.sql", "unique_id": "model.ad_reporting.ad_reporting__campaign_report", "fqn": ["ad_reporting", "ad_reporting__campaign_report"], "alias": "ad_reporting__campaign_report", "checksum": {"name": "sha256", "checksum": "47f504069deefb56c5c643f6189cde8184fdc3c802242edfeb182e4010ad4323"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents daily metrics by campaign and account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The count of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The monetary value of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951600.3438022, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__campaign_report`", "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__campaign_report') }}\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n {{ ad_reporting_persist_pass_through_columns(pass_through_variable='ad_reporting__campaign_passthrough_metrics', transform = 'sum', alias_fields=['conversions', 'conversions_value']) }}\n\n from base\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "int_ad_reporting__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.ad_reporting_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__campaign_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__campaign_report.sql", "compiled": true, "compiled_code": "\n\n\nwith __dbt__cte__int_ad_reporting__campaign_report as (\n\n\n\nwith\n\n\nfacebook_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__campaign_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__campaign_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__campaign_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__campaign_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_group_id as string) as campaign_id\n\n \n ,cast(campaign_group_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_value_in_local_currency as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__campaign_group_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__campaign_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as string) as platform,\n\n cast(ad_account_id as string) as account_id\n\n \n ,cast(ad_account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(swipes as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_purchases_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__campaign_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversion as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversion_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__campaign_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_sale_amount as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__campaign_report`\n\n),\n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__campaign_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(null as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__campaign_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n), base as (\n\n select *\n from __dbt__cte__int_ad_reporting__campaign_report\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n \n\n\n \n \n , sum(conversions_c) \n as conversions_c\n \n \n , sum(videos) \n as videos\n \n\n\n\n\n from base\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.ad_reporting.int_ad_reporting__campaign_report", "sql": " __dbt__cte__int_ad_reporting__campaign_report as (\n\n\n\nwith\n\n\nfacebook_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__campaign_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__campaign_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__campaign_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__campaign_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_group_id as string) as campaign_id\n\n \n ,cast(campaign_group_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_value_in_local_currency as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__campaign_group_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__campaign_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as string) as platform,\n\n cast(ad_account_id as string) as account_id\n\n \n ,cast(ad_account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(swipes as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_purchases_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__campaign_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversion as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversion_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__campaign_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_sale_amount as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__campaign_report`\n\n),\n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__campaign_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(null as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__campaign_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.ad_reporting__account_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "ad_reporting__account_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__account_report.sql", "original_file_path": "models/ad_reporting__account_report.sql", "unique_id": "model.ad_reporting.ad_reporting__account_report", "fqn": ["ad_reporting", "ad_reporting__account_report"], "alias": "ad_reporting__account_report", "checksum": {"name": "sha256", "checksum": "a3d1d911b21f4d4230c39ce69de3f963ea9f911ad1edfd14a4a5d40939333b54"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents daily metrics by account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The count of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The monetary value of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951600.341965, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__account_report`", "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__account_report') }}\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n {{ ad_reporting_persist_pass_through_columns(pass_through_variable='ad_reporting__account_passthrough_metrics', transform = 'sum', alias_fields=['conversions', 'conversions_value']) }}\n\n from base\n {{ dbt_utils.group_by(5) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "int_ad_reporting__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.ad_reporting_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__account_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__account_report.sql", "compiled": true, "compiled_code": "\n\n\nwith __dbt__cte__int_ad_reporting__account_report as (\n\n\n\nwith\n\n\nfacebook_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__account_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__account_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__account_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__organization_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_value_in_local_currency as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__account_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__advertiser_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as string) as platform,\n\n cast(ad_account_id as string) as account_id\n\n \n ,cast(ad_account_name as string) as account_name\n\n \n ,cast(swipes as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_purchases_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__account_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversion as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversion_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__advertiser_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_sale_amount as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__account_report`\n\n),\n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__account_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(null as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__account_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n), base as (\n\n select *\n from __dbt__cte__int_ad_reporting__account_report\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n \n\n\n \n \n , sum(conversions_c) \n as conversions_c\n \n \n , sum(videos) \n as videos\n \n\n\n\n\n from base\n group by 1,2,3,4,5\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.ad_reporting.int_ad_reporting__account_report", "sql": " __dbt__cte__int_ad_reporting__account_report as (\n\n\n\nwith\n\n\nfacebook_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__account_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__account_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__account_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__organization_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_value_in_local_currency as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__account_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__advertiser_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as string) as platform,\n\n cast(ad_account_id as string) as account_id\n\n \n ,cast(ad_account_name as string) as account_name\n\n \n ,cast(swipes as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_purchases_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__account_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversion as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversion_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__advertiser_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_sale_amount as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__account_report`\n\n),\n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__account_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(null as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__account_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.ad_reporting__ad_group_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "ad_reporting__ad_group_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__ad_group_report.sql", "original_file_path": "models/ad_reporting__ad_group_report.sql", "unique_id": "model.ad_reporting.ad_reporting__ad_group_report", "fqn": ["ad_reporting", "ad_reporting__ad_group_report"], "alias": "ad_reporting__ad_group_report", "checksum": {"name": "sha256", "checksum": "5c0b5972fa79e21e67f7d5d0ff510424b54604dc214e1b978d22bc45b6b5b51d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents daily metrics by ad group, campaign and account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID representing the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The count of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The monetary value of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951600.342575, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__ad_group_report`", "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__ad_group_report') }}\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n {{ ad_reporting_persist_pass_through_columns(pass_through_variable='ad_reporting__ad_group_passthrough_metrics', transform = 'sum', alias_fields=['conversions', 'conversions_value']) }}\n\n from base\n {{ dbt_utils.group_by(9) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "int_ad_reporting__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.ad_reporting_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__ad_group_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__ad_group_report.sql", "compiled": true, "compiled_code": "\n\n\nwith __dbt__cte__int_ad_reporting__ad_group_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__ad_group_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__ad_group_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__ad_group_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as ad_group_id\n\n \n ,cast(campaign_name as string) as ad_group_name\n\n \n ,cast(campaign_group_id as string) as campaign_id\n\n \n ,cast(campaign_group_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_value_in_local_currency as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__campaign_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_set_id as string) as ad_group_id\n\n \n ,cast(ad_set_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__ad_set_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__ad_group_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as string) as platform,\n\n cast(ad_account_id as string) as account_id\n\n \n ,cast(ad_account_name as string) as account_name\n\n \n ,cast(ad_squad_id as string) as ad_group_id\n\n \n ,cast(ad_squad_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(swipes as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_purchases_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__ad_squad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversion as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversion_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__ad_group_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(line_item_id as string) as ad_group_id\n\n \n ,cast(line_item_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_sale_amount as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__line_item_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__ad_group_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(null as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__ad_group_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n), base as (\n\n select *\n from __dbt__cte__int_ad_reporting__ad_group_report\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n \n\n\n \n \n , sum(conversions_c) \n as conversions_c\n \n \n , sum(videos) \n as videos\n \n\n\n\n\n from base\n group by 1,2,3,4,5,6,7,8,9\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.ad_reporting.int_ad_reporting__ad_group_report", "sql": " __dbt__cte__int_ad_reporting__ad_group_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__ad_group_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__ad_group_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__ad_group_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as ad_group_id\n\n \n ,cast(campaign_name as string) as ad_group_name\n\n \n ,cast(campaign_group_id as string) as campaign_id\n\n \n ,cast(campaign_group_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_value_in_local_currency as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__campaign_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_set_id as string) as ad_group_id\n\n \n ,cast(ad_set_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__ad_set_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__ad_group_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as string) as platform,\n\n cast(ad_account_id as string) as account_id\n\n \n ,cast(ad_account_name as string) as account_name\n\n \n ,cast(ad_squad_id as string) as ad_group_id\n\n \n ,cast(ad_squad_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(swipes as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_purchases_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__ad_squad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversion as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversion_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__ad_group_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(line_item_id as string) as ad_group_id\n\n \n ,cast(line_item_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_sale_amount as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__line_item_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__ad_group_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(null as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__ad_group_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.ad_reporting__search_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "ad_reporting__search_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__search_report.sql", "original_file_path": "models/ad_reporting__search_report.sql", "unique_id": "model.ad_reporting.ad_reporting__search_report", "fqn": ["ad_reporting", "ad_reporting__search_report"], "alias": "ad_reporting__search_report", "checksum": {"name": "sha256", "checksum": "a3cd00192d6a714c01cd73ee9d91fc00d0f73ee125e14113422a0f239754c3d0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents daily metrics by search query, ad group, campaign and account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID representing the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID representing the keyword, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The keyword text.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_query": {"name": "search_query", "description": "The search query text.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_match_type": {"name": "search_match_type", "description": "The search match type associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The count of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The monetary value of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951600.3455548, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__search_report`", "raw_code": "{% if var('apple_search_ads__using_search_terms', True) %}\n {% set include_list = ['amazon_ads', 'apple_search_ads', 'microsoft_ads'] %}\n{% else %}\n {% set include_list = ['amazon_ads', 'microsoft_ads'] %}\n{% endif %}\n\n{% set enabled_packages = get_enabled_packages(include=include_list)%}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__search_report') }}\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n keyword_id,\n keyword_text,\n search_query,\n search_match_type,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n {{ ad_reporting_persist_pass_through_columns(pass_through_variable='ad_reporting__search_passthrough_metrics', transform = 'sum', alias_fields=['conversions', 'conversions_value']) }}\n\n from base\n {{ dbt_utils.group_by(13) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "int_ad_reporting__search_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.ad_reporting_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__search_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__search_report.sql", "compiled": true, "compiled_code": "\n \n\n\n\n\n\nwith __dbt__cte__int_ad_reporting__search_report as (\n\n \n\n\n\n\n\nwith \n\nmicrosoft_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(keyword_name as string) as keyword_text\n\n \n ,cast(match_type as string) as search_match_type\n\n \n ,cast(search_query as string) as search_query\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__search_report`\n\n), \n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(keyword_text as string) as keyword_text\n\n \n ,cast(match_type as string) as search_match_type\n\n \n ,cast(search_term_text as string) as search_query\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__search_term_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(keyword_text as string) as keyword_text\n\n \n ,cast(match_type as string) as search_match_type\n\n \n ,cast(search_term as string) as search_query\n\n \n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__search_report`\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from microsoft_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n), base as (\n\n select *\n from __dbt__cte__int_ad_reporting__search_report\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n keyword_id,\n keyword_text,\n search_query,\n search_match_type,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n \n\n\n \n \n , sum(conversions_c) \n as conversions_c\n \n \n , sum(videos) \n as videos\n \n\n\n\n\n from base\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.ad_reporting.int_ad_reporting__search_report", "sql": " __dbt__cte__int_ad_reporting__search_report as (\n\n \n\n\n\n\n\nwith \n\nmicrosoft_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(keyword_name as string) as keyword_text\n\n \n ,cast(match_type as string) as search_match_type\n\n \n ,cast(search_query as string) as search_query\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__search_report`\n\n), \n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(keyword_text as string) as keyword_text\n\n \n ,cast(match_type as string) as search_match_type\n\n \n ,cast(search_term_text as string) as search_query\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__search_term_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(keyword_text as string) as keyword_text\n\n \n ,cast(match_type as string) as search_match_type\n\n \n ,cast(search_term as string) as search_query\n\n \n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__search_report`\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from microsoft_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.ad_reporting__ad_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "ad_reporting__ad_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__ad_report.sql", "original_file_path": "models/ad_reporting__ad_report.sql", "unique_id": "model.ad_reporting.ad_reporting__ad_report", "fqn": ["ad_reporting", "ad_reporting__ad_report"], "alias": "ad_reporting__ad_report", "checksum": {"name": "sha256", "checksum": "e6b430f3190b08e886e772e6e0a64656688e5834eba257d80c1ad1e756bba2bb"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents daily metrics by ad, ad group, campaign and account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID representing the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID representing the ad, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the ad, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The count of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The monetary value of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951600.343264, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__ad_report`", "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__ad_report') }}\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n ad_id,\n ad_name,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n \n {{ ad_reporting_persist_pass_through_columns(pass_through_variable='ad_reporting__ad_passthrough_metrics', transform = 'sum', alias_fields=['conversions', 'conversions_value']) }}\n\n from base\n {{ dbt_utils.group_by(11) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "int_ad_reporting__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.ad_reporting_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__ad_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__ad_report.sql", "compiled": true, "compiled_code": "\n\n\nwith __dbt__cte__int_ad_reporting__ad_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__ad_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__ad_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__ad_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_set_id as string) as ad_group_id\n\n \n ,cast(ad_set_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__ad_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as ad_group_id\n\n \n ,cast(campaign_name as string) as ad_group_name\n\n \n ,cast(creative_id as string) as ad_id\n\n \n ,cast(null as string) as ad_name\n\n \n ,cast(campaign_group_id as string) as campaign_id\n\n \n ,cast(campaign_group_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_value_in_local_currency as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__creative_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(pin_promotion_id as string) as ad_id\n\n \n ,cast(pin_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__pin_promotion_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as string) as platform,\n\n cast(ad_account_id as string) as account_id\n\n \n ,cast(ad_account_name as string) as account_name\n\n \n ,cast(null as string) as ad_group_id\n\n \n ,cast(null as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(null as string) as campaign_id\n\n \n ,cast(null as string) as campaign_name\n\n \n ,cast(swipes as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_purchases_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__ad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversion as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversion_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__ad_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(line_item_id as string) as ad_group_id\n\n \n ,cast(line_item_name as string) as ad_group_name\n\n \n ,cast(promoted_tweet_id as string) as ad_id\n\n \n ,cast(tweet_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_sale_amount as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__promoted_tweet_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(advertised_asin as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__ad_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(null as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__ad_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n), base as (\n\n select *\n from __dbt__cte__int_ad_reporting__ad_report\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n ad_id,\n ad_name,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n \n \n\n\n \n \n , sum(conversions_c) \n as conversions_c\n \n \n , sum(videos) \n as videos\n \n\n\n\n\n from base\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.ad_reporting.int_ad_reporting__ad_report", "sql": " __dbt__cte__int_ad_reporting__ad_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__ad_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__ad_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__ad_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_set_id as string) as ad_group_id\n\n \n ,cast(ad_set_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__ad_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as ad_group_id\n\n \n ,cast(campaign_name as string) as ad_group_name\n\n \n ,cast(creative_id as string) as ad_id\n\n \n ,cast(null as string) as ad_name\n\n \n ,cast(campaign_group_id as string) as campaign_id\n\n \n ,cast(campaign_group_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_value_in_local_currency as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__creative_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(pin_promotion_id as string) as ad_id\n\n \n ,cast(pin_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__pin_promotion_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as string) as platform,\n\n cast(ad_account_id as string) as account_id\n\n \n ,cast(ad_account_name as string) as account_name\n\n \n ,cast(null as string) as ad_group_id\n\n \n ,cast(null as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(null as string) as campaign_id\n\n \n ,cast(null as string) as campaign_name\n\n \n ,cast(swipes as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_purchases_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__ad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversion as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversion_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__ad_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(line_item_id as string) as ad_group_id\n\n \n ,cast(line_item_name as string) as ad_group_name\n\n \n ,cast(promoted_tweet_id as string) as ad_id\n\n \n ,cast(tweet_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_sale_amount as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__promoted_tweet_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(advertised_asin as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__ad_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(null as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__ad_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.ad_reporting__url_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "ad_reporting__url_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__url_report.sql", "original_file_path": "models/ad_reporting__url_report.sql", "unique_id": "model.ad_reporting.ad_reporting__url_report", "fqn": ["ad_reporting", "ad_reporting__url_report"], "alias": "ad_reporting__url_report", "checksum": {"name": "sha256", "checksum": "7c8639ff09989134503970ae52f1be403409a4ebc28fe5abced5f93000c4945f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents daily metrics by URL (and if applicable, URL UTM parameters), ad group, campaign and account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID representing the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base url of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The count of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The monetary value of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951600.346493, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__url_report`", "raw_code": "{% set enabled_packages = get_enabled_packages(exclude=['amazon_ads', 'apple_search_ads']) %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__url_report') }}\n),\n\naggregated as (\n \n select\n source_relation,\n date_day, \n platform,\n account_id, \n account_name, \n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n base_url,\n url_host,\n url_path,\n utm_source,\n utm_medium,\n utm_campaign,\n utm_content,\n utm_term,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n {{ ad_reporting_persist_pass_through_columns(pass_through_variable='ad_reporting__ad_passthrough_metrics', transform = 'sum', alias_fields=['conversions', 'conversions_value']) }}\n\n from base\n {{ dbt_utils.group_by(17) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "int_ad_reporting__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.ad_reporting_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__url_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__url_report.sql", "compiled": true, "compiled_code": "\n\n\nwith __dbt__cte__int_ad_reporting__url_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__url_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__url_report`\n\n),\n\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_set_id as string) as ad_group_id\n\n \n ,cast(ad_set_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__url_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as ad_group_id\n\n \n ,cast(campaign_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_group_id as string) as campaign_id\n\n \n ,cast(campaign_group_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_value_in_local_currency as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__url_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__url_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as string) as platform,\n\n cast(ad_account_id as string) as account_id\n\n \n ,cast(ad_account_name as string) as account_name\n\n \n ,cast(ad_squad_id as string) as ad_group_id\n\n \n ,cast(ad_squad_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(swipes as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_purchases_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__url_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversion as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversion_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__url_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(line_item_id as string) as ad_group_id\n\n \n ,cast(line_item_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_sale_amount as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__url_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(null as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__url_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n), base as (\n\n select *\n from __dbt__cte__int_ad_reporting__url_report\n),\n\naggregated as (\n \n select\n source_relation,\n date_day, \n platform,\n account_id, \n account_name, \n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n base_url,\n url_host,\n url_path,\n utm_source,\n utm_medium,\n utm_campaign,\n utm_content,\n utm_term,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n \n\n\n \n \n , sum(conversions_c) \n as conversions_c\n \n \n , sum(videos) \n as videos\n \n\n\n\n\n from base\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.ad_reporting.int_ad_reporting__url_report", "sql": " __dbt__cte__int_ad_reporting__url_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__url_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__url_report`\n\n),\n\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_set_id as string) as ad_group_id\n\n \n ,cast(ad_set_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__url_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as ad_group_id\n\n \n ,cast(campaign_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_group_id as string) as campaign_id\n\n \n ,cast(campaign_group_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_value_in_local_currency as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__url_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__url_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as string) as platform,\n\n cast(ad_account_id as string) as account_id\n\n \n ,cast(ad_account_name as string) as account_name\n\n \n ,cast(ad_squad_id as string) as ad_group_id\n\n \n ,cast(ad_squad_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(swipes as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_purchases_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__url_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversion as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversion_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__url_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(line_item_id as string) as ad_group_id\n\n \n ,cast(line_item_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_sale_amount as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__url_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(null as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__url_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.ad_reporting__keyword_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "ad_reporting__keyword_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__keyword_report.sql", "original_file_path": "models/ad_reporting__keyword_report.sql", "unique_id": "model.ad_reporting.ad_reporting__keyword_report", "fqn": ["ad_reporting", "ad_reporting__keyword_report"], "alias": "ad_reporting__keyword_report", "checksum": {"name": "sha256", "checksum": "ed5e69f41036f0af7af5037ebe26b0456a3dca8ff9b775c919d18f1c35156bb2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents daily metrics by keyword, ad group, campaign and account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID representing the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID representing the keyword, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The keyword text.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_match_type": {"name": "keyword_match_type", "description": "The keyword match type associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The count of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The monetary value of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951600.3444622, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__keyword_report`", "raw_code": "{% set include_list = ['amazon_ads', 'apple_search_ads', 'google_ads', 'microsoft_ads'] %}\n{% do include_list.append('pinterest_ads') if var('pinterest__using_keywords', true) %}\n{% do include_list.append('twitter_ads') if var('twitter_ads__using_keywords', true) %}\n\n{% set enabled_packages = get_enabled_packages(include=include_list)%}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__keyword_report') }}\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n keyword_id,\n keyword_text,\n keyword_match_type,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n {{ ad_reporting_persist_pass_through_columns(pass_through_variable='ad_reporting__keyword_passthrough_metrics', transform = 'sum', alias_fields=['conversions', 'conversions_value']) }}\n\n from base\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "int_ad_reporting__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.ad_reporting_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__keyword_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__keyword_report.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\nwith __dbt__cte__int_ad_reporting__keyword_report as (\n\n\n\n\n\n\n\nwith\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(match_type as string) as keyword_match_type\n\n \n ,cast(keyword_text as string) as keyword_text\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__keyword_report`\n\n),\n\n\n\ngoogle_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(criterion_id as string) as keyword_id\n\n \n ,cast(keyword_match_type as string) as keyword_match_type\n\n \n ,cast(keyword_text as string) as keyword_text\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__keyword_report`\n\n),\n\n\n\nmicrosoft_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(match_type as string) as keyword_match_type\n\n \n ,cast(keyword_name as string) as keyword_text\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__keyword_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(match_type as string) as keyword_match_type\n\n \n ,cast(keyword_value as string) as keyword_text\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__keyword_report`\n\n),\n\n\n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(match_type as string) as keyword_match_type\n\n \n ,cast(keyword_text as string) as keyword_text\n\n \n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__keyword_report`\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n), base as (\n\n select *\n from __dbt__cte__int_ad_reporting__keyword_report\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n keyword_id,\n keyword_text,\n keyword_match_type,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n \n\n\n \n \n , sum(conversions_c) \n as conversions_c\n \n \n , sum(videos) \n as videos\n \n\n\n\n\n from base\n group by 1,2,3,4,5,6,7,8,9,10,11,12\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.ad_reporting.int_ad_reporting__keyword_report", "sql": " __dbt__cte__int_ad_reporting__keyword_report as (\n\n\n\n\n\n\n\nwith\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(match_type as string) as keyword_match_type\n\n \n ,cast(keyword_text as string) as keyword_text\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__keyword_report`\n\n),\n\n\n\ngoogle_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(criterion_id as string) as keyword_id\n\n \n ,cast(keyword_match_type as string) as keyword_match_type\n\n \n ,cast(keyword_text as string) as keyword_text\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__keyword_report`\n\n),\n\n\n\nmicrosoft_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(match_type as string) as keyword_match_type\n\n \n ,cast(keyword_name as string) as keyword_text\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__keyword_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(match_type as string) as keyword_match_type\n\n \n ,cast(keyword_value as string) as keyword_text\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__keyword_report`\n\n),\n\n\n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(match_type as string) as keyword_match_type\n\n \n ,cast(keyword_text as string) as keyword_text\n\n \n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__keyword_report`\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.metricflow_time_spine": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "metricflow_time_spine", "resource_type": "model", "package_name": "ad_reporting", "path": "semantic_models/metricflow_time_spine.sql", "original_file_path": "models/semantic_models/metricflow_time_spine.sql", "unique_id": "model.ad_reporting.metricflow_time_spine", "fqn": ["ad_reporting", "semantic_models", "metricflow_time_spine"], "alias": "metricflow_time_spine", "checksum": {"name": "sha256", "checksum": "3ef63bfa18fab3a99886837087ab3d7437762f51276881f7100dd0f785a1a2b0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951597.2104902, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`metricflow_time_spine`", "raw_code": "{{ config(enabled=var('ad_reporting__metricflow_time_spine_enabled', True)) }}\nwith \n\ndays as (\n {{ dbt_date.get_base_dates(n_dateparts=365*10, datepart=\"day\") }}\n\n),\n\ncast_to_date as (\n\n select \n cast(date_day as date) as date_day\n \n from days\n\n)\n\nselect * from cast_to_date", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_date.get_base_dates"], "nodes": []}, "compiled_path": "target/compiled/ad_reporting/models/semantic_models/metricflow_time_spine.sql", "compiled": true, "compiled_code": "\nwith \n\ndays as (\n \n with date_spine as\n(\n\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 3651\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n datetime_add(\n cast( \n\n datetime_add(\n cast( cast(timestamp(datetime(current_timestamp(), 'America/Los_Angeles')) as date) as datetime),\n interval -3650 day\n )\n\n as datetime),\n interval (row_number() over (order by 1) - 1) day\n )\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast(\n\n datetime_add(\n cast( cast(timestamp(datetime(current_timestamp(), 'America/Los_Angeles')) as date) as datetime),\n interval 1 day\n )\n\n as date)\n\n)\n\nselect * from filtered\n\n\n\n)\nselect\n cast(d.date_day as timestamp) as date_day\nfrom\n date_spine d\n\n\n\n),\n\ncast_to_date as (\n\n select \n cast(date_day as date) as date_day\n \n from days\n\n)\n\nselect * from cast_to_date", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.int_ad_reporting__campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "int_ad_reporting__campaign_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__campaign_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__campaign_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__campaign_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__campaign_report"], "alias": "int_ad_reporting__campaign_report", "checksum": {"name": "sha256", "checksum": "d54ef05109b2fcfb296112a16b142d911c0456b1c744304d4b9f78803f1fb3cb"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "ephemeral", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951597.23926, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['facebook_ads', 'google_ads', 'microsoft_ads'] %}\n{% if package in enabled_packages %}\n{{ package }} as (\n {{ get_query(\n platform=package,\n report_type='campaign',\n relation=ref(package ~ '__campaign_report')\n ) }}\n),\n{% endif %}\n{% endfor %}\n\n{% if 'apple_search_ads' in enabled_packages %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='campaign', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'clicks': 'taps',\n 'conversions_value': 'null'\n },\n relation=ref('apple_search_ads__campaign_report')\n ) }}\n),\n{% endif %}\n\n{% if 'linkedin_ads' in enabled_packages %}\nlinkedin_ads as (\n\n {{ get_query(\n platform='linkedin_ads', \n report_type='campaign', \n field_mapping={\n 'campaign_id': 'campaign_group_id',\n 'campaign_name': 'campaign_group_name',\n 'spend': 'cost',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_value_in_local_currency'\n },\n relation=ref('linkedin_ads__campaign_group_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='campaign', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_value'\n },\n relation=ref('pinterest_ads__campaign_report')\n ) }}\n),\n{% endif %}\n\n{% if 'snapchat_ads' in enabled_packages %}\nsnapchat_ads as (\n\n {{ get_query(\n platform='snapchat_ads', \n report_type='campaign', \n field_mapping={\n 'account_id': 'ad_account_id',\n 'account_name': 'ad_account_name',\n 'clicks':'swipes',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_purchases_value'\n },\n relation=ref('snapchat_ads__campaign_report')\n ) }}\n), \n{% endif %}\n\n{% if 'tiktok_ads' in enabled_packages %}\ntiktok_ads as (\n\n {{ get_query(\n platform='tiktok_ads', \n report_type='campaign', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'conversion',\n 'conversions_value': 'total_conversion_value'\n },\n relation=ref('tiktok_ads__campaign_report')\n ) }}\n), \n{% endif %}\n\n{% if 'twitter_ads' in enabled_packages %}\ntwitter_ads as (\n\n {{ get_query(\n platform='twitter_ads', \n report_type='campaign', \n field_mapping={\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_sale_amount'\n },\n relation=ref('twitter_ads__campaign_report')\n ) }}\n),\n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='campaign', \n field_mapping={\n 'spend': 'cost',\n 'conversions': 'purchases_30_d',\n 'conversions_value': 'sales_30_d'\n },\n relation=ref('amazon_ads__campaign_report')\n ) }}\n), \n{% endif %}\n\n{% if 'reddit_ads' in enabled_packages %}\nreddit_ads as (\n\n {{ get_query(\n platform='reddit_ads', \n report_type='campaign', \n field_mapping={\n 'account_name': 'null',\n 'conversions_value': 'total_value'\n },\n relation=ref('reddit_ads__campaign_report')\n ) }}\n),\n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [{"name": "facebook_ads__campaign_report", "package": null, "version": null}, {"name": "google_ads__campaign_report", "package": null, "version": null}, {"name": "microsoft_ads__campaign_report", "package": null, "version": null}, {"name": "apple_search_ads__campaign_report", "package": null, "version": null}, {"name": "linkedin_ads__campaign_group_report", "package": null, "version": null}, {"name": "pinterest_ads__campaign_report", "package": null, "version": null}, {"name": "snapchat_ads__campaign_report", "package": null, "version": null}, {"name": "tiktok_ads__campaign_report", "package": null, "version": null}, {"name": "twitter_ads__campaign_report", "package": null, "version": null}, {"name": "amazon_ads__campaign_report", "package": null, "version": null}, {"name": "reddit_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.facebook_ads.facebook_ads__campaign_report", "model.google_ads.google_ads__campaign_report", "model.microsoft_ads.microsoft_ads__campaign_report", "model.apple_search_ads.apple_search_ads__campaign_report", "model.linkedin.linkedin_ads__campaign_group_report", "model.pinterest.pinterest_ads__campaign_report", "model.snapchat_ads.snapchat_ads__campaign_report", "model.tiktok_ads.tiktok_ads__campaign_report", "model.twitter_ads.twitter_ads__campaign_report", "model.amazon_ads.amazon_ads__campaign_report", "model.reddit_ads.reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__campaign_report.sql", "compiled": true, "compiled_code": "\n\n\nwith\n\n\nfacebook_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__campaign_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__campaign_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__campaign_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__campaign_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_group_id as string) as campaign_id\n\n \n ,cast(campaign_group_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_value_in_local_currency as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__campaign_group_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__campaign_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as string) as platform,\n\n cast(ad_account_id as string) as account_id\n\n \n ,cast(ad_account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(swipes as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_purchases_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__campaign_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversion as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversion_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__campaign_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_sale_amount as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__campaign_report`\n\n),\n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__campaign_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(null as string) as account_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__campaign_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.int_ad_reporting__keyword_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "int_ad_reporting__keyword_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__keyword_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__keyword_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__keyword_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__keyword_report"], "alias": "int_ad_reporting__keyword_report", "checksum": {"name": "sha256", "checksum": "10d15fa0e0b3d15dff46fa72e0ccea0b0e7261b67f50b9bcf8581e1a8174a63a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "ephemeral", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951597.2987819, "relation_name": null, "raw_code": "{% set include_list = ['amazon_ads', 'apple_search_ads', 'google_ads', 'microsoft_ads'] %}\n{% do include_list.append('pinterest_ads') if var('pinterest__using_keywords', true) %}\n{% do include_list.append('twitter_ads') if var('twitter_ads__using_keywords', true) %}\n\n{% set enabled_packages = get_enabled_packages(include=include_list)%}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% if 'apple_search_ads' in enabled_packages %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='keyword', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'keyword_match_type': 'match_type',\n 'clicks': 'taps',\n 'conversions_value': 'null'\n },\n relation=ref('apple_search_ads__keyword_report')\n ) }}\n),\n{% endif %}\n\n{% if 'google_ads' in enabled_packages %}\ngoogle_ads as (\n\n {{ get_query(\n platform='google_ads', \n report_type='keyword', \n field_mapping={\n 'keyword_id': 'criterion_id',\n },\n relation=ref('google_ads__keyword_report')\n ) }}\n),\n{% endif %}\n\n{% if 'microsoft_ads' in enabled_packages %}\nmicrosoft_ads as (\n\n {{ get_query(\n platform='microsoft_ads', \n report_type='keyword', \n field_mapping={\n 'keyword_text': 'keyword_name',\n 'keyword_match_type': 'match_type'\n },\n relation=ref('microsoft_ads__keyword_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages and var('pinterest__using_keywords', True) %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='keyword', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'keyword_text': 'keyword_value',\n 'keyword_match_type': 'match_type',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_value'\n },\n relation=ref('pinterest_ads__keyword_report')\n ) }}\n),\n{% endif %}\n\n{% if 'twitter_ads' in enabled_packages and var('twitter_ads__using_keywords', True) %}\ntwitter_ads as (\n\n {{ get_query(\n platform='twitter_ads', \n report_type='keyword', \n field_mapping={\n 'ad_group_id': 'line_item_id',\n 'ad_group_name': 'line_item_name',\n 'keyword_id': 'keyword_id',\n 'keyword_text': 'keyword',\n 'keyword_match_type': 'null',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_sale_amount'\n },\n relation=ref('twitter_ads__keyword_report')\n ) }}\n), \n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='keyword', \n field_mapping={\n 'spend': 'cost',\n 'keyword_match_type': 'match_type',\n 'conversions': 'purchases_30_d',\n 'conversions_value': 'sales_30_d'\n },\n relation=ref('amazon_ads__keyword_report')\n ) }}\n), \n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [{"name": "apple_search_ads__keyword_report", "package": null, "version": null}, {"name": "google_ads__keyword_report", "package": null, "version": null}, {"name": "microsoft_ads__keyword_report", "package": null, "version": null}, {"name": "pinterest_ads__keyword_report", "package": null, "version": null}, {"name": "amazon_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.apple_search_ads.apple_search_ads__keyword_report", "model.google_ads.google_ads__keyword_report", "model.microsoft_ads.microsoft_ads__keyword_report", "model.pinterest.pinterest_ads__keyword_report", "model.amazon_ads.amazon_ads__keyword_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__keyword_report.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\nwith\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(match_type as string) as keyword_match_type\n\n \n ,cast(keyword_text as string) as keyword_text\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__keyword_report`\n\n),\n\n\n\ngoogle_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(criterion_id as string) as keyword_id\n\n \n ,cast(keyword_match_type as string) as keyword_match_type\n\n \n ,cast(keyword_text as string) as keyword_text\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__keyword_report`\n\n),\n\n\n\nmicrosoft_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(match_type as string) as keyword_match_type\n\n \n ,cast(keyword_name as string) as keyword_text\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__keyword_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(match_type as string) as keyword_match_type\n\n \n ,cast(keyword_value as string) as keyword_text\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__keyword_report`\n\n),\n\n\n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(match_type as string) as keyword_match_type\n\n \n ,cast(keyword_text as string) as keyword_text\n\n \n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__keyword_report`\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.int_ad_reporting__ad_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "int_ad_reporting__ad_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__ad_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__ad_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__ad_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__ad_report"], "alias": "int_ad_reporting__ad_report", "checksum": {"name": "sha256", "checksum": "5a374047e32274dbbd8ee80949dfb38885d7e51a3ee5a46637a9a43077c9480a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "ephemeral", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951597.321337, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['google_ads', 'microsoft_ads'] %}\n{% if package in enabled_packages %}\n{{ package }} as (\n {{ get_query(\n platform=package,\n report_type='ad',\n relation=ref(package ~ '__ad_report')\n ) }}\n),\n{% endif %}\n{% endfor %}\n\n{% if 'apple_search_ads' in enabled_packages %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='ad', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'clicks': 'taps',\n 'conversions_value': 'null'\n },\n relation=ref('apple_search_ads__ad_report')\n ) }}\n),\n{% endif %}\n\n{% if 'facebook_ads' in enabled_packages %}\nfacebook_ads as (\n\n {{ get_query(\n platform='facebook_ads', \n report_type='ad', \n field_mapping={\n 'ad_group_id': 'ad_set_id',\n 'ad_group_name': 'ad_set_name'\n },\n relation=ref('facebook_ads__ad_report')\n ) }}\n),\n{% endif %}\n\n{% if 'linkedin_ads' in enabled_packages %}\nlinkedin_ads as (\n\n {{ get_query(\n platform='linkedin_ads', \n report_type='ad', \n field_mapping={\n 'campaign_id': 'campaign_group_id',\n 'campaign_name': 'campaign_group_name',\n 'ad_group_id': 'campaign_id',\n 'ad_group_name': 'campaign_name',\n 'ad_id': 'creative_id',\n 'ad_name': 'null',\n 'spend': 'cost',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_value_in_local_currency'\n },\n relation=ref('linkedin_ads__creative_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='ad', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'ad_id': 'pin_promotion_id',\n 'ad_name': 'pin_name',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_value'\n },\n relation=ref('pinterest_ads__pin_promotion_report')\n ) }}\n),\n{% endif %}\n\n{% if 'snapchat_ads' in enabled_packages %}\nsnapchat_ads as (\n\n {{ get_query(\n platform='snapchat_ads', \n report_type='ad', \n field_mapping={\n 'account_id': 'ad_account_id',\n 'account_name': 'ad_account_name',\n 'campaign_id': 'null',\n 'campaign_name': 'null',\n 'ad_group_id': 'null',\n 'ad_group_name': 'null',\n 'clicks':'swipes',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_purchases_value'\n },\n relation=ref('snapchat_ads__ad_report')\n ) }}\n), \n{% endif %}\n\n{% if 'tiktok_ads' in enabled_packages %}\ntiktok_ads as (\n\n {{ get_query(\n platform='tiktok_ads', \n report_type='ad', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'conversion',\n 'conversions_value': 'total_conversion_value'\n },\n relation=ref('tiktok_ads__ad_report')\n ) }}\n), \n{% endif %}\n\n{% if 'twitter_ads' in enabled_packages %}\ntwitter_ads as (\n\n {{ get_query(\n platform='twitter_ads', \n report_type='ad', \n field_mapping={\n 'ad_group_id': 'line_item_id',\n 'ad_group_name': 'line_item_name',\n 'ad_id': 'promoted_tweet_id',\n 'ad_name': 'tweet_name',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_sale_amount'\n },\n relation=ref('twitter_ads__promoted_tweet_report')\n ) }}\n), \n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='ad', \n field_mapping={\n 'spend': 'cost',\n 'ad_name': 'advertised_asin',\n 'conversions': 'purchases_30_d',\n 'conversions_value': 'sales_30_d'\n },\n relation=ref('amazon_ads__ad_report')\n ) }}\n), \n{% endif %}\n\n{% if 'reddit_ads' in enabled_packages %}\nreddit_ads as (\n\n {{ get_query(\n platform='reddit_ads', \n report_type='ad', \n field_mapping={\n 'account_name': 'null',\n 'conversions_value': 'total_value'\n },\n relation=ref('reddit_ads__ad_report')\n ) }}\n),\n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [{"name": "google_ads__ad_report", "package": null, "version": null}, {"name": "microsoft_ads__ad_report", "package": null, "version": null}, {"name": "apple_search_ads__ad_report", "package": null, "version": null}, {"name": "facebook_ads__ad_report", "package": null, "version": null}, {"name": "linkedin_ads__creative_report", "package": null, "version": null}, {"name": "pinterest_ads__pin_promotion_report", "package": null, "version": null}, {"name": "snapchat_ads__ad_report", "package": null, "version": null}, {"name": "tiktok_ads__ad_report", "package": null, "version": null}, {"name": "twitter_ads__promoted_tweet_report", "package": null, "version": null}, {"name": "amazon_ads__ad_report", "package": null, "version": null}, {"name": "reddit_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.google_ads.google_ads__ad_report", "model.microsoft_ads.microsoft_ads__ad_report", "model.apple_search_ads.apple_search_ads__ad_report", "model.facebook_ads.facebook_ads__ad_report", "model.linkedin.linkedin_ads__creative_report", "model.pinterest.pinterest_ads__pin_promotion_report", "model.snapchat_ads.snapchat_ads__ad_report", "model.tiktok_ads.tiktok_ads__ad_report", "model.twitter_ads.twitter_ads__promoted_tweet_report", "model.amazon_ads.amazon_ads__ad_report", "model.reddit_ads.reddit_ads__ad_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__ad_report.sql", "compiled": true, "compiled_code": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__ad_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__ad_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__ad_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_set_id as string) as ad_group_id\n\n \n ,cast(ad_set_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__ad_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as ad_group_id\n\n \n ,cast(campaign_name as string) as ad_group_name\n\n \n ,cast(creative_id as string) as ad_id\n\n \n ,cast(null as string) as ad_name\n\n \n ,cast(campaign_group_id as string) as campaign_id\n\n \n ,cast(campaign_group_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_value_in_local_currency as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__creative_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(pin_promotion_id as string) as ad_id\n\n \n ,cast(pin_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__pin_promotion_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as string) as platform,\n\n cast(ad_account_id as string) as account_id\n\n \n ,cast(ad_account_name as string) as account_name\n\n \n ,cast(null as string) as ad_group_id\n\n \n ,cast(null as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(null as string) as campaign_id\n\n \n ,cast(null as string) as campaign_name\n\n \n ,cast(swipes as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_purchases_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__ad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversion as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversion_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__ad_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(line_item_id as string) as ad_group_id\n\n \n ,cast(line_item_name as string) as ad_group_name\n\n \n ,cast(promoted_tweet_id as string) as ad_id\n\n \n ,cast(tweet_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_sale_amount as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__promoted_tweet_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(advertised_asin as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__ad_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(null as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(ad_id as string) as ad_id\n\n \n ,cast(ad_name as string) as ad_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__ad_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.int_ad_reporting__account_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "int_ad_reporting__account_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__account_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__account_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__account_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__account_report"], "alias": "int_ad_reporting__account_report", "checksum": {"name": "sha256", "checksum": "386b13517d9ce9596b528d434b9aefe60c8f975cce039e6d61533e0f9e815f44"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "ephemeral", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951597.424672, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['facebook_ads', 'google_ads', 'microsoft_ads'] %}\n{% if package in enabled_packages %}\n{{ package }} as (\n {{ get_query(\n platform=package,\n report_type='account',\n relation=ref(package ~ '__account_report')\n ) }}\n),\n{% endif %}\n{% endfor %}\n\n{% if 'apple_search_ads' in enabled_packages %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='account', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'clicks': 'taps',\n 'conversions_value': 'null'\n },\n relation=ref('apple_search_ads__organization_report')\n ) }}\n),\n{% endif %}\n\n{% if 'linkedin_ads' in enabled_packages %}\nlinkedin_ads as (\n\n {{ get_query(\n platform='linkedin_ads', \n report_type='account', \n field_mapping={\n 'spend': 'cost',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_value_in_local_currency'\n },\n relation=ref('linkedin_ads__account_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='account', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_value'\n },\n relation=ref('pinterest_ads__advertiser_report')\n ) }}\n),\n{% endif %}\n\n{% if 'snapchat_ads' in enabled_packages %}\nsnapchat_ads as (\n\n {{ get_query(\n platform='snapchat_ads', \n report_type='account', \n field_mapping={\n 'account_id': 'ad_account_id',\n 'account_name': 'ad_account_name',\n 'clicks':'swipes',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_purchases_value'\n },\n relation=ref('snapchat_ads__account_report')\n ) }}\n), \n{% endif %}\n\n{% if 'tiktok_ads' in enabled_packages %}\ntiktok_ads as (\n\n {{ get_query(\n platform='tiktok_ads', \n report_type='account', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'conversion',\n 'conversions_value': 'total_conversion_value'\n },\n relation=ref('tiktok_ads__advertiser_report')\n ) }}\n), \n{% endif %}\n\n{% if 'twitter_ads' in enabled_packages %}\ntwitter_ads as (\n\n {{ get_query(\n platform='twitter_ads', \n report_type='account', \n field_mapping={\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_sale_amount'\n },\n relation=ref('twitter_ads__account_report')\n ) }}\n),\n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='account', \n field_mapping={\n 'spend': 'cost',\n 'conversions': 'purchases_30_d',\n 'conversions_value': 'sales_30_d'\n },\n relation=ref('amazon_ads__account_report')\n ) }}\n), \n{% endif %}\n\n{% if 'reddit_ads' in enabled_packages %}\nreddit_ads as (\n\n {{ get_query(\n platform='reddit_ads', \n report_type='account', \n field_mapping={\n 'account_name': 'null',\n 'conversions_value': 'total_value'\n },\n relation=ref('reddit_ads__account_report')\n ) }}\n),\n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [{"name": "facebook_ads__account_report", "package": null, "version": null}, {"name": "google_ads__account_report", "package": null, "version": null}, {"name": "microsoft_ads__account_report", "package": null, "version": null}, {"name": "apple_search_ads__organization_report", "package": null, "version": null}, {"name": "linkedin_ads__account_report", "package": null, "version": null}, {"name": "pinterest_ads__advertiser_report", "package": null, "version": null}, {"name": "snapchat_ads__account_report", "package": null, "version": null}, {"name": "tiktok_ads__advertiser_report", "package": null, "version": null}, {"name": "twitter_ads__account_report", "package": null, "version": null}, {"name": "amazon_ads__account_report", "package": null, "version": null}, {"name": "reddit_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.facebook_ads.facebook_ads__account_report", "model.google_ads.google_ads__account_report", "model.microsoft_ads.microsoft_ads__account_report", "model.apple_search_ads.apple_search_ads__organization_report", "model.linkedin.linkedin_ads__account_report", "model.pinterest.pinterest_ads__advertiser_report", "model.snapchat_ads.snapchat_ads__account_report", "model.tiktok_ads.tiktok_ads__advertiser_report", "model.twitter_ads.twitter_ads__account_report", "model.amazon_ads.amazon_ads__account_report", "model.reddit_ads.reddit_ads__account_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__account_report.sql", "compiled": true, "compiled_code": "\n\n\nwith\n\n\nfacebook_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__account_report`\n\n),\n\n\n\ngoogle_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__account_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__account_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__organization_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_value_in_local_currency as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__account_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__advertiser_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as string) as platform,\n\n cast(ad_account_id as string) as account_id\n\n \n ,cast(ad_account_name as string) as account_name\n\n \n ,cast(swipes as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_purchases_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__account_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversion as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversion_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__advertiser_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_sale_amount as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__account_report`\n\n),\n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__account_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(null as string) as account_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__account_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.int_ad_reporting__url_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "int_ad_reporting__url_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__url_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__url_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__url_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__url_report"], "alias": "int_ad_reporting__url_report", "checksum": {"name": "sha256", "checksum": "c63f2f7ced76a775e88dcbd14c6a40b18cfd4597438584de7e9e93353f635fc7"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "ephemeral", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951597.451212, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages(exclude=['amazon_ads', 'apple_search_ads']) %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['google_ads', 'microsoft_ads'] %}\n{% if package in enabled_packages %}\n{{ package }} as (\n {{ get_query(\n platform=package,\n report_type='url',\n relation=ref(package ~ '__url_report')\n ) }}\n),\n{% endif %}\n{% endfor %}\n\n{% if 'facebook_ads' in enabled_packages %}\nfacebook_ads as (\n\n {{ get_query(\n platform='facebook_ads', \n report_type='url', \n field_mapping={\n 'ad_group_id': 'ad_set_id',\n 'ad_group_name': 'ad_set_name'\n },\n relation=ref('facebook_ads__url_report')\n ) }}\n),\n{% endif %}\n\n{% if 'linkedin_ads' in enabled_packages %}\nlinkedin_ads as (\n\n {{ get_query(\n platform='linkedin_ads', \n report_type='url', \n field_mapping={\n 'campaign_id': 'campaign_group_id',\n 'campaign_name': 'campaign_group_name',\n 'ad_group_id': 'campaign_id',\n 'ad_group_name': 'campaign_name',\n 'spend': 'cost',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_value_in_local_currency'\n },\n relation=ref('linkedin_ads__url_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='url', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_value'\n },\n relation=ref('pinterest_ads__url_report')\n ) }}\n),\n{% endif %}\n\n{% if 'snapchat_ads' in enabled_packages %}\nsnapchat_ads as (\n\n {{ get_query(\n platform='snapchat_ads', \n report_type='url', \n field_mapping={\n 'account_id': 'ad_account_id',\n 'account_name': 'ad_account_name',\n 'ad_group_id': 'ad_squad_id',\n 'ad_group_name': 'ad_squad_name',\n 'clicks':'swipes',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_purchases_value'\n },\n relation=ref('snapchat_ads__url_report')\n ) }}\n), \n{% endif %}\n\n{% if 'tiktok_ads' in enabled_packages %}\ntiktok_ads as (\n\n {{ get_query(\n platform='tiktok_ads', \n report_type='url', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'conversion',\n 'conversions_value': 'total_conversion_value'\n },\n relation=ref('tiktok_ads__url_report')\n ) }}\n), \n{% endif %}\n\n{% if 'twitter_ads' in enabled_packages %}\ntwitter_ads as (\n\n {{ get_query(\n platform='twitter_ads', \n report_type='url', \n field_mapping={\n 'ad_group_id': 'line_item_id',\n 'ad_group_name': 'line_item_name',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_sale_amount'\n },\n relation=ref('twitter_ads__url_report')\n ) }}\n), \n{% endif %}\n\n{% if 'reddit_ads' in enabled_packages %}\nreddit_ads as (\n\n {{ get_query(\n platform='reddit_ads', \n report_type='url', \n field_mapping={\n 'account_name': 'null',\n 'conversions_value': 'total_value'\n },\n relation=ref('reddit_ads__url_report')\n ) }}\n),\n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [{"name": "google_ads__url_report", "package": null, "version": null}, {"name": "microsoft_ads__url_report", "package": null, "version": null}, {"name": "facebook_ads__url_report", "package": null, "version": null}, {"name": "linkedin_ads__url_report", "package": null, "version": null}, {"name": "pinterest_ads__url_report", "package": null, "version": null}, {"name": "snapchat_ads__url_report", "package": null, "version": null}, {"name": "tiktok_ads__url_report", "package": null, "version": null}, {"name": "twitter_ads__url_report", "package": null, "version": null}, {"name": "reddit_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.google_ads.google_ads__url_report", "model.microsoft_ads.microsoft_ads__url_report", "model.facebook_ads.facebook_ads__url_report", "model.linkedin.linkedin_ads__url_report", "model.pinterest.pinterest_ads__url_report", "model.snapchat_ads.snapchat_ads__url_report", "model.tiktok_ads.tiktok_ads__url_report", "model.twitter_ads.twitter_ads__url_report", "model.reddit_ads.reddit_ads__url_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__url_report.sql", "compiled": true, "compiled_code": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__url_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__url_report`\n\n),\n\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_set_id as string) as ad_group_id\n\n \n ,cast(ad_set_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__url_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as ad_group_id\n\n \n ,cast(campaign_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_group_id as string) as campaign_id\n\n \n ,cast(campaign_group_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_value_in_local_currency as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__url_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__url_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as string) as platform,\n\n cast(ad_account_id as string) as account_id\n\n \n ,cast(ad_account_name as string) as account_name\n\n \n ,cast(ad_squad_id as string) as ad_group_id\n\n \n ,cast(ad_squad_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(swipes as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_purchases_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__url_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversion as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversion_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__url_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(line_item_id as string) as ad_group_id\n\n \n ,cast(line_item_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_sale_amount as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__url_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(null as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(base_url as string) as base_url\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as string) as url_host\n\n \n ,cast(url_path as string) as url_path\n\n \n ,cast(utm_campaign as string) as utm_campaign\n\n \n ,cast(utm_content as string) as utm_content\n\n \n ,cast(utm_medium as string) as utm_medium\n\n \n ,cast(utm_source as string) as utm_source\n\n \n ,cast(utm_term as string) as utm_term\n\n \n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__url_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.int_ad_reporting__search_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "int_ad_reporting__search_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__search_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__search_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__search_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__search_report"], "alias": "int_ad_reporting__search_report", "checksum": {"name": "sha256", "checksum": "89d080b46075eaae86954ae399972727c202e3620f34445d71ef8f3519a5c272"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "ephemeral", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951597.484899, "relation_name": null, "raw_code": "{% if var('apple_search_ads__using_search_terms', True) %}\n {% set include_list = ['amazon_ads', 'apple_search_ads', 'microsoft_ads'] %}\n{% else %}\n {% set include_list = ['amazon_ads', 'microsoft_ads'] %}\n{% endif %}\n\n{% set enabled_packages = get_enabled_packages(include=include_list)%}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith \n{% if 'microsoft_ads' in enabled_packages %}\nmicrosoft_ads as (\n\n {{ get_query(\n platform='microsoft_ads', \n report_type='search', \n field_mapping={\n 'keyword_text': 'keyword_name',\n 'search_match_type': 'match_type'\n },\n relation=ref('microsoft_ads__search_report')\n ) }}\n), \n{% endif %}\n\n{% if 'apple_search_ads' in enabled_packages and var('apple_search_ads__using_search_terms', True) %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='search', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'search_match_type': 'match_type',\n 'search_query': 'search_term_text',\n 'clicks': 'taps',\n 'conversions_value': 'null'\n },\n relation=ref('apple_search_ads__search_term_report')\n ) }}\n), \n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='search', \n field_mapping={\n 'spend': 'cost',\n 'search_match_type': 'match_type',\n 'search_query': 'search_term',\n 'conversions': 'purchases_30_d',\n 'conversions_value': 'sales_30_d'\n },\n relation=ref('amazon_ads__search_report')\n ) }}\n), \n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [{"name": "microsoft_ads__search_report", "package": null, "version": null}, {"name": "apple_search_ads__search_term_report", "package": null, "version": null}, {"name": "amazon_ads__search_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.microsoft_ads.microsoft_ads__search_report", "model.apple_search_ads.apple_search_ads__search_term_report", "model.amazon_ads.amazon_ads__search_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__search_report.sql", "compiled": true, "compiled_code": "\n \n\n\n\n\n\nwith \n\nmicrosoft_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(keyword_name as string) as keyword_text\n\n \n ,cast(match_type as string) as search_match_type\n\n \n ,cast(search_query as string) as search_query\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__search_report`\n\n), \n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(keyword_text as string) as keyword_text\n\n \n ,cast(match_type as string) as search_match_type\n\n \n ,cast(search_term_text as string) as search_query\n\n \n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__search_term_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as string) as keyword_id\n\n \n ,cast(keyword_text as string) as keyword_text\n\n \n ,cast(match_type as string) as search_match_type\n\n \n ,cast(search_term as string) as search_query\n\n \n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__search_report`\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from microsoft_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.int_ad_reporting__ad_group_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "int_ad_reporting__ad_group_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__ad_group_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__ad_group_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__ad_group_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__ad_group_report"], "alias": "int_ad_reporting__ad_group_report", "checksum": {"name": "sha256", "checksum": "85c938fe91856abac43c8f055fda63c30d4242f9ec5f14ffef6a8eccc1c2ab52"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "ephemeral", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951597.49925, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['google_ads', 'microsoft_ads'] %}\n{% if package in enabled_packages %}\n{{ package }} as (\n {{ get_query(\n platform=package,\n report_type='ad_group',\n relation=ref(package ~ '__ad_group_report')\n ) }}\n),\n{% endif %}\n{% endfor %}\n\n{% if 'apple_search_ads' in enabled_packages %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='ad_group', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'clicks': 'taps',\n 'conversions_value': 'null'\n },\n relation=ref('apple_search_ads__ad_group_report')\n ) }}\n),\n{% endif %}\n\n{% if 'linkedin_ads' in enabled_packages %}\nlinkedin_ads as (\n\n {{ get_query(\n platform='linkedin_ads', \n report_type='ad_group', \n field_mapping={\n 'campaign_id': 'campaign_group_id',\n 'campaign_name': 'campaign_group_name',\n 'ad_group_id': 'campaign_id',\n 'ad_group_name': 'campaign_name',\n 'spend': 'cost',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_value_in_local_currency'\n },\n relation=ref('linkedin_ads__campaign_report')\n ) }}\n),\n{% endif %}\n\n{% if 'facebook_ads' in enabled_packages %}\nfacebook_ads as (\n\n {{ get_query(\n platform='facebook_ads', \n report_type='ad_group', \n field_mapping={\n 'ad_group_id': 'ad_set_id',\n 'ad_group_name': 'ad_set_name'\n },\n relation=ref('facebook_ads__ad_set_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='ad_group', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_value'\n },\n relation=ref('pinterest_ads__ad_group_report')\n ) }}\n),\n{% endif %}\n\n{% if 'snapchat_ads' in enabled_packages %}\nsnapchat_ads as (\n\n {{ get_query(\n platform='snapchat_ads', \n report_type='ad_group', \n field_mapping={\n 'account_id': 'ad_account_id',\n 'account_name': 'ad_account_name',\n 'ad_group_id': 'ad_squad_id',\n 'ad_group_name': 'ad_squad_name',\n 'clicks':'swipes',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_purchases_value'\n },\n relation=ref('snapchat_ads__ad_squad_report')\n ) }}\n), \n{% endif %}\n\n{% if 'tiktok_ads' in enabled_packages %}\ntiktok_ads as (\n\n {{ get_query(\n platform='tiktok_ads', \n report_type='ad_group', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'conversion',\n 'conversions_value': 'total_conversion_value'\n },\n relation=ref('tiktok_ads__ad_group_report')\n ) }}\n), \n{% endif %}\n\n{% if 'twitter_ads' in enabled_packages %}\ntwitter_ads as (\n\n {{ get_query(\n platform='twitter_ads', \n report_type='ad_group', \n field_mapping={\n 'ad_group_id': 'line_item_id',\n 'ad_group_name': 'line_item_name',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_sale_amount'\n },\n relation=ref('twitter_ads__line_item_report')\n ) }}\n), \n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='ad_group', \n field_mapping={\n 'spend': 'cost',\n 'conversions': 'purchases_30_d',\n 'conversions_value': 'sales_30_d'\n },\n relation=ref('amazon_ads__ad_group_report')\n ) }}\n), \n{% endif %}\n\n{% if 'reddit_ads' in enabled_packages %}\nreddit_ads as (\n\n {{ get_query(\n platform='reddit_ads', \n report_type='ad_group', \n field_mapping={\n 'account_name': 'null',\n 'conversions_value': 'total_value'\n },\n relation=ref('reddit_ads__ad_group_report')\n ) }}\n),\n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [{"name": "google_ads__ad_group_report", "package": null, "version": null}, {"name": "microsoft_ads__ad_group_report", "package": null, "version": null}, {"name": "apple_search_ads__ad_group_report", "package": null, "version": null}, {"name": "linkedin_ads__campaign_report", "package": null, "version": null}, {"name": "facebook_ads__ad_set_report", "package": null, "version": null}, {"name": "pinterest_ads__ad_group_report", "package": null, "version": null}, {"name": "snapchat_ads__ad_squad_report", "package": null, "version": null}, {"name": "tiktok_ads__ad_group_report", "package": null, "version": null}, {"name": "twitter_ads__line_item_report", "package": null, "version": null}, {"name": "amazon_ads__ad_group_report", "package": null, "version": null}, {"name": "reddit_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.google_ads.google_ads__ad_group_report", "model.microsoft_ads.microsoft_ads__ad_group_report", "model.apple_search_ads.apple_search_ads__ad_group_report", "model.linkedin.linkedin_ads__campaign_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.pinterest.pinterest_ads__ad_group_report", "model.snapchat_ads.snapchat_ads__ad_squad_report", "model.tiktok_ads.tiktok_ads__ad_group_report", "model.twitter_ads.twitter_ads__line_item_report", "model.amazon_ads.amazon_ads__ad_group_report", "model.reddit_ads.reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__ad_group_report.sql", "compiled": true, "compiled_code": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__ad_group_report`\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__ad_group_report`\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as string) as platform,\n\n cast(organization_id as string) as account_id\n\n \n ,cast(organization_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(taps as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(null as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__ad_group_report`\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'linkedin_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(campaign_id as string) as ad_group_id\n\n \n ,cast(campaign_name as string) as ad_group_name\n\n \n ,cast(campaign_group_id as string) as campaign_id\n\n \n ,cast(campaign_group_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_value_in_local_currency as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__campaign_report`\n\n),\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'facebook_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_set_id as string) as ad_group_id\n\n \n ,cast(ad_set_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__ad_set_report`\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'pinterest_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__ad_group_report`\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'snapchat_ads' as string) as platform,\n\n cast(ad_account_id as string) as account_id\n\n \n ,cast(ad_account_name as string) as account_name\n\n \n ,cast(ad_squad_id as string) as ad_group_id\n\n \n ,cast(ad_squad_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(swipes as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(conversion_purchases_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__ad_squad_report`\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'tiktok_ads' as string) as platform,\n\n cast(advertiser_id as string) as account_id\n\n \n ,cast(advertiser_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversion as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversion_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__ad_group_report`\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(line_item_id as string) as ad_group_id\n\n \n ,cast(line_item_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(total_conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_conversions_sale_amount as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__line_item_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(account_name as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(purchases_30_d as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(sales_30_d as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__ad_group_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as string) as platform,\n\n cast(account_id as string) as account_id\n\n \n ,cast(null as string) as account_name\n\n \n ,cast(ad_group_id as string) as ad_group_id\n\n \n ,cast(ad_group_name as string) as ad_group_name\n\n \n ,cast(campaign_id as string) as campaign_id\n\n \n ,cast(campaign_name as string) as campaign_name\n\n \n ,cast(clicks as INT64) as clicks\n\n ,cast(conversions as FLOAT64) as conversions\n\n ,\n cast(conversions as FLOAT64) as conversions_c\n ,cast(total_value as FLOAT64) as conversions_value\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,\n cast(videos as FLOAT64) as videos\n \nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__ad_group_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__campaign_history", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__campaign_history.sql", "original_file_path": "models/stg_apple_search_ads__campaign_history.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__campaign_history"], "alias": "stg_apple_search_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "cf87e851472f1f4b6b9388f991665435a0ca61cc9f4566a850324e0649d25dfc"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of a campaign in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "Timestamp of when the campaign object was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "The designated ad group start time (ad group with the earliest start time associated with this campaign).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "The designated campaign end time (ad group with the latest start time associated with this campaign).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the campaign, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.5612319, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_history`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__campaign_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n modification_time as modified_at,\n organization_id,\n name as campaign_name,\n id as campaign_id,\n status as campaign_status,\n start_time as start_at,\n end_time as end_at,\n row_number() over (partition by source_relation, id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n modification_time\n \n as \n \n modification_time\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as INT64) as \n \n organization_id\n \n , \n \n \n start_time\n \n as \n \n start_time\n \n, \n \n \n status\n \n as \n \n status\n \n\n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n modification_time as modified_at,\n organization_id,\n name as campaign_name,\n id as campaign_id,\n status as campaign_status,\n start_time as start_at,\n end_time as end_at,\n row_number() over (partition by source_relation, id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__ad_report", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__ad_report.sql", "original_file_path": "models/stg_apple_search_ads__ad_report.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_report"], "alias": "stg_apple_search_ads__ad_report", "checksum": {"name": "sha256", "checksum": "b46a0e405e468987533c679fd6a23602258167a5b38a63f673637e43ee6f72c6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of an ad in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.5604281, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_report`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__ad_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__ad_report_tmp')),\n staging_columns=get_ad_level_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n campaign_id,\n ad_group_id,\n ad_id,\n conversions,\n impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n {{ apple_search_ads_fill_pass_through_columns(\n pass_through_fields=var('apple_search_ads__ad_passthrough_metrics'),\n except=['conversions']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_report_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__ad_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_ad_level_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.apple_search_ads_source.apple_search_ads_fill_pass_through_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n cast(null as INT64) as \n \n conversions\n \n , \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n local_spend_amount\n \n as \n \n local_spend_amount\n \n, \n \n \n local_spend_currency\n \n as \n \n local_spend_currency\n \n, \n \n \n new_downloads\n \n as \n \n new_downloads\n \n, \n \n \n redownloads\n \n as \n \n redownloads\n \n, \n \n \n taps\n \n as \n \n taps\n \n, \n cast(null as string) as installs , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n campaign_id,\n ad_group_id,\n ad_id,\n conversions,\n impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n \n\n\n \n \n \n \n \n , coalesce(cast(installs as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__campaign_report", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__campaign_report.sql", "original_file_path": "models/stg_apple_search_ads__campaign_report.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__campaign_report"], "alias": "stg_apple_search_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "641440ae70a473f061ecec5d6819022f5d8cc45ccaf7365384bf00e7ebc645fb"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a campaign in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.5620108, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__campaign_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__campaign_report_tmp')),\n staging_columns=get_campaign_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n id as campaign_id,\n conversions,\n impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n {{ apple_search_ads_fill_pass_through_columns(\n pass_through_fields=var('apple_search_ads__campaign_passthrough_metrics'),\n except=['conversions']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_report_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__campaign_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_campaign_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.apple_search_ads_source.apple_search_ads_fill_pass_through_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n date\n \n as \n \n date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n local_spend_amount\n \n as \n \n local_spend_amount\n \n, \n \n \n local_spend_currency\n \n as \n \n local_spend_currency\n \n, \n \n \n new_downloads\n \n as \n \n new_downloads\n \n, \n \n \n redownloads\n \n as \n \n redownloads\n \n, \n \n \n taps\n \n as \n \n taps\n \n, \n \n \n lat_off_installs\n \n as installs , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n id as campaign_id,\n conversions,\n impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n \n\n\n \n \n \n \n \n , coalesce(cast(installs as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__organization": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__organization", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__organization.sql", "original_file_path": "models/stg_apple_search_ads__organization.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__organization"], "alias": "stg_apple_search_ads__organization", "checksum": {"name": "sha256", "checksum": "b233ec35efb63603abc18a08f0e33f27b01682958dd5b92daeef270dc80e6d63"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents an organization in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Specified currency for respective organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payment_model": {"name": "payment_model", "description": "Values include 'LOC', 'PAYG' or (payment method hasn't been set).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "Organization default timezone; values can be ORTZ or UTC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.563572, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__organization`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__organization_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__organization_tmp')),\n staging_columns=get_organization_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as organization_id,\n currency,\n payment_model,\n name as organization_name,\n time_zone\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__organization_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__organization_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__organization_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__organization.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__organization_tmp`\n),\n\nfields as (\n\n select\n \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n payment_model\n \n as \n \n payment_model\n \n, \n \n \n time_zone\n \n as \n \n time_zone\n \n\n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as organization_id,\n currency,\n payment_model,\n name as organization_name,\n time_zone\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__keyword_report", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__keyword_report.sql", "original_file_path": "models/stg_apple_search_ads__keyword_report.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__keyword_report"], "alias": "stg_apple_search_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "ab1e46d16ea4b7360a89480e29b11892a880d9848eb28bfffbf2712f313cae1a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a keyword in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.5631459, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__keyword_report`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__keyword_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__keyword_report_tmp')),\n staging_columns=get_keyword_report_columns()\n )\n }} \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n id as keyword_id,\n conversions,\n impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n {{ apple_search_ads_fill_pass_through_columns(\n pass_through_fields=var('apple_search_ads__keyword_passthrough_metrics'),\n except=['conversions']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_report_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__keyword_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_keyword_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.apple_search_ads_source.apple_search_ads_fill_pass_through_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__keyword_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n date\n \n as \n \n date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n local_spend_amount\n \n as \n \n local_spend_amount\n \n, \n \n \n local_spend_currency\n \n as \n \n local_spend_currency\n \n, \n \n \n new_downloads\n \n as \n \n new_downloads\n \n, \n \n \n redownloads\n \n as \n \n redownloads\n \n, \n \n \n taps\n \n as \n \n taps\n \n, \n \n \n lat_off_installs\n \n as installs , \n cast(null as string) as \n \n videos\n \n \n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n id as keyword_id,\n conversions,\n impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n \n\n\n \n \n \n \n \n , coalesce(cast(installs as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__keyword_history", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__keyword_history.sql", "original_file_path": "models/stg_apple_search_ads__keyword_history.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__keyword_history"], "alias": "stg_apple_search_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "99b60037c3445a6fd43917ae2631a04e99f8c9b782c8f7c853a297ec63634365"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of a keyword in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "Timestamp of when the keyword object was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount": {"name": "bid_amount", "description": "The bid amount to display your ad for the matching text value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_currency": {"name": "bid_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; EXACT or BROAD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the keyword, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The word or phrase to match in user searches, to show respective ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.562603, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__keyword_history`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__keyword_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__keyword_history_tmp')),\n staging_columns=get_keyword_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n modification_time as modified_at,\n campaign_id,\n ad_group_id,\n id as keyword_id,\n bid_amount, \n bid_currency,\n match_type,\n status as keyword_status,\n text as keyword_text,\n row_number() over (partition by source_relation, id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_history_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__keyword_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_keyword_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__keyword_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__keyword_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n bid_amount\n \n as \n \n bid_amount\n \n, \n \n \n bid_currency\n \n as \n \n bid_currency\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n match_type\n \n as \n \n match_type\n \n, \n \n \n modification_time\n \n as \n \n modification_time\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n text\n \n as \n \n text\n \n\n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n modification_time as modified_at,\n campaign_id,\n ad_group_id,\n id as keyword_id,\n bid_amount, \n bid_currency,\n match_type,\n status as keyword_status,\n text as keyword_text,\n row_number() over (partition by source_relation, id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__search_term_report", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__search_term_report.sql", "original_file_path": "models/stg_apple_search_ads__search_term_report.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__search_term_report"], "alias": "stg_apple_search_ads__search_term_report", "checksum": {"name": "sha256", "checksum": "59cd9346ce077a69ea058c49b55aa975a6831bfdb7ed548824095aa3257653d6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a search term in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "A Fivetran internal unique id that helps us avoid duplicate rows in primary keyless tables.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_format": {"name": "ad_format", "description": "Format of creative set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount": {"name": "bid_amount", "description": "The bid amount to display your ad for the matching text value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_currency": {"name": "bid_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The word or phrase to match in user searches, to show respective ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_display_status": {"name": "keyword_display_status", "description": "The keyword display status can either be ACTIVE or PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; values include EXACT, BROAD or AUTO.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_term_source": {"name": "search_term_source", "description": "The search term source can either be TARGETED or AUTO; if this value is AUTO so will match_type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_term_text": {"name": "search_term_text", "description": "The word or phrase to match of user searches.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.564682, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__search_term_report`", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__apple_search_ads_enabled','apple_search_ads__using_search_terms'])) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__search_term_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__search_term_report_tmp')),\n staging_columns=get_search_term_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n _fivetran_id,\n campaign_id,\n ad_group_id,\n ad_group_name,\n bid_amount_amount as bid_amount,\n bid_amount_currency as bid_currency,\n keyword as keyword_text,\n keyword_display_status,\n keyword_id,\n local_spend_amount as spend,\n local_spend_currency as currency,\n match_type,\n search_term_source,\n search_term_text,\n conversions,\n impressions,\n taps,\n new_downloads,\n redownloads\n\n {{ apple_search_ads_fill_pass_through_columns(\n pass_through_fields=var('apple_search_ads__search_term_passthrough_metrics'),\n except=['conversions']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__search_term_report_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__search_term_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.apple_search_ads_source.get_search_term_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.apple_search_ads_source.apple_search_ads_fill_pass_through_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__search_term_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__search_term_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n ad_group_deleted\n \n as \n \n ad_group_deleted\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_group_name\n \n as \n \n ad_group_name\n \n, \n \n \n bid_amount_amount\n \n as \n \n bid_amount_amount\n \n, \n \n \n bid_amount_currency\n \n as \n \n bid_amount_currency\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n deleted\n \n as \n \n deleted\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n keyword\n \n as \n \n keyword\n \n, \n \n \n keyword_display_status\n \n as \n \n keyword_display_status\n \n, \n \n \n keyword_id\n \n as \n \n keyword_id\n \n, \n \n \n local_spend_amount\n \n as \n \n local_spend_amount\n \n, \n \n \n local_spend_currency\n \n as \n \n local_spend_currency\n \n, \n \n \n match_type\n \n as \n \n match_type\n \n, \n \n \n new_downloads\n \n as \n \n new_downloads\n \n, \n \n \n redownloads\n \n as \n \n redownloads\n \n, \n \n \n search_term_source\n \n as \n \n search_term_source\n \n, \n \n \n search_term_text\n \n as \n \n search_term_text\n \n, \n \n \n taps\n \n as \n \n taps\n \n, \n \n \n lat_off_installs\n \n as installs , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n _fivetran_id,\n campaign_id,\n ad_group_id,\n ad_group_name,\n bid_amount_amount as bid_amount,\n bid_amount_currency as bid_currency,\n keyword as keyword_text,\n keyword_display_status,\n keyword_id,\n local_spend_amount as spend,\n local_spend_currency as currency,\n match_type,\n search_term_source,\n search_term_text,\n conversions,\n impressions,\n taps,\n new_downloads,\n redownloads\n\n \n\n\n \n \n \n \n \n , coalesce(cast(installs as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__ad_group_history", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__ad_group_history.sql", "original_file_path": "models/stg_apple_search_ads__ad_group_history.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_group_history"], "alias": "stg_apple_search_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "506727e27e2ca88cb56ff327e32c30d3dd812ff5f440ef512c6e81a0da3a8e09"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of an ad group in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "Timestamp of when the ad group object was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating whether record was the most recent instance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "The designated ad group start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "The designated ad group end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad group, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.558639, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_group_history`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__ad_group_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__ad_group_history_tmp')),\n staging_columns=get_ad_group_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n modification_time as modified_at,\n organization_id,\n campaign_id,\n name as ad_group_name,\n id as ad_group_id,\n status as ad_group_status,\n start_time as start_at,\n end_time as end_at,\n row_number() over (partition by source_relation, id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_history_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__ad_group_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_group_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n modification_time\n \n as \n \n modification_time\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n start_time\n \n as \n \n start_time\n \n, \n \n \n status\n \n as \n \n status\n \n\n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n modification_time as modified_at,\n organization_id,\n campaign_id,\n name as ad_group_name,\n id as ad_group_id,\n status as ad_group_status,\n start_time as start_at,\n end_time as end_at,\n row_number() over (partition by source_relation, id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__ad_history", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__ad_history.sql", "original_file_path": "models/stg_apple_search_ads__ad_history.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_history"], "alias": "stg_apple_search_ads__ad_history", "checksum": {"name": "sha256", "checksum": "59401bbef57eb6428506a14f747a483f3ce8de6e0182042d7729d47360988777"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of an ad in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of when ad was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "Timestamp of when the ad object was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad name associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_status": {"name": "ad_status", "description": "The current status of the ad, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.5597382, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_history`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__ad_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__ad_history_tmp')),\n staging_columns=get_ad_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n creation_time as created_at,\n modification_time as modified_at,\n org_id as organization_id,\n campaign_id,\n ad_group_id,\n name as ad_name,\n id as ad_id,\n status as ad_status, \n row_number() over (partition by source_relation, id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_history_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__ad_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n creation_time\n \n as \n \n creation_time\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n modification_time\n \n as \n \n modification_time\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n org_id\n \n as \n \n org_id\n \n, \n \n \n status\n \n as \n \n status\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n creation_time as created_at,\n modification_time as modified_at,\n org_id as organization_id,\n campaign_id,\n ad_group_id,\n name as ad_name,\n id as ad_id,\n status as ad_status, \n row_number() over (partition by source_relation, id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__ad_group_report", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__ad_group_report.sql", "original_file_path": "models/stg_apple_search_ads__ad_group_report.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_group_report"], "alias": "stg_apple_search_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "072887dc0e7a6b537e803797dee0f2923c8b0728336058c88616a8634669441e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of an ad group in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of costs associated with the number of impressions served. Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.559228, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_group_report`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__ad_group_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__ad_group_report_tmp')),\n staging_columns=get_ad_group_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n date as date_day, \n ad_group_id,\n conversions,\n impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n {{ apple_search_ads_fill_pass_through_columns(\n pass_through_fields=var('apple_search_ads__ad_group_passthrough_metrics'),\n except=['conversions']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_report_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__ad_group_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_ad_group_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.apple_search_ads_source.apple_search_ads_fill_pass_through_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_group_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n local_spend_amount\n \n as \n \n local_spend_amount\n \n, \n \n \n local_spend_currency\n \n as \n \n local_spend_currency\n \n, \n \n \n new_downloads\n \n as \n \n new_downloads\n \n, \n \n \n redownloads\n \n as \n \n redownloads\n \n, \n \n \n taps\n \n as \n \n taps\n \n, \n \n \n lat_off_installs\n \n as installs , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n date as date_day, \n ad_group_id,\n conversions,\n impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n \n\n\n \n \n \n \n \n , coalesce(cast(installs as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__search_term_report_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__search_term_report_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__search_term_report_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__search_term_report_tmp"], "alias": "stg_apple_search_ads__search_term_report_tmp", "checksum": {"name": "sha256", "checksum": "ba8f14842a785d58b6d7fe87dd97dadb8d465b4d664c741ff9f155d26e441f98"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.652142, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__search_term_report_tmp`", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__apple_search_ads_enabled','apple_search_ads__using_search_terms'])) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='search_term_report', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='search_term_report',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "search_term_report"], ["apple_search_ads", "search_term_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__search_term_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`apple_search_search_term_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__campaign_history_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__campaign_history_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__campaign_history_tmp"], "alias": "stg_apple_search_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "50ad5431afadc41fd2ac44ae3d3b537569847eeb1337ee6a3f723e82e56af2f4"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.657711, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='campaign_history',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "campaign_history"], ["apple_search_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.campaign_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`apple_search_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__keyword_history_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__keyword_history_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__keyword_history_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__keyword_history_tmp"], "alias": "stg_apple_search_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "11e2783dba2d250108147d990fb80e6b81b0c91b31282aca51503ca1da046929"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.66272, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__keyword_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='keyword_history', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='keyword_history',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "keyword_history"], ["apple_search_ads", "keyword_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.keyword_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__keyword_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`apple_search_keyword_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__ad_group_history_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_group_history_tmp"], "alias": "stg_apple_search_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "1ebb96d598941a8df4cc01b34631e680a29c5848061118bd8aeb50d38176fe82"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.6690829, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_group_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_history', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='ad_group_history',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "ad_group_history"], ["apple_search_ads", "ad_group_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_group_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`apple_search_ad_group_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__ad_group_report_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__ad_group_report_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__ad_group_report_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_group_report_tmp"], "alias": "stg_apple_search_ads__ad_group_report_tmp", "checksum": {"name": "sha256", "checksum": "de715af391f83c6f3e3c6a8db68eea41d518132d6181b47374f77b19c361ec3a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.674304, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_group_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_report', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='ad_group_report',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "ad_group_report"], ["apple_search_ads", "ad_group_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_group_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`apple_search_ad_group_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__ad_history_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__ad_history_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_history_tmp"], "alias": "stg_apple_search_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "339b9f08a3079cc4f1f294ab18d2f09649088a6c66d0e35ed991dface81bbbf2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.679461, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_history', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='ad_history',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "ad_history"], ["apple_search_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`apple_search_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__campaign_report_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__campaign_report_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__campaign_report_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__campaign_report_tmp"], "alias": "stg_apple_search_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "079b4d56f722020bc4ef117e0db51cb6a7ddff8fd053b9e2c7e0a44db7638ccf"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.6840808, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_report', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='campaign_report',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "campaign_report"], ["apple_search_ads", "campaign_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__campaign_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`apple_search_campaign_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__organization_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__organization_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__organization_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__organization_tmp"], "alias": "stg_apple_search_ads__organization_tmp", "checksum": {"name": "sha256", "checksum": "77bc227601bcfaeaa4440c48650f8c60f57d0bdd13a7c015691526a20ed415e7"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.6894982, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__organization_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='organization', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='organization',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "organization"], ["apple_search_ads", "organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.organization"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__organization_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`apple_search_organization_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__keyword_report_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__keyword_report_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__keyword_report_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__keyword_report_tmp"], "alias": "stg_apple_search_ads__keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "2b294b2897c4557862281af0a6001621d35796ee6b030ef5d7f313f825fb4778"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.693989, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__keyword_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='keyword_report', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='keyword_report',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "keyword_report"], ["apple_search_ads", "keyword_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__keyword_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`apple_search_keyword_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_apple_search_ads__ad_report_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__ad_report_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__ad_report_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_report_tmp"], "alias": "stg_apple_search_ads__ad_report_tmp", "checksum": {"name": "sha256", "checksum": "4d29c298edb0146e12d72cf1533f11aaf23ecde0817beb9aaf93794358305d8b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.6987882, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_level_report', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='ad_level_report',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "ad_level_report"], ["apple_search_ads", "ad_level_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_level_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`apple_search_ad_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__pin_promotion_history", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__pin_promotion_history.sql", "original_file_path": "models/stg_pinterest_ads__pin_promotion_history.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "fqn": ["pinterest_source", "stg_pinterest_ads__pin_promotion_history"], "alias": "stg_pinterest_ads__pin_promotion_history", "checksum": {"name": "sha256", "checksum": "f332df6e2cfe2ec53d6fa0df46b56fc890a5a59a86ee65f778e63a6681a7768b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of a Pinterest Pin promotion.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "Pin promotion ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Pin promotion ad group ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Pin creation time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "destination_url": {"name": "destination_url", "description": "Pin destination URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_name": {"name": "pin_name", "description": "Pin promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_id": {"name": "pin_id", "description": "Original pin ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_status": {"name": "pin_status", "description": "The status of the Pin promotion. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_type": {"name": "creative_type", "description": "The creative type. \nOne of \"APP\", \"APP_VIDEO\", \"BOARD\", \"CAROUSEL\", \"CINEMATIC\", \"COMMERCE\", \"MAX_VIDEO\", \"NATIVE_VIDEO\", \"REGULAR\", \n\"SEARCH_PROMINENCE\", \"SEARCH_PROMINENCE_CAROUSEL\", \"SHOPPING\", \"SHOP_THE_PIN\", \"THIRD_PARTY\", or \"VIDEO\".\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.634727, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__pin_promotion_history`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_pinterest_ads__pin_promotion_history_tmp') }}\n), \n\nfields as (\n\n select\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__pin_promotion_history_tmp')),\n staging_columns=get_pin_promotion_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation,\n cast(id as {{ dbt.type_string() }}) as pin_promotion_id,\n cast(ad_account_id as {{ dbt.type_string() }}) as advertiser_id,\n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n created_time as created_at,\n destination_url,\n {{ dbt.split_part('destination_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('destination_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('destination_url') }} as url_path,\n {{ pinterest_source.pinterest_ads_extract_url_parameter('destination_url', 'utm_source') }} as utm_source,\n {{ pinterest_source.pinterest_ads_extract_url_parameter('destination_url', 'utm_medium') }} as utm_medium,\n {{ pinterest_source.pinterest_ads_extract_url_parameter('destination_url', 'utm_campaign') }} as utm_campaign,\n {{ pinterest_source.pinterest_ads_extract_url_parameter('destination_url', 'utm_content') }} as utm_content,\n {{ pinterest_source.pinterest_ads_extract_url_parameter('destination_url', 'utm_term') }} as utm_term,\n name as pin_name,\n cast(pin_id as {{ dbt.type_string() }}) as pin_id,\n status as pin_status,\n creative_type,\n _fivetran_synced,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_history_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__pin_promotion_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_pin_promotion_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.pinterest_source.pinterest_ads_extract_url_parameter"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__pin_promotion_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__pin_promotion_history_tmp`\n), \n\nfields as (\n\n select\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_account_id\n \n as \n \n ad_account_id\n \n, \n cast(null as string) as \n \n android_deep_link\n \n , \n cast(null as string) as \n \n click_tracking_url\n \n , \n \n \n created_time\n \n as \n \n created_time\n \n, \n \n \n creative_type\n \n as \n \n creative_type\n \n, \n \n \n destination_url\n \n as \n \n destination_url\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as string) as \n \n ios_deep_link\n \n , \n cast(null as boolean) as \n \n is_pin_deleted\n \n , \n cast(null as boolean) as \n \n is_removable\n \n , \n \n \n name\n \n as \n \n name\n \n, \n \n \n pin_id\n \n as \n \n pin_id\n \n, \n cast(null as string) as \n \n review_status\n \n , \n \n \n status\n \n as \n \n status\n \n, \n cast(null as timestamp) as \n \n updated_time\n \n , \n cast(null as string) as \n \n view_tracking_url\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation,\n cast(id as string) as pin_promotion_id,\n cast(ad_account_id as string) as advertiser_id,\n cast(ad_group_id as string) as ad_group_id,\n created_time as created_at,\n destination_url,\n \n\n \n split(\n destination_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_host,\n '/' || safe_cast(\n\n \n split(\n \n\n case when \n\n length(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ) = 0\n then ''\n else\n substr(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n -1 * (\n\n length(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_path,\n nullif(\n\n \n split(\n \n\n \n split(\n destination_url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n destination_url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n destination_url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n destination_url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n nullif(\n\n \n split(\n \n\n \n split(\n destination_url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term,\n name as pin_name,\n cast(pin_id as string) as pin_id,\n status as pin_status,\n creative_type,\n _fivetran_synced,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__keyword_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__keyword_report", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__keyword_report.sql", "original_file_path": "models/stg_pinterest_ads__keyword_report.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report", "fqn": ["pinterest_source", "stg_pinterest_ads__keyword_report"], "alias": "stg_pinterest_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "e0fd8970e50779e2657bdce8dc63db39130e68f2febccb56f715047f77e552ff"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of Keywords by ad group, campaign, and advertiser.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of paid and earned impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of paid and earned clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.640556, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__keyword_report`", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__pinterest_ads_enabled','pinterest__using_keywords'])) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_pinterest_ads__keyword_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__keyword_report_tmp')),\n staging_columns=get_keyword_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n {{ dbt.date_trunc('day', 'date') }} as date_day,\n cast(keyword_id as {{dbt.type_string() }}) as keyword_id,\n cast(pin_promotion_id as {{dbt.type_string() }}) as pin_promotion_id,\n cast(ad_group_id as {{dbt.type_string() }}) as ad_group_id,\n ad_group_name,\n ad_group_status,\n cast(campaign_id as {{dbt.type_string() }}) as campaign_id,\n cast(advertiser_id as {{dbt.type_string() }}) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n {{ pinterest_ads_fill_pass_through_columns(pass_through_fields=var('pinterest__keyword_report_passthrough_metrics'), except=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__keyword_report_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__keyword_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.pinterest_source.get_keyword_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_string", "macro.pinterest_source.pinterest_ads_fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__keyword_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_group_name\n \n as \n \n ad_group_name\n \n, \n \n \n ad_group_status\n \n as \n \n ad_group_status\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clickthrough_1\n \n as \n \n clickthrough_1\n \n, \n \n \n clickthrough_2\n \n as \n \n clickthrough_2\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impression_1\n \n as \n \n impression_1\n \n, \n \n \n impression_2\n \n as \n \n impression_2\n \n, \n \n \n keyword_id\n \n as \n \n keyword_id\n \n, \n \n \n pin_promotion_id\n \n as \n \n pin_promotion_id\n \n, \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n, \n \n \n total_conversions\n \n as \n \n total_conversions\n \n, \n \n \n total_conversions_quantity\n \n as \n \n total_conversions_quantity\n \n, \n \n \n total_conversions_value_in_micro_dollar\n \n as \n \n total_conversions_value_in_micro_dollar\n \n, \n \n \n total_conversions\n \n as conversions , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n timestamp_trunc(\n cast(date as timestamp),\n day\n ) as date_day,\n cast(keyword_id as string) as keyword_id,\n cast(pin_promotion_id as string) as pin_promotion_id,\n cast(ad_group_id as string) as ad_group_id,\n ad_group_name,\n ad_group_status,\n cast(campaign_id as string) as campaign_id,\n cast(advertiser_id as string) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n \t\n\n\t\n \t\n \t\n \t\n , coalesce(cast(conversions as FLOAT64), 0) as conversions\t\n \t\n \t\n \t\n \t\n \t\n , coalesce(cast(null as FLOAT64), 0) as installs\t\n \t\n \t\n \t\n \t\n \t\n , coalesce(cast(null as FLOAT64), 0) as videos\t\n \t\n \t\n \t\n\t\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__ad_group_report", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__ad_group_report.sql", "original_file_path": "models/stg_pinterest_ads__ad_group_report.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report", "fqn": ["pinterest_source", "stg_pinterest_ads__ad_group_report"], "alias": "stg_pinterest_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "2ec8dc6491c3bb049b4e8c31061eae0dc827815504af8c27823f4db4b787a735"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Pinterest Ad Groups by campaign and advertiser.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of paid and earned impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of paid and earned clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.635893, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__ad_group_report`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_pinterest_ads__ad_group_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__ad_group_report_tmp')),\n staging_columns=get_ad_group_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n {{ dbt.date_trunc('day', 'date') }} as date_day,\n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n ad_group_name,\n ad_group_status,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n cast(advertiser_id as {{ dbt.type_string() }}) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n {{ pinterest_ads_fill_pass_through_columns(pass_through_fields=var('pinterest__ad_group_report_passthrough_metrics'), except=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__ad_group_report_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__ad_group_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_ad_group_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_string", "macro.pinterest_source.pinterest_ads_fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__ad_group_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_group_name\n \n as \n \n ad_group_name\n \n, \n \n \n ad_group_status\n \n as \n \n ad_group_status\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clickthrough_1\n \n as \n \n clickthrough_1\n \n, \n \n \n clickthrough_2\n \n as \n \n clickthrough_2\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impression_1\n \n as \n \n impression_1\n \n, \n \n \n impression_2\n \n as \n \n impression_2\n \n, \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n, \n \n \n total_conversions\n \n as \n \n total_conversions\n \n, \n \n \n total_conversions_quantity\n \n as \n \n total_conversions_quantity\n \n, \n \n \n total_conversions_value_in_micro_dollar\n \n as \n \n total_conversions_value_in_micro_dollar\n \n, \n \n \n total_conversions\n \n as conversions , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) as date_day,\n cast(ad_group_id as string) as ad_group_id,\n ad_group_name,\n ad_group_status,\n cast(campaign_id as string) as campaign_id,\n cast(advertiser_id as string) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n \t\n\n\t\n \t\n \t\n \t\n , coalesce(cast(conversions as FLOAT64), 0) as conversions\t\n \t\n \t\n \t\n \t\n \t\n , coalesce(cast(null as FLOAT64), 0) as installs\t\n \t\n \t\n \t\n \t\n \t\n , coalesce(cast(null as FLOAT64), 0) as videos\t\n \t\n \t\n \t\n\t\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__campaign_history", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__campaign_history.sql", "original_file_path": "models/stg_pinterest_ads__campaign_history.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history", "fqn": ["pinterest_source", "stg_pinterest_ads__campaign_history"], "alias": "stg_pinterest_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "00af637f4a5c16ec8a38a5904849f00aeb221c03d60d20462296fba86e38ea88"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of a Pinterest Campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Campaign creation time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the Campaign. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_ad_group_budget_in_micro_currency": {"name": "default_ad_group_budget_in_micro_currency", "description": "When transitioning from campaign budget optimization to non-campaign budget optimization, the default_ad_group_budget_in_micro_currency will propagate to each child ad groups daily budget. Unit is micro currency of the associated advertiser account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_automated_campaign": {"name": "is_automated_campaign", "description": "Specifies whether the campaign was created in the automated campaign flow", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_campaign_budget_optimization": {"name": "is_campaign_budget_optimization", "description": "Determines if a campaign automatically generate ad-group level budgets given a campaign budget to maximize campaign outcome. When transitioning from non-cbo to cbo, all previous child ad group budget will be cleared.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_flexible_daily_budgets": {"name": "is_flexible_daily_budgets", "description": "Determine if a campaign has flexible daily budgets setup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.633806, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__campaign_history`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_pinterest_ads__campaign_history_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as campaign_id,\n name as campaign_name,\n cast(advertiser_id as {{ dbt.type_string() }}) as advertiser_id,\n default_ad_group_budget_in_micro_currency,\n is_automated_campaign,\n is_campaign_budget_optimization,\n is_flexible_daily_budgets,\n status as campaign_status,\n _fivetran_synced,\n created_time as created_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__campaign_history_tmp`\n), \n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_time\n \n as \n \n created_time\n \n, \n \n \n default_ad_group_budget_in_micro_currency\n \n as \n \n default_ad_group_budget_in_micro_currency\n \n, \n \n \n is_automated_campaign\n \n as \n \n is_automated_campaign\n \n, \n \n \n is_campaign_budget_optimization\n \n as \n \n is_campaign_budget_optimization\n \n, \n \n \n is_flexible_daily_budgets\n \n as \n \n is_flexible_daily_budgets\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n status\n \n as \n \n status\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n cast(id as string) as campaign_id,\n name as campaign_name,\n cast(advertiser_id as string) as advertiser_id,\n default_ad_group_budget_in_micro_currency,\n is_automated_campaign,\n is_campaign_budget_optimization,\n is_flexible_daily_budgets,\n status as campaign_status,\n _fivetran_synced,\n created_time as created_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__advertiser_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__advertiser_report", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__advertiser_report.sql", "original_file_path": "models/stg_pinterest_ads__advertiser_report.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report", "fqn": ["pinterest_source", "stg_pinterest_ads__advertiser_report"], "alias": "stg_pinterest_ads__advertiser_report", "checksum": {"name": "sha256", "checksum": "632e5acad3e353ccb0e2fae5df7c8766d649c7b08cf79f7f8fd36c6e1f77c101"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of an Advertiser.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of paid and earned impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of paid and earned clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.6376472, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_report`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_pinterest_ads__advertiser_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__advertiser_report_tmp')),\n staging_columns=get_advertiser_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n {{ dbt.date_trunc('day', 'date') }} as date_day,\n cast(advertiser_id as {{ dbt.type_string() }}) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n {{ pinterest_ads_fill_pass_through_columns(pass_through_fields=var('pinterest__advertiser_report_passthrough_metrics'), except=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__advertiser_report_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__advertiser_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_advertiser_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_string", "macro.pinterest_source.pinterest_ads_fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__advertiser_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n clickthrough_1\n \n as \n \n clickthrough_1\n \n, \n \n \n clickthrough_2\n \n as \n \n clickthrough_2\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impression_1\n \n as \n \n impression_1\n \n, \n \n \n impression_2\n \n as \n \n impression_2\n \n, \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n, \n \n \n total_conversions\n \n as \n \n total_conversions\n \n, \n \n \n total_conversions_quantity\n \n as \n \n total_conversions_quantity\n \n, \n \n \n total_conversions_value_in_micro_dollar\n \n as \n \n total_conversions_value_in_micro_dollar\n \n, \n \n \n total_conversions\n \n as conversions , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) as date_day,\n cast(advertiser_id as string) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n \t\n\n\t\n \t\n \t\n \t\n , coalesce(cast(conversions as FLOAT64), 0) as conversions\t\n \t\n \t\n \t\n \t\n \t\n , coalesce(cast(null as FLOAT64), 0) as installs\t\n \t\n \t\n \t\n \t\n \t\n , coalesce(cast(null as FLOAT64), 0) as videos\t\n \t\n \t\n \t\n\t\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__advertiser_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__advertiser_history", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__advertiser_history.sql", "original_file_path": "models/stg_pinterest_ads__advertiser_history.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history", "fqn": ["pinterest_source", "stg_pinterest_ads__advertiser_history"], "alias": "stg_pinterest_ads__advertiser_history", "checksum": {"name": "sha256", "checksum": "172e61a04061ed75217b9bf92c644bab628aa3151d02fd2706d3c9a1019fb4b2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of an advertiser.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country code where the advertiser is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of when a record was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code which the advertiser is set up using.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when a record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owner_username": {"name": "owner_username", "description": "Advertiser's username.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owner_user_id": {"name": "owner_user_id", "description": "Unique identifier of the owner user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_permissions": {"name": "advertiser_permissions", "description": "The permissions associated with this account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.6369238, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_history`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_pinterest_ads__advertiser_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__advertiser_history_tmp')),\n staging_columns=get_advertiser_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as advertiser_id,\n name as advertiser_name,\n country,\n created_time as created_at,\n currency as currency_code,\n owner_user_id,\n owner_username,\n advertiser_permissions, -- permissions was renamed in macro\n updated_time as updated_at,\n row_number() over (partition by source_relation, id order by updated_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__advertiser_history_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__advertiser_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_advertiser_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__advertiser_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n created_time\n \n as \n \n created_time\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n owner_user_id\n \n as \n \n owner_user_id\n \n, \n \n \n owner_username\n \n as \n \n owner_username\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n \n \n `permissions`\n \n \n \n as advertiser_permissions , \n \n \n updated_time\n \n as \n \n updated_time\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as string) as advertiser_id,\n name as advertiser_name,\n country,\n created_time as created_at,\n currency as currency_code,\n owner_user_id,\n owner_username,\n advertiser_permissions, -- permissions was renamed in macro\n updated_time as updated_at,\n row_number() over (partition by source_relation, id order by updated_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__campaign_report", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__campaign_report.sql", "original_file_path": "models/stg_pinterest_ads__campaign_report.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report", "fqn": ["pinterest_source", "stg_pinterest_ads__campaign_report"], "alias": "stg_pinterest_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "7a086bf3f4aa50eb5319dc6011562d60ba66ad6987df1fe74fb86a618add08fd"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of Campaigns by advertiser.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of paid and earned impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of paid and earned clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.6386409, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_pinterest_ads__campaign_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__campaign_report_tmp')),\n staging_columns=get_campaign_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n {{ dbt.date_trunc('day', 'date') }} as date_day,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n campaign_name,\n campaign_status,\n cast(advertiser_id as {{ dbt.type_string() }}) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n {{ pinterest_ads_fill_pass_through_columns(pass_through_fields=var('pinterest__campaign_report_passthrough_metrics'), except=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__campaign_report_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__campaign_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_campaign_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_string", "macro.pinterest_source.pinterest_ads_fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__campaign_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n campaign_name\n \n as \n \n campaign_name\n \n, \n \n \n campaign_status\n \n as \n \n campaign_status\n \n, \n \n \n clickthrough_1\n \n as \n \n clickthrough_1\n \n, \n \n \n clickthrough_2\n \n as \n \n clickthrough_2\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impression_1\n \n as \n \n impression_1\n \n, \n \n \n impression_2\n \n as \n \n impression_2\n \n, \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n, \n \n \n total_conversions\n \n as \n \n total_conversions\n \n, \n \n \n total_conversions_quantity\n \n as \n \n total_conversions_quantity\n \n, \n \n \n total_conversions_value_in_micro_dollar\n \n as \n \n total_conversions_value_in_micro_dollar\n \n, \n \n \n total_conversions_value_in_micro_dollar\n \n as total_conversions_value , \n cast(null as string) as \n \n paid_impression\n \n , \n \n \n total_conversions\n \n as conversions , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) as date_day,\n cast(campaign_id as string) as campaign_id,\n campaign_name,\n campaign_status,\n cast(advertiser_id as string) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n \t\n\n\t\n \t\n \t\n \t\n \t\n \t\n , coalesce(cast(paid_impression as FLOAT64), 0) as paid_impression\t\n \t\n \t\n \t\n \t\n \t\n , coalesce(cast(conversions as FLOAT64), 0) as conversions\t\n \t\n \t\n \t\n \t\n \t\n , coalesce(cast(null as FLOAT64), 0) as installs\t\n \t\n \t\n \t\n \t\n \t\n , coalesce(cast(null as FLOAT64), 0) as videos\t\n \t\n \t\n \t\n\t\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__keyword_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__keyword_history", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__keyword_history.sql", "original_file_path": "models/stg_pinterest_ads__keyword_history.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history", "fqn": ["pinterest_source", "stg_pinterest_ads__keyword_history"], "alias": "stg_pinterest_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "bd2857f388430b3e0f87c20391c03e8e73bfd16f4c6b48cc692ae3720ac71716"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Keyword.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_value": {"name": "keyword_value", "description": "The text value that makes upd the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "The unique identifier of the record within the Fivetran synced table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "archived": {"name": "archived", "description": "Boolean indicating if the keyword is archived.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid": {"name": "bid", "description": "Bid amount set for the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of match the keyword is tied to. Either Exact or Broad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_type": {"name": "parent_type", "description": "Identifier of what grain the parent type is. Ad group or campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.639701, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__keyword_history`", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__pinterest_ads_enabled','pinterest__using_keywords'])) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_pinterest_ads__keyword_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__keyword_history_tmp')),\n staging_columns=get_keyword_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n cast(id as {{ dbt.type_string() }}) as keyword_id,\n value as keyword_value,\n _fivetran_id,\n _fivetran_synced,\n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n cast(advertiser_id as {{ dbt.type_string() }}) as advertiser_id,\n archived,\n bid,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n match_type,\n parent_type,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__keyword_history_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__keyword_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.pinterest_source.get_keyword_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__keyword_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__keyword_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n archived\n \n as \n \n archived\n \n, \n \n \n bid\n \n as \n \n bid\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n match_type\n \n as \n \n match_type\n \n, \n \n \n parent_type\n \n as \n \n parent_type\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n cast(id as string) as keyword_id,\n value as keyword_value,\n _fivetran_id,\n _fivetran_synced,\n cast(ad_group_id as string) as ad_group_id,\n cast(advertiser_id as string) as advertiser_id,\n archived,\n bid,\n cast(campaign_id as string) as campaign_id,\n match_type,\n parent_type,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__pin_promotion_report", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__pin_promotion_report.sql", "original_file_path": "models/stg_pinterest_ads__pin_promotion_report.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report", "fqn": ["pinterest_source", "stg_pinterest_ads__pin_promotion_report"], "alias": "stg_pinterest_ads__pin_promotion_report", "checksum": {"name": "sha256", "checksum": "2086f32f8c8e762309c732c2695b062a86a3d471e9a5b76ae0d51ade2259f59d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Pinterest Pin promotion by ad group, campaign, and advertiser.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of paid and earned impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of paid and earned clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.635301, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__pin_promotion_report`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_pinterest_ads__pin_promotion_report_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__pin_promotion_report_tmp')),\n staging_columns=get_pin_promotion_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n {{ dbt.date_trunc('day', 'date') }} as date_day,\n cast(pin_promotion_id as {{ dbt.type_string() }}) as pin_promotion_id,\n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n cast(advertiser_id as {{ dbt.type_string() }}) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n {{ pinterest_ads_fill_pass_through_columns(pass_through_fields=var('pinterest__pin_promotion_report_passthrough_metrics'), except=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_report_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__pin_promotion_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_pin_promotion_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_string", "macro.pinterest_source.pinterest_ads_fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__pin_promotion_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__pin_promotion_report_tmp`\n), \n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clickthrough_1\n \n as \n \n clickthrough_1\n \n, \n \n \n clickthrough_2\n \n as \n \n clickthrough_2\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impression_1\n \n as \n \n impression_1\n \n, \n \n \n impression_2\n \n as \n \n impression_2\n \n, \n \n \n pin_promotion_id\n \n as \n \n pin_promotion_id\n \n, \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n, \n \n \n total_conversions\n \n as \n \n total_conversions\n \n, \n \n \n total_conversions_quantity\n \n as \n \n total_conversions_quantity\n \n, \n \n \n total_conversions_value_in_micro_dollar\n \n as \n \n total_conversions_value_in_micro_dollar\n \n, \n \n \n total_conversions_value_in_micro_dollar\n \n as total_conversions_value , \n cast(null as string) as \n \n paid_impression\n \n , \n \n \n total_conversions\n \n as conversions , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) as date_day,\n cast(pin_promotion_id as string) as pin_promotion_id,\n cast(ad_group_id as string) as ad_group_id,\n cast(campaign_id as string) as campaign_id,\n cast(advertiser_id as string) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n \t\n\n\t\n \t\n \t\n \t\n \t\n \t\n , coalesce(cast(paid_impression as FLOAT64), 0) as paid_impression\t\n \t\n \t\n \t\n \t\n \t\n , coalesce(cast(conversions as FLOAT64), 0) as conversions\t\n \t\n \t\n \t\n \t\n \t\n , coalesce(cast(null as FLOAT64), 0) as installs\t\n \t\n \t\n \t\n \t\n \t\n , coalesce(cast(null as FLOAT64), 0) as videos\t\n \t\n \t\n \t\n\t\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__ad_group_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__ad_group_history", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__ad_group_history.sql", "original_file_path": "models/stg_pinterest_ads__ad_group_history.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history", "fqn": ["pinterest_source", "stg_pinterest_ads__ad_group_history"], "alias": "stg_pinterest_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "5f6f1558bca7394219bbf6d8413bd96ee307456a68790f263fede49f2ece9699"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of a Pinterest Ad Group.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Parent Campaign ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Ad group creation time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "The status of the Ad group. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Ad group start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "Ad group end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pacing_delivery_type": {"name": "pacing_delivery_type", "description": "Ad group pacing delivery type. With ACCELERATED, an ad group budget is spent as fast as possible. With STANDARD, an ad group budget is spent smoothly over a day. When using CBO, only the STANDARD pacing delivery type is allowed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement_group": {"name": "placement_group", "description": "The placement group. \"ALL\", \"SEARCH\", \"BROWSE\", or \"OTHER\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary_status": {"name": "summary_status", "description": "Summary status. \"RUNNING\", \"PAUSED\", \"NOT_STARTED\", \"COMPLETED\", \"ADVERTISER_DISABLED\", \"ARCHIVED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.6325781, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__ad_group_history`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_pinterest_ads__ad_group_history_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__ad_group_history_tmp')),\n staging_columns=get_ad_group_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n cast(id as {{ dbt.type_string() }}) as ad_group_id,\n name as ad_group_name,\n status as ad_group_status,\n ad_account_id as advertiser_id,\n _fivetran_synced,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n created_time as created_at,\n end_time,\n pacing_delivery_type,\n placement_group,\n start_time,\n summary_status,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__ad_group_history_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__ad_group_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__ad_group_history_tmp`\n), \n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n created_time\n \n as \n \n created_time\n \n, \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n ad_account_id\n \n as \n \n ad_account_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n pacing_delivery_type\n \n as \n \n pacing_delivery_type\n \n, \n \n \n placement_group\n \n as \n \n placement_group\n \n, \n \n \n start_time\n \n as \n \n start_time\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n summary_status\n \n as \n \n summary_status\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n cast(id as string) as ad_group_id,\n name as ad_group_name,\n status as ad_group_status,\n ad_account_id as advertiser_id,\n _fivetran_synced,\n cast(campaign_id as string) as campaign_id,\n created_time as created_at,\n end_time,\n pacing_delivery_type,\n placement_group,\n start_time,\n summary_status,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__advertiser_history_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__advertiser_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__advertiser_history_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__advertiser_history_tmp"], "alias": "stg_pinterest_ads__advertiser_history_tmp", "checksum": {"name": "sha256", "checksum": "a2ce2fe6b2e2a39b3646cfb4ff6b6e845cb005ca800bc5e0922ae10a0f2ccd94"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.855545, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='advertiser_history', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='advertiser_history',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "advertiser_history"], ["pinterest_ads", "advertiser_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.advertiser_history"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__advertiser_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`pinterest_advertiser_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__pin_promotion_report_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__pin_promotion_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__pin_promotion_report_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__pin_promotion_report_tmp"], "alias": "stg_pinterest_ads__pin_promotion_report_tmp", "checksum": {"name": "sha256", "checksum": "9f6c8a0b9894f99694a0e4142e5b72f34485a45f383bf4084350cf263a26014a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.860907, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__pin_promotion_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='pin_promotion_report', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='pin_promotion_report',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "pin_promotion_report"], ["pinterest_ads", "pin_promotion_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__pin_promotion_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`pinterest_pin_promotion_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__campaign_report_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__campaign_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__campaign_report_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__campaign_report_tmp"], "alias": "stg_pinterest_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "50609e4c23e33bce27f935335676f1f0ebd16492fe25c606cfa9ec302e2e21b0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.866208, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__campaign_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_report', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='campaign_report',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "campaign_report"], ["pinterest_ads", "campaign_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.campaign_report"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__campaign_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`pinterest_campaign_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__advertiser_report_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__advertiser_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__advertiser_report_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__advertiser_report_tmp"], "alias": "stg_pinterest_ads__advertiser_report_tmp", "checksum": {"name": "sha256", "checksum": "a7297248e185b437b709ed0eec64dd9396da5b4c3ecdaaaf59c327fd0ac28a43"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.872611, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='advertiser_report', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='advertiser_report',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "advertiser_report"], ["pinterest_ads", "advertiser_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.advertiser_report"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__advertiser_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`pinterest_advertiser_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__keyword_report_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__keyword_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__keyword_report_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__keyword_report_tmp"], "alias": "stg_pinterest_ads__keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "c949f15fd9b7c17fc69798d726a3e63ad593c1082773e65dd71af35759adad06"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.8796742, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__keyword_report_tmp`", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__pinterest_ads_enabled','pinterest__using_keywords'])) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='keyword_report', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='keyword_report',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "keyword_report"], ["pinterest_ads", "keyword_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.keyword_report"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__keyword_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`pinterest_keyword_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__ad_group_report_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__ad_group_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__ad_group_report_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__ad_group_report_tmp"], "alias": "stg_pinterest_ads__ad_group_report_tmp", "checksum": {"name": "sha256", "checksum": "3f38d38f9f0e9829dd273c9474522a0169f3c56370549e0e075f68f2c70b49d0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.88541, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__ad_group_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_report', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='ad_group_report',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "ad_group_report"], ["pinterest_ads", "ad_group_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.ad_group_report"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__ad_group_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`pinterest_ad_group_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__keyword_history_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__keyword_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__keyword_history_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__keyword_history_tmp"], "alias": "stg_pinterest_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "cdf3cfa62d51175f9189eaa61f9f6eaee83884889ee6ac4519a201b8a9dbba8d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.965462, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__keyword_history_tmp`", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__pinterest_ads_enabled','pinterest__using_keywords'])) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='keyword_history', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='keyword_history',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "keyword_history"], ["pinterest_ads", "keyword_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.keyword_history"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__keyword_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`pinterest_keyword_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__campaign_history_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__campaign_history_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__campaign_history_tmp"], "alias": "stg_pinterest_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "5b6a9bf5837ebc2d4dd159a63d807e8503355c2bc0208c98cb7454f098d76b0b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.9708118, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__campaign_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='campaign_history',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "campaign_history"], ["pinterest_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.campaign_history"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`pinterest_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__ad_group_history_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__ad_group_history_tmp"], "alias": "stg_pinterest_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "c58c95342635ea532e6f961b98253dd897bd040cd06617dd49ec756901ae2465"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.976279, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__ad_group_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_history', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='ad_group_history',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "ad_group_history"], ["pinterest_ads", "ad_group_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.ad_group_history"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`pinterest_ad_group_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_pinterest_ads__pin_promotion_history_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__pin_promotion_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__pin_promotion_history_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__pin_promotion_history_tmp"], "alias": "stg_pinterest_ads__pin_promotion_history_tmp", "checksum": {"name": "sha256", "checksum": "38631435f1df88a8bd411c1092b0f92574d90bc030f6b16b359203bd93e77e5c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951597.9817579, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__pin_promotion_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='pin_promotion_history', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='pin_promotion_history',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "pin_promotion_history"], ["pinterest_ads", "pin_promotion_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.pin_promotion_history"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__pin_promotion_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`pinterest_pin_promotion_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__campaign_report_hourly", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__campaign_report_hourly.sql", "original_file_path": "models/stg_tiktok_ads__campaign_report_hourly.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__campaign_report_hourly"], "alias": "stg_tiktok_ads__campaign_report_hourly", "checksum": {"name": "sha256", "checksum": "208f93b3697ff421e31eed25966457f4aa3672d3d4eae4134ae2f06382576c92"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represent data for each campaign for each hour.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign id", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_conversion": {"name": "cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_play_actions": {"name": "video_play_actions", "description": "The number of times your video starts to play. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_rate": {"name": "conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play": {"name": "average_video_play", "description": "The average time your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play_per_user": {"name": "average_video_play_per_user", "description": "The average time per user your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits the ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of new followers that were gained within 1 day of a user seeing a paid ad. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The estimated total amount of money you've spent on your campaign, ad group or ad during its schedule.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951600.7458692, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__campaign_report_hourly`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__campaign_report_hourly_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__campaign_report_hourly_tmp')),\n staging_columns=get_campaign_report_hourly_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='tiktok_ads_union_schemas', \n union_database_variable='tiktok_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n campaign_id,\n cast(stat_time_hour as {{ dbt.type_timestamp() }}) as stat_time_hour,\n cpc, \n cpm,\n ctr,\n coalesce(impressions, 0) as impressions,\n coalesce(clicks, 0) as clicks, \n coalesce(spend, 0) as spend, \n reach,\n coalesce(conversion, 0) as conversion,\n cost_per_conversion,\n conversion_rate,\n coalesce(likes, 0) as likes,\n coalesce(comments, 0) as comments,\n coalesce(shares, 0) as shares,\n coalesce(profile_visits, 0) as profile_visits,\n coalesce(follows, 0) as follows,\n coalesce(video_play_actions, 0) as video_play_actions,\n coalesce(video_watched_2_s, 0) as video_watched_2_s,\n coalesce(video_watched_6_s, 0) as video_watched_6_s,\n coalesce(video_views_p_25, 0) as video_views_p_25,\n coalesce(video_views_p_50, 0) as video_views_p_50,\n coalesce(video_views_p_75, 0) as video_views_p_75,\n average_video_play,\n average_video_play_per_user,\n coalesce(real_time_conversion, 0) as real_time_conversion,\n coalesce(total_purchase_value, 0) as total_purchase_value,\n coalesce(total_sales_lead_value, 0) as total_sales_lead_value\n\n {{ tiktok_ads_fill_pass_through_columns(pass_through_fields=var('tiktok_ads__campaign_hourly_passthrough_metrics'), except_fields=[\"real_time_conversion\", \"total_purchase_value\", \"total_sales_lead_value\"]) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_tiktok_ads__campaign_report_hourly_tmp", "package": null, "version": null}, {"name": "stg_tiktok_ads__campaign_report_hourly_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_campaign_report_hourly_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.tiktok_ads_source.tiktok_ads_fill_pass_through_columns"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__campaign_report_hourly.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__campaign_report_hourly_tmp`\n), \n\nfields as (\n\n select\n \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n average_video_play\n \n as \n \n average_video_play\n \n, \n \n \n average_video_play_per_user\n \n as \n \n average_video_play_per_user\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n conversion\n \n as \n \n conversion\n \n, \n \n \n conversion_rate\n \n as \n \n conversion_rate\n \n, \n \n \n cost_per_conversion\n \n as \n \n cost_per_conversion\n \n, \n \n \n cpc\n \n as \n \n cpc\n \n, \n \n \n cpm\n \n as \n \n cpm\n \n, \n \n \n ctr\n \n as \n \n ctr\n \n, \n \n \n follows\n \n as \n \n follows\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n likes\n \n as \n \n likes\n \n, \n \n \n profile_visits\n \n as \n \n profile_visits\n \n, \n \n \n reach\n \n as \n \n reach\n \n, \n \n \n real_time_conversion\n \n as \n \n real_time_conversion\n \n, \n \n \n shares\n \n as \n \n shares\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n stat_time_hour\n \n as \n \n stat_time_hour\n \n, \n \n \n total_purchase_value\n \n as \n \n total_purchase_value\n \n, \n \n \n total_sales_lead_value\n \n as \n \n total_sales_lead_value\n \n, \n \n \n video_play_actions\n \n as \n \n video_play_actions\n \n, \n \n \n video_views_p_25\n \n as \n \n video_views_p_25\n \n, \n \n \n video_views_p_50\n \n as \n \n video_views_p_50\n \n, \n \n \n video_views_p_75\n \n as \n \n video_views_p_75\n \n, \n \n \n video_watched_2_s\n \n as \n \n video_watched_2_s\n \n, \n \n \n video_watched_6_s\n \n as \n \n video_watched_6_s\n \n, \n cast(null as string) as \n \n real_time_conversions\n \n , \n \n \n conversion\n \n as conversions , \n cast(null as string) as \n \n installs\n \n , \n \n \n video_views_p_100\n \n as videos \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n campaign_id,\n cast(stat_time_hour as timestamp) as stat_time_hour,\n cpc, \n cpm,\n ctr,\n coalesce(impressions, 0) as impressions,\n coalesce(clicks, 0) as clicks, \n coalesce(spend, 0) as spend, \n reach,\n coalesce(conversion, 0) as conversion,\n cost_per_conversion,\n conversion_rate,\n coalesce(likes, 0) as likes,\n coalesce(comments, 0) as comments,\n coalesce(shares, 0) as shares,\n coalesce(profile_visits, 0) as profile_visits,\n coalesce(follows, 0) as follows,\n coalesce(video_play_actions, 0) as video_play_actions,\n coalesce(video_watched_2_s, 0) as video_watched_2_s,\n coalesce(video_watched_6_s, 0) as video_watched_6_s,\n coalesce(video_views_p_25, 0) as video_views_p_25,\n coalesce(video_views_p_50, 0) as video_views_p_50,\n coalesce(video_views_p_75, 0) as video_views_p_75,\n average_video_play,\n average_video_play_per_user,\n coalesce(real_time_conversion, 0) as real_time_conversion,\n coalesce(total_purchase_value, 0) as total_purchase_value,\n coalesce(total_sales_lead_value, 0) as total_sales_lead_value\n\n \n\n\n \n \n \n , coalesce(cast(real_time_conversions as FLOAT64), 0) as real_time_conversions\n \n \n \n \n \n , coalesce(cast(conversions as FLOAT64), 0) as conversions\n \n \n \n \n \n , coalesce(cast(installs as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(videos as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__ad_group_report_hourly", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__ad_group_report_hourly.sql", "original_file_path": "models/stg_tiktok_ads__ad_group_report_hourly.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_group_report_hourly"], "alias": "stg_tiktok_ads__ad_group_report_hourly", "checksum": {"name": "sha256", "checksum": "176d0f532828a1268a4ace344809b4734dd7beb8e7b8ea901d94e7d1d5a20f97"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents data for each ad group for each hour.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group id", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_conversion": {"name": "cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_play_actions": {"name": "video_play_actions", "description": "The number of times your video starts to play. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_rate": {"name": "conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play": {"name": "average_video_play", "description": "The average time your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play_per_user": {"name": "average_video_play_per_user", "description": "The average time per user your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits the ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of new followers that were gained within 1 day of a user seeing a paid ad. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The estimated total amount of money you've spent on your campaign, ad group or ad during its schedule.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951600.744819, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_group_report_hourly`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__ad_group_report_hourly_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__ad_group_report_hourly_tmp')),\n staging_columns=get_ad_group_report_hourly_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='tiktok_ads_union_schemas', \n union_database_variable='tiktok_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n adgroup_id as ad_group_id,\n cast(stat_time_hour as {{ dbt.type_timestamp() }}) as stat_time_hour, \n cpc, \n cpm, \n ctr, \n coalesce(impressions, 0) as impressions,\n coalesce(clicks, 0) as clicks, \n coalesce(spend, 0) as spend, \n coalesce(reach, 0) as reach, \n coalesce(conversion, 0) as conversion, \n cost_per_conversion, \n conversion_rate, \n coalesce(likes, 0) as likes,\n coalesce(comments, 0) as comments,\n coalesce(shares, 0) as shares,\n coalesce(profile_visits, 0) as profile_visits,\n coalesce(follows, 0) as follows,\n coalesce(video_play_actions, 0) as video_play_actions,\n coalesce(video_watched_2_s, 0) as video_watched_2_s,\n coalesce(video_watched_6_s, 0) as video_watched_6_s,\n coalesce(video_views_p_25, 0) as video_views_p_25,\n coalesce(video_views_p_50, 0) as video_views_p_50,\n coalesce(video_views_p_75, 0) as video_views_p_75,\n average_video_play, \n average_video_play_per_user,\n coalesce(real_time_conversion, 0) as real_time_conversion,\n coalesce(total_purchase_value, 0) as total_purchase_value,\n coalesce(total_sales_lead_value, 0) as total_sales_lead_value\n\n {{ tiktok_ads_fill_pass_through_columns(pass_through_fields=var('tiktok_ads__ad_group_hourly_passthrough_metrics'), except_fields=[\"real_time_conversion\", \"total_purchase_value\", \"total_sales_lead_value\"]) }}\n\n from fields\n) \n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_group_report_hourly_tmp", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_group_report_hourly_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_group_report_hourly_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.tiktok_ads_source.tiktok_ads_fill_pass_through_columns"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_group_report_hourly.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_group_report_hourly_tmp`\n), \n\nfields as (\n\n select\n \n \n \n adgroup_id\n \n as \n \n adgroup_id\n \n, \n \n \n average_video_play\n \n as \n \n average_video_play\n \n, \n \n \n average_video_play_per_user\n \n as \n \n average_video_play_per_user\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n conversion\n \n as \n \n conversion\n \n, \n \n \n conversion_rate\n \n as \n \n conversion_rate\n \n, \n \n \n cost_per_conversion\n \n as \n \n cost_per_conversion\n \n, \n \n \n cpc\n \n as \n \n cpc\n \n, \n \n \n cpm\n \n as \n \n cpm\n \n, \n \n \n ctr\n \n as \n \n ctr\n \n, \n \n \n follows\n \n as \n \n follows\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n likes\n \n as \n \n likes\n \n, \n \n \n profile_visits\n \n as \n \n profile_visits\n \n, \n \n \n reach\n \n as \n \n reach\n \n, \n \n \n real_time_conversion\n \n as \n \n real_time_conversion\n \n, \n \n \n shares\n \n as \n \n shares\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n stat_time_hour\n \n as \n \n stat_time_hour\n \n, \n \n \n total_purchase_value\n \n as \n \n total_purchase_value\n \n, \n \n \n total_sales_lead_value\n \n as \n \n total_sales_lead_value\n \n, \n \n \n video_play_actions\n \n as \n \n video_play_actions\n \n, \n \n \n video_views_p_25\n \n as \n \n video_views_p_25\n \n, \n \n \n video_views_p_50\n \n as \n \n video_views_p_50\n \n, \n \n \n video_views_p_75\n \n as \n \n video_views_p_75\n \n, \n \n \n video_watched_2_s\n \n as \n \n video_watched_2_s\n \n, \n \n \n video_watched_6_s\n \n as \n \n video_watched_6_s\n \n, \n cast(null as string) as \n \n real_time_conversions\n \n , \n \n \n conversion\n \n as conversions , \n cast(null as string) as \n \n installs\n \n , \n \n \n video_views_p_100\n \n as videos \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n adgroup_id as ad_group_id,\n cast(stat_time_hour as timestamp) as stat_time_hour, \n cpc, \n cpm, \n ctr, \n coalesce(impressions, 0) as impressions,\n coalesce(clicks, 0) as clicks, \n coalesce(spend, 0) as spend, \n coalesce(reach, 0) as reach, \n coalesce(conversion, 0) as conversion, \n cost_per_conversion, \n conversion_rate, \n coalesce(likes, 0) as likes,\n coalesce(comments, 0) as comments,\n coalesce(shares, 0) as shares,\n coalesce(profile_visits, 0) as profile_visits,\n coalesce(follows, 0) as follows,\n coalesce(video_play_actions, 0) as video_play_actions,\n coalesce(video_watched_2_s, 0) as video_watched_2_s,\n coalesce(video_watched_6_s, 0) as video_watched_6_s,\n coalesce(video_views_p_25, 0) as video_views_p_25,\n coalesce(video_views_p_50, 0) as video_views_p_50,\n coalesce(video_views_p_75, 0) as video_views_p_75,\n average_video_play, \n average_video_play_per_user,\n coalesce(real_time_conversion, 0) as real_time_conversion,\n coalesce(total_purchase_value, 0) as total_purchase_value,\n coalesce(total_sales_lead_value, 0) as total_sales_lead_value\n\n \n\n\n \n \n \n , coalesce(cast(real_time_conversions as FLOAT64), 0) as real_time_conversions\n \n \n \n \n \n , coalesce(cast(conversions as FLOAT64), 0) as conversions\n \n \n \n \n \n , coalesce(cast(installs as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(videos as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n) \n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__ad_group_history", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__ad_group_history.sql", "original_file_path": "models/stg_tiktok_ads__ad_group_history.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_group_history"], "alias": "stg_tiktok_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "349e2e224ca0839dc64bde965726aae74756b1b228ff06ad90ec178f7a2e9cb1"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents data for each ad group.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "action_categories": {"name": "action_categories", "description": "IDs of the action categories (behaviors) that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The Ad group's campaign ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "action_days": {"name": "action_days", "description": "Action days", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name. Character limit is 512 and cannot contain emoji.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_groups": {"name": "age_groups", "description": "Age groups you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget": {"name": "budget", "description": "Ad budget. Returns 0.0 when Campaign Budget Optimization (budget_optimize_switch) is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Display name of ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "interest_category": {"name": "interest_category", "description": "Interest classification. If the interest is specified, users that do not meet interest target will be excluded during delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "frequency, together with frequency_schedule, controls how often people see your ad (only available for REACH ads). For example, frequency = 2 frequency_schedule = 3 means \"show ads no more than twice every 3 day\".\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency_schedule": {"name": "frequency_schedule", "description": "frequency, together with frequency, controls how often people see your ad (only available for REACH ads).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "landing_page_url": {"name": "landing_page_url", "description": "Landing page URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "languages": {"name": "languages", "description": "Codes of the languages that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Whether record is the most recent one for this particular grain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951600.7411132, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_group_history`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__ad_group_history_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__ad_group_history_tmp')),\n staging_columns=get_ad_group_history_columns()\n )\n }}\n\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='tiktok_ads_union_schemas', \n union_database_variable='tiktok_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation,\n adgroup_id as ad_group_id,\n cast(updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n advertiser_id,\n campaign_id,\n action_days,\n action_categories,\n adgroup_name as ad_group_name,\n coalesce(age_groups, age) as age_groups,\n audience_type,\n budget,\n category,\n display_name,\n interest_category_v_2 as interest_category,\n frequency,\n frequency_schedule,\n gender,\n languages, \n landing_page_url,\n row_number() over (partition by source_relation, adgroup_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_group_history_tmp", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_group_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_group_history_tmp`\n), \n\nfields as (\n\n select\n \n \n \n action_days\n \n as \n \n action_days\n \n, \n \n \n adgroup_id\n \n as \n \n adgroup_id\n \n, \n \n \n adgroup_name\n \n as \n \n adgroup_name\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n audience_type\n \n as \n \n audience_type\n \n, \n \n \n budget\n \n as \n \n budget\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n category\n \n as \n \n category\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n frequency_schedule\n \n as \n \n frequency_schedule\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n landing_page_url\n \n as \n \n landing_page_url\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n interest_category_v_2\n \n as \n \n interest_category_v_2\n \n, \n \n \n action_categories\n \n as \n \n action_categories\n \n, \n cast(null as string) as \n \n age\n \n , \n \n \n age_groups\n \n as \n \n age_groups\n \n, \n \n \n languages\n \n as \n \n languages\n \n\n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation,\n adgroup_id as ad_group_id,\n cast(updated_at as timestamp) as updated_at,\n advertiser_id,\n campaign_id,\n action_days,\n action_categories,\n adgroup_name as ad_group_name,\n coalesce(age_groups, age) as age_groups,\n audience_type,\n budget,\n category,\n display_name,\n interest_category_v_2 as interest_category,\n frequency,\n frequency_schedule,\n gender,\n languages, \n landing_page_url,\n row_number() over (partition by source_relation, adgroup_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__ad_report_hourly", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__ad_report_hourly.sql", "original_file_path": "models/stg_tiktok_ads__ad_report_hourly.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_report_hourly"], "alias": "stg_tiktok_ads__ad_report_hourly", "checksum": {"name": "sha256", "checksum": "172f3488132a484da97603092812ea7438e6c454b19a09492466f775cf189f17"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents data for each ad for each hour.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad id", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_conversion": {"name": "cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_play_actions": {"name": "video_play_actions", "description": "The number of times your video starts to play. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_rate": {"name": "conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play": {"name": "average_video_play", "description": "The average time your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play_per_user": {"name": "average_video_play_per_user", "description": "The average time per user your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits the ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of new followers that were gained within 1 day of a user seeing a paid ad. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The estimated total amount of money you've spent on your campaign, ad group or ad during its schedule.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951600.743674, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_report_hourly`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__ad_report_hourly_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__ad_report_hourly_tmp')),\n staging_columns=get_ad_report_hourly_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='tiktok_ads_union_schemas', \n union_database_variable='tiktok_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n ad_id, \n cast(stat_time_hour as {{ dbt.type_timestamp() }}) as stat_time_hour, \n cpc, \n cpm, \n ctr, \n coalesce(impressions, 0) as impressions,\n coalesce(clicks, 0) as clicks, \n coalesce(spend, 0) as spend, \n reach, \n coalesce(conversion, 0) as conversion,\n cost_per_conversion, \n conversion_rate, \n coalesce(likes, 0) as likes,\n coalesce(comments, 0) as comments,\n coalesce(shares, 0) as shares,\n coalesce(profile_visits, 0) as profile_visits,\n coalesce(follows, 0) as follows,\n coalesce(video_play_actions, 0) as video_play_actions,\n coalesce(video_watched_2_s, 0) as video_watched_2_s,\n coalesce(video_watched_6_s, 0) as video_watched_6_s,\n coalesce(video_views_p_25, 0) as video_views_p_25,\n coalesce(video_views_p_50, 0) as video_views_p_50,\n coalesce(video_views_p_75, 0) as video_views_p_75,\n average_video_play, \n average_video_play_per_user,\n coalesce(real_time_conversion, 0) as real_time_conversion,\n coalesce(total_purchase_value, 0) as total_purchase_value,\n coalesce(total_sales_lead_value, 0) as total_sales_lead_value\n\n {{ tiktok_ads_fill_pass_through_columns(pass_through_fields=var('tiktok_ads__ad_hourly_passthrough_metrics'), except_fields=[\"real_time_conversion\", \"total_purchase_value\", \"total_sales_lead_value\"]) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_report_hourly_tmp", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_report_hourly_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_report_hourly_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.tiktok_ads_source.tiktok_ads_fill_pass_through_columns"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_report_hourly.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_report_hourly_tmp`\n), \n\nfields as (\n\n select\n \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n average_video_play\n \n as \n \n average_video_play\n \n, \n \n \n average_video_play_per_user\n \n as \n \n average_video_play_per_user\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n conversion\n \n as \n \n conversion\n \n, \n \n \n conversion_rate\n \n as \n \n conversion_rate\n \n, \n \n \n cost_per_conversion\n \n as \n \n cost_per_conversion\n \n, \n \n \n cpc\n \n as \n \n cpc\n \n, \n \n \n cpm\n \n as \n \n cpm\n \n, \n \n \n ctr\n \n as \n \n ctr\n \n, \n \n \n follows\n \n as \n \n follows\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n likes\n \n as \n \n likes\n \n, \n \n \n profile_visits\n \n as \n \n profile_visits\n \n, \n \n \n real_time_conversion\n \n as \n \n real_time_conversion\n \n, \n \n \n reach\n \n as \n \n reach\n \n, \n \n \n shares\n \n as \n \n shares\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n stat_time_hour\n \n as \n \n stat_time_hour\n \n, \n \n \n total_purchase_value\n \n as \n \n total_purchase_value\n \n, \n \n \n total_sales_lead_value\n \n as \n \n total_sales_lead_value\n \n, \n \n \n video_play_actions\n \n as \n \n video_play_actions\n \n, \n \n \n video_views_p_25\n \n as \n \n video_views_p_25\n \n, \n \n \n video_views_p_50\n \n as \n \n video_views_p_50\n \n, \n \n \n video_views_p_75\n \n as \n \n video_views_p_75\n \n, \n \n \n video_watched_2_s\n \n as \n \n video_watched_2_s\n \n, \n \n \n video_watched_6_s\n \n as \n \n video_watched_6_s\n \n, \n cast(null as string) as \n \n real_time_conversions\n \n , \n \n \n conversion\n \n as conversions , \n cast(null as string) as \n \n installs\n \n , \n \n \n video_views_p_100\n \n as videos \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n ad_id, \n cast(stat_time_hour as timestamp) as stat_time_hour, \n cpc, \n cpm, \n ctr, \n coalesce(impressions, 0) as impressions,\n coalesce(clicks, 0) as clicks, \n coalesce(spend, 0) as spend, \n reach, \n coalesce(conversion, 0) as conversion,\n cost_per_conversion, \n conversion_rate, \n coalesce(likes, 0) as likes,\n coalesce(comments, 0) as comments,\n coalesce(shares, 0) as shares,\n coalesce(profile_visits, 0) as profile_visits,\n coalesce(follows, 0) as follows,\n coalesce(video_play_actions, 0) as video_play_actions,\n coalesce(video_watched_2_s, 0) as video_watched_2_s,\n coalesce(video_watched_6_s, 0) as video_watched_6_s,\n coalesce(video_views_p_25, 0) as video_views_p_25,\n coalesce(video_views_p_50, 0) as video_views_p_50,\n coalesce(video_views_p_75, 0) as video_views_p_75,\n average_video_play, \n average_video_play_per_user,\n coalesce(real_time_conversion, 0) as real_time_conversion,\n coalesce(total_purchase_value, 0) as total_purchase_value,\n coalesce(total_sales_lead_value, 0) as total_sales_lead_value\n\n \n\n\n \n \n \n , coalesce(cast(real_time_conversions as FLOAT64), 0) as real_time_conversions\n \n \n \n \n \n , coalesce(cast(conversions as FLOAT64), 0) as conversions\n \n \n \n \n \n , coalesce(cast(installs as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(videos as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__advertiser", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__advertiser.sql", "original_file_path": "models/stg_tiktok_ads__advertiser.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__advertiser"], "alias": "stg_tiktok_ads__advertiser", "checksum": {"name": "sha256", "checksum": "f8b5e247fa25556620ed659ae7de05e559ffbfa05cd0788c583bd3ae4256b401"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents data for each advertiser.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "address": {"name": "address", "description": "Advertiser address information", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Account available balance", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company": {"name": "company", "description": "Advertiser's company name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contacter": {"name": "contacter", "description": "Contact Person", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The advertiser's country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "create_time": {"name": "create_time", "description": "Advertiser's create time", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Type of currency used by advertisers", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Brand description, i.e. promotional content", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email": {"name": "email", "description": "Advertiser contact email, desensitised data", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "industry": {"name": "industry", "description": "Advertiser industry category", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "Language used by advertisers", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "license_no": {"name": "license_no", "description": "License number", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "license_url": {"name": "license_url", "description": "License preview address, the link is valid for an hour by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cellphone_number": {"name": "cellphone_number", "description": "Contact mobile number, desensitised data", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "telephone_number": {"name": "telephone_number", "description": "Fixed phone number, desensitised data", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Ad account time zone including GMT offset", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951600.740195, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__advertiser`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__advertiser_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__advertiser_tmp')),\n staging_columns=get_advertiser_columns()\n )\n }}\n\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='tiktok_ads_union_schemas', \n union_database_variable='tiktok_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as advertiser_id, \n address, \n balance, \n company, \n contacter, \n country, \n currency, \n description, \n email, \n industry, \n language,\n name as advertiser_name, \n coalesce(cellphone_number, phone_number) as cellphone_number, \n coalesce(telephone_number, telephone) as telephone_number,\n timezone\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_tiktok_ads__advertiser_tmp", "package": null, "version": null}, {"name": "stg_tiktok_ads__advertiser_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_advertiser_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__advertiser.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__advertiser_tmp`\n), \n\nfields as (\n\n select\n \n \n \n address\n \n as \n \n address\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n cellphone_number\n \n as \n \n cellphone_number\n \n, \n \n \n company\n \n as \n \n company\n \n, \n \n \n contacter\n \n as \n \n contacter\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n industry\n \n as \n \n industry\n \n, \n \n \n language\n \n as \n \n language\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as string) as \n \n phone_number\n \n , \n cast(null as string) as \n \n telephone\n \n , \n \n \n telephone_number\n \n as \n \n telephone_number\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n\n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as advertiser_id, \n address, \n balance, \n company, \n contacter, \n country, \n currency, \n description, \n email, \n industry, \n language,\n name as advertiser_name, \n coalesce(cellphone_number, phone_number) as cellphone_number, \n coalesce(telephone_number, telephone) as telephone_number,\n timezone\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__ad_history", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__ad_history.sql", "original_file_path": "models/stg_tiktok_ads__ad_history.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_history"], "alias": "stg_tiktok_ads__ad_history", "checksum": {"name": "sha256", "checksum": "366a9f7f32faff70cbb98e3a4f4280c023c0913c956fe2890bacefbb13e0674c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents data for each ad.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad Name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "call_to_action": {"name": "call_to_action", "description": "Call to action values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_tracking_url": {"name": "click_tracking_url", "description": "Click monitoring URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_tracking_url": {"name": "impression_tracking_url", "description": "Display monitoring URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "landing_page_url": {"name": "landing_page_url", "description": "Landing page URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `landing_page_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `landing_page_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `landing_page_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `landing_page_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `landing_page_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `landing_page_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `landing_page_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Whether record is the most recent one for this particular grain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951600.741896, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_history`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__ad_history_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__ad_history_tmp')),\n staging_columns=get_ad_history_columns()\n )\n }}\n\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='tiktok_ads_union_schemas', \n union_database_variable='tiktok_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n ad_id,\n cast(updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n adgroup_id as ad_group_id,\n advertiser_id,\n campaign_id,\n ad_name,\n call_to_action,\n click_tracking_url,\n impression_tracking_url,\n {{ dbt.split_part('landing_page_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('landing_page_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('landing_page_url') }} as url_path,\n {{ tiktok_ads_source.tiktok_ads_extract_url_parameter('landing_page_url', 'utm_source') }} as utm_source,\n {{ tiktok_ads_source.tiktok_ads_extract_url_parameter('landing_page_url', 'utm_medium') }} as utm_medium,\n {{ tiktok_ads_source.tiktok_ads_extract_url_parameter('landing_page_url', 'utm_campaign') }} as utm_campaign,\n {{ tiktok_ads_source.tiktok_ads_extract_url_parameter('landing_page_url', 'utm_content') }} as utm_content,\n {{ tiktok_ads_source.tiktok_ads_extract_url_parameter('landing_page_url', 'utm_term') }} as utm_term,\n landing_page_url,\n row_number() over (partition by source_relation, ad_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_history_tmp", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.tiktok_ads_source.tiktok_ads_extract_url_parameter"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_history_tmp`\n), \n\nfields as (\n\n select\n \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n ad_name\n \n as \n \n ad_name\n \n, \n \n \n adgroup_id\n \n as \n \n adgroup_id\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n call_to_action\n \n as \n \n call_to_action\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n click_tracking_url\n \n as \n \n click_tracking_url\n \n, \n \n \n impression_tracking_url\n \n as \n \n impression_tracking_url\n \n, \n \n \n landing_page_url\n \n as \n \n landing_page_url\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n ad_id,\n cast(updated_at as timestamp) as updated_at,\n adgroup_id as ad_group_id,\n advertiser_id,\n campaign_id,\n ad_name,\n call_to_action,\n click_tracking_url,\n impression_tracking_url,\n \n\n \n split(\n landing_page_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_host,\n '/' || safe_cast(\n\n \n split(\n \n\n case when \n\n length(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ) = 0\n then ''\n else\n substr(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n -1 * (\n\n length(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_path,\n nullif(\n\n \n split(\n \n\n \n split(\n landing_page_url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n landing_page_url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n landing_page_url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n landing_page_url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n nullif(\n\n \n split(\n \n\n \n split(\n landing_page_url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term,\n landing_page_url,\n row_number() over (partition by source_relation, ad_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__campaign_history", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__campaign_history.sql", "original_file_path": "models/stg_tiktok_ads__campaign_history.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__campaign_history"], "alias": "stg_tiktok_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "3ea23a6b39aec6781f4fc1d4d47bf74f479ef708034d3e04be8125c4d26c2e36"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents data for each campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_type": {"name": "campaign_type", "description": "Campaign Type, indicates the campaign is a regular campaign or iOS 14 campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "split_test_variable": {"name": "split_test_variable", "description": "Split Test variables. Optional values; TARGETING, BIDDING_OPTIMIZATION , CREATIVE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Whether record is the most recent one for this particular grain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951600.7423658, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__campaign_history`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__campaign_history_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='tiktok_ads_union_schemas', \n union_database_variable='tiktok_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n campaign_id,\n cast(updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n advertiser_id,\n campaign_name,\n campaign_type,\n split_test_variable,\n row_number() over (partition by source_relation, campaign_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_tiktok_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_tiktok_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__campaign_history_tmp`\n), \n\nfields as (\n\n select\n \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n cast(null as string) as \n \n campaign_name\n \n , \n cast(null as string) as \n \n campaign_type\n \n , \n cast(null as string) as \n \n split_test_variable\n \n , \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n campaign_id,\n cast(updated_at as timestamp) as updated_at,\n advertiser_id,\n campaign_name,\n campaign_type,\n split_test_variable,\n row_number() over (partition by source_relation, campaign_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__ad_report_hourly_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__ad_report_hourly_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__ad_report_hourly_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_report_hourly_tmp"], "alias": "stg_tiktok_ads__ad_report_hourly_tmp", "checksum": {"name": "sha256", "checksum": "d814023272131a2935e529ce3d3cd8f97e28bcc142b27f0cbf8cc281889b9400"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951598.117354, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_report_hourly_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_report_hourly', \n database_variable='tiktok_ads_database', \n schema_variable='tiktok_ads_schema', \n default_database=target.database,\n default_schema='tiktok_ads',\n default_variable='ad_report_hourly',\n union_schema_variable='tiktok_ads_union_schemas',\n union_database_variable='tiktok_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["tiktok_ads", "ad_report_hourly"], ["tiktok_ads", "ad_report_hourly"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.tiktok_ads_source.tiktok_ads.ad_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_report_hourly_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`tiktok_ad_report_hourly_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__ad_history_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__ad_history_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_history_tmp"], "alias": "stg_tiktok_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "d302caf66e9dae0aa86dd7a4bd5dc2d494246f66ca1b3017fa941135d4fcfb07"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951598.123033, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_history', \n database_variable='tiktok_ads_database', \n schema_variable='tiktok_ads_schema', \n default_database=target.database,\n default_schema='tiktok_ads',\n default_variable='ad_history',\n union_schema_variable='tiktok_ads_union_schemas',\n union_database_variable='tiktok_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["tiktok_ads", "ad_history"], ["tiktok_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.tiktok_ads_source.tiktok_ads.ad_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`tiktok_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__ad_group_history_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_group_history_tmp"], "alias": "stg_tiktok_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "500dc2e29e27a02a4f259d87063cf556d69b605a34d43eab7d6a5cf4fc18f303"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951598.129329, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_group_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='adgroup_history', \n database_variable='tiktok_ads_database', \n schema_variable='tiktok_ads_schema', \n default_database=target.database,\n default_schema='tiktok_ads',\n default_variable='adgroup_history',\n union_schema_variable='tiktok_ads_union_schemas',\n union_database_variable='tiktok_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["tiktok_ads", "adgroup_history"], ["tiktok_ads", "adgroup_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.tiktok_ads_source.tiktok_ads.adgroup_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`tiktok_adgroup_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__campaign_report_hourly_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__campaign_report_hourly_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__campaign_report_hourly_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__campaign_report_hourly_tmp"], "alias": "stg_tiktok_ads__campaign_report_hourly_tmp", "checksum": {"name": "sha256", "checksum": "2ba1f021a1b7d5713f191cd109e848d506dd1f5551997483d3359859452c3e5a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951598.134708, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__campaign_report_hourly_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_report_hourly', \n database_variable='tiktok_ads_database', \n schema_variable='tiktok_ads_schema', \n default_database=target.database,\n default_schema='tiktok_ads',\n default_variable='campaign_report_hourly',\n union_schema_variable='tiktok_ads_union_schemas',\n union_database_variable='tiktok_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["tiktok_ads", "campaign_report_hourly"], ["tiktok_ads", "campaign_report_hourly"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.tiktok_ads_source.tiktok_ads.campaign_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__campaign_report_hourly_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`tiktok_campaign_report_hourly_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__ad_group_report_hourly_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__ad_group_report_hourly_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__ad_group_report_hourly_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_group_report_hourly_tmp"], "alias": "stg_tiktok_ads__ad_group_report_hourly_tmp", "checksum": {"name": "sha256", "checksum": "487acd70d5715c9f881780bc93c5cb4f011c4fa651ca7182d3109fbf7f0be055"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951598.140189, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_group_report_hourly_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='adgroup_report_hourly', \n database_variable='tiktok_ads_database', \n schema_variable='tiktok_ads_schema', \n default_database=target.database,\n default_schema='tiktok_ads',\n default_variable='adgroup_report_hourly',\n union_schema_variable='tiktok_ads_union_schemas',\n union_database_variable='tiktok_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["tiktok_ads", "adgroup_report_hourly"], ["tiktok_ads", "adgroup_report_hourly"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_group_report_hourly_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`tiktok_adgroup_report_hourly_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__campaign_history_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__campaign_history_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__campaign_history_tmp"], "alias": "stg_tiktok_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "d03040995c56c71b1e8348a27eaf677b13e3d2d5e6c8220ee0aa7dc283ce0396"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951598.145797, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__campaign_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='tiktok_ads_database', \n schema_variable='tiktok_ads_schema', \n default_database=target.database,\n default_schema='tiktok_ads',\n default_variable='campaign_history',\n union_schema_variable='tiktok_ads_union_schemas',\n union_database_variable='tiktok_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["tiktok_ads", "campaign_history"], ["tiktok_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.tiktok_ads_source.tiktok_ads.campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`tiktok_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_tiktok_ads__advertiser_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__advertiser_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__advertiser_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__advertiser_tmp"], "alias": "stg_tiktok_ads__advertiser_tmp", "checksum": {"name": "sha256", "checksum": "5e7939bfa9f2faf4d8b83626a7fb9e43bbbe764da901a724dcb7041ad87f796e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951598.151158, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__advertiser_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='advertiser', \n database_variable='tiktok_ads_database', \n schema_variable='tiktok_ads_schema', \n default_database=target.database,\n default_schema='tiktok_ads',\n default_variable='advertiser',\n union_schema_variable='tiktok_ads_union_schemas',\n union_database_variable='tiktok_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["tiktok_ads", "advertiser"], ["tiktok_ads", "advertiser"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.tiktok_ads_source.tiktok_ads.advertiser"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__advertiser_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`tiktok_advertiser_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_actions", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__basic_ad_actions.sql", "original_file_path": "models/stg_facebook_ads__basic_ad_actions.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions", "fqn": ["facebook_ads_source", "stg_facebook_ads__basic_ad_actions"], "alias": "stg_facebook_ads__basic_ad_actions", "checksum": {"name": "sha256", "checksum": "e818ceb4efda63d0e63702e250b413f316697daf8dfb47a8ed1851b7488bc5fa"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily conversion performance of an ad in Facebook. This is the prebuilt `basic_ad` report broken down by `action_type`. Include more conversion value metrics by configuring the `facebook_ads__basic_ad_actions_passthrough_metrics` variable.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "action_type": {"name": "action_type", "description": "The kind of actions taken on your ad, Page, app or event after your ad was served to someone, even if they didn't click on it. Action types include Page likes, app installs, conversions, event responses and more. Actions prepended by app_custom_event come from mobile app events and actions prepended by offsite_conversion come from the Facebook Pixel.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the reported performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Conversion metric value using the default attribution window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.8713548, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad_actions`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_facebook_ads__basic_ad_actions_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_facebook_ads__basic_ad_actions_tmp')),\n staging_columns=get_basic_ad_actions_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='facebook_ads_union_schemas', \n union_database_variable='facebook_ads_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n lower(action_type) as action_type,\n cast(ad_id as {{ dbt.type_bigint() }}) as ad_id,\n date as date_day,\n cast(coalesce(value, 0) as {{ dbt.type_float() }}) as conversions\n\n {{ facebook_ads_fill_pass_through_columns(var('facebook_ads__basic_ad_actions_passthrough_metrics')) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad_actions_tmp", "package": null, "version": null}, {"name": "stg_facebook_ads__basic_ad_actions_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_basic_ad_actions_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_bigint", "macro.dbt.type_float", "macro.facebook_ads_source.facebook_ads_fill_pass_through_columns"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__basic_ad_actions.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad_actions_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n action_type\n \n as \n \n action_type\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n value\n \n as \n \n value\n \n, \n \n \n inline\n \n as conversion_value_inline , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n\n\n, cast('' as string) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n lower(action_type) as action_type,\n cast(ad_id as bigint) as ad_id,\n date as date_day,\n cast(coalesce(value, 0) as FLOAT64) as conversions\n\n \n\n\n \n \n , coalesce(cast(1234 as FLOAT64), 0) as conversion_value_inline\n \n \n \n , coalesce(cast(null as FLOAT64), 0) as installs\n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__basic_ad": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__basic_ad.sql", "original_file_path": "models/stg_facebook_ads__basic_ad.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad", "fqn": ["facebook_ads_source", "stg_facebook_ads__basic_ad"], "alias": "stg_facebook_ads__basic_ad", "checksum": {"name": "sha256", "checksum": "c34825894fe1dfad9fdad1646831f7e43739a2f725193f88f2b06741665c9a1c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of an ad in Facebook.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of the ad the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "Name of the ad set the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the reported performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of people who saw any content from your Page or about your Page. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The average number of times each person saw your ad; it is calculated as impressions divided by reach.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.870838, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_facebook_ads__basic_ad_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_facebook_ads__basic_ad_tmp')),\n staging_columns=get_basic_ad_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='facebook_ads_union_schemas', \n union_database_variable='facebook_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_id as {{ dbt.type_bigint() }}) as ad_id,\n ad_name,\n adset_name as ad_set_name,\n date as date_day,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n impressions,\n coalesce(inline_link_clicks,0) as clicks,\n spend\n\n {# \n Reach and Frequency are not included in downstream models by default, though they are included in the staging model.\n The below ensures that users can add Reach and Frequency to downstream models with the `facebook_ads__basic_ad_passthrough_metrics` variable\n while avoiding duplicate column errors.\n #}\n {%- set check = [] %}\n {%- for field in var('facebook_ads__basic_ad_passthrough_metrics') -%}\n {%- set field_name = field.alias|default(field.name)|lower %}\n {% if field_name in ['reach', 'frequency'] %}\n {% do check.append(field_name) %}\n {% endif %}\n {%- endfor %}\n\n {%- for metric in ['reach', 'frequency'] -%}\n {% if metric not in check %}\n , {{ metric }}\n {% endif %}\n {%- endfor %}\n\n {{ fivetran_utils.fill_pass_through_columns('facebook_ads__basic_ad_passthrough_metrics') }}\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad_tmp", "package": null, "version": null}, {"name": "stg_facebook_ads__basic_ad_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_basic_ad_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_bigint", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__basic_ad.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad_tmp`\n),\n\nfields as (\n\n select\n \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n cast(null as string) as \n \n ad_name\n \n , \n cast(null as string) as \n \n adset_name\n \n , \n \n \n date\n \n as \n \n date\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n inline_link_clicks\n \n as \n \n inline_link_clicks\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n cast(null as INT64) as \n \n reach\n \n , \n cast(null as FLOAT64) as \n \n frequency\n \n , \n cast(null as string) as \n \n conversions\n \n , \n cast(null as string) as fake_freq_name \n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_id as bigint) as ad_id,\n ad_name,\n adset_name as ad_set_name,\n date as date_day,\n cast(account_id as bigint) as account_id,\n impressions,\n coalesce(inline_link_clicks,0) as clicks,\n spend\n\n \n \n \n \n \n \n , frequency\n \n\n \n\n\n \n \n \n , 3333 as reach\n \n \n \n \n \n , conversions\n \n \n \n \n \n , 78910 as fake_freq_name\n \n \n \n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_action_values", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__basic_ad_action_values.sql", "original_file_path": "models/stg_facebook_ads__basic_ad_action_values.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values", "fqn": ["facebook_ads_source", "stg_facebook_ads__basic_ad_action_values"], "alias": "stg_facebook_ads__basic_ad_action_values", "checksum": {"name": "sha256", "checksum": "efdeed5a778c5ce9558dd31aff4e95cb35d64b260b58eb271cf9c31f4a008118"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily conversion values associated with an ad in Facebook. This is the prebuilt `basic_ad` report broken down by `action_type` and `action_values` Include more conversion value metrics by configuring the `facebook_ads__basic_ad_action_values_passthrough_metrics` variable.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "action_type": {"name": "action_type", "description": "The kind of actions taken on your ad, Page, app or event after your ad was served to someone, even if they didn't click on it. Action types include Page likes, app installs, conversions, event responses and more. Actions prepended by app_custom_event come from mobile app events and actions prepended by offsite_conversion come from the Facebook Pixel.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the reported performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "Monetary value associated with the conversion action using the default attribution window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.8717198, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad_action_values`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_facebook_ads__basic_ad_action_values_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_facebook_ads__basic_ad_action_values_tmp')),\n staging_columns=get_basic_ad_action_values_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='facebook_ads_union_schemas', \n union_database_variable='facebook_ads_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n lower(action_type) as action_type,\n cast(ad_id as {{ dbt.type_bigint() }}) as ad_id,\n date as date_day,\n cast(coalesce(value, 0) as {{ dbt.type_float() }}) as conversions_value\n\n {{ facebook_ads_fill_pass_through_columns(var('facebook_ads__basic_ad_action_values_passthrough_metrics')) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad_action_values_tmp", "package": null, "version": null}, {"name": "stg_facebook_ads__basic_ad_action_values_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_basic_ad_action_values_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_bigint", "macro.dbt.type_float", "macro.facebook_ads_source.facebook_ads_fill_pass_through_columns"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__basic_ad_action_values.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad_action_values_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n action_type\n \n as \n \n action_type\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n value\n \n as \n \n value\n \n, \n \n \n _7_d_click\n \n as \n \n _7_d_click\n \n\n\n\n \n\n\n, cast('' as string) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n lower(action_type) as action_type,\n cast(ad_id as bigint) as ad_id,\n date as date_day,\n cast(coalesce(value, 0) as FLOAT64) as conversions_value\n\n \n\n\n \n \n , coalesce(cast(_7_d_click as FLOAT64), 0) as _7_d_click\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__creative_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__creative_history", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__creative_history.sql", "original_file_path": "models/stg_facebook_ads__creative_history.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history", "fqn": ["facebook_ads_source", "stg_facebook_ads__creative_history"], "alias": "stg_facebook_ads__creative_history", "checksum": {"name": "sha256", "checksum": "d142201b0fd0aa56c22825ff8cfecee3a40846d787bced4347f9a6a8005ac13f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table reflects a Facebook creative.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "Unique record identifier", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "Unique ID for an ad creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Ad account ID for the account this ad creative belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_name": {"name": "creative_name", "description": "Name of this ad creative as seen in the ad account's library.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_tags": {"name": "url_tags", "description": "A set of query string parameters which will replace or be appended to urls clicked from page post ads, message of the post, and canvas app install creatives only.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Indicates whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_link": {"name": "page_link", "description": "Link for the page.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_page_link": {"name": "template_page_link", "description": "URL destination of Facebook dynamic ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "asset_feed_spec_link_urls": {"name": "asset_feed_spec_link_urls", "description": "Link to the asset feed spec", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_child_attachments": {"name": "object_story_link_data_child_attachments", "description": "Link of the object story child attachments", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_caption": {"name": "object_story_link_data_caption", "description": "Link of the object story caption", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_description": {"name": "object_story_link_data_description", "description": "Link of the object story description", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_link": {"name": "object_story_link_data_link", "description": "Link of the object story link", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_message": {"name": "object_story_link_data_message", "description": "Link of the object story message", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_app_link_spec_ios": {"name": "template_app_link_spec_ios", "description": "Link of the object story spec for ios", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_app_link_spec_ipad": {"name": "template_app_link_spec_ipad", "description": "Link of the template app spec for ipad", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_app_link_spec_android": {"name": "template_app_link_spec_android", "description": "Link of the template app for android", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_app_link_spec_iphone": {"name": "template_app_link_spec_iphone", "description": "Link of the template app for iphone", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.8702888, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__creative_history`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_facebook_ads__creative_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_facebook_ads__creative_history_tmp')),\n staging_columns=get_creative_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='facebook_ads_union_schemas', \n union_database_variable='facebook_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n _fivetran_id,\n _fivetran_synced,\n cast(id as {{ dbt.type_bigint() }}) as creative_id,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n name as creative_name,\n page_link,\n template_page_link,\n url_tags,\n asset_feed_spec_link_urls,\n object_story_link_data_child_attachments,\n object_story_link_data_caption, \n object_story_link_data_description, \n object_story_link_data_link, \n object_story_link_data_message,\n template_app_link_spec_ios,\n template_app_link_spec_ipad,\n template_app_link_spec_android,\n template_app_link_spec_iphone,\n case when id is null and _fivetran_synced is null \n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by _fivetran_synced desc) end = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_facebook_ads__creative_history_tmp", "package": null, "version": null}, {"name": "stg_facebook_ads__creative_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_creative_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__creative_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__creative_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n page_link\n \n as \n \n page_link\n \n, \n \n \n template_page_link\n \n as \n \n template_page_link\n \n, \n \n \n url_tags\n \n as \n \n url_tags\n \n, \n \n \n asset_feed_spec_link_urls\n \n as \n \n asset_feed_spec_link_urls\n \n, \n \n \n object_story_link_data_child_attachments\n \n as \n \n object_story_link_data_child_attachments\n \n, \n \n \n object_story_link_data_caption\n \n as \n \n object_story_link_data_caption\n \n, \n \n \n object_story_link_data_description\n \n as \n \n object_story_link_data_description\n \n, \n \n \n object_story_link_data_link\n \n as \n \n object_story_link_data_link\n \n, \n \n \n object_story_link_data_message\n \n as \n \n object_story_link_data_message\n \n, \n cast(null as string) as \n \n template_app_link_spec_android\n \n , \n \n \n template_app_link_spec_ios\n \n as \n \n template_app_link_spec_ios\n \n, \n cast(null as string) as \n \n template_app_link_spec_ipad\n \n , \n cast(null as string) as \n \n template_app_link_spec_iphone\n \n \n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n _fivetran_id,\n _fivetran_synced,\n cast(id as bigint) as creative_id,\n cast(account_id as bigint) as account_id,\n name as creative_name,\n page_link,\n template_page_link,\n url_tags,\n asset_feed_spec_link_urls,\n object_story_link_data_child_attachments,\n object_story_link_data_caption, \n object_story_link_data_description, \n object_story_link_data_link, \n object_story_link_data_message,\n template_app_link_spec_ios,\n template_app_link_spec_ipad,\n template_app_link_spec_android,\n template_app_link_spec_iphone,\n case when id is null and _fivetran_synced is null \n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by _fivetran_synced desc) end = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__campaign_history", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__campaign_history.sql", "original_file_path": "models/stg_facebook_ads__campaign_history.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history", "fqn": ["facebook_ads_source", "stg_facebook_ads__campaign_history"], "alias": "stg_facebook_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "6b57397a47e657006bdb39472b92fd97f4144a7a28bd7912e99f3ca5bd65af7e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table reflects a Facebook campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this campaign belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record. All records should have this value set to True given we filter on it.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The time the campaign was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "Timestamp of designated campaign start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "Timestamp of designated campaign end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "lifetime_budget": {"name": "lifetime_budget", "description": "Lifetime budget of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.8675818, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__campaign_history`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_facebook_ads__campaign_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_facebook_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='facebook_ads_union_schemas', \n union_database_variable='facebook_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n updated_time as updated_at,\n created_time as created_at,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n cast(id as {{ dbt.type_bigint() }}) as campaign_id,\n name as campaign_name,\n start_time as start_at,\n stop_time as end_at,\n status,\n daily_budget,\n lifetime_budget,\n budget_remaining,\n case when id is null and updated_time is null \n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by updated_time desc) end = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_facebook_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_facebook_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__campaign_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n updated_time\n \n as \n \n updated_time\n \n, \n cast(null as timestamp) as \n \n created_time\n \n , \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as timestamp) as \n \n start_time\n \n , \n cast(null as timestamp) as \n \n stop_time\n \n , \n cast(null as string) as \n \n status\n \n , \n cast(null as INT64) as \n \n daily_budget\n \n , \n cast(null as INT64) as \n \n lifetime_budget\n \n , \n cast(null as FLOAT64) as \n \n budget_remaining\n \n \n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n updated_time as updated_at,\n created_time as created_at,\n cast(account_id as bigint) as account_id,\n cast(id as bigint) as campaign_id,\n name as campaign_name,\n start_time as start_at,\n stop_time as end_at,\n status,\n daily_budget,\n lifetime_budget,\n budget_remaining,\n case when id is null and updated_time is null \n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by updated_time desc) end = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__account_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__account_history", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__account_history.sql", "original_file_path": "models/stg_facebook_ads__account_history.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history", "fqn": ["facebook_ads_source", "stg_facebook_ads__account_history"], "alias": "stg_facebook_ads__account_history", "checksum": {"name": "sha256", "checksum": "090302a3b7cb43a4b919fba99fb66060ac7581e1c9f0deb432cd30dec10d0084"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table reflects a Facebook ad account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record. All records should have this value set to True given we filter on it.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_status": {"name": "account_status", "description": "Current status of account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_country_code": {"name": "business_country_code", "description": "Country code of business associated to account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The time account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency associated with account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone_name": {"name": "timezone_name", "description": "Timezone associated with account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.865758, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__account_history`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_facebook_ads__account_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_facebook_ads__account_history_tmp')),\n staging_columns=get_account_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='facebook_ads_union_schemas', \n union_database_variable='facebook_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_bigint() }}) as account_id,\n _fivetran_synced,\n name as account_name,\n account_status,\n business_country_code,\n created_time as created_at,\n currency,\n timezone_name,\n case when id is null and _fivetran_synced is null \n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by _fivetran_synced desc) end = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_facebook_ads__account_history_tmp", "package": null, "version": null}, {"name": "stg_facebook_ads__account_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__account_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__account_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as string) as \n \n account_status\n \n , \n cast(null as string) as \n \n business_country_code\n \n , \n cast(null as timestamp) as \n \n created_time\n \n , \n cast(null as string) as \n \n currency\n \n , \n cast(null as string) as \n \n timezone_name\n \n \n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as bigint) as account_id,\n _fivetran_synced,\n name as account_name,\n account_status,\n business_country_code,\n created_time as created_at,\n currency,\n timezone_name,\n case when id is null and _fivetran_synced is null \n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by _fivetran_synced desc) end = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__ad_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__ad_history", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__ad_history.sql", "original_file_path": "models/stg_facebook_ads__ad_history.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history", "fqn": ["facebook_ads_source", "stg_facebook_ads__ad_history"], "alias": "stg_facebook_ads__ad_history", "checksum": {"name": "sha256", "checksum": "40418e511a752db37c4a7ecb979055df2a640d712f87ecd445f1ca63c0e07b6c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table reflects a Facebook ad.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of this ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "ID of the ad set that contains the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Ad campaign that contains this ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the ad creative to be used by this ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record. All records should have this value set to True given we filter on it.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_domain": {"name": "conversion_domain", "description": "The domain you've configured the ad to convert to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.866349, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_history`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_facebook_ads__ad_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_facebook_ads__ad_history_tmp')),\n staging_columns=get_ad_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='facebook_ads_union_schemas', \n union_database_variable='facebook_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n updated_time as updated_at,\n cast(id as {{ dbt.type_bigint() }}) as ad_id,\n name as ad_name,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n cast(ad_set_id as {{ dbt.type_bigint() }}) as ad_set_id, \n cast(campaign_id as {{ dbt.type_bigint() }}) as campaign_id,\n cast(creative_id as {{ dbt.type_bigint() }}) as creative_id,\n conversion_domain,\n case when id is null and updated_time is null \n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by updated_time desc) end = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_facebook_ads__ad_history_tmp", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n updated_time\n \n as \n \n updated_time\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_set_id\n \n as \n \n ad_set_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n creative_id\n \n as \n \n creative_id\n \n, \n cast(null as string) as \n \n conversion_domain\n \n \n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n updated_time as updated_at,\n cast(id as bigint) as ad_id,\n name as ad_name,\n cast(account_id as bigint) as account_id,\n cast(ad_set_id as bigint) as ad_set_id, \n cast(campaign_id as bigint) as campaign_id,\n cast(creative_id as bigint) as creative_id,\n conversion_domain,\n case when id is null and updated_time is null \n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by updated_time desc) end = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__ad_set_history", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__ad_set_history.sql", "original_file_path": "models/stg_facebook_ads__ad_set_history.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "fqn": ["facebook_ads_source", "stg_facebook_ads__ad_set_history"], "alias": "stg_facebook_ads__ad_set_history", "checksum": {"name": "sha256", "checksum": "7e5b24c05a2a4c8b51820fdfdab5ed9e63f89f9192b9c5863fe654e1c519a508"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table reflects a Facebook ad set.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "The ID of the ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad set belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Ad campaign that contains this ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "The name of the ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record. All records should have this value set to True given we filter on it.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "Timestamp of designated ad set start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "Timestamp of designated ad set end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_strategy": {"name": "bid_strategy", "description": "Bid strategy values are - 'LOWEST_COST_WITHOUT_CAP', 'LOWEST_COST_WITH_BID_CAP', 'COST_CAP', 'LOWEST_COST_WITH_MIN_ROAS'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization_goal": {"name": "optimization_goal", "description": "The optimization goal this ad set is using. Possible values defined [here](https://developers.facebook.com/docs/marketing-api/reference/ad-campaign/#fields).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951600.866982, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_set_history`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_facebook_ads__ad_set_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_facebook_ads__ad_set_history_tmp')),\n staging_columns=get_ad_set_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='facebook_ads_union_schemas', \n union_database_variable='facebook_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n updated_time as updated_at,\n cast(id as {{ dbt.type_bigint() }}) as ad_set_id,\n name as ad_set_name,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n cast(campaign_id as {{ dbt.type_bigint() }}) as campaign_id,\n start_time as start_at,\n end_time as end_at,\n bid_strategy,\n daily_budget,\n budget_remaining,\n status,\n optimization_goal,\n case when id is null and updated_time is null\n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by updated_time desc) end = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_facebook_ads__ad_set_history_tmp", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_set_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_ad_set_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__ad_set_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_set_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n updated_time\n \n as \n \n updated_time\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n cast(null as timestamp) as \n \n start_time\n \n , \n cast(null as timestamp) as \n \n end_time\n \n , \n cast(null as string) as \n \n bid_strategy\n \n , \n cast(null as INT64) as \n \n daily_budget\n \n , \n cast(null as INT64) as \n \n budget_remaining\n \n , \n cast(null as string) as \n \n status\n \n , \n cast(null as string) as \n \n optimization_goal\n \n \n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n updated_time as updated_at,\n cast(id as bigint) as ad_set_id,\n name as ad_set_name,\n cast(account_id as bigint) as account_id,\n cast(campaign_id as bigint) as campaign_id,\n start_time as start_at,\n end_time as end_at,\n bid_strategy,\n daily_budget,\n budget_remaining,\n status,\n optimization_goal,\n case when id is null and updated_time is null\n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by updated_time desc) end = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__ad_set_history_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__ad_set_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__ad_set_history_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__ad_set_history_tmp"], "alias": "stg_facebook_ads__ad_set_history_tmp", "checksum": {"name": "sha256", "checksum": "c0ef5a352e6b9daecaee96291b7775cfb97efd9566417662f459b886be819d5f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951598.257215, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_set_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_set_history', \n database_variable='facebook_ads_database', \n schema_variable='facebook_ads_schema', \n default_database=target.database,\n default_schema='facebook_ads',\n default_variable='ad_set_history',\n union_schema_variable='facebook_ads_union_schemas',\n union_database_variable='facebook_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["facebook_ads", "ad_set_history"], ["facebook_ads", "ad_set_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.facebook_ads_source.facebook_ads.ad_set_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__ad_set_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_ad_set_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__basic_ad_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__basic_ad_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__basic_ad_tmp"], "alias": "stg_facebook_ads__basic_ad_tmp", "checksum": {"name": "sha256", "checksum": "7b566dd6bd0639942bbb87ea9beaecf76cc79ef570ca120f6689d2e26a7a3a5e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951598.262808, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='basic_ad', \n database_variable='facebook_ads_database', \n schema_variable='facebook_ads_schema', \n default_database=target.database,\n default_schema='facebook_ads',\n default_variable='basic_ad',\n union_schema_variable='facebook_ads_union_schemas',\n union_database_variable='facebook_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["facebook_ads", "basic_ad"], ["facebook_ads", "basic_ad"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.facebook_ads_source.facebook_ads.basic_ad"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__basic_ad_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_basic_ad_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__ad_history_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__ad_history_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__ad_history_tmp"], "alias": "stg_facebook_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "a92e7e17eff0e7ac71e8465dfac58f2f54c4e42e9e2b2bd733f1db25ae9e8ee9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951598.268634, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_history', \n database_variable='facebook_ads_database', \n schema_variable='facebook_ads_schema', \n default_database=target.database,\n default_schema='facebook_ads',\n default_variable='ad_history',\n union_schema_variable='facebook_ads_union_schemas',\n union_database_variable='facebook_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["facebook_ads", "ad_history"], ["facebook_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.facebook_ads_source.facebook_ads.ad_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__campaign_history_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__campaign_history_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__campaign_history_tmp"], "alias": "stg_facebook_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "39e7995fdba2bbfa5a72903a60c486a18cdb73122ba447b2bbd1f01bd1c05dea"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951598.2735958, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__campaign_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='facebook_ads_database', \n schema_variable='facebook_ads_schema', \n default_database=target.database,\n default_schema='facebook_ads',\n default_variable='campaign_history',\n union_schema_variable='facebook_ads_union_schemas',\n union_database_variable='facebook_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["facebook_ads", "campaign_history"], ["facebook_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.facebook_ads_source.facebook_ads.campaign_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_actions_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__basic_ad_actions_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__basic_ad_actions_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__basic_ad_actions_tmp"], "alias": "stg_facebook_ads__basic_ad_actions_tmp", "checksum": {"name": "sha256", "checksum": "2325ada772c4afb4eba45dd65cf56ede4b7fafb9d30b7f95b2ae61b263ac089b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951598.278274, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad_actions_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='basic_ad_actions', \n database_variable='facebook_ads_database', \n schema_variable='facebook_ads_schema', \n default_database=target.database,\n default_schema='facebook_ads',\n default_variable='basic_ad_actions',\n union_schema_variable='facebook_ads_union_schemas',\n union_database_variable='facebook_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["facebook_ads", "basic_ad_actions"], ["facebook_ads", "basic_ad_actions"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.facebook_ads_source.facebook_ads.basic_ad_actions"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__basic_ad_actions_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_basic_ad_actions_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__creative_history_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__creative_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__creative_history_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__creative_history_tmp"], "alias": "stg_facebook_ads__creative_history_tmp", "checksum": {"name": "sha256", "checksum": "d2796e42711b748555b1d084124977d08b3677ca01ab8f9de0a58b591cf0d7c4"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951598.284637, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__creative_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='creative_history', \n database_variable='facebook_ads_database', \n schema_variable='facebook_ads_schema', \n default_database=target.database,\n default_schema='facebook_ads',\n default_variable='creative_history',\n union_schema_variable='facebook_ads_union_schemas',\n union_database_variable='facebook_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["facebook_ads", "creative_history"], ["facebook_ads", "creative_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.facebook_ads_source.facebook_ads.creative_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__creative_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_creative_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_action_values_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__basic_ad_action_values_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__basic_ad_action_values_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__basic_ad_action_values_tmp"], "alias": "stg_facebook_ads__basic_ad_action_values_tmp", "checksum": {"name": "sha256", "checksum": "01445e306be93b60909269c837857546f810e43701e36e7125c815a5da4f96f6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951598.289536, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad_action_values_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='basic_ad_action_values', \n database_variable='facebook_ads_database', \n schema_variable='facebook_ads_schema', \n default_database=target.database,\n default_schema='facebook_ads',\n default_variable='basic_ad_action_values',\n union_schema_variable='facebook_ads_union_schemas',\n union_database_variable='facebook_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["facebook_ads", "basic_ad_action_values"], ["facebook_ads", "basic_ad_action_values"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.facebook_ads_source.facebook_ads.basic_ad_action_values"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__basic_ad_action_values_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_basic_ad_action_values_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__account_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_facebook_ads__account_history_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__account_history_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__account_history_tmp"], "alias": "stg_facebook_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "061b8efffc7a131b462f62eb989472f03f2ff34002aac20195c73309079737dd"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951598.2946281, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__account_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_history', \n database_variable='facebook_ads_database', \n schema_variable='facebook_ads_schema', \n default_database=target.database,\n default_schema='facebook_ads',\n default_variable='account_history',\n union_schema_variable='facebook_ads_union_schemas',\n union_database_variable='facebook_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["facebook_ads", "account_history"], ["facebook_ads", "account_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.facebook_ads_source.facebook_ads.account_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__account_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_squad_hourly_report", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__ad_squad_hourly_report.sql", "original_file_path": "models/stg_snapchat_ads__ad_squad_hourly_report.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_squad_hourly_report"], "alias": "stg_snapchat_ads__ad_squad_hourly_report", "checksum": {"name": "sha256", "checksum": "366d99f92ec72fab32286b8910ec70cba3cdcf165b35698dc4012e42a20debce"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a historic version of an ad in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "ID of the ad squad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_hour": {"name": "date_hour", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_1": {"name": "attachment_quartile_1", "description": "Number of times your Long Form Video was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_2": {"name": "attachment_quartile_2", "description": "Number of times your Long Form Video was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_3": {"name": "attachment_quartile_3", "description": "Number of times your Long Form Video was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_total_view_time": {"name": "attachment_total_view_time", "description": "Total time Snapchatters spent on the attachment (HH:MM:SS)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_view_completion": {"name": "attachment_view_completion", "description": "The number of times your Long Form Video was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_time": {"name": "screen_time", "description": "The number of milli seconds spent watching your ad across all paid impressions. Screen time starts recording as soon as the media is fully rendered on the device and the autoplay video starts", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views": {"name": "video_views", "description": "The number of times your video was watched at least 2 seconds or swiped up, whichever comes first", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_completion": {"name": "view_completion", "description": "The number of times your video ad was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_time": {"name": "view_time", "description": "The number of milli seconds spent watching your ad across all users reached.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes for an ad in the hour of the record. Swipes are when your ad was swiped up on or the CTA was tapped to view the attachment below.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases attributed to an ad in the hour of the record (in Ad Account's currency, converted from microcurrency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases attributed an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951601.065645, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_squad_hourly_report`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__ad_squad_hourly_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__ad_squad_hourly_report_tmp')),\n staging_columns=get_ad_squad_hourly_report_columns()\n )\n }} \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n ad_squad_id,\n cast (date as {{ dbt.type_timestamp() }}) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes,\n coalesce(cast(conversion_purchases_value as {{ dbt.type_float() }}), 0) / 1000000.0 as conversion_purchases_value\n\n {% for conversion in var('snapchat_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {{ snapchat_ads_fill_pass_through_columns(pass_through_fields=var('snapchat_ads__ad_squad_hourly_passthrough_metrics'), except=(var('snapchat_ads__conversion_fields') + ['conversion_purchases_value'])) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_squad_hourly_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_bigint", "macro.snapchat_ads_source.snapchat_ads_fill_pass_through_columns"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_squad_hourly_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_squad_hourly_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n ad_squad_id\n \n as \n \n ad_squad_id\n \n, \n \n \n attachment_quartile_1\n \n as \n \n attachment_quartile_1\n \n, \n \n \n attachment_quartile_2\n \n as \n \n attachment_quartile_2\n \n, \n \n \n attachment_quartile_3\n \n as \n \n attachment_quartile_3\n \n, \n \n \n attachment_total_view_time_millis\n \n as \n \n attachment_total_view_time_millis\n \n, \n \n \n attachment_view_completion\n \n as \n \n attachment_view_completion\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n quartile_1\n \n as \n \n quartile_1\n \n, \n \n \n quartile_2\n \n as \n \n quartile_2\n \n, \n \n \n quartile_3\n \n as \n \n quartile_3\n \n, \n \n \n saves\n \n as \n \n saves\n \n, \n \n \n screen_time_millis\n \n as \n \n screen_time_millis\n \n, \n \n \n shares\n \n as \n \n shares\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n swipes\n \n as \n \n swipes\n \n, \n \n \n video_views\n \n as \n \n video_views\n \n, \n \n \n view_completion\n \n as \n \n view_completion\n \n, \n \n \n view_time_millis\n \n as \n \n view_time_millis\n \n, \n \n \n conversion_purchases_value\n \n as \n \n conversion_purchases_value\n \n, \n \n \n conversion_purchases\n \n as \n \n conversion_purchases\n \n, \n \n \n conversion_purchases\n \n as conversions , \n \n \n conversion_sign_ups\n \n as installs , \n \n \n video_views\n \n as videos \n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n ad_squad_id,\n cast (date as timestamp) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes,\n coalesce(cast(conversion_purchases_value as FLOAT64), 0) / 1000000.0 as conversion_purchases_value\n\n \n , coalesce(cast(conversion_purchases as bigint), 0) as conversion_purchases\n \n\n \n\n\n \n \n \n , coalesce(cast(conversions as FLOAT64), 0) as conversions\n \n \n \n \n \n , coalesce(cast(installs as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(videos as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__ad_history.sql", "original_file_path": "models/stg_snapchat_ads__ad_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_history"], "alias": "stg_snapchat_ads__ad_history", "checksum": {"name": "sha256", "checksum": "c5e6d8190a234277e68501aa96b048452931369da6556021b43dfea818a276cf"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a historic version of an ad in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the related ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the ad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951601.054549, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_history`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__ad_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__ad_history_tmp')),\n staging_columns=get_ad_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_id,\n name as ad_name,\n cast (created_at as {{ dbt.type_timestamp() }}) as created_at,\n ad_squad_id,\n creative_id,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_history_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_squad_id\n \n as \n \n ad_squad_id\n \n, \n cast(null as timestamp) as \n \n created_at\n \n , \n \n \n creative_id\n \n as \n \n creative_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as timestamp) as \n \n updated_at\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_id,\n name as ad_name,\n cast (created_at as timestamp) as created_at,\n ad_squad_id,\n creative_id,\n cast (_fivetran_synced as timestamp) as _fivetran_synced,\n cast (updated_at as timestamp) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_squad_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__ad_squad_history.sql", "original_file_path": "models/stg_snapchat_ads__ad_squad_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_squad_history"], "alias": "stg_snapchat_ads__ad_squad_history", "checksum": {"name": "sha256", "checksum": "52dd01aacf5296607f2cd01a15942b091ddf6b9df5b230e11eaf8bc8305e9994"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a historic version of an ad squad in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_name": {"name": "ad_squad_name", "description": "The name of the ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951601.061162, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_squad_history`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__ad_squad_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__ad_squad_history_tmp')),\n staging_columns=get_ad_squad_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_squad_id,\n name as ad_squad_name,\n cast (created_at as {{ dbt.type_timestamp() }}) as created_at,\n campaign_id,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_history_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_squad_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_squad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_squad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_squad_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n cast(null as timestamp) as \n \n created_at\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as timestamp) as \n \n updated_at\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_squad_id,\n name as ad_squad_name,\n cast (created_at as timestamp) as created_at,\n campaign_id,\n cast (_fivetran_synced as timestamp) as _fivetran_synced,\n cast (updated_at as timestamp) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_hourly_report", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__ad_hourly_report.sql", "original_file_path": "models/stg_snapchat_ads__ad_hourly_report.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_hourly_report"], "alias": "stg_snapchat_ads__ad_hourly_report", "checksum": {"name": "sha256", "checksum": "f5f1902a449bf2f7e8f5452586d5768cf5f0234925fc0ec085327e07eaaf7b4f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents an hourly performance summary for an ad in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad that the report relates to in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_hour": {"name": "date_hour", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_1": {"name": "attachment_quartile_1", "description": "Number of times your Long Form Video was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_2": {"name": "attachment_quartile_2", "description": "Number of times your Long Form Video was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_3": {"name": "attachment_quartile_3", "description": "Number of times your Long Form Video was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_total_view_time": {"name": "attachment_total_view_time", "description": "Total time Snapchatters spent on the attachment (HH:MM:SS)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_view_completion": {"name": "attachment_view_completion", "description": "The number of times your Long Form Video was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_time": {"name": "screen_time", "description": "The number of milli seconds spent watching your ad across all paid impressions. Screen time starts recording as soon as the media is fully rendered on the device and the autoplay video starts", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views": {"name": "video_views", "description": "The number of times your video was watched at least 2 seconds or swiped up, whichever comes first", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_completion": {"name": "view_completion", "description": "The number of times your video ad was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_time": {"name": "view_time", "description": "The number of milli seconds spent watching your ad across all users reached.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend for an ad in the hour of the record converted from micros.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases attributed to an ad in the hour of the record (in Ad Account's currency, converted from microcurrency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases attributed an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951601.057915, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_hourly_report`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__ad_hourly_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__ad_hourly_report_tmp')),\n staging_columns=get_ad_hourly_report_columns()\n )\n }} \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n ad_id,\n cast (date as {{ dbt.type_timestamp() }}) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes,\n coalesce(cast(conversion_purchases_value as {{ dbt.type_float() }}), 0) / 1000000.0 as conversion_purchases_value\n\n {% for conversion in var('snapchat_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {{ snapchat_ads_fill_pass_through_columns(pass_through_fields=var('snapchat_ads__ad_hourly_passthrough_metrics'), except=(var('snapchat_ads__conversion_fields') + ['conversion_purchases_value'])) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_hourly_report_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_hourly_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_hourly_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_bigint", "macro.snapchat_ads_source.snapchat_ads_fill_pass_through_columns"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_hourly_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_hourly_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n cast(null as numeric) as \n \n attachment_quartile_1\n \n , \n cast(null as numeric) as \n \n attachment_quartile_2\n \n , \n cast(null as numeric) as \n \n attachment_quartile_3\n \n , \n cast(null as numeric) as \n \n attachment_total_view_time_millis\n \n , \n cast(null as numeric) as \n \n attachment_view_completion\n \n , \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n cast(null as numeric) as \n \n quartile_1\n \n , \n cast(null as numeric) as \n \n quartile_2\n \n , \n cast(null as numeric) as \n \n quartile_3\n \n , \n cast(null as numeric) as \n \n saves\n \n , \n cast(null as numeric) as \n \n screen_time_millis\n \n , \n cast(null as numeric) as \n \n shares\n \n , \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n swipes\n \n as \n \n swipes\n \n, \n cast(null as numeric) as \n \n video_views\n \n , \n cast(null as numeric) as \n \n view_completion\n \n , \n cast(null as numeric) as \n \n view_time_millis\n \n , \n \n \n conversion_purchases_value\n \n as \n \n conversion_purchases_value\n \n, \n \n \n conversion_purchases\n \n as \n \n conversion_purchases\n \n, \n \n \n conversion_add_billing\n \n as conversion_add_billing_alias , \n \n \n conversion_purchases\n \n as conversions , \n \n \n conversion_sign_ups\n \n as installs , \n cast(null as string) as videos \n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n ad_id,\n cast (date as timestamp) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes,\n coalesce(cast(conversion_purchases_value as FLOAT64), 0) / 1000000.0 as conversion_purchases_value\n\n \n , coalesce(cast(conversion_purchases as bigint), 0) as conversion_purchases\n \n\n \n\n\n \n \n \n , coalesce(cast(conversion_add_billing_alias as FLOAT64), 0) as conversion_add_billing_alias\n \n \n \n \n \n \n \n , coalesce(cast(conversions as FLOAT64), 0) as conversions\n \n \n \n \n \n , coalesce(cast(installs as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(videos as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__creative_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__creative_history.sql", "original_file_path": "models/stg_snapchat_ads__creative_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__creative_history"], "alias": "stg_snapchat_ads__creative_history", "checksum": {"name": "sha256", "checksum": "ee8a3cbc842df2f1f73d35d75566cbc3ab7e56056cad04dab1c98fa1f6853113"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a historic version of a creative in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the creative in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_name": {"name": "creative_name", "description": "The name of the creative in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related ad account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url": {"name": "url", "description": "The URL of the creative if the creative is of type 'web view'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951601.073546, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_history`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__creative_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__creative_history_tmp')),\n staging_columns=get_creative_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as creative_id,\n cast (created_at as {{ dbt.type_timestamp() }}) as created_at,\n ad_account_id,\n name as creative_name,\n web_view_url as url,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) =1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__creative_history_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__creative_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_creative_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__creative_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_account_id\n \n as \n \n ad_account_id\n \n, \n cast(null as timestamp) as \n \n created_at\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as timestamp) as \n \n updated_at\n \n , \n \n \n web_view_url\n \n as \n \n web_view_url\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as creative_id,\n cast (created_at as timestamp) as created_at,\n ad_account_id,\n name as creative_name,\n web_view_url as url,\n cast (_fivetran_synced as timestamp) as _fivetran_synced,\n cast (updated_at as timestamp) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) =1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__creative_url_tag_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__creative_url_tag_history.sql", "original_file_path": "models/stg_snapchat_ads__creative_url_tag_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__creative_url_tag_history"], "alias": "stg_snapchat_ads__creative_url_tag_history", "checksum": {"name": "sha256", "checksum": "92851f4b67f728a6845faca7a8f94e2851808a2fe430259b5fb8534a6212bd32"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a URL paramter key-value pair for a creative in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "param_key": {"name": "param_key", "description": "The URL parameter key, i.e. UTM_SOURCE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "param_value": {"name": "param_value", "description": "The URL parameter value, i.e. Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951601.082134, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_url_tag_history`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__creative_url_tag_history_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__creative_url_tag_history_tmp')),\n staging_columns=get_creative_url_tag_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n creative_id,\n key as param_key,\n value as param_value,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by source_relation, creative_id, key order by updated_at desc) =1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__creative_url_tag_history_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__creative_url_tag_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_creative_url_tag_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__creative_url_tag_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_url_tag_history_tmp`\n\n),\n\nfields as (\n\n select\n \n \n \n creative_id\n \n as \n \n creative_id\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n creative_id,\n key as param_key,\n value as param_value,\n cast (updated_at as timestamp) as updated_at,\n row_number() over (partition by source_relation, creative_id, key order by updated_at desc) =1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_account_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__ad_account_history.sql", "original_file_path": "models/stg_snapchat_ads__ad_account_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_account_history"], "alias": "stg_snapchat_ads__ad_account_history", "checksum": {"name": "sha256", "checksum": "038466c7ae703d4c445eb0cfb1847ae4282b0f9cdf77f9d9ec4553befcba1ee0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a historic version of an ad account in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser": {"name": "advertiser", "description": "Name of advertiser", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency used by account", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Account timezone", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951601.0533152, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_account_history`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__ad_account_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__ad_account_history_tmp')),\n staging_columns=get_ad_account_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_account_id,\n name as ad_account_name,\n cast (created_at as {{ dbt.type_timestamp() }}) as created_at,\n advertiser, \n currency,\n timezone,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_account_history_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_account_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_account_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_account_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as string) as \n \n advertiser\n \n , \n cast(null as timestamp) as \n \n created_at\n \n , \n cast(null as string) as \n \n currency\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as string) as \n \n timezone\n \n , \n cast(null as string) as \n \n type\n \n , \n cast(null as timestamp) as \n \n updated_at\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_account_id,\n name as ad_account_name,\n cast (created_at as timestamp) as created_at,\n advertiser, \n currency,\n timezone,\n cast (_fivetran_synced as timestamp) as _fivetran_synced,\n cast (updated_at as timestamp) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__campaign_hourly_report", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__campaign_hourly_report.sql", "original_file_path": "models/stg_snapchat_ads__campaign_hourly_report.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__campaign_hourly_report"], "alias": "stg_snapchat_ads__campaign_hourly_report", "checksum": {"name": "sha256", "checksum": "b1f47ef69d58e570592e47fd4ed9874ddf3044ff816b8f21cb99b0418a32b63d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a historic version of an ad in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "ID of campaign", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_hour": {"name": "date_hour", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_1": {"name": "attachment_quartile_1", "description": "Number of times your Long Form Video was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_2": {"name": "attachment_quartile_2", "description": "Number of times your Long Form Video was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_3": {"name": "attachment_quartile_3", "description": "Number of times your Long Form Video was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_total_view_time": {"name": "attachment_total_view_time", "description": "Total time Snapchatters spent on the attachment (HH:MM:SS)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_view_completion": {"name": "attachment_view_completion", "description": "The number of times your Long Form Video was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_time": {"name": "screen_time", "description": "The number of milli seconds spent watching your ad across all paid impressions. Screen time starts recording as soon as the media is fully rendered on the device and the autoplay video starts", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views": {"name": "video_views", "description": "The number of times your video was watched at least 2 seconds or swiped up, whichever comes first", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_completion": {"name": "view_completion", "description": "The number of times your video ad was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_time": {"name": "view_time", "description": "The number of milli seconds spent watching your ad across all users reached.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes for an ad in the hour of the record. Swipes are when your ad was swiped up on or the CTA was tapped to view the attachment below.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases attributed to an ad in the hour of the record (in Ad Account's currency, converted from microcurrency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases attributed an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951601.072298, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__campaign_hourly_report`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__campaign_hourly_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__campaign_hourly_report_tmp')),\n staging_columns=get_campaign_hourly_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n campaign_id,\n cast (date as {{ dbt.type_timestamp() }}) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes,\n coalesce(cast(conversion_purchases_value as {{ dbt.type_float() }}), 0) / 1000000.0 as conversion_purchases_value\n\n {% for conversion in var('snapchat_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {{ snapchat_ads_fill_pass_through_columns(pass_through_fields=var('snapchat_ads__campaign_hourly_report_passthrough_metrics'), except=(var('snapchat_ads__conversion_fields') + ['conversion_purchases_value'])) }}\n \n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_hourly_report_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__campaign_hourly_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_campaign_hourly_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_bigint", "macro.snapchat_ads_source.snapchat_ads_fill_pass_through_columns"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__campaign_hourly_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__campaign_hourly_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n attachment_quartile_1\n \n as \n \n attachment_quartile_1\n \n, \n \n \n attachment_quartile_2\n \n as \n \n attachment_quartile_2\n \n, \n \n \n attachment_quartile_3\n \n as \n \n attachment_quartile_3\n \n, \n \n \n attachment_total_view_time_millis\n \n as \n \n attachment_total_view_time_millis\n \n, \n \n \n attachment_view_completion\n \n as \n \n attachment_view_completion\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n quartile_1\n \n as \n \n quartile_1\n \n, \n \n \n quartile_2\n \n as \n \n quartile_2\n \n, \n \n \n quartile_3\n \n as \n \n quartile_3\n \n, \n \n \n saves\n \n as \n \n saves\n \n, \n \n \n screen_time_millis\n \n as \n \n screen_time_millis\n \n, \n \n \n shares\n \n as \n \n shares\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n swipes\n \n as \n \n swipes\n \n, \n \n \n video_views\n \n as \n \n video_views\n \n, \n \n \n view_completion\n \n as \n \n view_completion\n \n, \n \n \n view_time_millis\n \n as \n \n view_time_millis\n \n, \n \n \n conversion_purchases_value\n \n as \n \n conversion_purchases_value\n \n, \n \n \n conversion_purchases\n \n as \n \n conversion_purchases\n \n, \n \n \n conversion_add_billing\n \n as conversion_add_billing_alias , \n \n \n conversion_purchases\n \n as conversions , \n \n \n conversion_sign_ups\n \n as installs , \n \n \n video_views\n \n as videos \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n campaign_id,\n cast (date as timestamp) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes,\n coalesce(cast(conversion_purchases_value as FLOAT64), 0) / 1000000.0 as conversion_purchases_value\n\n \n , coalesce(cast(conversion_purchases as bigint), 0) as conversion_purchases\n \n\n \n\n\n \n \n \n , coalesce(cast(conversion_add_billing_alias as FLOAT64), 0) as conversion_add_billing_alias\n \n \n \n \n \n \n \n , coalesce(cast(conversions as FLOAT64), 0) as conversions\n \n \n \n \n \n , coalesce(cast(installs as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(videos as FLOAT64), 0) as videos\n \n \n \n\n\n\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__campaign_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__campaign_history.sql", "original_file_path": "models/stg_snapchat_ads__campaign_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__campaign_history"], "alias": "stg_snapchat_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "4bdc0a822494f1f1b1806407151746864f0cd31ca0393d54517cc1431dfef5f1"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a historic version of a campaign in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The id of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related ad account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951601.069977, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__campaign_history`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__campaign_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n id as campaign_id,\n ad_account_id,\n cast (created_at as {{ dbt.type_timestamp() }}) as created_at,\n name as campaign_name,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__campaign_history_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_account_id\n \n as \n \n ad_account_id\n \n, \n cast(null as timestamp) as \n \n created_at\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as timestamp) as \n \n updated_at\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n id as campaign_id,\n ad_account_id,\n cast (created_at as timestamp) as created_at,\n name as campaign_name,\n cast (_fivetran_synced as timestamp) as _fivetran_synced,\n cast (updated_at as timestamp) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__creative_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__creative_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__creative_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__creative_history_tmp"], "alias": "stg_snapchat_ads__creative_history_tmp", "checksum": {"name": "sha256", "checksum": "af71368261d6f41a42e53d8d3522dbd7c2343ef32d5d518c0740024944b005e8"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951598.4953642, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='creative_history', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='creative_history',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "creative_history"], ["snapchat_ads", "creative_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.creative_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__creative_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`snapchat_creative_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_account_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__ad_account_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__ad_account_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_account_history_tmp"], "alias": "stg_snapchat_ads__ad_account_history_tmp", "checksum": {"name": "sha256", "checksum": "ecb8114190d4e6ac289124eb4588c540a426e1d449caa958ad34bd4a7e3bf6a9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951598.500478, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_account_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_account_history', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='ad_account_history',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "ad_account_history"], ["snapchat_ads", "ad_account_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_account_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_account_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`snapchat_ad_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_hourly_report_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__ad_hourly_report_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__ad_hourly_report_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_hourly_report_tmp"], "alias": "stg_snapchat_ads__ad_hourly_report_tmp", "checksum": {"name": "sha256", "checksum": "6c656f5f35626e2da5fb5eb5c84ec8c6a92e99832407708ed55bd0de7e5df50e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951598.506624, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_hourly_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_hourly_report', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='ad_hourly_report',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "ad_hourly_report"], ["snapchat_ads", "ad_hourly_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_hourly_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`snapchat_ad_hourly_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__creative_url_tag_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__creative_url_tag_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__creative_url_tag_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__creative_url_tag_history_tmp"], "alias": "stg_snapchat_ads__creative_url_tag_history_tmp", "checksum": {"name": "sha256", "checksum": "9d7c3b09ee4cdd1b50bd4d9dcaa83506d4b92c886601a9a5b3d3eb3d64c87cb2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951598.5115678, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_url_tag_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='creative_url_tag_history', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='creative_url_tag_history',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "creative_url_tag_history"], ["snapchat_ads", "creative_url_tag_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.creative_url_tag_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__creative_url_tag_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`snapchat_creative_url_tag_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__ad_squad_hourly_report_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__ad_squad_hourly_report_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_squad_hourly_report_tmp"], "alias": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "checksum": {"name": "sha256", "checksum": "95586bdee0fc83cd072ec0e9e53e5468e3fc125b6421d2eb7434e636c7dde0ea"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951598.51712, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_squad_hourly_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_squad_hourly_report', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='ad_squad_hourly_report',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "ad_squad_hourly_report"], ["snapchat_ads", "ad_squad_hourly_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_squad_hourly_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`snapchat_ad_squad_hourly_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__campaign_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__campaign_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__campaign_history_tmp"], "alias": "stg_snapchat_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "77443d363898105f0e8102998dc2e60b0ba612a50f0f0db676f7c77ed9c5de5c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951598.5218902, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__campaign_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='campaign_history',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "campaign_history"], ["snapchat_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`snapchat_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__ad_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_history_tmp"], "alias": "stg_snapchat_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "ff60fd4ced1d85ba518f5a0c3566e10aed80c9201c78e51d2e95e24e814a8610"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951598.528001, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_history', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='ad_history',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "ad_history"], ["snapchat_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`snapchat_ad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__ad_squad_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__ad_squad_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__ad_squad_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_squad_history_tmp"], "alias": "stg_snapchat_ads__ad_squad_history_tmp", "checksum": {"name": "sha256", "checksum": "7dd4147d6b7ee617b048090525b4578398c85fd40fb4f509efbbdefb89ed16ba"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951598.53265, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_squad_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_squad_history', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='ad_squad_history',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "ad_squad_history"], ["snapchat_ads", "ad_squad_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_squad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_squad_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`snapchat_ad_squad_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_snapchat_ads__campaign_hourly_report_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__campaign_hourly_report_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__campaign_hourly_report_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__campaign_hourly_report_tmp"], "alias": "stg_snapchat_ads__campaign_hourly_report_tmp", "checksum": {"name": "sha256", "checksum": "25c22f93768af7aedb92b425ebe2b5756b624690741a7f333e3b2d4e5b677f66"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1731951598.538273, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__campaign_hourly_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_hourly_report', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='campaign_hourly_report',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "campaign_hourly_report"], ["snapchat_ads", "campaign_hourly_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.campaign_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__campaign_hourly_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`snapchat_campaign_hourly_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads.microsoft_ads__ad_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "microsoft_ads__ad_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__ad_report.sql", "original_file_path": "models/microsoft_ads__ad_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__ad_report", "fqn": ["microsoft_ads", "microsoft_ads__ad_report"], "alias": "microsoft_ads__ad_report", "checksum": {"name": "sha256", "checksum": "9ab2be3f666c45f4c183fab5bfbff379aaa6e143a346f80b749322313247d75a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by ad, ad group, campaign, account, ad type, device os, device type, network and currency code.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the corresponding ad; `title_part_1` is used as the ad name as a proxy as one is not provided by the data source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_type": {"name": "ad_type", "description": "The ad type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/adtype?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951601.1954188, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__ad_report`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_performance_daily_report') }}\n\n), \n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n ads.type as ad_type,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n {{ microsoft_ads_persist_pass_through_columns(pass_through_variable='microsoft_ads__ad_passthrough_metrics', transform='sum', coalesce_with=0, exclude_fields=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }} \n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(15) }}\n\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_daily_report", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__campaign_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads.microsoft_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_daily_report`\n\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_history`\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_group_history`\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__campaign_history`\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_history`\n where is_most_recent_record = True\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n ads.type as ad_type,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n \n\n\n \n \n \n \n \n , sum(coalesce(assists, 0)) as assists\n \n \n \n \n \n \n , sum(coalesce(revenue, 0)) as revenue\n \n \n \n \n \n \n \n \n \n \n \n , sum(coalesce(installs, 0)) as installs\n \n \n \n \n \n \n , sum(coalesce(videos, 0)) as videos\n \n \n\n\n \n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15\n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads.microsoft_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "microsoft_ads__ad_group_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__ad_group_report.sql", "original_file_path": "models/microsoft_ads__ad_group_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__ad_group_report", "fqn": ["microsoft_ads", "microsoft_ads__ad_group_report"], "alias": "microsoft_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "9a03d39aa95ed0fda64c4052dd7641689a44d3fdf7235e6bf06e8416bc08b229"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by ad group, campaign, account, device os, device type, network and currency code.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951601.1945589, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__ad_group_report`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_group_performance_daily_report') }}\n\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value, \n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n {{ microsoft_ads_persist_pass_through_columns(pass_through_variable='microsoft_ads__ad_group_passthrough_metrics', transform='sum', coalesce_with=0, exclude_fields=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }} \n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_group_daily_report", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__campaign_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads.microsoft_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_group_daily_report`\n\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_group_history`\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__campaign_history`\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_history`\n where is_most_recent_record = True\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value, \n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n \n\n\n \n \n \n \n \n \n \n \n \n \n , sum(coalesce(all_conversions_qualified, 0)) as all_conversions_qualified\n \n \n \n \n \n \n \n \n \n \n \n , sum(coalesce(installs, 0)) as installs\n \n \n \n \n \n \n , sum(coalesce(videos, 0)) as videos\n \n \n\n\n \n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads.microsoft_ads__keyword_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "microsoft_ads__keyword_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__keyword_report.sql", "original_file_path": "models/microsoft_ads__keyword_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__keyword_report", "fqn": ["microsoft_ads", "microsoft_ads__keyword_report"], "alias": "microsoft_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "b3d9ca770493b5a98c2f683c09218bfaafdf1401417adf8a963e85a19b267d43"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by keyword, ad, ad group, campaign, account, device os, device type, network and currency code.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the corresponding ad; `title_part_1` is used as the ad name as a proxy as one is not provided by the data source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_name": {"name": "keyword_name", "description": "The keyword(s) associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "The match type associated with this record; values contain but may not be limited to 'Broad', 'Exact', 'Phrase'. Please refer to Microsoft Ad's [documentation](https://help.ads.microsoft.com/#apex/ads/en/50822/1).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951601.1974971, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__keyword_report`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('keyword_performance_daily_report') }}\n\n), \n\nkeywords as (\n\n select *\n from {{ var('keyword_history') }}\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n keywords.keyword_name,\n report.keyword_id,\n keywords.match_type,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n {{ microsoft_ads_persist_pass_through_columns(pass_through_variable='microsoft_ads__keyword_passthrough_metrics', transform='sum', coalesce_with=0, exclude_fields=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }}\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join keywords\n on report.keyword_id = keywords.keyword_id\n and report.source_relation = keywords.source_relation\n {{ dbt_utils.group_by(17) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_microsoft_ads__keyword_daily_report", "package": null, "version": null}, {"name": "stg_microsoft_ads__keyword_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__campaign_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads.microsoft_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__keyword_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__keyword_daily_report`\n\n), \n\nkeywords as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__keyword_history`\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_history`\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_group_history`\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__campaign_history`\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_history`\n where is_most_recent_record = True\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n keywords.keyword_name,\n report.keyword_id,\n keywords.match_type,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n \n\n\n \n \n \n \n \n \n \n \n \n \n , sum(coalesce(installs, 0)) as installs\n \n \n \n \n \n \n , sum(coalesce(videos, 0)) as videos\n \n \n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join keywords\n on report.keyword_id = keywords.keyword_id\n and report.source_relation = keywords.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads.microsoft_ads__url_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "microsoft_ads__url_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__url_report.sql", "original_file_path": "models/microsoft_ads__url_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__url_report", "fqn": ["microsoft_ads", "microsoft_ads__url_report"], "alias": "microsoft_ads__url_report", "checksum": {"name": "sha256", "checksum": "f2929bd4705ce31c1cb5480fd545d01957a60c926e05f1d019916250a1a950b6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by ad, ad group, campaign, account, ad type, device os, device type, network, currency code, url and utm parameters.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the corresponding ad; `title_part_1` is used as the ad name as a proxy as one is not provided by the data source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `final_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `final_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `final_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The site that sent traffic to your page. Microsoft Advertising sets this to Bing; extracted from the `final_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "Which channel was used. Microsoft Advertising sets this to cp; extracted from the `final_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "Which campaign the keyword came from; extracted from the `final_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "Which ad group the keyword came from; extracted from the `final_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "Which keyword brought people to your website; extracted from the `final_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951601.199476, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__url_report`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_performance_daily_report') }}\n\n), \n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n {{ dbt.split_part('ads.final_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('ads.final_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('ads.final_url') }} as url_path,\n\n {% if var('microsoft_ads_auto_tagging_enabled', false) %}\n\n coalesce( {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_source') }} , 'Bing') as utm_source,\n coalesce( {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_medium') }}, 'cpc') as utm_medium,\n coalesce( {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_campaign') }}, campaigns.campaign_name) as utm_campaign,\n coalesce( {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_content') }}, ad_groups.ad_group_name) as utm_content,\n {% else %}\n\n {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_source') }} as utm_source,\n {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_medium') }} as utm_medium,\n {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_campaign') }} as utm_campaign,\n {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_content') }} as utm_content,\n {% endif %}\n\n {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_term') }} as utm_term,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n {{ microsoft_ads_persist_pass_through_columns(pass_through_variable='microsoft_ads__ad_passthrough_metrics', transform='sum', coalesce_with=0, exclude_fields=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }}\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(22) }}\n), \n\nfiltered as (\n\n select * \n from joined\n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where base_url is not null\n {% endif %}\n)\n\nselect *\nfrom filtered", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_daily_report", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__campaign_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.microsoft_ads.microsoft_ads_extract_url_parameter", "macro.microsoft_ads.microsoft_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_daily_report`\n\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_history`\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_group_history`\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__campaign_history`\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_history`\n where is_most_recent_record = True\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n \n\n \n split(\n ads.final_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_host,\n '/' || safe_cast(\n\n \n split(\n \n\n case when \n\n length(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ) = 0\n then ''\n else\n substr(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n -1 * (\n\n length(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_path,\n\n \n\n nullif(\n\n \n split(\n \n\n \n split(\n ads.final_url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.final_url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.final_url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.final_url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n \n\n nullif(\n\n \n split(\n \n\n \n split(\n ads.final_url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n \n\n\n \n \n \n \n \n , sum(coalesce(assists, 0)) as assists\n \n \n \n \n \n \n , sum(coalesce(revenue, 0)) as revenue\n \n \n \n \n \n \n \n \n \n \n \n , sum(coalesce(installs, 0)) as installs\n \n \n \n \n \n \n , sum(coalesce(videos, 0)) as videos\n \n \n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22\n), \n\nfiltered as (\n\n select * \n from joined\n\n \n where base_url is not null\n \n)\n\nselect *\nfrom filtered", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads.microsoft_ads__account_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "microsoft_ads__account_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__account_report.sql", "original_file_path": "models/microsoft_ads__account_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__account_report", "fqn": ["microsoft_ads", "microsoft_ads__account_report"], "alias": "microsoft_ads__account_report", "checksum": {"name": "sha256", "checksum": "0bf353a8b549dda43f1b8f70b4fb29e669a02451e74df1f3545b637d5bdc9e82"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by account, account timezone, device os, device type, network and currency code.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_timezone": {"name": "account_timezone", "description": "The time zone associated with this account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951601.193801, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__account_report`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('account_performance_daily_report') }}\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n)\n\n, joined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n accounts.time_zone as account_timezone,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions\n -- all_conversion_value is not available for the account_report\n\n {{ microsoft_ads_persist_pass_through_columns(pass_through_variable='microsoft_ads__account_passthrough_metrics', transform='sum', coalesce_with=0, exclude_fields=['conversions_value', 'conversions', 'all_conversions']) }} \n \n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(9) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_microsoft_ads__account_daily_report", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads.microsoft_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_daily_report`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_history`\n where is_most_recent_record = True\n)\n\n, joined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n accounts.time_zone as account_timezone,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions\n -- all_conversion_value is not available for the account_report\n\n \n\n\n \n \n \n \n \n \n \n \n \n \n , sum(coalesce(installs, 0)) as installs\n \n \n \n \n \n \n , sum(coalesce(videos, 0)) as videos\n \n \n\n\n \n \n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7,8,9\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads.microsoft_ads__search_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "microsoft_ads__search_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__search_report.sql", "original_file_path": "models/microsoft_ads__search_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__search_report", "fqn": ["microsoft_ads", "microsoft_ads__search_report"], "alias": "microsoft_ads__search_report", "checksum": {"name": "sha256", "checksum": "936f8257dc71900348fb32fa38e9aab8ef0a9b347163a56a0a2795dfbf9fd51e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by search query, keyword, ad, ad group, campaign, account, device os, device type and network.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the corresponding ad; `title_part_1` is used as the ad name as a proxy as one is not provided by the data source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_name": {"name": "keyword_name", "description": "The keyword(s) associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "The match type associated with this record; values contain but may not be limited to 'Broad', 'Exact', 'Phrase'. Please refer to Microsoft Ad's [documentation](https://help.ads.microsoft.com/#apex/ads/en/50822/1).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_query": {"name": "search_query", "description": "The search query string associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951601.1984499, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__search_report`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('search_performance_daily_report') }}\n\n), \n\nkeywords as (\n\n select *\n from {{ var('keyword_history') }}\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n report.keyword_id,\n keywords.keyword_name,\n coalesce(report.delivered_match_type, report.bid_match_type) as match_type,\n report.search_query,\n report.device_os,\n report.device_type,\n report.network,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n {{ microsoft_ads_persist_pass_through_columns(pass_through_variable='microsoft_ads__search_passthrough_metrics', transform='sum', coalesce_with=0, exclude_fields=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }}\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join keywords\n on report.keyword_id = keywords.keyword_id\n and report.source_relation = keywords.source_relation\n {{ dbt_utils.group_by(17) }}\n\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_microsoft_ads__search_daily_report", "package": null, "version": null}, {"name": "stg_microsoft_ads__keyword_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__campaign_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads.microsoft_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__keyword_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__search_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__search_daily_report`\n\n), \n\nkeywords as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__keyword_history`\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_history`\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_group_history`\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__campaign_history`\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_history`\n where is_most_recent_record = True\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n report.keyword_id,\n keywords.keyword_name,\n coalesce(report.delivered_match_type, report.bid_match_type) as match_type,\n report.search_query,\n report.device_os,\n report.device_type,\n report.network,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n \n\n\n \n \n \n \n \n \n \n \n \n \n , sum(coalesce(installs, 0)) as installs\n \n \n \n \n \n \n , sum(coalesce(videos, 0)) as videos\n \n \n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join keywords\n on report.keyword_id = keywords.keyword_id\n and report.source_relation = keywords.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17\n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads.microsoft_ads__campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "microsoft_ads__campaign_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__campaign_report.sql", "original_file_path": "models/microsoft_ads__campaign_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__campaign_report", "fqn": ["microsoft_ads", "microsoft_ads__campaign_report"], "alias": "microsoft_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "6efb3d54a8a5e3d94744cf3ff1f9bd26e8aa2cb16a651dfdd042556cadefde3b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by campaign, account, campaign type, campaign timezone, campaign status, device os, device type, network and currency code.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_type": {"name": "campaign_type", "description": "The campaign type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaigntype?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_timezone": {"name": "campaign_timezone", "description": "The time zone associated with this campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of this campaign; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaignstatus?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1731951601.196366, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('campaign_performance_daily_report') }}\n\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n campaigns.type as campaign_type,\n campaigns.time_zone as campaign_timezone,\n campaigns.status as campaign_status,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n {{ microsoft_ads_persist_pass_through_columns(pass_through_variable='microsoft_ads__campaign_passthrough_metrics', transform='sum', coalesce_with=0, exclude_fields=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }} \n\n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n {{ dbt_utils.group_by(13) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_microsoft_ads__campaign_daily_report", "package": null, "version": null}, {"name": "stg_microsoft_ads__campaign_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads.microsoft_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__campaign_daily_report`\n\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__campaign_history`\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_history`\n where is_most_recent_record = True\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n campaigns.type as campaign_type,\n campaigns.time_zone as campaign_timezone,\n campaigns.status as campaign_status,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n \n\n\n \n \n \n \n \n , sum(coalesce(assists, 0)) as assists\n \n \n \n \n \n \n , sum(coalesce(revenue, 0)) as revenue\n \n \n \n \n \n \n \n \n \n \n \n , sum(coalesce(installs, 0)) as installs\n \n \n \n \n \n \n , sum(coalesce(videos, 0)) as videos\n \n \n\n\n \n\n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__campaign_report", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__campaign_report.sql", "original_file_path": "models/stg_twitter_ads__campaign_report.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report", "fqn": ["twitter_ads_source", "stg_twitter_ads__campaign_report"], "alias": "stg_twitter_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "fc0eac20bcf65ef622f9abfb5f8fa263501773568e628524b620ee15cc33dd2a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the performance of an ad campaign on a given day, for its placement in Twitter.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend for the campaign on that day, in micros and in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the campaign on that day in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the campaign on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the campaign on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the campaign on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951601.2892, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_twitter_ads__campaign_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__campaign_report_tmp')),\n staging_columns=get_campaign_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n {{ dbt.date_trunc('day', 'date') }} as date_day,\n account_id,\n campaign_id,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n\n {% for conversion in var('twitter_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {% for conversion_value in var('twitter_ads__conversion_sale_amount_fields', []) %}\n , coalesce(cast({{ conversion_value }} as {{ dbt.type_float() }}), 0) as {{ conversion_value }}\n {% endfor %}\n\n {{ twitter_ads_fill_pass_through_columns(pass_through_fields=var('twitter_ads__campaign_report_passthrough_metrics'), except=(var('twitter_ads__conversion_fields') + var('twitter_ads__conversion_sale_amount_fields'))) }}\n \n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_report_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__campaign_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_campaign_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_bigint", "macro.dbt.type_float", "macro.twitter_ads_source.twitter_ads_fill_pass_through_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__campaign_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n billed_charge_local_micro\n \n as \n \n billed_charge_local_micro\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n placement\n \n as \n \n placement\n \n, \n \n \n url_clicks\n \n as \n \n url_clicks\n \n, \n \n \n conversion_purchases_metric\n \n as \n \n conversion_purchases_metric\n \n, \n \n \n conversion_custom_metric\n \n as \n \n conversion_custom_metric\n \n, \n \n \n conversion_purchases_sale_amount\n \n as \n \n conversion_purchases_sale_amount\n \n, \n \n \n conversion_custom_sale_amount\n \n as \n \n conversion_custom_sale_amount\n \n, \n \n \n conversion_sign_ups_sale_amount\n \n as \n \n conversion_sign_ups_sale_amount\n \n, \n \n \n conversion_purchases_metric\n \n as conversions , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) as date_day,\n account_id,\n campaign_id,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n\n \n , coalesce(cast(conversion_purchases_metric as bigint), 0) as conversion_purchases_metric\n \n , coalesce(cast(conversion_custom_metric as bigint), 0) as conversion_custom_metric\n \n\n \n , coalesce(cast(conversion_purchases_sale_amount as FLOAT64), 0) as conversion_purchases_sale_amount\n \n , coalesce(cast(conversion_custom_sale_amount as FLOAT64), 0) as conversion_custom_sale_amount\n \n , coalesce(cast(conversion_sign_ups_sale_amount as FLOAT64), 0) as conversion_sign_ups_sale_amount\n \n\n \n\n\n \n \n \n , coalesce(cast(conversions as FLOAT64), 0) as conversions\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__line_item_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__line_item_history", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__line_item_history.sql", "original_file_path": "models/stg_twitter_ads__line_item_history.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history", "fqn": ["twitter_ads_source", "stg_twitter_ads__line_item_history"], "alias": "stg_twitter_ads__line_item_history", "checksum": {"name": "sha256", "checksum": "6bdccb9ab0772580e1e772008744702ded368e3ba3de6c8b6d4fdad4ad159dce"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of each line item. The versions can be differentiated by the updated_at timestamp.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_domain": {"name": "advertiser_domain", "description": "The website domain for this advertiser, without the protocol specification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_user_id": {"name": "advertiser_user_id", "description": "The Twitter user identifier for the handle promoting the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "automatically_select_bid": {"name": "automatically_select_bid", "description": "Whether automatically optimize bidding is enabled based on daily budget and campaign flight dates.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount_local_micro": {"name": "bid_amount_local_micro", "description": "The bid amount to be associated with this line item, in micros.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_type": {"name": "bid_type", "description": "The bidding mechanism.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_unit": {"name": "bid_unit", "description": "The bid unit for this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "charge_by": {"name": "charge_by", "description": "The unit to charge this line item by.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_source": {"name": "creative_source", "description": "The source of the creatives for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency in which metrics will be reported.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "The timestamp at which the line item will stop being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The campaign objective for this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization": {"name": "optimization", "description": "The optimization setting to use with this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_web_event_tag": {"name": "primary_web_event_tag", "description": "The identifier of the primary web event tag. Allows more accurate tracking of engagements for the campaign pertaining to this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "product_type": {"name": "product_type", "description": "The type of promoted product that this line item will contain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "The timestamp at which the line item will start being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "target_cpa_local_micro": {"name": "target_cpa_local_micro", "description": "The target cost per acquisition for the line item, in micros.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_budget_amount_local_micro": {"name": "total_budget_amount_local_micro", "description": "The total budget amount to be allocated to the line item, in micros.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Whether the record is the most latest version for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount": {"name": "bid_amount", "description": "The bid amount to be associated with this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_budget_amount": {"name": "total_budget_amount", "description": "The total budget amount to be allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "target_cpa": {"name": "target_cpa", "description": "The target cost per acquisition for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951601.286635, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_history`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith source as (\n\n select *\n from {{ ref('stg_twitter_ads__line_item_history_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__line_item_history_tmp')),\n staging_columns=get_line_item_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n advertiser_domain,\n advertiser_user_id,\n automatically_select_bid,\n bid_amount_local_micro,\n bid_type,\n bid_unit,\n campaign_id,\n charge_by,\n created_at as created_timestamp,\n creative_source,\n currency,\n deleted as is_deleted,\n end_time as end_timestamp,\n entity_status,\n id as line_item_id,\n name,\n objective,\n optimization,\n primary_web_event_tag,\n product_type,\n start_time as start_timestamp,\n target_cpa_local_micro,\n total_budget_amount_local_micro,\n updated_at as updated_timestamp,\n round(bid_amount_local_micro / 1000000.0,2) as bid_amount,\n round(total_budget_amount_local_micro / 1000000.0,2) as total_budget_amount,\n round(target_cpa_local_micro / 1000000.0,2) as target_cpa,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_history_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__line_item_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_line_item_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__line_item_history.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_history_tmp`\n\n),\n\nfields as (\n\n select\n \n \n \n \n advertiser_domain\n \n as \n \n advertiser_domain\n \n, \n \n \n advertiser_user_id\n \n as \n \n advertiser_user_id\n \n, \n \n \n automatically_select_bid\n \n as \n \n automatically_select_bid\n \n, \n \n \n bid_amount_local_micro\n \n as \n \n bid_amount_local_micro\n \n, \n \n \n bid_type\n \n as \n \n bid_type\n \n, \n \n \n bid_unit\n \n as \n \n bid_unit\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n charge_by\n \n as \n \n charge_by\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n creative_source\n \n as \n \n creative_source\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n deleted\n \n as \n \n deleted\n \n, \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n entity_status\n \n as \n \n entity_status\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n objective\n \n as \n \n objective\n \n, \n \n \n optimization\n \n as \n \n optimization\n \n, \n \n \n primary_web_event_tag\n \n as \n \n primary_web_event_tag\n \n, \n \n \n product_type\n \n as \n \n product_type\n \n, \n \n \n start_time\n \n as \n \n start_time\n \n, \n \n \n target_cpa_local_micro\n \n as \n \n target_cpa_local_micro\n \n, \n \n \n total_budget_amount_local_micro\n \n as \n \n total_budget_amount_local_micro\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n advertiser_domain,\n advertiser_user_id,\n automatically_select_bid,\n bid_amount_local_micro,\n bid_type,\n bid_unit,\n campaign_id,\n charge_by,\n created_at as created_timestamp,\n creative_source,\n currency,\n deleted as is_deleted,\n end_time as end_timestamp,\n entity_status,\n id as line_item_id,\n name,\n objective,\n optimization,\n primary_web_event_tag,\n product_type,\n start_time as start_timestamp,\n target_cpa_local_micro,\n total_budget_amount_local_micro,\n updated_at as updated_timestamp,\n round(bid_amount_local_micro / 1000000.0,2) as bid_amount,\n round(total_budget_amount_local_micro / 1000000.0,2) as total_budget_amount,\n round(target_cpa_local_micro / 1000000.0,2) as target_cpa,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__line_item_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__line_item_report", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__line_item_report.sql", "original_file_path": "models/stg_twitter_ads__line_item_report.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report", "fqn": ["twitter_ads_source", "stg_twitter_ads__line_item_report"], "alias": "stg_twitter_ads__line_item_report", "checksum": {"name": "sha256", "checksum": "15efdf532386a2b1acc4ec9968746429c418ac909ec4f3a2a2e2bab0b8a5ab7e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the performance of a line item (ad group) on a given day, for its placement in Twitter.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend for the line item on that day, in micros and in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the line item on that day in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the line item on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the line item on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951601.289835, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_report`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_twitter_ads__line_item_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__line_item_report_tmp')),\n staging_columns=get_line_item_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n {{ dbt.date_trunc('day', 'date') }} as date_day,\n account_id,\n line_item_id,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n {% for conversion in var('twitter_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {% for conversion_value in var('twitter_ads__conversion_sale_amount_fields', []) %}\n , coalesce(cast({{ conversion_value }} as {{ dbt.type_float() }}), 0) as {{ conversion_value }}\n {% endfor %}\n\n {{ twitter_ads_fill_pass_through_columns(pass_through_fields=var('twitter_ads__line_item_report_passthrough_metrics'), except=(var('twitter_ads__conversion_fields') + var('twitter_ads__conversion_sale_amount_fields'))) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_report_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__line_item_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_line_item_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_bigint", "macro.dbt.type_float", "macro.twitter_ads_source.twitter_ads_fill_pass_through_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__line_item_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n billed_charge_local_micro\n \n as \n \n billed_charge_local_micro\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n line_item_id\n \n as \n \n line_item_id\n \n, \n \n \n placement\n \n as \n \n placement\n \n, \n \n \n url_clicks\n \n as \n \n url_clicks\n \n, \n \n \n conversion_purchases_metric\n \n as \n \n conversion_purchases_metric\n \n, \n \n \n conversion_custom_metric\n \n as \n \n conversion_custom_metric\n \n, \n \n \n conversion_purchases_sale_amount\n \n as \n \n conversion_purchases_sale_amount\n \n, \n \n \n conversion_custom_sale_amount\n \n as \n \n conversion_custom_sale_amount\n \n, \n \n \n conversion_sign_ups_sale_amount\n \n as \n \n conversion_sign_ups_sale_amount\n \n, \n \n \n conversion_purchases_metric\n \n as conversions , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n timestamp_trunc(\n cast(date as timestamp),\n day\n ) as date_day,\n account_id,\n line_item_id,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n \n , coalesce(cast(conversion_purchases_metric as bigint), 0) as conversion_purchases_metric\n \n , coalesce(cast(conversion_custom_metric as bigint), 0) as conversion_custom_metric\n \n\n \n , coalesce(cast(conversion_purchases_sale_amount as FLOAT64), 0) as conversion_purchases_sale_amount\n \n , coalesce(cast(conversion_custom_sale_amount as FLOAT64), 0) as conversion_custom_sale_amount\n \n , coalesce(cast(conversion_sign_ups_sale_amount as FLOAT64), 0) as conversion_sign_ups_sale_amount\n \n\n \n\n\n \n \n \n , coalesce(cast(conversions as FLOAT64), 0) as conversions\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__campaign_history", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__campaign_history.sql", "original_file_path": "models/stg_twitter_ads__campaign_history.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history", "fqn": ["twitter_ads_source", "stg_twitter_ads__campaign_history"], "alias": "stg_twitter_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "1f9de910b8d359fe35781260fb5bb8287868b0d5e2bb02063f6d884677ba8320"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of each campaign. The versions can be differentiated by the updated_at timestamp.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_amount_local_micro": {"name": "daily_budget_amount_local_micro", "description": "The daily budget amount to be allocated to the campaign, in micros. The currency associated with the specified funding instrument will be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duration_in_days": {"name": "duration_in_days", "description": "The time period within which the frequency_cap is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "The time the campaign will end", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency_cap": {"name": "frequency_cap", "description": "The maximum number of times an ad could be delivered to a user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_servable": {"name": "is_servable", "description": "Whether the campaign is in a state to be actively served to users.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_standard_delivery": {"name": "is_standard_delivery", "description": "Whether standard delivery is enabled (vs accelerated delivery).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "The time the campaign will start.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_budget_amount_local_micro": {"name": "total_budget_amount_local_micro", "description": "The total budget amount to be allocated to the campaign, in micros.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Whether the record is the most latest version for the campaign", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Reference to the funding instrument.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_amount": {"name": "daily_budget_amount", "description": "The daily budget amount to be allocated to the campaign. The currency associated with the specified funding instrument will be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_budget_amount": {"name": "total_budget_amount", "description": "The total budget amount to be allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951601.285543, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__campaign_history`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith source as (\n\n select *\n from {{ ref('stg_twitter_ads__campaign_history_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n account_id,\n created_at as created_timestamp,\n currency,\n daily_budget_amount_local_micro,\n deleted as is_deleted,\n duration_in_days,\n end_time as end_timestamp,\n entity_status,\n frequency_cap,\n funding_instrument_id,\n id as campaign_id,\n name as campaign_name,\n servable as is_servable,\n standard_delivery as is_standard_delivery,\n start_time as start_timestamp,\n total_budget_amount_local_micro,\n updated_at as updated_timestamp,\n round(daily_budget_amount_local_micro / 1000000.0,2) as daily_budget_amount,\n round(total_budget_amount_local_micro / 1000000.0,2) as total_budget_amount,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__campaign_history_tmp`\n\n),\n\nfields as (\n\n select\n \n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n daily_budget_amount_local_micro\n \n as \n \n daily_budget_amount_local_micro\n \n, \n \n \n deleted\n \n as \n \n deleted\n \n, \n \n \n duration_in_days\n \n as \n \n duration_in_days\n \n, \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n entity_status\n \n as \n \n entity_status\n \n, \n \n \n frequency_cap\n \n as \n \n frequency_cap\n \n, \n \n \n funding_instrument_id\n \n as \n \n funding_instrument_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n servable\n \n as \n \n servable\n \n, \n \n \n standard_delivery\n \n as \n \n standard_delivery\n \n, \n \n \n start_time\n \n as \n \n start_time\n \n, \n \n \n total_budget_amount_local_micro\n \n as \n \n total_budget_amount_local_micro\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n account_id,\n created_at as created_timestamp,\n currency,\n daily_budget_amount_local_micro,\n deleted as is_deleted,\n duration_in_days,\n end_time as end_timestamp,\n entity_status,\n frequency_cap,\n funding_instrument_id,\n id as campaign_id,\n name as campaign_name,\n servable as is_servable,\n standard_delivery as is_standard_delivery,\n start_time as start_timestamp,\n total_budget_amount_local_micro,\n updated_at as updated_timestamp,\n round(daily_budget_amount_local_micro / 1000000.0,2) as daily_budget_amount,\n round(total_budget_amount_local_micro / 1000000.0,2) as total_budget_amount,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__promoted_tweet_report", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__promoted_tweet_report.sql", "original_file_path": "models/stg_twitter_ads__promoted_tweet_report.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "fqn": ["twitter_ads_source", "stg_twitter_ads__promoted_tweet_report"], "alias": "stg_twitter_ads__promoted_tweet_report", "checksum": {"name": "sha256", "checksum": "a150a091d0ac8c76e0d3c1030cf2c9031086daaac5e25df654535a58e08c24f2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the performance of a promoted tweet on a given day, in the tweet's defined placement.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend (in micros) for the promoted tweet on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the promoted tweet on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the promoted tweet on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the promoted tweet on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "promoted_tweet_id": {"name": "promoted_tweet_id", "description": "The ID of the related promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the promoted tweet on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951601.287849, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__promoted_tweet_report`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith source as (\n\n select *\n from {{ ref('stg_twitter_ads__promoted_tweet_report_tmp') }}\n\n),\n\nrenamed as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__promoted_tweet_report_tmp')),\n staging_columns=get_promoted_tweet_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from source\n\n), spend_calc as (\n\n select\n source_relation,\n {{ dbt.date_trunc('day', 'date') }} as date_day,\n account_id,\n promoted_tweet_id,\n placement,\n clicks as clicks,\n impressions as impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks as url_clicks\n\n {% for conversion in var('twitter_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {% for conversion_value in var('twitter_ads__conversion_sale_amount_fields', []) %}\n , coalesce(cast({{ conversion_value }} as {{ dbt.type_float() }}), 0) as {{ conversion_value }}\n {% endfor %}\n\n {{ twitter_ads_fill_pass_through_columns(pass_through_fields=var('twitter_ads__promoted_tweet_report_passthrough_metrics'), except=(var('twitter_ads__conversion_fields') + var('twitter_ads__conversion_sale_amount_fields'))) }}\n\n from renamed\n\n)\n\nselect * from spend_calc", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_report_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__promoted_tweet_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_promoted_tweet_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_bigint", "macro.dbt.type_float", "macro.twitter_ads_source.twitter_ads_fill_pass_through_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__promoted_tweet_report.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__promoted_tweet_report_tmp`\n\n),\n\nrenamed as (\n\n select\n \n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n billed_charge_local_micro\n \n as \n \n billed_charge_local_micro\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n placement\n \n as \n \n placement\n \n, \n \n \n promoted_tweet_id\n \n as \n \n promoted_tweet_id\n \n, \n \n \n url_clicks\n \n as \n \n url_clicks\n \n, \n cast(null as string) as \n \n conversion_purchases_metric\n \n , \n cast(null as string) as \n \n conversion_custom_metric\n \n , \n cast(null as string) as \n \n conversion_purchases_sale_amount\n \n , \n cast(null as string) as \n \n conversion_custom_sale_amount\n \n , \n cast(null as string) as \n \n conversion_sign_ups_sale_amount\n \n , \n cast(null as string) as conversions , \n cast(null as string) as \n \n installs\n \n , \n cast(null as string) as \n \n videos\n \n \n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from source\n\n), spend_calc as (\n\n select\n source_relation,\n timestamp_trunc(\n cast(date as timestamp),\n day\n ) as date_day,\n account_id,\n promoted_tweet_id,\n placement,\n clicks as clicks,\n impressions as impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks as url_clicks\n\n \n , coalesce(cast(conversion_purchases_metric as bigint), 0) as conversion_purchases_metric\n \n , coalesce(cast(conversion_custom_metric as bigint), 0) as conversion_custom_metric\n \n\n \n , coalesce(cast(conversion_purchases_sale_amount as FLOAT64), 0) as conversion_purchases_sale_amount\n \n , coalesce(cast(conversion_custom_sale_amount as FLOAT64), 0) as conversion_custom_sale_amount\n \n , coalesce(cast(conversion_sign_ups_sale_amount as FLOAT64), 0) as conversion_sign_ups_sale_amount\n \n\n \n\n\n \n \n \n , coalesce(cast(conversions as FLOAT64), 0) as conversions\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as installs\n \n \n \n \n \n , coalesce(cast(null as FLOAT64), 0) as videos\n \n \n \n\n\n\n\n from renamed\n\n)\n\nselect * from spend_calc", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__tweet": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__tweet", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__tweet.sql", "original_file_path": "models/stg_twitter_ads__tweet.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet", "fqn": ["twitter_ads_source", "stg_twitter_ads__tweet"], "alias": "stg_twitter_ads__tweet", "checksum": {"name": "sha256", "checksum": "a9e49949675961027a786f0c10f358ab6d9261c9d45894002b5ee14c77a9dfc6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a tweet, promoted or not.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "Unique identifier of the tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "If provided, the non-public title of the tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_text": {"name": "full_text", "description": "Full text of the tweet's content.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "Two-letter language code of the tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951601.2909708, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__tweet`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_twitter_ads__tweet_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__tweet_tmp')),\n staging_columns=get_tweet_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n id as tweet_id,\n name,\n full_text,\n lang as language\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__tweet_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__tweet_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_tweet_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__tweet.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__tweet_tmp`\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n full_text\n \n as \n \n full_text\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n lang\n \n as \n \n lang\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n id as tweet_id,\n name,\n full_text,\n lang as language\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__account_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__account_history", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__account_history.sql", "original_file_path": "models/stg_twitter_ads__account_history.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history", "fqn": ["twitter_ads_source", "stg_twitter_ads__account_history"], "alias": "stg_twitter_ads__account_history", "checksum": {"name": "sha256", "checksum": "e8b3ecfb0c54ca3f8e3f3dd502fa32336821143b89422d7b1cfdfca530ef145b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of each account. The versions can be differentiated by the updated_at timestamp.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_id": {"name": "business_id", "description": "The ID of the related business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_name": {"name": "business_name", "description": "The name of the related business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "industry_type": {"name": "industry_type", "description": "The industry of the accounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The timezone the account is set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone_switched_timestamp": {"name": "timezone_switched_timestamp", "description": "The timestamp the account's timezone was last changed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Whether the record is the most latest version for the account", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "salt": {"name": "salt", "description": "The random encryption key used to hash data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951601.284608, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__account_history`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith source as (\n\n select *\n from {{ ref('stg_twitter_ads__account_history_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__account_history_tmp')),\n staging_columns=get_account_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n approval_status,\n business_id,\n business_name,\n created_at as created_timestamp,\n deleted as is_deleted,\n id as account_id,\n industry_type,\n name,\n salt,\n timezone,\n timezone_switch_at as timezone_switched_timestamp,\n updated_at as updated_timestamp,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "language": "sql", "refs": [{"name": "stg_twitter_ads__account_history_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__account_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__account_history_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__account_history.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__account_history_tmp`\n\n),\n\nfields as (\n\n select\n \n \n \n \n approval_status\n \n as \n \n approval_status\n \n, \n \n \n business_id\n \n as \n \n business_id\n \n, \n \n \n business_name\n \n as \n \n business_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deleted\n \n as \n \n deleted\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n industry_type\n \n as \n \n industry_type\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n salt\n \n as \n \n salt\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n timezone_switch_at\n \n as \n \n timezone_switch_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n approval_status,\n business_id,\n business_name,\n created_at as created_timestamp,\n deleted as is_deleted,\n id as account_id,\n industry_type,\n name,\n salt,\n timezone,\n timezone_switch_at as timezone_switched_timestamp,\n updated_at as updated_timestamp,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__tweet_url": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__tweet_url", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__tweet_url.sql", "original_file_path": "models/stg_twitter_ads__tweet_url.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url", "fqn": ["twitter_ads_source", "stg_twitter_ads__tweet_url"], "alias": "stg_twitter_ads__tweet_url", "checksum": {"name": "sha256", "checksum": "4490abbbf995f838c47d4482a71b9afe33f3689ca0e38ee1cc842a52611e5e75"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a URL used in a tweet.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The URL as it will be displayed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expanded_url": {"name": "expanded_url", "description": "The fully expanded URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "The index of the URL within the tweet (ie if there are multiple URLs)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "indices": {"name": "indices", "description": "The start and end point of where the URL is placed in the tweet text.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the related tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url": {"name": "url", "description": "The 't.co' shortened URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951601.28855, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__tweet_url`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith source as (\n\n select *\n from {{ ref('stg_twitter_ads__tweet_url_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__tweet_url_tmp')),\n staging_columns=get_tweet_url_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n display_url,\n expanded_url,\n index,\n indices,\n tweet_id,\n url,\n {{ dbt.split_part('expanded_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('expanded_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('expanded_url') }} as url_path,\n {{ twitter_ads_source.twitter_ads_extract_url_parameter('expanded_url', 'utm_source') }} as utm_source,\n {{ twitter_ads_source.twitter_ads_extract_url_parameter('expanded_url', 'utm_medium') }} as utm_medium,\n {{ twitter_ads_source.twitter_ads_extract_url_parameter('expanded_url', 'utm_campaign') }} as utm_campaign,\n {{ twitter_ads_source.twitter_ads_extract_url_parameter('expanded_url', 'utm_content') }} as utm_content,\n {{ twitter_ads_source.twitter_ads_extract_url_parameter('expanded_url', 'utm_term') }} as utm_term\n \n from fields\n\n)\n\nselect * from final", "language": "sql", "refs": [{"name": "stg_twitter_ads__tweet_url_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__tweet_url_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_tweet_url_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.twitter_ads_source.twitter_ads_extract_url_parameter"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__tweet_url.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__tweet_url_tmp`\n\n),\n\nfields as (\n\n select\n \n \n \n \n display_url\n \n as \n \n display_url\n \n, \n \n \n expanded_url\n \n as \n \n expanded_url\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n indices\n \n as \n \n indices\n \n, \n \n \n tweet_id\n \n as \n \n tweet_id\n \n, \n \n \n url\n \n as \n \n url\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n display_url,\n expanded_url,\n index,\n indices,\n tweet_id,\n url,\n \n\n \n split(\n expanded_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_host,\n '/' || safe_cast(\n\n \n split(\n \n\n case when \n\n length(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ) = 0\n then ''\n else\n substr(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n -1 * (\n\n length(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as string) as url_path,\n nullif(\n\n \n split(\n \n\n \n split(\n expanded_url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n expanded_url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n expanded_url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_campaign,\n nullif(\n\n \n split(\n \n\n \n split(\n expanded_url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n nullif(\n\n \n split(\n \n\n \n split(\n expanded_url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term\n \n from fields\n\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__promoted_tweet_history", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__promoted_tweet_history.sql", "original_file_path": "models/stg_twitter_ads__promoted_tweet_history.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "fqn": ["twitter_ads_source", "stg_twitter_ads__promoted_tweet_history"], "alias": "stg_twitter_ads__promoted_tweet_history", "checksum": {"name": "sha256", "checksum": "238f57903743ca6d0e855f633c322444dae9fdecc8fb6d8e2a29c6dd898ae6c8"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of each promoted tweet. The versions can be differentiated by the updated_at timestamp.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "promoted_tweet_id": {"name": "promoted_tweet_id", "description": "The ID of the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the related tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Whether the record is the most latest version for the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951601.287193, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__promoted_tweet_history`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith source as (\n\n select *\n from {{ ref('stg_twitter_ads__promoted_tweet_history_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__promoted_tweet_history_tmp')),\n staging_columns=get_promoted_tweet_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n approval_status,\n created_at as created_timestamp,\n deleted as is_deleted,\n entity_status,\n id as promoted_tweet_id,\n line_item_id,\n tweet_id,\n updated_at as updated_timestamp,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_latest_version\n from fields \n)\n\nselect * from final", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_history_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__promoted_tweet_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_promoted_tweet_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__promoted_tweet_history.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__promoted_tweet_history_tmp`\n\n),\n\nfields as (\n\n select\n \n \n \n \n approval_status\n \n as \n \n approval_status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deleted\n \n as \n \n deleted\n \n, \n \n \n entity_status\n \n as \n \n entity_status\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n line_item_id\n \n as \n \n line_item_id\n \n, \n \n \n tweet_id\n \n as \n \n tweet_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as string) as source_relation\n\n\n\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n approval_status,\n created_at as created_timestamp,\n deleted as is_deleted,\n entity_status,\n id as promoted_tweet_id,\n line_item_id,\n tweet_id,\n updated_at as updated_timestamp,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_latest_version\n from fields \n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__tweet_url_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__tweet_url_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__tweet_url_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__tweet_url_tmp"], "alias": "stg_twitter_ads__tweet_url_tmp", "checksum": {"name": "sha256", "checksum": "fe9950ae15f4480ffacb71ca05b667af4207203c118b162b32b307c7423fbaac"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951598.7684438, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__tweet_url_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='tweet_url', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='tweet_url',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "tweet_url"], ["twitter_ads", "tweet_url"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.tweet_url"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__tweet_url_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`twitter_tweet_url_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__tweet_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__tweet_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__tweet_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__tweet_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__tweet_tmp"], "alias": "stg_twitter_ads__tweet_tmp", "checksum": {"name": "sha256", "checksum": "e1376dd27eb0a23992062c992dfc2c549638ab402c368930ef36270b21ea20e6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951598.77454, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__tweet_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='tweet', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='tweet',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "tweet"], ["twitter_ads", "tweet"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.tweet"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__tweet_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`twitter_tweet_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__promoted_tweet_report_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__promoted_tweet_report_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__promoted_tweet_report_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__promoted_tweet_report_tmp"], "alias": "stg_twitter_ads__promoted_tweet_report_tmp", "checksum": {"name": "sha256", "checksum": "c6350469f47f1d64f903dd1c7544df64a2cba610a4f96a05e02b1cbedcdee5ea"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951598.7800808, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__promoted_tweet_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='promoted_tweet_report', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='promoted_tweet_report',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "promoted_tweet_report"], ["twitter_ads", "promoted_tweet_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__promoted_tweet_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`twitter_promoted_tweet_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__line_item_history_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__line_item_history_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__line_item_history_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__line_item_history_tmp"], "alias": "stg_twitter_ads__line_item_history_tmp", "checksum": {"name": "sha256", "checksum": "c28894c4d5f5a040352f53dda215bf6255e3101148c160d1eaeefa7ccb032f5f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951598.78807, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='line_item_history', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='line_item_history',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "line_item_history"], ["twitter_ads", "line_item_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.line_item_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__line_item_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`twitter_line_item_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__campaign_report_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__campaign_report_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__campaign_report_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__campaign_report_tmp"], "alias": "stg_twitter_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "53e768ae1259e656223ec5ff0a7e0980d2e5d1802b1787e32761569de90a2821"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951598.7937431, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__campaign_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_report', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='campaign_report',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "campaign_report"], ["twitter_ads", "campaign_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.campaign_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__campaign_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`twitter_campaign_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__campaign_history_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__campaign_history_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__campaign_history_tmp"], "alias": "stg_twitter_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "931bd1d7044cb5dc38f0976471bcfafd6ca46142d2d22d2caba968b5c1e4d418"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951598.8003452, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__campaign_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='campaign_history',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "campaign_history"], ["twitter_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.campaign_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`twitter_campaign_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__line_item_report_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__line_item_report_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__line_item_report_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__line_item_report_tmp"], "alias": "stg_twitter_ads__line_item_report_tmp", "checksum": {"name": "sha256", "checksum": "39ef530f4dbe147a6e9816670be7df4ab36a7fa211079092d1360edb4b23fa2f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951598.812444, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='line_item_report', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='line_item_report',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "line_item_report"], ["twitter_ads", "line_item_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.line_item_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__line_item_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`twitter_line_item_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__account_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__account_history_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__account_history_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__account_history_tmp"], "alias": "stg_twitter_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "3434c0ca9dd5fbb61f4227552660234452f56807b259d7eb09aca34cde54c5a9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951598.8176599, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__account_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_history', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='account_history',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "account_history"], ["twitter_ads", "account_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.account_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__account_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`twitter_account_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__promoted_tweet_history_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__promoted_tweet_history_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__promoted_tweet_history_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__promoted_tweet_history_tmp"], "alias": "stg_twitter_ads__promoted_tweet_history_tmp", "checksum": {"name": "sha256", "checksum": "0eabeab3709379e124896ece68025723a1f2906b5cc9e5ea00ad448732c5fac1"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951598.824283, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__promoted_tweet_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='promoted_tweet_history', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='promoted_tweet_history',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "promoted_tweet_history"], ["twitter_ads", "promoted_tweet_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.promoted_tweet_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__promoted_tweet_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from `dbt-package-testing`.`ad_reporting_tests`.`twitter_promoted_tweet_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin.linkedin_ads__campaign_group_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "linkedin_ads__campaign_group_report", "resource_type": "model", "package_name": "linkedin", "path": "linkedin_ads__campaign_group_report.sql", "original_file_path": "models/linkedin_ads__campaign_group_report.sql", "unique_id": "model.linkedin.linkedin_ads__campaign_group_report", "fqn": ["linkedin", "linkedin_ads__campaign_group_report"], "alias": "linkedin_ads__campaign_group_report", "checksum": {"name": "sha256", "checksum": "046636ec2288476b7c27c03f5ac84a558330fe3bd2bb42fc90a1b88a33983cec"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the campaign group level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the campaign group was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_backfilled": {"name": "is_backfilled", "description": "Flag that denotes whether the campaign group was created organically or to backfill existing campaigns. This is a read-only field set by the system. Default = false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_start_at": {"name": "run_schedule_start_at", "description": "Represents the inclusive (greater than or equal to) date when to start running the associated campaigns under this campaign group. This field is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_end_at": {"name": "run_schedule_end_at", "description": "Represents the exclusive (strictly less than) date when to stop running the associated campaigns under this campaign group. If this field is unset, it indicates an open range with no end date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of campaign group. Possible values are: ACTIVE - Denotes that the campaign group is capable of serving ads, subject to run date and budget limitations (as well as any other limitations at the account or campaign level). ARCHIVED - Denotes that the campaign group is presently inactive, and should mostly be hidden in the UI until un-archived. CANCELLED - Denotes that the campaign group has been permanently canceled and cannot be reactivated. Not a settable status. DRAFT - Denotes that the campaign group is in a preliminary state and should temporarily not be served. PAUSED - Denotes that the campaign group meets all requirements to be served, but temporarily should not be. PENDING_DELETION - Denotes that the campaign group has been requested to be deleted that is currently pending. REMOVED - Denoted that the campaign group was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The ISO 4217 currency code of the account, such as 'USD' for United States Dollar (default).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency, on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `linkedin_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin://models/linkedin.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951601.361123, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__campaign_group_report`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith campaign_group as (\n\n select *\n from {{ var('campaign_group_history') }}\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\naccount as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nreport as (\n\n select *,\n {% if var('linkedin_ads__conversion_fields', none) %}\n {{ var('linkedin_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_analytics_by_campaign') }}\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n campaign_group.campaign_group_id,\n campaign_group.campaign_group_name,\n account.account_id,\n account.account_name,\n campaign_group.status,\n account.currency,\n campaign_group.is_backfilled,\n campaign_group.run_schedule_start_at,\n campaign_group.run_schedule_end_at,\n campaign_group.last_modified_at,\n campaign_group.created_at,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency\n\n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='linkedin_ads__campaign_passthrough_metrics', exclude_fields=['conversion_value_in_local_currency']) }}\n\n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__campaign_passthrough_metrics', transform='sum', exclude_fields=['conversion_value_in_local_currency']) }}\n\n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n and campaign.source_relation = campaign_group.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n {{ dbt_utils.group_by(13) }}\n\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_group_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__account_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__ad_analytics_by_campaign", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin.linkedin_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__campaign_history", "model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin/models/linkedin_ads__campaign_group_report.sql", "compiled": true, "compiled_code": "\n\nwith campaign_group as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_group_history`\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_history`\n where is_latest_version\n),\n\naccount as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__account_history`\n where is_latest_version\n),\n\nreport as (\n\n select *,\n \n external_website_conversions + one_click_leads as total_conversions\n \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__ad_analytics_by_campaign`\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n campaign_group.campaign_group_id,\n campaign_group.campaign_group_name,\n account.account_id,\n account.account_name,\n campaign_group.status,\n account.currency,\n campaign_group.is_backfilled,\n campaign_group.run_schedule_start_at,\n campaign_group.run_schedule_end_at,\n campaign_group.last_modified_at,\n campaign_group.created_at,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency\n\n \n\n\n\n \n \n \n \n \n \n \n \n \n \n\n\n\n \n\n\n\n \n \n \n \n\n \n \n \n \n\n \n\n\n\n\n \n\n\n\n\n\n \n\n\n\n \n \n \n \n , sum(external_website_conversions) as external_website_conversions\n \n\n \n \n \n \n , sum(conversions) as conversions\n \n\n \n \n \n \n\n \n \n \n \n , sum(videos) as videos\n \n\n \n\n\n\n\n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n and campaign.source_relation = campaign_group.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin.linkedin_ads__creative_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "linkedin_ads__creative_report", "resource_type": "model", "package_name": "linkedin", "path": "linkedin_ads__creative_report.sql", "original_file_path": "models/linkedin_ads__creative_report.sql", "unique_id": "model.linkedin.linkedin_ads__creative_report", "fqn": ["linkedin", "linkedin_ads__creative_report"], "alias": "linkedin_ads__creative_report", "checksum": {"name": "sha256", "checksum": "061d2b2ba4c42e23e110741985bdede544cbae84a87f355c2bf2b9c0b9a16b83"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the creative level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "A label for the creative's campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Unique internal ID representing the creative's campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "Unique internal ID representing the creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the creative was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_status": {"name": "creative_status", "description": "ACTIVE - Creative creation is complete and creative is available for review and serve.\nPAUSED - Creative creation is complete and creative is current, but should temporarily not be served. This status is not valid upon creation.\nDRAFT - Creative creation is incomplete and may still be edited.\nARCHIVED - Creative creation is complete, but creative should not be served and should be separated from non-archived creatives in any UI.\nCANCELED - Creative is permanently canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_uri": {"name": "click_uri", "description": "Required when creative type is TEXT_AD. Maximum character limit of 500 after URL encoding all special characters. \nLimit does not include the \"https://\" prefix.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_status": {"name": "campaign_group_status", "description": "Status of campaign's campaign group. Possible values are: ACTIVE - Denotes that the campaign group is capable of serving ads, subject to run date and budget limitations (as well as any other limitations at the account or campaign level). ARCHIVED - Denotes that the campaign group is presently inactive, and should mostly be hidden in the UI until un-archived. CANCELLED - Denotes that the campaign group has been permanently canceled and cannot be reactivated. Not a settable status. DRAFT - Denotes that the campaign group is in a preliminary state and should temporarily not be served. PAUSED - Denotes that the campaign group meets all requirements to be served, but temporarily should not be. PENDING_DELETION - Denotes that the campaign group has been requested to be deleted that is currently pending. REMOVED - Denoted that the campaign group was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "ACTIVE - Denotes that the campaign is fully servable.\nPAUSED - Denotes that the campaign meets all requirements to be served, but temporarily should not be.\nARCHIVED - Denotes that the campaign is presently inactive, and should mostly be hidden in the UI until un-archived.\nCOMPLETED - Denotes that the campaign has reached a specified budgetary or chronological limit.\nCANCELED - Denotes that the campaign has been permanently canceled, such as when an advertising account is permanently closed.\nDRAFT - Denotes that the campaign is still being edited and not eligible for serving. Some validation will be postponed until the campaign is activated.\nPENDING_DELETION - Denotes that the campaign has been requested to be deleted that is currently pending.\nREMOVED - Denotes that the campaign was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The ISO 4217 currency code of the account, such as 'USD' for United States Dollar (default).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency, on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `linkedin_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin://models/linkedin.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951601.362174, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__creative_report`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith creative as (\n\n select *\n from {{ var('creative_history') }}\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from {{ var('campaign_group_history') }}\n where is_latest_version\n),\n\naccount as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nreport as (\n\n select *,\n {% if var('linkedin_ads__conversion_fields', none) %}\n {{ var('linkedin_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_analytics_by_creative') }}\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.creative_id,\n campaign.campaign_id,\n campaign.campaign_name,\n campaign_group.campaign_group_id,\n campaign_group.campaign_group_name,\n account.account_id,\n account.account_name,\n creative.click_uri,\n creative.status as creative_status,\n campaign.status as campaign_status,\n campaign_group.status as campaign_group_status,\n account.currency,\n creative.last_modified_at,\n creative.created_at,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency \n\n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='linkedin_ads__creative_passthrough_metrics', exclude_fields=['conversion_value_in_local_currency']) }}\n\n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__creative_passthrough_metrics', transform='sum', exclude_fields=['conversion_value_in_local_currency']) }}\n\n from report \n left join creative \n on report.creative_id = creative.creative_id\n and report.source_relation = creative.source_relation\n left join campaign \n on creative.campaign_id = campaign.campaign_id\n and creative.source_relation = campaign.source_relation\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n and campaign.source_relation = campaign_group.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n {{ dbt_utils.group_by(16) }}\n\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_linkedin_ads__creative_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_group_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__account_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__ad_analytics_by_creative", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin.linkedin_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history", "model.linkedin_source.stg_linkedin_ads__campaign_history", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"]}, "compiled_path": "target/compiled/linkedin/models/linkedin_ads__creative_report.sql", "compiled": true, "compiled_code": "\n\nwith creative as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__creative_history`\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_history`\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_group_history`\n where is_latest_version\n),\n\naccount as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__account_history`\n where is_latest_version\n),\n\nreport as (\n\n select *,\n \n external_website_conversions + one_click_leads as total_conversions\n \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__ad_analytics_by_creative`\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.creative_id,\n campaign.campaign_id,\n campaign.campaign_name,\n campaign_group.campaign_group_id,\n campaign_group.campaign_group_name,\n account.account_id,\n account.account_name,\n creative.click_uri,\n creative.status as creative_status,\n campaign.status as campaign_status,\n campaign_group.status as campaign_group_status,\n account.currency,\n creative.last_modified_at,\n creative.created_at,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency \n\n \n\n\n\n \n \n \n \n \n \n \n \n \n \n\n\n\n \n\n\n\n \n \n \n \n\n \n \n \n \n\n \n\n\n\n\n \n\n\n\n\n\n \n\n\n\n \n \n \n \n , sum(external_website_conversions) as external_website_conversions\n \n\n \n \n \n \n , sum(conversions) as conversions\n \n\n \n \n \n \n\n \n \n \n \n , sum(videos) as videos\n \n\n \n\n\n\n\n from report \n left join creative \n on report.creative_id = creative.creative_id\n and report.source_relation = creative.source_relation\n left join campaign \n on creative.campaign_id = campaign.campaign_id\n and creative.source_relation = campaign.source_relation\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n and campaign.source_relation = campaign_group.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin.linkedin_ads__campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "linkedin_ads__campaign_report", "resource_type": "model", "package_name": "linkedin", "path": "linkedin_ads__campaign_report.sql", "original_file_path": "models/linkedin_ads__campaign_report.sql", "unique_id": "model.linkedin.linkedin_ads__campaign_report", "fqn": ["linkedin", "linkedin_ads__campaign_report"], "alias": "linkedin_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "9bdee6ae45df533c3a41615a7db398921a119a2c42150879063172e30d824005"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the campaign level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "A label for the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Unique internal ID representing the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_status": {"name": "campaign_group_status", "description": "Status of campaign's campaign group. Possible values are: ACTIVE - Denotes that the campaign group is capable of serving ads, subject to run date and budget limitations (as well as any other limitations at the account or campaign level). ARCHIVED - Denotes that the campaign group is presently inactive, and should mostly be hidden in the UI until un-archived. CANCELLED - Denotes that the campaign group has been permanently canceled and cannot be reactivated. Not a settable status. DRAFT - Denotes that the campaign group is in a preliminary state and should temporarily not be served. PAUSED - Denotes that the campaign group meets all requirements to be served, but temporarily should not be. PENDING_DELETION - Denotes that the campaign group has been requested to be deleted that is currently pending. REMOVED - Denoted that the campaign group was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the campaign was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_audience_expansion_enabled": {"name": "is_audience_expansion_enabled", "description": "Boolean (default=false) representing whether Audience Expansion is enabled for the campaign provides query expansion for certain targeting criteria.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_type": {"name": "cost_type", "description": "CPM - Cost per thousand advertising impressions. If type=SPONSORED_INMAILS; cost per send(CPS) is measured as CPM x 1000.\nCPC- Cost per individual click on the associated link.\nCPV- Cost per view for video ads.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_selection": {"name": "creative_selection", "description": "ROUND_ROBIN - Rotate through available creatives to serve them as evenly as possible.\nOPTIMIZED (default) - Bias selection taking into account such as expected performance. Not available for Message and Conversation Ads (type=SPONSORED_INMAILS).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_amount": {"name": "daily_budget_amount", "description": "Maximum amount to spend per day UTC. The amount of money as a real number string.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_currency_code": {"name": "daily_budget_currency_code", "description": "ISO currency code. The currency must match that of the parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "format": {"name": "format", "description": "The ad format on the campaign level. See https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads/campaign-formats?view=li-lms-2022-07", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "locale_country": {"name": "locale_country", "description": "Locale of the campaign. An uppercase two-letter country code as defined by ISO-3166.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "locale_language": {"name": "locale_language", "description": "Locale of the campaign. A lowercase two-letter language code as defined by ISO-639.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective_type": {"name": "objective_type", "description": "Campaign Objective type values. Click [here](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ad-budget-pricing-type-combinations?view=li-lms-2022-07) for Campaign Objective descriptions. One of: - BRAND_AWARENESS - ENGAGEMENT - JOB_APPLICANTS - LEAD_GENERATION - WEBSITE_CONVERSIONS - WEBSITE_VISITS - VIDEO_VIEWS\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_offsite_delivery_enabled": {"name": "is_offsite_delivery_enabled", "description": "Boolean indicating if this campaign to allowed to be served on the LinkedIn Audience Network to extend the reach of your campaign by delivering ads beyond the LinkedIn feed to members on third-party apps and sites.\t(default will be \"True\" from June 30, 2022)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization_target_type": {"name": "optimization_target_type", "description": "Determines how this campaign is optimized for spending. If this is not set, there is no optimization. Refer to the documentation here. Default = 'NONE'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_start_at": {"name": "run_schedule_start_at", "description": "Scheduled date range to run associated creatives. The start date must be non-null. Represents the inclusive (greater than or equal to) value in which to start the range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_end_at": {"name": "run_schedule_end_at", "description": "Scheduled date range to run associated creatives. The start date must be non-null. Represents the exclusive (strictly less than) value in which to end the range, if provided.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "ACTIVE - Denotes that the campaign is fully servable.\nPAUSED - Denotes that the campaign meets all requirements to be served, but temporarily should not be.\nARCHIVED - Denotes that the campaign is presently inactive, and should mostly be hidden in the UI until un-archived.\nCOMPLETED - Denotes that the campaign has reached a specified budgetary or chronological limit.\nCANCELED - Denotes that the campaign has been permanently canceled, such as when an advertising account is permanently closed.\nDRAFT - Denotes that the campaign is still being edited and not eligible for serving. Some validation will be postponed until the campaign is activated.\nPENDING_DELETION - Denotes that the campaign has been requested to be deleted that is currently pending.\nREMOVED - Denotes that the campaign was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "TEXT_AD - Text-based ads that show up in the right column or top of the page on LinkedIn.\nSPONSORED_UPDATES - Native ads that promote a company's content updates in the LinkedIn feed.\nSPONSORED_INMAILS - Personalized messages with a call-to-action button delivered to a LinkedIn's member inbox.\nDYNAMIC - Ads that are dynamically personalized.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "This value is used as one of the following: amount to bid (for manual bidding), amount which is the target cost (for target cost bidding) per click, impression, or other event depending on the pricing model, or cost cap (for cost cap bidding). The amount of money as a real number string. The amount should be non-negative if the bidding strategy is manual, target cost, or cost cap bidding. The default is 0 with the currency code set to match that of the associated account.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Amount to bid per click, impression, or other event depending on the pricing model. The default is 0 with the currency code set to match that of the associated account. ISO currency code.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The ISO 4217 currency code of the account, such as 'USD' for United States Dollar (default).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency, on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `linkedin_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin://models/linkedin.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951601.359728, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith campaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from {{ var('campaign_group_history') }}\n where is_latest_version\n),\n\naccount as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nreport as (\n\n select *,\n {% if var('linkedin_ads__conversion_fields', none) %}\n {{ var('linkedin_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_analytics_by_campaign') }}\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.campaign_id,\n campaign.campaign_name,\n campaign.version_tag,\n campaign_group.campaign_group_id,\n campaign_group.campaign_group_name,\n account.account_id,\n account.account_name,\n campaign.status as campaign_status,\n campaign_group.status as campaign_group_status,\n campaign.type,\n campaign.cost_type,\n campaign.creative_selection,\n campaign.daily_budget_amount,\n campaign.daily_budget_currency_code,\n campaign.unit_cost_amount,\n campaign.unit_cost_currency_code,\n account.currency,\n campaign.format,\n campaign.locale_country,\n campaign.locale_language,\n campaign.objective_type,\n campaign.optimization_target_type,\n campaign.is_audience_expansion_enabled,\n campaign.is_offsite_delivery_enabled,\n campaign.run_schedule_start_at,\n campaign.run_schedule_end_at,\n campaign.last_modified_at,\n campaign.created_at,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency\n\n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='linkedin_ads__campaign_passthrough_metrics', exclude_fields=['conversion_value_in_local_currency']) }}\n \n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__campaign_passthrough_metrics', transform='sum', exclude_fields=['conversion_value_in_local_currency']) }}\n\n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n and campaign.source_relation = campaign_group.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n {{ dbt_utils.group_by(30) }}\n\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_group_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__account_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__ad_analytics_by_campaign", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin.linkedin_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin/models/linkedin_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith campaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_history`\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_group_history`\n where is_latest_version\n),\n\naccount as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__account_history`\n where is_latest_version\n),\n\nreport as (\n\n select *,\n \n external_website_conversions + one_click_leads as total_conversions\n \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__ad_analytics_by_campaign`\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.campaign_id,\n campaign.campaign_name,\n campaign.version_tag,\n campaign_group.campaign_group_id,\n campaign_group.campaign_group_name,\n account.account_id,\n account.account_name,\n campaign.status as campaign_status,\n campaign_group.status as campaign_group_status,\n campaign.type,\n campaign.cost_type,\n campaign.creative_selection,\n campaign.daily_budget_amount,\n campaign.daily_budget_currency_code,\n campaign.unit_cost_amount,\n campaign.unit_cost_currency_code,\n account.currency,\n campaign.format,\n campaign.locale_country,\n campaign.locale_language,\n campaign.objective_type,\n campaign.optimization_target_type,\n campaign.is_audience_expansion_enabled,\n campaign.is_offsite_delivery_enabled,\n campaign.run_schedule_start_at,\n campaign.run_schedule_end_at,\n campaign.last_modified_at,\n campaign.created_at,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency\n\n \n\n\n\n \n \n \n \n \n \n \n \n \n \n\n\n\n \n\n\n\n \n \n \n \n\n \n \n \n \n\n \n\n\n\n \n \n\n\n\n\n\n \n\n\n\n \n \n \n \n , sum(external_website_conversions) as external_website_conversions\n \n\n \n \n \n \n , sum(conversions) as conversions\n \n\n \n \n \n \n\n \n \n \n \n , sum(videos) as videos\n \n\n \n\n\n\n\n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n and campaign.source_relation = campaign_group.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin.linkedin_ads__account_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "linkedin_ads__account_report", "resource_type": "model", "package_name": "linkedin", "path": "linkedin_ads__account_report.sql", "original_file_path": "models/linkedin_ads__account_report.sql", "unique_id": "model.linkedin.linkedin_ads__account_report", "fqn": ["linkedin", "linkedin_ads__account_report"], "alias": "linkedin_ads__account_report", "checksum": {"name": "sha256", "checksum": "5f2ac8dcbb1c7c2ccfd1032e9d8398a38c7c2a1ec3272f4871dbb464188c1982"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The ISO 4217 currency code of the account, such as 'USD' for United States Dollar (default).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "ACTIVE - Account is active; this is the default state\nCANCELLED - Account has been permanently cancelled\nDRAFT - Account is in draft status, meaning it's not yet fully set up and it is not serving\nPENDING_DELETION - Denotes that the account has been requested to be deleted that is currently pending\nREMOVED - Denotes that the account was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "BUSINESS - This is the only value allowed when creating accounts through the API.\nENTERPRISE - This value cannot be used to create accounts through the API and is reserved for accounts created by LinkedIn's internal ad operations systems.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency, on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `linkedin_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin://models/linkedin.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951601.3583739, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__account_report`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith account as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\nreport as (\n\n select *,\n {% if var('linkedin_ads__conversion_fields', none) %}\n {{ var('linkedin_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_analytics_by_campaign') }}\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n account.account_id,\n account.account_name,\n account.version_tag,\n account.currency,\n account.status,\n account.type,\n account.last_modified_at,\n account.created_at,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency\n\n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='linkedin_ads__campaign_passthrough_metrics', exclude_fields=['conversion_value_in_local_currency']) }}\n \n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__campaign_passthrough_metrics', transform='sum', exclude_fields=['conversion_value_in_local_currency']) }}\n\n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n {{ dbt_utils.group_by(10) }}\n\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_linkedin_ads__account_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__ad_analytics_by_campaign", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin.linkedin_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__campaign_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin/models/linkedin_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith account as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__account_history`\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_history`\n where is_latest_version\n),\n\nreport as (\n\n select *,\n \n external_website_conversions + one_click_leads as total_conversions\n \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__ad_analytics_by_campaign`\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n account.account_id,\n account.account_name,\n account.version_tag,\n account.currency,\n account.status,\n account.type,\n account.last_modified_at,\n account.created_at,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency\n\n \n\n\n\n \n \n \n \n \n \n \n \n \n \n\n\n\n \n\n\n\n \n \n \n \n\n \n \n \n \n\n \n\n\n\n \n \n\n\n\n\n\n \n\n\n\n \n \n \n \n , sum(external_website_conversions) as external_website_conversions\n \n\n \n \n \n \n , sum(conversions) as conversions\n \n\n \n \n \n \n\n \n \n \n \n , sum(videos) as videos\n \n\n \n\n\n\n\n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin.linkedin_ads__url_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "linkedin_ads__url_report", "resource_type": "model", "package_name": "linkedin", "path": "linkedin_ads__url_report.sql", "original_file_path": "models/linkedin_ads__url_report.sql", "unique_id": "model.linkedin.linkedin_ads__url_report", "fqn": ["linkedin", "linkedin_ads__url_report"], "alias": "linkedin_ads__url_report", "checksum": {"name": "sha256", "checksum": "57119ac008d78f8b737929a561edba5167db0b4adf0b8895a96e339e00a5bd81"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the url level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "Unique internal ID representing the creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_uri": {"name": "click_uri", "description": "Required when creative type is TEXT_AD. Maximum character limit of 500 after URL encoding all special characters. \nLimit does not include the \"https://\" prefix.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The ISO 4217 currency code of the account, such as 'USD' for United States Dollar (default).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "A label for the creative's campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Unique internal ID representing the creative's campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency, on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `linkedin_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin://models/linkedin.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1731951601.363261, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__url_report`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith creative as (\n\n select *\n from {{ var('creative_history') }}\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from {{ var('campaign_group_history') }}\n where is_latest_version\n),\n\naccount as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nreport as (\n\n select *,\n {% if var('linkedin_ads__conversion_fields', none) %}\n {{ var('linkedin_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_analytics_by_creative') }}\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n creative.click_uri,\n creative.base_url,\n creative.url_host,\n creative.url_path,\n creative.utm_source,\n creative.utm_medium,\n creative.utm_campaign,\n creative.utm_content,\n creative.utm_term,\n report.creative_id,\n campaign.campaign_id,\n campaign.campaign_name,\n campaign_group.campaign_group_id,\n campaign_group.campaign_group_name,\n account.account_id,\n account.account_name,\n account.currency,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency\n\n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='linkedin_ads__creative_passthrough_metrics', exclude_fields=['conversion_value_in_local_currency']) }}\n\n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__creative_passthrough_metrics', transform='sum', exclude_fields=['conversion_value_in_local_currency']) }}\n\n from report \n left join creative \n on report.creative_id = creative.creative_id\n and report.source_relation = creative.source_relation\n left join campaign \n on creative.campaign_id = campaign.campaign_id\n and creative.source_relation = campaign.source_relation\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n and campaign.source_relation = campaign_group.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where creative.click_uri is not null\n {% endif %}\n\n {{ dbt_utils.group_by(19) }}\n\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_linkedin_ads__creative_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_group_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__account_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__ad_analytics_by_creative", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin.linkedin_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history", "model.linkedin_source.stg_linkedin_ads__campaign_history", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"]}, "compiled_path": "target/compiled/linkedin/models/linkedin_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith creative as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__creative_history`\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_history`\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_group_history`\n where is_latest_version\n),\n\naccount as (\n\n select *\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__account_history`\n where is_latest_version\n),\n\nreport as (\n\n select *,\n \n external_website_conversions + one_click_leads as total_conversions\n \n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__ad_analytics_by_creative`\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n creative.click_uri,\n creative.base_url,\n creative.url_host,\n creative.url_path,\n creative.utm_source,\n creative.utm_medium,\n creative.utm_campaign,\n creative.utm_content,\n creative.utm_term,\n report.creative_id,\n campaign.campaign_id,\n campaign.campaign_name,\n campaign_group.campaign_group_id,\n campaign_group.campaign_group_name,\n account.account_id,\n account.account_name,\n account.currency,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency\n\n \n\n\n\n \n \n \n \n \n \n \n \n \n \n\n\n\n \n\n\n\n \n \n \n \n\n \n \n \n \n\n \n\n\n\n\n \n\n\n\n\n\n \n\n\n\n \n \n \n \n , sum(external_website_conversions) as external_website_conversions\n \n\n \n \n \n \n , sum(conversions) as conversions\n \n\n \n \n \n \n\n \n \n \n \n , sum(videos) as videos\n \n\n \n\n\n\n\n from report \n left join creative \n on report.creative_id = creative.creative_id\n and report.source_relation = creative.source_relation\n left join campaign \n on creative.campaign_id = campaign.campaign_id\n and creative.source_relation = campaign.source_relation\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n and campaign.source_relation = campaign_group.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n \n where creative.click_uri is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_microsoft_ads__account_history_account_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__account_history_account_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__account_history_account_id"], "alias": "not_null_stg_microsoft_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.1252658, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__account_history_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_microsoft_ads__account_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__account_history')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_source_relation__account_id__modified_at.c32440cfcf": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_source_relation__account_id__modified_at", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_fd0c684a99c865caaa2ba98ca9bf539c.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_source_relation__account_id__modified_at.c32440cfcf", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_source_relation__account_id__modified_at"], "alias": "dbt_utils_unique_combination_o_fd0c684a99c865caaa2ba98ca9bf539c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd0c684a99c865caaa2ba98ca9bf539c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd0c684a99c865caaa2ba98ca9bf539c"}, "created_at": 1731951599.126653, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd0c684a99c865caaa2ba98ca9bf539c\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_fd0c684a99c865caaa2ba98ca9bf539c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, modified_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_history`\n group by source_relation, account_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__account_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__account_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__account_history')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_microsoft_ads__account_daily_report_account_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__account_daily_report_account_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__account_daily_report_account_id"], "alias": "not_null_stg_microsoft_ads__account_daily_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.140495, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__account_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__account_daily_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_daily_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_microsoft_ads__account_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__account_daily_report')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.38a7aa3e12": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_24fc92b66d79de757c43a6e173150686.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.38a7aa3e12", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other"], "alias": "dbt_utils_unique_combination_o_24fc92b66d79de757c43a6e173150686", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_24fc92b66d79de757c43a6e173150686", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_24fc92b66d79de757c43a6e173150686"}, "created_at": 1731951599.1418931, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_24fc92b66d79de757c43a6e173150686\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__account_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_24fc92b66d79de757c43a6e173150686.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, device_os, device_type, network, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__account_daily_report`\n group by source_relation, date_day, account_id, device_os, device_type, network, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__account_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "device_os", "device_type", "network", "currency_code", "ad_distribution", "bid_match_type", "delivered_match_type", "top_vs_other"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__account_daily_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_microsoft_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_microsoft_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.145351, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_microsoft_ads__ad_group_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_group_history')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_source_relation__ad_group_id__modified_at.f2ed2b82b0": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_source_relation__ad_group_id__modified_at", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_4bccb1798d57535f6f2f7ad9f2a0aca8.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_source_relation__ad_group_id__modified_at.f2ed2b82b0", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_source_relation__ad_group_id__modified_at"], "alias": "dbt_utils_unique_combination_o_4bccb1798d57535f6f2f7ad9f2a0aca8", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4bccb1798d57535f6f2f7ad9f2a0aca8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4bccb1798d57535f6f2f7ad9f2a0aca8"}, "created_at": 1731951599.146583, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4bccb1798d57535f6f2f7ad9f2a0aca8\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_4bccb1798d57535f6f2f7ad9f2a0aca8.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, modified_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_group_history`\n group by source_relation, ad_group_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__ad_group_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.3e03e6eff7": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.3e03e6eff7", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id"], "alias": "not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.149472, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_group_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_group_daily_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_microsoft_ads__ad_group_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_group_daily_report')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.3825c46fa1": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_0902115b2621a174738ffb2c9c30fd29.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.3825c46fa1", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other"], "alias": "dbt_utils_unique_combination_o_0902115b2621a174738ffb2c9c30fd29", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0902115b2621a174738ffb2c9c30fd29", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0902115b2621a174738ffb2c9c30fd29"}, "created_at": 1731951599.150573, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0902115b2621a174738ffb2c9c30fd29\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_group_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_0902115b2621a174738ffb2c9c30fd29.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_group_daily_report`\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__ad_group_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "device_os", "device_type", "network", "language", "currency_code", "ad_distribution", "bid_match_type", "delivered_match_type", "top_vs_other"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_group_daily_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_microsoft_ads__ad_history_ad_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_history_ad_id"], "alias": "not_null_stg_microsoft_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.1534169, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_microsoft_ads__ad_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_history')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_source_relation__ad_id__modified_at.2eb6255160": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_source_relation__ad_id__modified_at", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_36f20424137d25e995b09c1bddfcce89.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_source_relation__ad_id__modified_at.2eb6255160", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_source_relation__ad_id__modified_at"], "alias": "dbt_utils_unique_combination_o_36f20424137d25e995b09c1bddfcce89", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_36f20424137d25e995b09c1bddfcce89", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_36f20424137d25e995b09c1bddfcce89"}, "created_at": 1731951599.154442, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_36f20424137d25e995b09c1bddfcce89\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_36f20424137d25e995b09c1bddfcce89.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, modified_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_history`\n group by source_relation, ad_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__ad_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_history')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_microsoft_ads__ad_daily_report_ad_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_daily_report_ad_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_daily_report_ad_id"], "alias": "not_null_stg_microsoft_ads__ad_daily_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.157681, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_daily_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_daily_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_microsoft_ads__ad_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_daily_report')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.b6f971641a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_afb39c900eb4e18f43cfee06db282632.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.b6f971641a", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other"], "alias": "dbt_utils_unique_combination_o_afb39c900eb4e18f43cfee06db282632", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_afb39c900eb4e18f43cfee06db282632", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_afb39c900eb4e18f43cfee06db282632"}, "created_at": 1731951599.159025, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_afb39c900eb4e18f43cfee06db282632\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_afb39c900eb4e18f43cfee06db282632.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__ad_daily_report`\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__ad_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "ad_id", "device_os", "device_type", "network", "language", "currency_code", "ad_distribution", "bid_match_type", "delivered_match_type", "top_vs_other"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_daily_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_microsoft_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__campaign_history_campaign_id"], "alias": "not_null_stg_microsoft_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.161688, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_microsoft_ads__campaign_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__campaign_history')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_source_relation__campaign_id__modified_at.56da51b12d": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_source_relation__campaign_id__modified_at", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_a9206f441502e8d379d26b48adcc646a.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_source_relation__campaign_id__modified_at.56da51b12d", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_source_relation__campaign_id__modified_at"], "alias": "dbt_utils_unique_combination_o_a9206f441502e8d379d26b48adcc646a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a9206f441502e8d379d26b48adcc646a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a9206f441502e8d379d26b48adcc646a"}, "created_at": 1731951599.162709, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a9206f441502e8d379d26b48adcc646a\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_a9206f441502e8d379d26b48adcc646a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, modified_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__campaign_history`\n group by source_relation, campaign_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__campaign_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_microsoft_ads__campaign_daily_report_campaign_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__campaign_daily_report_campaign_id"], "alias": "not_null_stg_microsoft_ads__campaign_daily_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.165138, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__campaign_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__campaign_daily_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_microsoft_ads__campaign_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__campaign_daily_report')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other__budget_association_status__budget_name__budget_status.f7a5fd8430": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other__budget_association_status__budget_name__budget_status", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_2ccebec14519a7e01ea4724718f83222.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other__budget_association_status__budget_name__budget_status.f7a5fd8430", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other__budget_association_status__budget_name__budget_status"], "alias": "dbt_utils_unique_combination_o_2ccebec14519a7e01ea4724718f83222", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2ccebec14519a7e01ea4724718f83222", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2ccebec14519a7e01ea4724718f83222"}, "created_at": 1731951599.166162, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2ccebec14519a7e01ea4724718f83222\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__campaign_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_2ccebec14519a7e01ea4724718f83222.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, device_os, device_type, network, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other, budget_association_status, budget_name, budget_status\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__campaign_daily_report`\n group by source_relation, date_day, account_id, campaign_id, device_os, device_type, network, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other, budget_association_status, budget_name, budget_status\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__campaign_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "device_os", "device_type", "network", "currency_code", "ad_distribution", "bid_match_type", "delivered_match_type", "top_vs_other", "budget_association_status", "budget_name", "budget_status"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__campaign_daily_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_microsoft_ads__keyword_history_keyword_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__keyword_history_keyword_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__keyword_history_keyword_id"], "alias": "not_null_stg_microsoft_ads__keyword_history_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.168981, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__keyword_history_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__keyword_history`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_microsoft_ads__keyword_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__keyword_history')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_source_relation__keyword_id__modified_at.5b0ba5f522": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_source_relation__keyword_id__modified_at", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_3d684e3f5d593598c7dfd5dec44ebf4d.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_source_relation__keyword_id__modified_at.5b0ba5f522", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_source_relation__keyword_id__modified_at"], "alias": "dbt_utils_unique_combination_o_3d684e3f5d593598c7dfd5dec44ebf4d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3d684e3f5d593598c7dfd5dec44ebf4d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3d684e3f5d593598c7dfd5dec44ebf4d"}, "created_at": 1731951599.1708422, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3d684e3f5d593598c7dfd5dec44ebf4d\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_3d684e3f5d593598c7dfd5dec44ebf4d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, keyword_id, modified_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__keyword_history`\n group by source_relation, keyword_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__keyword_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "keyword_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__keyword_history')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_microsoft_ads__keyword_daily_report_keyword_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__keyword_daily_report_keyword_id"], "alias": "not_null_stg_microsoft_ads__keyword_daily_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.173752, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__keyword_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__keyword_daily_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_microsoft_ads__keyword_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__keyword_daily_report')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.e55a075940": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_b9d274ec4831da0d0e2b1b588084170b.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.e55a075940", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other"], "alias": "dbt_utils_unique_combination_o_b9d274ec4831da0d0e2b1b588084170b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b9d274ec4831da0d0e2b1b588084170b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b9d274ec4831da0d0e2b1b588084170b"}, "created_at": 1731951599.174794, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b9d274ec4831da0d0e2b1b588084170b\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__keyword_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_b9d274ec4831da0d0e2b1b588084170b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__keyword_daily_report`\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__keyword_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "ad_id", "keyword_id", "device_os", "device_type", "network", "language", "currency_code", "ad_distribution", "bid_match_type", "delivered_match_type", "top_vs_other"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__keyword_daily_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_microsoft_ads__search_daily_report_search_query", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__search_daily_report_search_query.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__search_daily_report_search_query"], "alias": "not_null_stg_microsoft_ads__search_daily_report_search_query", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.177294, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__search_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__search_daily_report_search_query.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__search_daily_report`\nwhere search_query is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "search_query", "file_key_name": "models.stg_microsoft_ads__search_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_query", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__search_daily_report')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__language__bid_match_type__delivered_match_type__top_vs_other.97d894068e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__language__bid_match_type__delivered_match_type__top_vs_other", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_a4b41f8430878af32e4031df276d6f5a.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__language__bid_match_type__delivered_match_type__top_vs_other.97d894068e", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__language__bid_match_type__delivered_match_type__top_vs_other"], "alias": "dbt_utils_unique_combination_o_a4b41f8430878af32e4031df276d6f5a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a4b41f8430878af32e4031df276d6f5a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a4b41f8430878af32e4031df276d6f5a"}, "created_at": 1731951599.1783319, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a4b41f8430878af32e4031df276d6f5a\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__search_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_a4b41f8430878af32e4031df276d6f5a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, search_query, device_os, device_type, network, language, bid_match_type, delivered_match_type, top_vs_other\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_microsoft_ads__search_daily_report`\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, search_query, device_os, device_type, network, language, bid_match_type, delivered_match_type, top_vs_other\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__search_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "ad_id", "keyword_id", "search_query", "device_os", "device_type", "network", "language", "bid_match_type", "delivered_match_type", "top_vs_other"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__search_daily_report')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_tiktok_ads__advertiser_report_date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__advertiser_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99", "fqn": ["tiktok_ads", "not_null_tiktok_ads__advertiser_report_date_day"], "alias": "not_null_tiktok_ads__advertiser_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.205878, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__advertiser_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__advertiser_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__advertiser_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.tiktok_ads__advertiser_report", "attached_node": "model.tiktok_ads.tiktok_ads__advertiser_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__advertiser_report')) }}"}, "namespace": null}}, "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_tiktok_ads__advertiser_report_advertiser_id", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__advertiser_report_advertiser_id.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce", "fqn": ["tiktok_ads", "not_null_tiktok_ads__advertiser_report_advertiser_id"], "alias": "not_null_tiktok_ads__advertiser_report_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.207058, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__advertiser_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__advertiser_report_advertiser_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__advertiser_report`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "advertiser_id", "file_key_name": "models.tiktok_ads__advertiser_report", "attached_node": "model.tiktok_ads.tiktok_ads__advertiser_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('tiktok_ads__advertiser_report')) }}"}, "namespace": null}}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_source_relation__advertiser_id__date_day.1797053b3d": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_source_relation__advertiser_id__date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "dbt_utils_unique_combination_o_140f770f737e1536979813abf05995df.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_source_relation__advertiser_id__date_day.1797053b3d", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_source_relation__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_140f770f737e1536979813abf05995df", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_140f770f737e1536979813abf05995df", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_140f770f737e1536979813abf05995df"}, "created_at": 1731951599.208161, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_140f770f737e1536979813abf05995df\") }}", "language": "sql", "refs": [{"name": "tiktok_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__advertiser_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_140f770f737e1536979813abf05995df.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__advertiser_report`\n group by source_relation, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.tiktok_ads__advertiser_report", "attached_node": "model.tiktok_ads.tiktok_ads__advertiser_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__advertiser_report')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_tiktok_ads__ad_report_date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__ad_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_report_date_day"], "alias": "not_null_tiktok_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.2115278, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.tiktok_ads__ad_report", "attached_node": "model.tiktok_ads.tiktok_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__ad_report')) }}"}, "namespace": null}}, "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_tiktok_ads__ad_report_ad_id", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__ad_report_ad_id.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_report_ad_id"], "alias": "not_null_tiktok_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.2125728, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.tiktok_ads__ad_report", "attached_node": "model.tiktok_ads.tiktok_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('tiktok_ads__ad_report')) }}"}, "namespace": null}}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.c260f4392a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "dbt_utils_unique_combination_o_07c2675cf1cf332b94992557f4d839f4.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.c260f4392a", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_07c2675cf1cf332b94992557f4d839f4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_07c2675cf1cf332b94992557f4d839f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_07c2675cf1cf332b94992557f4d839f4"}, "created_at": 1731951599.213679, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_07c2675cf1cf332b94992557f4d839f4\") }}", "language": "sql", "refs": [{"name": "tiktok_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_07c2675cf1cf332b94992557f4d839f4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__ad_report`\n group by source_relation, ad_id, ad_group_id, campaign_id, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.tiktok_ads__ad_report", "attached_node": "model.tiktok_ads.tiktok_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_tiktok_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__ad_group_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_group_report_date_day"], "alias": "not_null_tiktok_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.216289, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_group_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.tiktok_ads__ad_group_report", "attached_node": "model.tiktok_ads.tiktok_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__ad_group_report')) }}"}, "namespace": null}}, "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_tiktok_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_group_report_ad_group_id"], "alias": "not_null_tiktok_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.217414, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_group_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.tiktok_ads__ad_group_report", "attached_node": "model.tiktok_ads.tiktok_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('tiktok_ads__ad_group_report')) }}"}, "namespace": null}}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_source_relation__ad_group_id__campaign_id__advertiser_id__date_day.e3850c1634": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_source_relation__ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "dbt_utils_unique_combination_o_d355d65e29e6861aa224ba04f4e7a989.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_source_relation__ad_group_id__campaign_id__advertiser_id__date_day.e3850c1634", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_source_relation__ad_group_id__campaign_id__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_d355d65e29e6861aa224ba04f4e7a989", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d355d65e29e6861aa224ba04f4e7a989", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d355d65e29e6861aa224ba04f4e7a989"}, "created_at": 1731951599.218493, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d355d65e29e6861aa224ba04f4e7a989\") }}", "language": "sql", "refs": [{"name": "tiktok_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_group_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_d355d65e29e6861aa224ba04f4e7a989.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__ad_group_report`\n group by source_relation, ad_group_id, campaign_id, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.tiktok_ads__ad_group_report", "attached_node": "model.tiktok_ads.tiktok_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_tiktok_ads__campaign_report_date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__campaign_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836", "fqn": ["tiktok_ads", "not_null_tiktok_ads__campaign_report_date_day"], "alias": "not_null_tiktok_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.2218082, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__campaign_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.tiktok_ads__campaign_report", "attached_node": "model.tiktok_ads.tiktok_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__campaign_report')) }}"}, "namespace": null}}, "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_tiktok_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__campaign_report_campaign_id.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8", "fqn": ["tiktok_ads", "not_null_tiktok_ads__campaign_report_campaign_id"], "alias": "not_null_tiktok_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.222991, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__campaign_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.tiktok_ads__campaign_report", "attached_node": "model.tiktok_ads.tiktok_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('tiktok_ads__campaign_report')) }}"}, "namespace": null}}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.98200e9b0f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "dbt_utils_unique_combination_o_0d0d412752932f69c282547f17119363.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.98200e9b0f", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_0d0d412752932f69c282547f17119363", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0d0d412752932f69c282547f17119363", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0d0d412752932f69c282547f17119363"}, "created_at": 1731951599.224152, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0d0d412752932f69c282547f17119363\") }}", "language": "sql", "refs": [{"name": "tiktok_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__campaign_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_0d0d412752932f69c282547f17119363.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__campaign_report`\n group by source_relation, campaign_id, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.tiktok_ads__campaign_report", "attached_node": "model.tiktok_ads.tiktok_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_tiktok_ads__url_report_date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__url_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff", "fqn": ["tiktok_ads", "not_null_tiktok_ads__url_report_date_day"], "alias": "not_null_tiktok_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.227263, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.tiktok_ads__url_report", "attached_node": "model.tiktok_ads.tiktok_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__url_report')) }}"}, "namespace": null}}, "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_tiktok_ads__url_report_ad_id", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__url_report_ad_id.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0", "fqn": ["tiktok_ads", "not_null_tiktok_ads__url_report_ad_id"], "alias": "not_null_tiktok_ads__url_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.228283, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__url_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__url_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.tiktok_ads__url_report", "attached_node": "model.tiktok_ads.tiktok_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('tiktok_ads__url_report')) }}"}, "namespace": null}}, "test.tiktok_ads.not_null_tiktok_ads__url_report_base_url.37afef2e1b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_tiktok_ads__url_report_base_url", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__url_report_base_url.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_base_url.37afef2e1b", "fqn": ["tiktok_ads", "not_null_tiktok_ads__url_report_base_url"], "alias": "not_null_tiktok_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1731951599.2300632, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "tiktok_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "base_url", "file_key_name": "models.tiktok_ads__url_report", "attached_node": "model.tiktok_ads.tiktok_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('tiktok_ads__url_report')) }}"}, "namespace": null}}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.98153764a3": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "dbt_utils_unique_combination_o_177663ef68046a7cc077e14a1b22e5ec.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.98153764a3", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_177663ef68046a7cc077e14a1b22e5ec", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_177663ef68046a7cc077e14a1b22e5ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_177663ef68046a7cc077e14a1b22e5ec"}, "created_at": 1731951599.2317052, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_177663ef68046a7cc077e14a1b22e5ec\") }}", "language": "sql", "refs": [{"name": "tiktok_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_177663ef68046a7cc077e14a1b22e5ec.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`tiktok_ads__url_report`\n group by source_relation, ad_id, ad_group_id, campaign_id, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.tiktok_ads__url_report", "attached_node": "model.tiktok_ads.tiktok_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_twitter_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__campaign_report_campaign_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8", "fqn": ["twitter_ads", "not_null_twitter_ads__campaign_report_campaign_id"], "alias": "not_null_twitter_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.338738, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.twitter_ads__campaign_report", "attached_node": "model.twitter_ads.twitter_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('twitter_ads__campaign_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_twitter_ads__campaign_report_date_day", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__campaign_report_date_day.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0", "fqn": ["twitter_ads", "not_null_twitter_ads__campaign_report_date_day"], "alias": "not_null_twitter_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.339888, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.twitter_ads__campaign_report", "attached_node": "model.twitter_ads.twitter_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__campaign_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_twitter_ads__campaign_report_placement", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__campaign_report_placement.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82", "fqn": ["twitter_ads", "not_null_twitter_ads__campaign_report_placement"], "alias": "not_null_twitter_ads__campaign_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.340967, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__campaign_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__campaign_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "placement", "file_key_name": "models.twitter_ads__campaign_report", "attached_node": "model.twitter_ads.twitter_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__campaign_report')) }}"}, "namespace": null}}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement__account_id.f449ef6d6e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement__account_id", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_02bc64234d213a7d84793c735381a659.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement__account_id.f449ef6d6e", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement__account_id"], "alias": "dbt_utils_unique_combination_o_02bc64234d213a7d84793c735381a659", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_02bc64234d213a7d84793c735381a659", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_02bc64234d213a7d84793c735381a659"}, "created_at": 1731951599.342227, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_02bc64234d213a7d84793c735381a659\") }}", "language": "sql", "refs": [{"name": "twitter_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_02bc64234d213a7d84793c735381a659.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, campaign_id, placement, account_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__campaign_report`\n group by source_relation, date_day, campaign_id, placement, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.twitter_ads__campaign_report", "attached_node": "model.twitter_ads.twitter_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "campaign_id", "placement", "account_id"], "model": "{{ get_where_subquery(ref('twitter_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_twitter_ads__line_item_report_date_day", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__line_item_report_date_day.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce", "fqn": ["twitter_ads", "not_null_twitter_ads__line_item_report_date_day"], "alias": "not_null_twitter_ads__line_item_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.345333, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__line_item_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__line_item_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__line_item_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.twitter_ads__line_item_report", "attached_node": "model.twitter_ads.twitter_ads__line_item_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__line_item_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_twitter_ads__line_item_report_line_item_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__line_item_report_line_item_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211", "fqn": ["twitter_ads", "not_null_twitter_ads__line_item_report_line_item_id"], "alias": "not_null_twitter_ads__line_item_report_line_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.346348, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__line_item_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__line_item_report_line_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__line_item_report`\nwhere line_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "line_item_id", "file_key_name": "models.twitter_ads__line_item_report", "attached_node": "model.twitter_ads.twitter_ads__line_item_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "line_item_id", "model": "{{ get_where_subquery(ref('twitter_ads__line_item_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_twitter_ads__line_item_report_placement", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__line_item_report_placement.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312", "fqn": ["twitter_ads", "not_null_twitter_ads__line_item_report_placement"], "alias": "not_null_twitter_ads__line_item_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.347351, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__line_item_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__line_item_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__line_item_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "placement", "file_key_name": "models.twitter_ads__line_item_report", "attached_node": "model.twitter_ads.twitter_ads__line_item_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__line_item_report')) }}"}, "namespace": null}}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement__campaign_id__account_id.f8d7069cba": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement__campaign_id__account_id", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_47a9c1079b38bf350eea56f5375787a1.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement__campaign_id__account_id.f8d7069cba", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement__campaign_id__account_id"], "alias": "dbt_utils_unique_combination_o_47a9c1079b38bf350eea56f5375787a1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_47a9c1079b38bf350eea56f5375787a1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_47a9c1079b38bf350eea56f5375787a1"}, "created_at": 1731951599.348365, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_47a9c1079b38bf350eea56f5375787a1\") }}", "language": "sql", "refs": [{"name": "twitter_ads__line_item_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_47a9c1079b38bf350eea56f5375787a1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, line_item_id, placement, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__line_item_report`\n group by source_relation, date_day, line_item_id, placement, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.twitter_ads__line_item_report", "attached_node": "model.twitter_ads.twitter_ads__line_item_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "line_item_id", "placement", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('twitter_ads__line_item_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_twitter_ads__account_report_date_day", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__account_report_date_day.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846", "fqn": ["twitter_ads", "not_null_twitter_ads__account_report_date_day"], "alias": "not_null_twitter_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.350893, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__account_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__account_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.twitter_ads__account_report", "attached_node": "model.twitter_ads.twitter_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__account_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_twitter_ads__account_report_placement", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__account_report_placement.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194", "fqn": ["twitter_ads", "not_null_twitter_ads__account_report_placement"], "alias": "not_null_twitter_ads__account_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.351896, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__account_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__account_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "placement", "file_key_name": "models.twitter_ads__account_report", "attached_node": "model.twitter_ads.twitter_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__account_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_twitter_ads__account_report_account_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__account_report_account_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908", "fqn": ["twitter_ads", "not_null_twitter_ads__account_report_account_id"], "alias": "not_null_twitter_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.3535612, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.twitter_ads__account_report", "attached_node": "model.twitter_ads.twitter_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('twitter_ads__account_report')) }}"}, "namespace": null}}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_source_relation__date_day__account_id__placement.e6a884489c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__account_report_source_relation__date_day__account_id__placement", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_401facf0c1c1c4844ced62cf4f8e3a9f.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_source_relation__date_day__account_id__placement.e6a884489c", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__account_report_source_relation__date_day__account_id__placement"], "alias": "dbt_utils_unique_combination_o_401facf0c1c1c4844ced62cf4f8e3a9f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_401facf0c1c1c4844ced62cf4f8e3a9f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_401facf0c1c1c4844ced62cf4f8e3a9f"}, "created_at": 1731951599.35491, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_401facf0c1c1c4844ced62cf4f8e3a9f\") }}", "language": "sql", "refs": [{"name": "twitter_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_401facf0c1c1c4844ced62cf4f8e3a9f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, placement\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__account_report`\n group by source_relation, date_day, account_id, placement\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.twitter_ads__account_report", "attached_node": "model.twitter_ads.twitter_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "placement"], "model": "{{ get_where_subquery(ref('twitter_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_twitter_ads__keyword_report_date_day", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__keyword_report_date_day.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec", "fqn": ["twitter_ads", "not_null_twitter_ads__keyword_report_date_day"], "alias": "not_null_twitter_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.358003, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.twitter_ads__keyword_report", "attached_node": "model.twitter_ads.twitter_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword_id.91efa0a538": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_twitter_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__keyword_report_keyword_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword_id.91efa0a538", "fqn": ["twitter_ads", "not_null_twitter_ads__keyword_report_keyword_id"], "alias": "not_null_twitter_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.359025, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.twitter_ads__keyword_report", "attached_node": "model.twitter_ads.twitter_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": null}}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_source_relation__date_day__keyword_id__campaign_id.c51ddef475": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_source_relation__date_day__keyword_id__campaign_id", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_407d49ba65eb901e8ced2ed2e754bf53.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_source_relation__date_day__keyword_id__campaign_id.c51ddef475", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_source_relation__date_day__keyword_id__campaign_id"], "alias": "dbt_utils_unique_combination_o_407d49ba65eb901e8ced2ed2e754bf53", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_407d49ba65eb901e8ced2ed2e754bf53", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_407d49ba65eb901e8ced2ed2e754bf53"}, "created_at": 1731951599.360136, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_407d49ba65eb901e8ced2ed2e754bf53\") }}", "language": "sql", "refs": [{"name": "twitter_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.twitter_ads__keyword_report", "attached_node": "model.twitter_ads.twitter_ads__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "keyword_id", "campaign_id"], "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_twitter_ads__promoted_tweet_report_placement", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__promoted_tweet_report_placement.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5", "fqn": ["twitter_ads", "not_null_twitter_ads__promoted_tweet_report_placement"], "alias": "not_null_twitter_ads__promoted_tweet_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.363858, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__promoted_tweet_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__promoted_tweet_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__promoted_tweet_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "placement", "file_key_name": "models.twitter_ads__promoted_tweet_report", "attached_node": "model.twitter_ads.twitter_ads__promoted_tweet_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e", "fqn": ["twitter_ads", "not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id"], "alias": "not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.364906, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__promoted_tweet_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__promoted_tweet_report`\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "promoted_tweet_id", "file_key_name": "models.twitter_ads__promoted_tweet_report", "attached_node": "model.twitter_ads.twitter_ads__promoted_tweet_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "promoted_tweet_id", "model": "{{ get_where_subquery(ref('twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f6814a1cc6": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_912850b682f4c24196d3f66e79d2c1e4.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f6814a1cc6", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id"], "alias": "dbt_utils_unique_combination_o_912850b682f4c24196d3f66e79d2c1e4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_912850b682f4c24196d3f66e79d2c1e4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_912850b682f4c24196d3f66e79d2c1e4"}, "created_at": 1731951599.365945, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_912850b682f4c24196d3f66e79d2c1e4\") }}", "language": "sql", "refs": [{"name": "twitter_ads__promoted_tweet_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_912850b682f4c24196d3f66e79d2c1e4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, promoted_tweet_id, placement, line_item_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__promoted_tweet_report`\n group by source_relation, date_day, promoted_tweet_id, placement, line_item_id, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.twitter_ads__promoted_tweet_report", "attached_node": "model.twitter_ads.twitter_ads__promoted_tweet_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "promoted_tweet_id", "placement", "line_item_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('twitter_ads__promoted_tweet_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_twitter_ads__url_report_date_day", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__url_report_date_day.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_date_day"], "alias": "not_null_twitter_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.368852, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.twitter_ads__url_report", "attached_node": "model.twitter_ads.twitter_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__url_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_twitter_ads__url_report_placement", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__url_report_placement.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_placement"], "alias": "not_null_twitter_ads__url_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.369966, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__url_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "placement", "file_key_name": "models.twitter_ads__url_report", "attached_node": "model.twitter_ads.twitter_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__url_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_twitter_ads__url_report_promoted_tweet_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__url_report_promoted_tweet_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_promoted_tweet_id"], "alias": "not_null_twitter_ads__url_report_promoted_tweet_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.370986, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_promoted_tweet_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__url_report`\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "promoted_tweet_id", "file_key_name": "models.twitter_ads__url_report", "attached_node": "model.twitter_ads.twitter_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "promoted_tweet_id", "model": "{{ get_where_subquery(ref('twitter_ads__url_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__url_report_base_url.dfd7ab549e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_twitter_ads__url_report_base_url", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__url_report_base_url.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_base_url.dfd7ab549e", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_base_url"], "alias": "not_null_twitter_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1731951599.3727958, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "twitter_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "base_url", "file_key_name": "models.twitter_ads__url_report", "attached_node": "model.twitter_ads.twitter_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('twitter_ads__url_report')) }}"}, "namespace": null}}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f44851c31f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__url_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_62ddca6ed33b795b69845d9811875899.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f44851c31f", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__url_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id"], "alias": "dbt_utils_unique_combination_o_62ddca6ed33b795b69845d9811875899", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_62ddca6ed33b795b69845d9811875899", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_62ddca6ed33b795b69845d9811875899"}, "created_at": 1731951599.3745, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_62ddca6ed33b795b69845d9811875899\") }}", "language": "sql", "refs": [{"name": "twitter_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_62ddca6ed33b795b69845d9811875899.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, promoted_tweet_id, placement, line_item_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__url_report`\n group by source_relation, date_day, promoted_tweet_id, placement, line_item_id, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.twitter_ads__url_report", "attached_node": "model.twitter_ads.twitter_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "promoted_tweet_id", "placement", "line_item_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('twitter_ads__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads.not_null_reddit_ads__account_report_date_day.7b43e6cb90": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_reddit_ads__account_report_date_day", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__account_report_date_day.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__account_report_date_day.7b43e6cb90", "fqn": ["reddit_ads", "not_null_reddit_ads__account_report_date_day"], "alias": "not_null_reddit_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.395616, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__account_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__account_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__account_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.reddit_ads__account_report", "attached_node": "model.reddit_ads.reddit_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('reddit_ads__account_report')) }}"}, "namespace": null}}, "test.reddit_ads.not_null_reddit_ads__account_report_account_id.16f11188c5": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_reddit_ads__account_report_account_id", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__account_report_account_id.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__account_report_account_id.16f11188c5", "fqn": ["reddit_ads", "not_null_reddit_ads__account_report_account_id"], "alias": "not_null_reddit_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.396717, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__account_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.reddit_ads__account_report", "attached_node": "model.reddit_ads.reddit_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('reddit_ads__account_report')) }}"}, "namespace": null}}, "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__account_report_source_relation__date_day__account_id__attribution_type__currency__status__time_zone_id.7260e1923b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_reddit_ads__account_report_source_relation__date_day__account_id__attribution_type__currency__status__time_zone_id", "resource_type": "test", "package_name": "reddit_ads", "path": "dbt_utils_unique_combination_o_b01336185716ff7da321a3db6183df78.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__account_report_source_relation__date_day__account_id__attribution_type__currency__status__time_zone_id.7260e1923b", "fqn": ["reddit_ads", "dbt_utils_unique_combination_of_columns_reddit_ads__account_report_source_relation__date_day__account_id__attribution_type__currency__status__time_zone_id"], "alias": "dbt_utils_unique_combination_o_b01336185716ff7da321a3db6183df78", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b01336185716ff7da321a3db6183df78", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b01336185716ff7da321a3db6183df78"}, "created_at": 1731951599.3977149, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b01336185716ff7da321a3db6183df78\") }}", "language": "sql", "refs": [{"name": "reddit_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__account_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/dbt_utils_unique_combination_o_b01336185716ff7da321a3db6183df78.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, attribution_type, currency, status, time_zone_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__account_report`\n group by source_relation, date_day, account_id, attribution_type, currency, status, time_zone_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.reddit_ads__account_report", "attached_node": "model.reddit_ads.reddit_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "attribution_type", "currency", "status", "time_zone_id"], "model": "{{ get_where_subquery(ref('reddit_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads.not_null_reddit_ads__ad_group_report_date_day.6463e6f6f7": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_reddit_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__ad_group_report_date_day.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_group_report_date_day.6463e6f6f7", "fqn": ["reddit_ads", "not_null_reddit_ads__ad_group_report_date_day"], "alias": "not_null_reddit_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.400975, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.reddit_ads__ad_group_report", "attached_node": "model.reddit_ads.reddit_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('reddit_ads__ad_group_report')) }}"}, "namespace": null}}, "test.reddit_ads.not_null_reddit_ads__ad_group_report_ad_group_id.057bd60604": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_reddit_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_group_report_ad_group_id.057bd60604", "fqn": ["reddit_ads", "not_null_reddit_ads__ad_group_report_ad_group_id"], "alias": "not_null_reddit_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.4021, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.reddit_ads__ad_group_report", "attached_node": "model.reddit_ads.reddit_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('reddit_ads__ad_group_report')) }}"}, "namespace": null}}, "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_source_relation__date_day__account_id__ad_group_id__campaign_id__currency.bd33f1f46d": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_source_relation__date_day__account_id__ad_group_id__campaign_id__currency", "resource_type": "test", "package_name": "reddit_ads", "path": "dbt_utils_unique_combination_o_60946addb3d384a7cc48833998401413.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_source_relation__date_day__account_id__ad_group_id__campaign_id__currency.bd33f1f46d", "fqn": ["reddit_ads", "dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_source_relation__date_day__account_id__ad_group_id__campaign_id__currency"], "alias": "dbt_utils_unique_combination_o_60946addb3d384a7cc48833998401413", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_60946addb3d384a7cc48833998401413", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_60946addb3d384a7cc48833998401413"}, "created_at": 1731951599.403198, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_60946addb3d384a7cc48833998401413\") }}", "language": "sql", "refs": [{"name": "reddit_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/dbt_utils_unique_combination_o_60946addb3d384a7cc48833998401413.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, ad_group_id, campaign_id, currency\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__ad_group_report`\n group by source_relation, date_day, account_id, ad_group_id, campaign_id, currency\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.reddit_ads__ad_group_report", "attached_node": "model.reddit_ads.reddit_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "ad_group_id", "campaign_id", "currency"], "model": "{{ get_where_subquery(ref('reddit_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads.not_null_reddit_ads__ad_report_date_day.608b21c69a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_reddit_ads__ad_report_date_day", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__ad_report_date_day.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_report_date_day.608b21c69a", "fqn": ["reddit_ads", "not_null_reddit_ads__ad_report_date_day"], "alias": "not_null_reddit_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.405731, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__ad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.reddit_ads__ad_report", "attached_node": "model.reddit_ads.reddit_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('reddit_ads__ad_report')) }}"}, "namespace": null}}, "test.reddit_ads.not_null_reddit_ads__ad_report_ad_id.1da054a14e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_reddit_ads__ad_report_ad_id", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__ad_report_ad_id.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_report_ad_id.1da054a14e", "fqn": ["reddit_ads", "not_null_reddit_ads__ad_report_ad_id"], "alias": "not_null_reddit_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.406827, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.reddit_ads__ad_report", "attached_node": "model.reddit_ads.reddit_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('reddit_ads__ad_report')) }}"}, "namespace": null}}, "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_source_relation__date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency.8735416c38": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_source_relation__date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency", "resource_type": "test", "package_name": "reddit_ads", "path": "dbt_utils_unique_combination_o_3fb51d3d0fca97ba2ed02d281ce87158.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_source_relation__date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency.8735416c38", "fqn": ["reddit_ads", "dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_source_relation__date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency"], "alias": "dbt_utils_unique_combination_o_3fb51d3d0fca97ba2ed02d281ce87158", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3fb51d3d0fca97ba2ed02d281ce87158", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3fb51d3d0fca97ba2ed02d281ce87158"}, "created_at": 1731951599.4078379, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3fb51d3d0fca97ba2ed02d281ce87158\") }}", "language": "sql", "refs": [{"name": "reddit_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/dbt_utils_unique_combination_o_3fb51d3d0fca97ba2ed02d281ce87158.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, ad_id, post_id, account_id, ad_group_id, campaign_id, currency\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__ad_report`\n group by source_relation, date_day, ad_id, post_id, account_id, ad_group_id, campaign_id, currency\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.reddit_ads__ad_report", "attached_node": "model.reddit_ads.reddit_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "ad_id", "post_id", "account_id", "ad_group_id", "campaign_id", "currency"], "model": "{{ get_where_subquery(ref('reddit_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads.not_null_reddit_ads__campaign_report_date_day.f79cca4131": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_reddit_ads__campaign_report_date_day", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__campaign_report_date_day.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__campaign_report_date_day.f79cca4131", "fqn": ["reddit_ads", "not_null_reddit_ads__campaign_report_date_day"], "alias": "not_null_reddit_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.411731, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.reddit_ads__campaign_report", "attached_node": "model.reddit_ads.reddit_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('reddit_ads__campaign_report')) }}"}, "namespace": null}}, "test.reddit_ads.not_null_reddit_ads__campaign_report_campaign_id.f5491a0b49": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_reddit_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__campaign_report_campaign_id.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__campaign_report_campaign_id.f5491a0b49", "fqn": ["reddit_ads", "not_null_reddit_ads__campaign_report_campaign_id"], "alias": "not_null_reddit_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.4128199, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.reddit_ads__campaign_report", "attached_node": "model.reddit_ads.reddit_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('reddit_ads__campaign_report')) }}"}, "namespace": null}}, "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_source_relation__date_day__account_id__campaign_id__currency.6e74c22669": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_source_relation__date_day__account_id__campaign_id__currency", "resource_type": "test", "package_name": "reddit_ads", "path": "dbt_utils_unique_combination_o_1e774189f0e0880953023d611de76da0.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_source_relation__date_day__account_id__campaign_id__currency.6e74c22669", "fqn": ["reddit_ads", "dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_source_relation__date_day__account_id__campaign_id__currency"], "alias": "dbt_utils_unique_combination_o_1e774189f0e0880953023d611de76da0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1e774189f0e0880953023d611de76da0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1e774189f0e0880953023d611de76da0"}, "created_at": 1731951599.41387, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1e774189f0e0880953023d611de76da0\") }}", "language": "sql", "refs": [{"name": "reddit_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/dbt_utils_unique_combination_o_1e774189f0e0880953023d611de76da0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, currency\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__campaign_report`\n group by source_relation, date_day, account_id, campaign_id, currency\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.reddit_ads__campaign_report", "attached_node": "model.reddit_ads.reddit_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "currency"], "model": "{{ get_where_subquery(ref('reddit_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads.not_null_reddit_ads__url_report_date_day.4b0f6363da": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_reddit_ads__url_report_date_day", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__url_report_date_day.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__url_report_date_day.4b0f6363da", "fqn": ["reddit_ads", "not_null_reddit_ads__url_report_date_day"], "alias": "not_null_reddit_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.417398, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__url_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.reddit_ads__url_report", "attached_node": "model.reddit_ads.reddit_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('reddit_ads__url_report')) }}"}, "namespace": null}}, "test.reddit_ads.not_null_reddit_ads__url_report_ad_id.8ff83da2b0": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_reddit_ads__url_report_ad_id", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__url_report_ad_id.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__url_report_ad_id.8ff83da2b0", "fqn": ["reddit_ads", "not_null_reddit_ads__url_report_ad_id"], "alias": "not_null_reddit_ads__url_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.418485, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__url_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__url_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__url_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.reddit_ads__url_report", "attached_node": "model.reddit_ads.reddit_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('reddit_ads__url_report')) }}"}, "namespace": null}}, "test.reddit_ads.not_null_reddit_ads__url_report_base_url.2f585bebcb": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_reddit_ads__url_report_base_url", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__url_report_base_url.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__url_report_base_url.2f585bebcb", "fqn": ["reddit_ads", "not_null_reddit_ads__url_report_base_url"], "alias": "not_null_reddit_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1731951599.4204412, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "reddit_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__url_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "base_url", "file_key_name": "models.reddit_ads__url_report", "attached_node": "model.reddit_ads.reddit_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('reddit_ads__url_report')) }}"}, "namespace": null}}, "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__url_report_source_relation__date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency.a85ab9beee": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_reddit_ads__url_report_source_relation__date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency", "resource_type": "test", "package_name": "reddit_ads", "path": "dbt_utils_unique_combination_o_4f548ee643249433762b9d91a3f21fe7.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__url_report_source_relation__date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency.a85ab9beee", "fqn": ["reddit_ads", "dbt_utils_unique_combination_of_columns_reddit_ads__url_report_source_relation__date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency"], "alias": "dbt_utils_unique_combination_o_4f548ee643249433762b9d91a3f21fe7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4f548ee643249433762b9d91a3f21fe7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4f548ee643249433762b9d91a3f21fe7"}, "created_at": 1731951599.421587, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4f548ee643249433762b9d91a3f21fe7\") }}", "language": "sql", "refs": [{"name": "reddit_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__url_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/dbt_utils_unique_combination_o_4f548ee643249433762b9d91a3f21fe7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, click_url, ad_id, account_id, ad_group_id, campaign_id, post_id, currency\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`reddit_ads__url_report`\n group by source_relation, date_day, click_url, ad_id, account_id, ad_group_id, campaign_id, post_id, currency\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.reddit_ads__url_report", "attached_node": "model.reddit_ads.reddit_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "click_url", "ad_id", "account_id", "ad_group_id", "campaign_id", "post_id", "currency"], "model": "{{ get_where_subquery(ref('reddit_ads__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_pinterest_ads__url_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__url_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e", "fqn": ["pinterest", "not_null_pinterest_ads__url_report_date_day"], "alias": "not_null_pinterest_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.4444559, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.pinterest_ads__url_report", "attached_node": "model.pinterest.pinterest_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__url_report')) }}"}, "namespace": null}}, "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_pinterest_ads__url_report_destination_url", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__url_report_destination_url.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502", "fqn": ["pinterest", "not_null_pinterest_ads__url_report_destination_url"], "alias": "not_null_pinterest_ads__url_report_destination_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1731951599.4459698, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "pinterest_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__url_report_destination_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect destination_url\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__url_report`\nwhere destination_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "destination_url", "file_key_name": "models.pinterest_ads__url_report", "attached_node": "model.pinterest.pinterest_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "destination_url", "model": "{{ get_where_subquery(ref('pinterest_ads__url_report')) }}"}, "namespace": null}}, "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_pinterest_ads__url_report_pin_promotion_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__url_report_pin_promotion_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a", "fqn": ["pinterest", "not_null_pinterest_ads__url_report_pin_promotion_id"], "alias": "not_null_pinterest_ads__url_report_pin_promotion_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.44734, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__url_report_pin_promotion_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__url_report`\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "pin_promotion_id", "file_key_name": "models.pinterest_ads__url_report", "attached_node": "model.pinterest.pinterest_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "pin_promotion_id", "model": "{{ get_where_subquery(ref('pinterest_ads__url_report')) }}"}, "namespace": null}}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.688d8bd291": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_1eb3dd87aca276c0f056f562ccd97221.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.688d8bd291", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_1eb3dd87aca276c0f056f562ccd97221", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1eb3dd87aca276c0f056f562ccd97221", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1eb3dd87aca276c0f056f562ccd97221"}, "created_at": 1731951599.44876, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_1eb3dd87aca276c0f056f562ccd97221\") }}", "language": "sql", "refs": [{"name": "pinterest_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_1eb3dd87aca276c0f056f562ccd97221.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, pin_promotion_id, ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__url_report`\n group by source_relation, pin_promotion_id, ad_group_id, campaign_id, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.pinterest_ads__url_report", "attached_node": "model.pinterest.pinterest_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "pin_promotion_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_pinterest_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__ad_group_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7", "fqn": ["pinterest", "not_null_pinterest_ads__ad_group_report_date_day"], "alias": "not_null_pinterest_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.4514391, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.pinterest_ads__ad_group_report", "attached_node": "model.pinterest.pinterest_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__ad_group_report')) }}"}, "namespace": null}}, "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_pinterest_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2", "fqn": ["pinterest", "not_null_pinterest_ads__ad_group_report_ad_group_id"], "alias": "not_null_pinterest_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.4524531, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.pinterest_ads__ad_group_report", "attached_node": "model.pinterest.pinterest_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('pinterest_ads__ad_group_report')) }}"}, "namespace": null}}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_source_relation__ad_group_id__advertiser_id__campaign_id__date_day.1fb5fb3f2f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_source_relation__ad_group_id__advertiser_id__campaign_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_b6a9331063d783d04d904e8d31cf62ee.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_source_relation__ad_group_id__advertiser_id__campaign_id__date_day.1fb5fb3f2f", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_source_relation__ad_group_id__advertiser_id__campaign_id__date_day"], "alias": "dbt_utils_unique_combination_o_b6a9331063d783d04d904e8d31cf62ee", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b6a9331063d783d04d904e8d31cf62ee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b6a9331063d783d04d904e8d31cf62ee"}, "created_at": 1731951599.453535, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b6a9331063d783d04d904e8d31cf62ee\") }}", "language": "sql", "refs": [{"name": "pinterest_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_b6a9331063d783d04d904e8d31cf62ee.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, advertiser_id, campaign_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__ad_group_report`\n group by source_relation, ad_group_id, advertiser_id, campaign_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.pinterest_ads__ad_group_report", "attached_node": "model.pinterest.pinterest_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "advertiser_id", "campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_pinterest_ads__campaign_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__campaign_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf", "fqn": ["pinterest", "not_null_pinterest_ads__campaign_report_date_day"], "alias": "not_null_pinterest_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.455898, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.pinterest_ads__campaign_report", "attached_node": "model.pinterest.pinterest_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__campaign_report')) }}"}, "namespace": null}}, "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_pinterest_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__campaign_report_campaign_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2", "fqn": ["pinterest", "not_null_pinterest_ads__campaign_report_campaign_id"], "alias": "not_null_pinterest_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.457206, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.pinterest_ads__campaign_report", "attached_node": "model.pinterest.pinterest_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('pinterest_ads__campaign_report')) }}"}, "namespace": null}}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.4da70e098b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_5d10118265a768f932bfac992f42d66e.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.4da70e098b", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_5d10118265a768f932bfac992f42d66e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5d10118265a768f932bfac992f42d66e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5d10118265a768f932bfac992f42d66e"}, "created_at": 1731951599.458477, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5d10118265a768f932bfac992f42d66e\") }}", "language": "sql", "refs": [{"name": "pinterest_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_5d10118265a768f932bfac992f42d66e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__campaign_report`\n group by source_relation, campaign_id, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.pinterest_ads__campaign_report", "attached_node": "model.pinterest.pinterest_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_pinterest_ads__advertiser_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__advertiser_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca", "fqn": ["pinterest", "not_null_pinterest_ads__advertiser_report_date_day"], "alias": "not_null_pinterest_ads__advertiser_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.46159, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__advertiser_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__advertiser_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.pinterest_ads__advertiser_report", "attached_node": "model.pinterest.pinterest_ads__advertiser_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__advertiser_report')) }}"}, "namespace": null}}, "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_pinterest_ads__advertiser_report_advertiser_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__advertiser_report_advertiser_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672", "fqn": ["pinterest", "not_null_pinterest_ads__advertiser_report_advertiser_id"], "alias": "not_null_pinterest_ads__advertiser_report_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.46259, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__advertiser_report_advertiser_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__advertiser_report`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "advertiser_id", "file_key_name": "models.pinterest_ads__advertiser_report", "attached_node": "model.pinterest.pinterest_ads__advertiser_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('pinterest_ads__advertiser_report')) }}"}, "namespace": null}}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_source_relation__advertiser_id__date_day.f9cd6d6ce2": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_source_relation__advertiser_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_84d0b35c5596425e44df7ea7c9251b6f.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_source_relation__advertiser_id__date_day.f9cd6d6ce2", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_source_relation__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_84d0b35c5596425e44df7ea7c9251b6f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_84d0b35c5596425e44df7ea7c9251b6f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_84d0b35c5596425e44df7ea7c9251b6f"}, "created_at": 1731951599.463607, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_84d0b35c5596425e44df7ea7c9251b6f\") }}", "language": "sql", "refs": [{"name": "pinterest_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_84d0b35c5596425e44df7ea7c9251b6f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__advertiser_report`\n group by source_relation, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.pinterest_ads__advertiser_report", "attached_node": "model.pinterest.pinterest_ads__advertiser_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__advertiser_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_pinterest_ads__keyword_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__keyword_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba", "fqn": ["pinterest", "not_null_pinterest_ads__keyword_report_date_day"], "alias": "not_null_pinterest_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.4660811, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__keyword_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__keyword_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.pinterest_ads__keyword_report", "attached_node": "model.pinterest.pinterest_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__keyword_report')) }}"}, "namespace": null}}, "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_pinterest_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__keyword_report_keyword_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198", "fqn": ["pinterest", "not_null_pinterest_ads__keyword_report_keyword_id"], "alias": "not_null_pinterest_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.467432, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.pinterest_ads__keyword_report", "attached_node": "model.pinterest.pinterest_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('pinterest_ads__keyword_report')) }}"}, "namespace": null}}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_source_relation__keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.a9ce89d1db": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_source_relation__keyword_id__ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_8a3352021be21ec8d48e634bcdf64c62.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_source_relation__keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.a9ce89d1db", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_source_relation__keyword_id__ad_group_id__campaign_id__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_8a3352021be21ec8d48e634bcdf64c62", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8a3352021be21ec8d48e634bcdf64c62", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8a3352021be21ec8d48e634bcdf64c62"}, "created_at": 1731951599.468509, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8a3352021be21ec8d48e634bcdf64c62\") }}", "language": "sql", "refs": [{"name": "pinterest_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_8a3352021be21ec8d48e634bcdf64c62.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, keyword_id, ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__keyword_report`\n group by source_relation, keyword_id, ad_group_id, campaign_id, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.pinterest_ads__keyword_report", "attached_node": "model.pinterest.pinterest_ads__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "keyword_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_pinterest_ads__pin_promotion_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__pin_promotion_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd", "fqn": ["pinterest", "not_null_pinterest_ads__pin_promotion_report_date_day"], "alias": "not_null_pinterest_ads__pin_promotion_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.471081, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__pin_promotion_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__pin_promotion_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__pin_promotion_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.pinterest_ads__pin_promotion_report", "attached_node": "model.pinterest.pinterest_ads__pin_promotion_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__pin_promotion_report')) }}"}, "namespace": null}}, "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_pinterest_ads__pin_promotion_report_pin_promotion_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561", "fqn": ["pinterest", "not_null_pinterest_ads__pin_promotion_report_pin_promotion_id"], "alias": "not_null_pinterest_ads__pin_promotion_report_pin_promotion_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.472089, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__pin_promotion_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__pin_promotion_report`\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "pin_promotion_id", "file_key_name": "models.pinterest_ads__pin_promotion_report", "attached_node": "model.pinterest.pinterest_ads__pin_promotion_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "pin_promotion_id", "model": "{{ get_where_subquery(ref('pinterest_ads__pin_promotion_report')) }}"}, "namespace": null}}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.9d2f1ea810": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_df7f606b70c219dd019784cae368fe55.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.9d2f1ea810", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_df7f606b70c219dd019784cae368fe55", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_df7f606b70c219dd019784cae368fe55", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_df7f606b70c219dd019784cae368fe55"}, "created_at": 1731951599.473094, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_df7f606b70c219dd019784cae368fe55\") }}", "language": "sql", "refs": [{"name": "pinterest_ads__pin_promotion_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_df7f606b70c219dd019784cae368fe55.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, pin_promotion_id, ad_group_id, campaign_id, advertiser_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`pinterest_ads__pin_promotion_report`\n group by source_relation, pin_promotion_id, ad_group_id, campaign_id, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.pinterest_ads__pin_promotion_report", "attached_node": "model.pinterest.pinterest_ads__pin_promotion_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "pin_promotion_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__pin_promotion_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.not_null_stg_reddit_ads__account_account_id.512f0b8078": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_reddit_ads__account_account_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__account_account_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__account_account_id.512f0b8078", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__account_account_id"], "alias": "not_null_stg_reddit_ads__account_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.5190809, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__account", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__account_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_reddit_ads__account", "attached_node": "model.reddit_ads_source.stg_reddit_ads__account", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__account')) }}"}, "namespace": null}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_source_relation__account_id.49d95e2890": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_source_relation__account_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_f0f7e2651cf8e64b74883cb70192e57a.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_source_relation__account_id.49d95e2890", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_source_relation__account_id"], "alias": "dbt_utils_unique_combination_o_f0f7e2651cf8e64b74883cb70192e57a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f0f7e2651cf8e64b74883cb70192e57a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f0f7e2651cf8e64b74883cb70192e57a"}, "created_at": 1731951599.5205078, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f0f7e2651cf8e64b74883cb70192e57a\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__account", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_f0f7e2651cf8e64b74883cb70192e57a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account`\n group by source_relation, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__account", "attached_node": "model.reddit_ads_source.stg_reddit_ads__account", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__account')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.not_null_stg_reddit_ads__account_report_account_id.1f2a0195de": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_reddit_ads__account_report_account_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__account_report_account_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__account_report_account_id.1f2a0195de", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__account_report_account_id"], "alias": "not_null_stg_reddit_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.525067, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_reddit_ads__account_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__account_report')) }}"}, "namespace": null}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_source_relation__account_id__date_day.580653f488": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_source_relation__account_id__date_day", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_5531dd451b69b98013809cc863bc9a19.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_source_relation__account_id__date_day.580653f488", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_source_relation__account_id__date_day"], "alias": "dbt_utils_unique_combination_o_5531dd451b69b98013809cc863bc9a19", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5531dd451b69b98013809cc863bc9a19", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5531dd451b69b98013809cc863bc9a19"}, "created_at": 1731951599.526529, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5531dd451b69b98013809cc863bc9a19\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_5531dd451b69b98013809cc863bc9a19.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account_report`\n group by source_relation, account_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__account_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.not_null_stg_reddit_ads__ad_ad_id.40188b63dd": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_reddit_ads__ad_ad_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__ad_ad_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_ad_id.40188b63dd", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__ad_ad_id"], "alias": "not_null_stg_reddit_ads__ad_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.5304372, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__ad_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_reddit_ads__ad", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad')) }}"}, "namespace": null}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_source_relation__ad_id.fc4d1b788b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_source_relation__ad_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_824c67529d651166d97ffe5412ba8597.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_source_relation__ad_id.fc4d1b788b", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_source_relation__ad_id"], "alias": "dbt_utils_unique_combination_o_824c67529d651166d97ffe5412ba8597", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_824c67529d651166d97ffe5412ba8597", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_824c67529d651166d97ffe5412ba8597"}, "created_at": 1731951599.531523, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_824c67529d651166d97ffe5412ba8597\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_824c67529d651166d97ffe5412ba8597.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad`\n group by source_relation, ad_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__ad", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.not_null_stg_reddit_ads__ad_report_ad_id.c4af84b857": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_reddit_ads__ad_report_ad_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__ad_report_ad_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_report_ad_id.c4af84b857", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__ad_report_ad_id"], "alias": "not_null_stg_reddit_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.534344, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_reddit_ads__ad_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_report')) }}"}, "namespace": null}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_source_relation__ad_id__date_day.395db62865": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_source_relation__ad_id__date_day", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_635c6e6d8a50e0330f6f4e794a3d8bcd.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_source_relation__ad_id__date_day.395db62865", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_source_relation__ad_id__date_day"], "alias": "dbt_utils_unique_combination_o_635c6e6d8a50e0330f6f4e794a3d8bcd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_635c6e6d8a50e0330f6f4e794a3d8bcd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_635c6e6d8a50e0330f6f4e794a3d8bcd"}, "created_at": 1731951599.5358112, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_635c6e6d8a50e0330f6f4e794a3d8bcd\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_635c6e6d8a50e0330f6f4e794a3d8bcd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_report`\n group by source_relation, ad_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__ad_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_ad_group_id.65795d8dc2": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_reddit_ads__ad_group_ad_group_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__ad_group_ad_group_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_ad_group_id.65795d8dc2", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__ad_group_ad_group_id"], "alias": "not_null_stg_reddit_ads__ad_group_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.538785, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__ad_group_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_reddit_ads__ad_group", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad_group", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_group')) }}"}, "namespace": null}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_source_relation__ad_group_id.942cb72fcc": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_source_relation__ad_group_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_8876489bc385afa0c43f178c6c61421a.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_source_relation__ad_group_id.942cb72fcc", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_source_relation__ad_group_id"], "alias": "dbt_utils_unique_combination_o_8876489bc385afa0c43f178c6c61421a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8876489bc385afa0c43f178c6c61421a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8876489bc385afa0c43f178c6c61421a"}, "created_at": 1731951599.5399091, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8876489bc385afa0c43f178c6c61421a\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_8876489bc385afa0c43f178c6c61421a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group`\n group by source_relation, ad_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__ad_group", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad_group", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_group')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_report_ad_group_id.9836cd084d": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_reddit_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_report_ad_group_id.9836cd084d", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__ad_group_report_ad_group_id"], "alias": "not_null_stg_reddit_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.5426922, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_reddit_ads__ad_group_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_group_report')) }}"}, "namespace": null}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_source_relation__ad_group_id__date_day.4aa1f776b5": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_source_relation__ad_group_id__date_day", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_4aca0e68289e671eeb5354c763e34a83.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_source_relation__ad_group_id__date_day.4aa1f776b5", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_source_relation__ad_group_id__date_day"], "alias": "dbt_utils_unique_combination_o_4aca0e68289e671eeb5354c763e34a83", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4aca0e68289e671eeb5354c763e34a83", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4aca0e68289e671eeb5354c763e34a83"}, "created_at": 1731951599.543714, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4aca0e68289e671eeb5354c763e34a83\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_4aca0e68289e671eeb5354c763e34a83.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group_report`\n group by source_relation, ad_group_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__ad_group_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_campaign_id.f3f24e4682": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_reddit_ads__campaign_campaign_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__campaign_campaign_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_campaign_id.f3f24e4682", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__campaign_campaign_id"], "alias": "not_null_stg_reddit_ads__campaign_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.546484, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__campaign_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_reddit_ads__campaign", "attached_node": "model.reddit_ads_source.stg_reddit_ads__campaign", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__campaign')) }}"}, "namespace": null}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_source_relation__campaign_id.066d3b93f4": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_source_relation__campaign_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_f3db1b159d884ff8f0e3cc8e9853fe4a.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_source_relation__campaign_id.066d3b93f4", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_source_relation__campaign_id"], "alias": "dbt_utils_unique_combination_o_f3db1b159d884ff8f0e3cc8e9853fe4a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f3db1b159d884ff8f0e3cc8e9853fe4a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f3db1b159d884ff8f0e3cc8e9853fe4a"}, "created_at": 1731951599.547511, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f3db1b159d884ff8f0e3cc8e9853fe4a\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_f3db1b159d884ff8f0e3cc8e9853fe4a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign`\n group by source_relation, campaign_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__campaign", "attached_node": "model.reddit_ads_source.stg_reddit_ads__campaign", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__campaign')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_report_campaign_id.c717612b4f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_reddit_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__campaign_report_campaign_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_report_campaign_id.c717612b4f", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__campaign_report_campaign_id"], "alias": "not_null_stg_reddit_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.550208, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_reddit_ads__campaign_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__campaign_report')) }}"}, "namespace": null}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_source_relation__campaign_id__date_day.5e87d9d722": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_source_relation__campaign_id__date_day", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_445d2aee4402350dfaac958291b67980.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_source_relation__campaign_id__date_day.5e87d9d722", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_source_relation__campaign_id__date_day"], "alias": "dbt_utils_unique_combination_o_445d2aee4402350dfaac958291b67980", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_445d2aee4402350dfaac958291b67980", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_445d2aee4402350dfaac958291b67980"}, "created_at": 1731951599.551617, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_445d2aee4402350dfaac958291b67980\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_445d2aee4402350dfaac958291b67980.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign_report`\n group by source_relation, campaign_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__campaign_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_conversions_report_source_relation__account_id__date_day__event_name.bc323b3bbb": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_conversions_report_source_relation__account_id__date_day__event_name", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_a0c7c744d28ead0d916e1910d895fb01.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_conversions_report_source_relation__account_id__date_day__event_name.bc323b3bbb", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_conversions_report_source_relation__account_id__date_day__event_name"], "alias": "dbt_utils_unique_combination_o_a0c7c744d28ead0d916e1910d895fb01", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a0c7c744d28ead0d916e1910d895fb01", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a0c7c744d28ead0d916e1910d895fb01"}, "created_at": 1731951599.55423, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a0c7c744d28ead0d916e1910d895fb01\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__account_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_a0c7c744d28ead0d916e1910d895fb01.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, date_day, event_name\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__account_conversions_report`\n group by source_relation, account_id, date_day, event_name\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__account_conversions_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__account_conversions_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "date_day", "event_name"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__account_conversions_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_conversions_report_source_relation__ad_group_id__date_day__event_name.acd1ea8c2b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_conversions_report_source_relation__ad_group_id__date_day__event_name", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_cbbc64d0dca17a652b727ccaf3e27d7b.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_conversions_report_source_relation__ad_group_id__date_day__event_name.acd1ea8c2b", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_conversions_report_source_relation__ad_group_id__date_day__event_name"], "alias": "dbt_utils_unique_combination_o_cbbc64d0dca17a652b727ccaf3e27d7b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cbbc64d0dca17a652b727ccaf3e27d7b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cbbc64d0dca17a652b727ccaf3e27d7b"}, "created_at": 1731951599.5566301, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cbbc64d0dca17a652b727ccaf3e27d7b\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_cbbc64d0dca17a652b727ccaf3e27d7b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, date_day, event_name\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_group_conversions_report`\n group by source_relation, ad_group_id, date_day, event_name\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__ad_group_conversions_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "date_day", "event_name"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_group_conversions_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_conversions_report_source_relation__ad_id__date_day__event_name.49a6eee2ad": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_conversions_report_source_relation__ad_id__date_day__event_name", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_4129ca0633f10e1b1d388cc5b0a83fa8.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_conversions_report_source_relation__ad_id__date_day__event_name.49a6eee2ad", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_conversions_report_source_relation__ad_id__date_day__event_name"], "alias": "dbt_utils_unique_combination_o_4129ca0633f10e1b1d388cc5b0a83fa8", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4129ca0633f10e1b1d388cc5b0a83fa8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4129ca0633f10e1b1d388cc5b0a83fa8"}, "created_at": 1731951599.559514, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4129ca0633f10e1b1d388cc5b0a83fa8\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_4129ca0633f10e1b1d388cc5b0a83fa8.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, date_day, event_name\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__ad_conversions_report`\n group by source_relation, ad_id, date_day, event_name\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__ad_conversions_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "date_day", "event_name"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_conversions_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_conversions_report_source_relation__campaign_id__date_day__event_name.2ed971ff1b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_conversions_report_source_relation__campaign_id__date_day__event_name", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_1e977a4516fe5e3739111361fb8847ec.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_conversions_report_source_relation__campaign_id__date_day__event_name.2ed971ff1b", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_conversions_report_source_relation__campaign_id__date_day__event_name"], "alias": "dbt_utils_unique_combination_o_1e977a4516fe5e3739111361fb8847ec", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1e977a4516fe5e3739111361fb8847ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1e977a4516fe5e3739111361fb8847ec"}, "created_at": 1731951599.562338, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1e977a4516fe5e3739111361fb8847ec\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_1e977a4516fe5e3739111361fb8847ec.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, date_day, event_name\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_reddit_ads__campaign_conversions_report`\n group by source_relation, campaign_id, date_day, event_name\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__campaign_conversions_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "date_day", "event_name"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__campaign_conversions_report')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_google_ads__url_report_base_url", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__url_report_base_url.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72", "fqn": ["google_ads", "not_null_google_ads__url_report_base_url"], "alias": "not_null_google_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1731951599.658289, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "google_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__url_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "base_url", "file_key_name": "models.google_ads__url_report", "attached_node": "model.google_ads.google_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('google_ads__url_report')) }}"}, "namespace": null}}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_source_relation__ad_id__ad_group_id__date_day.e11b928273": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__url_report_source_relation__ad_id__ad_group_id__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_31793819eb318c7cfed9606488870cc7.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_source_relation__ad_id__ad_group_id__date_day.e11b928273", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__url_report_source_relation__ad_id__ad_group_id__date_day"], "alias": "dbt_utils_unique_combination_o_31793819eb318c7cfed9606488870cc7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_31793819eb318c7cfed9606488870cc7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_31793819eb318c7cfed9606488870cc7"}, "created_at": 1731951599.6597388, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_31793819eb318c7cfed9606488870cc7\") }}", "language": "sql", "refs": [{"name": "google_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__url_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_31793819eb318c7cfed9606488870cc7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, ad_group_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__url_report`\n group by source_relation, ad_id, ad_group_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.google_ads__url_report", "attached_node": "model.google_ads.google_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_google_ads__account_report_account_id", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__account_report_account_id.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422", "fqn": ["google_ads", "not_null_google_ads__account_report_account_id"], "alias": "not_null_google_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.663209, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "google_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__account_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.google_ads__account_report", "attached_node": "model.google_ads.google_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('google_ads__account_report')) }}"}, "namespace": null}}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_source_relation__account_id__date_day.8480aa9317": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__account_report_source_relation__account_id__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_4d9f02d60b58ed8cc9cb947e8d47375c.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_source_relation__account_id__date_day.8480aa9317", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__account_report_source_relation__account_id__date_day"], "alias": "dbt_utils_unique_combination_o_4d9f02d60b58ed8cc9cb947e8d47375c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4d9f02d60b58ed8cc9cb947e8d47375c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4d9f02d60b58ed8cc9cb947e8d47375c"}, "created_at": 1731951599.6643982, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4d9f02d60b58ed8cc9cb947e8d47375c\") }}", "language": "sql", "refs": [{"name": "google_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__account_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_4d9f02d60b58ed8cc9cb947e8d47375c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__account_report`\n group by source_relation, account_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.google_ads__account_report", "attached_node": "model.google_ads.google_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_google_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c", "fqn": ["google_ads", "not_null_google_ads__ad_group_report_ad_group_id"], "alias": "not_null_google_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.666927, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "google_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_group_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.google_ads__ad_group_report", "attached_node": "model.google_ads.google_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('google_ads__ad_group_report')) }}"}, "namespace": null}}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_source_relation__ad_group_id__date_day.41d73a32f3": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_source_relation__ad_group_id__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_63eb2f3505db2b25be3a7df012a86231.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_source_relation__ad_group_id__date_day.41d73a32f3", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_source_relation__ad_group_id__date_day"], "alias": "dbt_utils_unique_combination_o_63eb2f3505db2b25be3a7df012a86231", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_63eb2f3505db2b25be3a7df012a86231", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_63eb2f3505db2b25be3a7df012a86231"}, "created_at": 1731951599.667943, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_63eb2f3505db2b25be3a7df012a86231\") }}", "language": "sql", "refs": [{"name": "google_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_group_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_63eb2f3505db2b25be3a7df012a86231.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__ad_group_report`\n group by source_relation, ad_group_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.google_ads__ad_group_report", "attached_node": "model.google_ads.google_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_google_ads__ad_report_ad_id", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__ad_report_ad_id.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad", "fqn": ["google_ads", "not_null_google_ads__ad_report_ad_id"], "alias": "not_null_google_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.670414, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "google_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.google_ads__ad_report", "attached_node": "model.google_ads.google_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('google_ads__ad_report')) }}"}, "namespace": null}}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_report_source_relation__ad_id__ad_group_id__date_day.0e82f7e99a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__ad_report_source_relation__ad_id__ad_group_id__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_31f4b2d0e507ccb9dcb70185c67648ae.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_report_source_relation__ad_id__ad_group_id__date_day.0e82f7e99a", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__ad_report_source_relation__ad_id__ad_group_id__date_day"], "alias": "dbt_utils_unique_combination_o_31f4b2d0e507ccb9dcb70185c67648ae", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_31f4b2d0e507ccb9dcb70185c67648ae", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_31f4b2d0e507ccb9dcb70185c67648ae"}, "created_at": 1731951599.6714308, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_31f4b2d0e507ccb9dcb70185c67648ae\") }}", "language": "sql", "refs": [{"name": "google_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_31f4b2d0e507ccb9dcb70185c67648ae.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, ad_group_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__ad_report`\n group by source_relation, ad_id, ad_group_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.google_ads__ad_report", "attached_node": "model.google_ads.google_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_google_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__campaign_report_campaign_id.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e", "fqn": ["google_ads", "not_null_google_ads__campaign_report_campaign_id"], "alias": "not_null_google_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.674624, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "google_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__campaign_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.google_ads__campaign_report", "attached_node": "model.google_ads.google_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('google_ads__campaign_report')) }}"}, "namespace": null}}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__campaign_report_source_relation__campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.29077cbd5e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__campaign_report_source_relation__campaign_id__advertising_channel_type__advertising_channel_subtype__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_96d8e0cfca4a3e2e0fd48dabfc41ee25.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__campaign_report_source_relation__campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.29077cbd5e", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__campaign_report_source_relation__campaign_id__advertising_channel_type__advertising_channel_subtype__date_day"], "alias": "dbt_utils_unique_combination_o_96d8e0cfca4a3e2e0fd48dabfc41ee25", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_96d8e0cfca4a3e2e0fd48dabfc41ee25", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_96d8e0cfca4a3e2e0fd48dabfc41ee25"}, "created_at": 1731951599.6757162, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_96d8e0cfca4a3e2e0fd48dabfc41ee25\") }}", "language": "sql", "refs": [{"name": "google_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__campaign_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_96d8e0cfca4a3e2e0fd48dabfc41ee25.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, advertising_channel_type, advertising_channel_subtype, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__campaign_report`\n group by source_relation, campaign_id, advertising_channel_type, advertising_channel_subtype, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.google_ads__campaign_report", "attached_node": "model.google_ads.google_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "advertising_channel_type", "advertising_channel_subtype", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_google_ads__keyword_report_criterion_id", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__keyword_report_criterion_id.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055", "fqn": ["google_ads", "not_null_google_ads__keyword_report_criterion_id"], "alias": "not_null_google_ads__keyword_report_criterion_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.679328, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "google_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__keyword_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__keyword_report_criterion_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect criterion_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__keyword_report`\nwhere criterion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "criterion_id", "file_key_name": "models.google_ads__keyword_report", "attached_node": "model.google_ads.google_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "criterion_id", "model": "{{ get_where_subquery(ref('google_ads__keyword_report')) }}"}, "namespace": null}}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_source_relation__ad_group_id__criterion_id__date_day.82605f3acd": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__keyword_report_source_relation__ad_group_id__criterion_id__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_13601ccbee4da22f839911c976dc105f.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_source_relation__ad_group_id__criterion_id__date_day.82605f3acd", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__keyword_report_source_relation__ad_group_id__criterion_id__date_day"], "alias": "dbt_utils_unique_combination_o_13601ccbee4da22f839911c976dc105f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_13601ccbee4da22f839911c976dc105f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_13601ccbee4da22f839911c976dc105f"}, "created_at": 1731951599.680367, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_13601ccbee4da22f839911c976dc105f\") }}", "language": "sql", "refs": [{"name": "google_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__keyword_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_13601ccbee4da22f839911c976dc105f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, criterion_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`google_ads__keyword_report`\n group by source_relation, ad_group_id, criterion_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.google_ads__keyword_report", "attached_node": "model.google_ads.google_ads__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "criterion_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_amazon_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_amazon_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.710606, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_amazon_ads__ad_group_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__ad_group_history')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_source_relation__ad_group_id__last_updated_date.5873194717": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_source_relation__ad_group_id__last_updated_date", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_081d093fe910afe8793a47b1c0c4e4c0.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_source_relation__ad_group_id__last_updated_date.5873194717", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_source_relation__ad_group_id__last_updated_date"], "alias": "dbt_utils_unique_combination_o_081d093fe910afe8793a47b1c0c4e4c0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_081d093fe910afe8793a47b1c0c4e4c0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_081d093fe910afe8793a47b1c0c4e4c0"}, "created_at": 1731951599.7117178, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_081d093fe910afe8793a47b1c0c4e4c0\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_081d093fe910afe8793a47b1c0c4e4c0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, last_updated_date\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__ad_group_history`\n group by source_relation, ad_group_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__ad_group_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_amazon_ads__ad_group_level_report_ad_group_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__ad_group_level_report_ad_group_id"], "alias": "not_null_stg_amazon_ads__ad_group_level_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.714595, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__ad_group_level_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__ad_group_level_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_amazon_ads__ad_group_level_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__ad_group_level_report')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_source_relation__ad_group_id__date_day.180ec0225e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_source_relation__ad_group_id__date_day", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_e922b897539d42aba70496d7bac26e7d.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_source_relation__ad_group_id__date_day.180ec0225e", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_source_relation__ad_group_id__date_day"], "alias": "dbt_utils_unique_combination_o_e922b897539d42aba70496d7bac26e7d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e922b897539d42aba70496d7bac26e7d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e922b897539d42aba70496d7bac26e7d"}, "created_at": 1731951599.715602, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e922b897539d42aba70496d7bac26e7d\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__ad_group_level_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_e922b897539d42aba70496d7bac26e7d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__ad_group_level_report`\n group by source_relation, ad_group_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__ad_group_level_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__ad_group_level_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_amazon_ads__advertised_product_report_ad_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__advertised_product_report_ad_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__advertised_product_report_ad_id"], "alias": "not_null_stg_amazon_ads__advertised_product_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.71807, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__advertised_product_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__advertised_product_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__advertised_product_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_amazon_ads__advertised_product_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__advertised_product_report')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_source_relation__ad_id__date_day.e170148d6c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_source_relation__ad_id__date_day", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_d7f9cbf345eb187052ca5dee9eb30d65.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_source_relation__ad_id__date_day.e170148d6c", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_source_relation__ad_id__date_day"], "alias": "dbt_utils_unique_combination_o_d7f9cbf345eb187052ca5dee9eb30d65", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d7f9cbf345eb187052ca5dee9eb30d65", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d7f9cbf345eb187052ca5dee9eb30d65"}, "created_at": 1731951599.719062, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d7f9cbf345eb187052ca5dee9eb30d65\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__advertised_product_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_d7f9cbf345eb187052ca5dee9eb30d65.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__advertised_product_report`\n group by source_relation, ad_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__advertised_product_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__advertised_product_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_amazon_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__campaign_history_campaign_id"], "alias": "not_null_stg_amazon_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.7215219, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_amazon_ads__campaign_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__campaign_history')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_source_relation__campaign_id__last_updated_date.f58b6293d6": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_source_relation__campaign_id__last_updated_date", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_d2c52c088434839a8e4c14e13249a927.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_source_relation__campaign_id__last_updated_date.f58b6293d6", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_source_relation__campaign_id__last_updated_date"], "alias": "dbt_utils_unique_combination_o_d2c52c088434839a8e4c14e13249a927", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d2c52c088434839a8e4c14e13249a927", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d2c52c088434839a8e4c14e13249a927"}, "created_at": 1731951599.722528, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d2c52c088434839a8e4c14e13249a927\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_d2c52c088434839a8e4c14e13249a927.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, last_updated_date\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_history`\n group by source_relation, campaign_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__campaign_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_amazon_ads__campaign_level_report_campaign_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__campaign_level_report_campaign_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__campaign_level_report_campaign_id"], "alias": "not_null_stg_amazon_ads__campaign_level_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.725844, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_level_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__campaign_level_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_level_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_amazon_ads__campaign_level_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__campaign_level_report')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_source_relation__campaign_id__date_day.f6bb472aa5": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_source_relation__campaign_id__date_day", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_a8c1294f589331807ed94a085ea4442e.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_source_relation__campaign_id__date_day.f6bb472aa5", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_source_relation__campaign_id__date_day"], "alias": "dbt_utils_unique_combination_o_a8c1294f589331807ed94a085ea4442e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a8c1294f589331807ed94a085ea4442e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a8c1294f589331807ed94a085ea4442e"}, "created_at": 1731951599.726922, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a8c1294f589331807ed94a085ea4442e\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_level_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_a8c1294f589331807ed94a085ea4442e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__campaign_level_report`\n group by source_relation, campaign_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__campaign_level_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__campaign_level_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_amazon_ads__keyword_history_keyword_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__keyword_history_keyword_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__keyword_history_keyword_id"], "alias": "not_null_stg_amazon_ads__keyword_history_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.7300868, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__keyword_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__keyword_history_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__keyword_history`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_amazon_ads__keyword_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__keyword_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__keyword_history')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_source_relation__keyword_id__last_updated_date.611a8411e0": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_source_relation__keyword_id__last_updated_date", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_9993166b721f655d435b4edd795037c7.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_source_relation__keyword_id__last_updated_date.611a8411e0", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_source_relation__keyword_id__last_updated_date"], "alias": "dbt_utils_unique_combination_o_9993166b721f655d435b4edd795037c7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9993166b721f655d435b4edd795037c7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9993166b721f655d435b4edd795037c7"}, "created_at": 1731951599.7312, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9993166b721f655d435b4edd795037c7\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__keyword_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_9993166b721f655d435b4edd795037c7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, keyword_id, last_updated_date\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__keyword_history`\n group by source_relation, keyword_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__keyword_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__keyword_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "keyword_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__keyword_history')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_amazon_ads__portfolio_history_portfolio_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__portfolio_history_portfolio_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__portfolio_history_portfolio_id"], "alias": "not_null_stg_amazon_ads__portfolio_history_portfolio_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.734567, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__portfolio_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__portfolio_history_portfolio_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect portfolio_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__portfolio_history`\nwhere portfolio_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "portfolio_id", "file_key_name": "models.stg_amazon_ads__portfolio_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__portfolio_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "portfolio_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__portfolio_history')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_source_relation__portfolio_id__last_updated_date.e0bb6ee3e0": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_source_relation__portfolio_id__last_updated_date", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_c25df2eeb1122c4477d6aba602f654a0.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_source_relation__portfolio_id__last_updated_date.e0bb6ee3e0", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_source_relation__portfolio_id__last_updated_date"], "alias": "dbt_utils_unique_combination_o_c25df2eeb1122c4477d6aba602f654a0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c25df2eeb1122c4477d6aba602f654a0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c25df2eeb1122c4477d6aba602f654a0"}, "created_at": 1731951599.7355871, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c25df2eeb1122c4477d6aba602f654a0\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__portfolio_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_c25df2eeb1122c4477d6aba602f654a0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, portfolio_id, last_updated_date\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__portfolio_history`\n group by source_relation, portfolio_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__portfolio_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__portfolio_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "portfolio_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__portfolio_history')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_amazon_ads__product_ad_history_ad_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__product_ad_history_ad_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__product_ad_history_ad_id"], "alias": "not_null_stg_amazon_ads__product_ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.7385862, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__product_ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__product_ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__product_ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_amazon_ads__product_ad_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__product_ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__product_ad_history')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_source_relation__ad_id__last_updated_date.90fb8d59e6": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_source_relation__ad_id__last_updated_date", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_d56439b310a40f6e76cd66e4c5e2e585.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_source_relation__ad_id__last_updated_date.90fb8d59e6", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_source_relation__ad_id__last_updated_date"], "alias": "dbt_utils_unique_combination_o_d56439b310a40f6e76cd66e4c5e2e585", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d56439b310a40f6e76cd66e4c5e2e585", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d56439b310a40f6e76cd66e4c5e2e585"}, "created_at": 1731951599.73958, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d56439b310a40f6e76cd66e4c5e2e585\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__product_ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_d56439b310a40f6e76cd66e4c5e2e585.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, last_updated_date\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__product_ad_history`\n group by source_relation, ad_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__product_ad_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__product_ad_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__product_ad_history')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_amazon_ads__profile_profile_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__profile_profile_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__profile_profile_id"], "alias": "not_null_stg_amazon_ads__profile_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.7419899, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__profile"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__profile_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect profile_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__profile`\nwhere profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "profile_id", "file_key_name": "models.stg_amazon_ads__profile", "attached_node": "model.amazon_ads_source.stg_amazon_ads__profile", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "profile_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__profile')) }}"}, "namespace": null}}, "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_amazon_ads__targeting_keyword_report_keyword_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__targeting_keyword_report_keyword_id"], "alias": "not_null_stg_amazon_ads__targeting_keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.7432, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__targeting_keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__targeting_keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_amazon_ads__targeting_keyword_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__targeting_keyword_report')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_source_relation__keyword_id__date_day.4190f2a661": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_source_relation__keyword_id__date_day", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_f4291d49d1c17f6aa8babe0eddf0aaa7.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_source_relation__keyword_id__date_day.4190f2a661", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_source_relation__keyword_id__date_day"], "alias": "dbt_utils_unique_combination_o_f4291d49d1c17f6aa8babe0eddf0aaa7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f4291d49d1c17f6aa8babe0eddf0aaa7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f4291d49d1c17f6aa8babe0eddf0aaa7"}, "created_at": 1731951599.744601, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f4291d49d1c17f6aa8babe0eddf0aaa7\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__targeting_keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_f4291d49d1c17f6aa8babe0eddf0aaa7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, keyword_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__targeting_keyword_report`\n group by source_relation, keyword_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__targeting_keyword_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__targeting_keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term"], "alias": "not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe"}, "created_at": 1731951599.747699, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__search_term_ad_keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_term\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__search_term_ad_keyword_report`\nwhere search_term is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "search_term", "file_key_name": "models.stg_amazon_ads__search_term_ad_keyword_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_term", "model": "{{ get_where_subquery(ref('stg_amazon_ads__search_term_ad_keyword_report')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_source_relation__search_term__keyword_id__date_day.00ccbc3eda": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_source_relation__search_term__keyword_id__date_day", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_b887ad48bec1a39219806a1125ea4e30.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_source_relation__search_term__keyword_id__date_day.00ccbc3eda", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_source_relation__search_term__keyword_id__date_day"], "alias": "dbt_utils_unique_combination_o_b887ad48bec1a39219806a1125ea4e30", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b887ad48bec1a39219806a1125ea4e30", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b887ad48bec1a39219806a1125ea4e30"}, "created_at": 1731951599.748854, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b887ad48bec1a39219806a1125ea4e30\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__search_term_ad_keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_b887ad48bec1a39219806a1125ea4e30.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, search_term, keyword_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_amazon_ads__search_term_ad_keyword_report`\n group by source_relation, search_term, keyword_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__search_term_ad_keyword_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "search_term", "keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__search_term_ad_keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id"], "alias": "not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.7828732, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__ad_analytics_by_creative", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__ad_analytics_by_creative`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "creative_id", "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_creative", "attached_node": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_creative')) }}"}, "namespace": null}}, "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day"], "alias": "not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.7843468, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__ad_analytics_by_creative", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__ad_analytics_by_creative`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_creative", "attached_node": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_creative')) }}"}, "namespace": null}}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_source_relation__date_day__creative_id.7b7d839d38": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_source_relation__date_day__creative_id", "resource_type": "test", "package_name": "linkedin_source", "path": "dbt_utils_unique_combination_o_27fe99a89d69bef1d8b10f8babd3a810.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_source_relation__date_day__creative_id.7b7d839d38", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_source_relation__date_day__creative_id"], "alias": "dbt_utils_unique_combination_o_27fe99a89d69bef1d8b10f8babd3a810", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_27fe99a89d69bef1d8b10f8babd3a810", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_27fe99a89d69bef1d8b10f8babd3a810"}, "created_at": 1731951599.785492, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_27fe99a89d69bef1d8b10f8babd3a810\") }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__ad_analytics_by_creative", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_27fe99a89d69bef1d8b10f8babd3a810.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, creative_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__ad_analytics_by_creative`\n group by source_relation, date_day, creative_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_creative", "attached_node": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "creative_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_creative')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id"], "alias": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.788565, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__ad_analytics_by_campaign", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__ad_analytics_by_campaign`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_campaign", "attached_node": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_campaign')) }}"}, "namespace": null}}, "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day"], "alias": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.789595, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__ad_analytics_by_campaign", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__ad_analytics_by_campaign`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_campaign", "attached_node": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_campaign')) }}"}, "namespace": null}}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_source_relation__date_day__campaign_id.41aa0d6322": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_source_relation__date_day__campaign_id", "resource_type": "test", "package_name": "linkedin_source", "path": "dbt_utils_unique_combination_o_ebd2a9cba40b0235f303b2d953035a06.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_source_relation__date_day__campaign_id.41aa0d6322", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_source_relation__date_day__campaign_id"], "alias": "dbt_utils_unique_combination_o_ebd2a9cba40b0235f303b2d953035a06", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ebd2a9cba40b0235f303b2d953035a06", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ebd2a9cba40b0235f303b2d953035a06"}, "created_at": 1731951599.7905998, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ebd2a9cba40b0235f303b2d953035a06\") }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__ad_analytics_by_campaign", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_ebd2a9cba40b0235f303b2d953035a06.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, campaign_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__ad_analytics_by_campaign`\n group by source_relation, date_day, campaign_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_campaign", "attached_node": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "campaign_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_campaign')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_linkedin_ads__creative_history_creative_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__creative_history_creative_id.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__creative_history_creative_id"], "alias": "not_null_stg_linkedin_ads__creative_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.7933052, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__creative_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__creative_history_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__creative_history`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "creative_id", "file_key_name": "models.stg_linkedin_ads__creative_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__creative_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__creative_history')) }}"}, "namespace": null}}, "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_linkedin_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_history_campaign_id"], "alias": "not_null_stg_linkedin_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.794411, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_linkedin_ads__campaign_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_history')) }}"}, "namespace": null}}, "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_linkedin_ads__campaign_history_version_tag", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__campaign_history_version_tag.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_history_version_tag"], "alias": "not_null_stg_linkedin_ads__campaign_history_version_tag", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.7956438, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__campaign_history_version_tag.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect version_tag\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_history`\nwhere version_tag is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "version_tag", "file_key_name": "models.stg_linkedin_ads__campaign_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "version_tag", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_history')) }}"}, "namespace": null}}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_source_relation__version_tag__campaign_id.65ed9cedae": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_source_relation__version_tag__campaign_id", "resource_type": "test", "package_name": "linkedin_source", "path": "dbt_utils_unique_combination_o_037e01e42bcd4895e5b4ed988fe91370.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_source_relation__version_tag__campaign_id.65ed9cedae", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_source_relation__version_tag__campaign_id"], "alias": "dbt_utils_unique_combination_o_037e01e42bcd4895e5b4ed988fe91370", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_037e01e42bcd4895e5b4ed988fe91370", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_037e01e42bcd4895e5b4ed988fe91370"}, "created_at": 1731951599.79691, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_037e01e42bcd4895e5b4ed988fe91370\") }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_037e01e42bcd4895e5b4ed988fe91370.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, version_tag, campaign_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_history`\n group by source_relation, version_tag, campaign_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_linkedin_ads__campaign_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "version_tag", "campaign_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id"], "alias": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a"}, "created_at": 1731951599.800056, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a\") }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_group_history`\nwhere campaign_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_group_id", "file_key_name": "models.stg_linkedin_ads__campaign_group_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_group_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_group_history')) }}"}, "namespace": null}}, "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_linkedin_ads__campaign_group_history_last_modified_at", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_group_history_last_modified_at"], "alias": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd"}, "created_at": 1731951599.801075, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd\") }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect last_modified_at\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_group_history`\nwhere last_modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "last_modified_at", "file_key_name": "models.stg_linkedin_ads__campaign_group_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "last_modified_at", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_group_history')) }}"}, "namespace": null}}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_source_relation__last_modified_at__campaign_group_id.4c9f328639": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_source_relation__last_modified_at__campaign_group_id", "resource_type": "test", "package_name": "linkedin_source", "path": "dbt_utils_unique_combination_o_c50e86db2d7fc409fa436dcd11fe4e31.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_source_relation__last_modified_at__campaign_group_id.4c9f328639", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_source_relation__last_modified_at__campaign_group_id"], "alias": "dbt_utils_unique_combination_o_c50e86db2d7fc409fa436dcd11fe4e31", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c50e86db2d7fc409fa436dcd11fe4e31", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c50e86db2d7fc409fa436dcd11fe4e31"}, "created_at": 1731951599.802575, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c50e86db2d7fc409fa436dcd11fe4e31\") }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_c50e86db2d7fc409fa436dcd11fe4e31.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, last_modified_at, campaign_group_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__campaign_group_history`\n group by source_relation, last_modified_at, campaign_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_linkedin_ads__campaign_group_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "last_modified_at", "campaign_group_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_group_history')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_linkedin_ads__account_history_account_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__account_history_account_id.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__account_history_account_id"], "alias": "not_null_stg_linkedin_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.8056881, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__account_history_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_linkedin_ads__account_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__account_history')) }}"}, "namespace": null}}, "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_linkedin_ads__account_history_version_tag", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__account_history_version_tag.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__account_history_version_tag"], "alias": "not_null_stg_linkedin_ads__account_history_version_tag", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.806838, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__account_history_version_tag.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect version_tag\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__account_history`\nwhere version_tag is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "version_tag", "file_key_name": "models.stg_linkedin_ads__account_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "version_tag", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__account_history')) }}"}, "namespace": null}}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_source_relation__account_id__version_tag.c7a0383d8c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_source_relation__account_id__version_tag", "resource_type": "test", "package_name": "linkedin_source", "path": "dbt_utils_unique_combination_o_4ac77ca02713a84c278cce8733000fc1.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_source_relation__account_id__version_tag.c7a0383d8c", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_source_relation__account_id__version_tag"], "alias": "dbt_utils_unique_combination_o_4ac77ca02713a84c278cce8733000fc1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4ac77ca02713a84c278cce8733000fc1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4ac77ca02713a84c278cce8733000fc1"}, "created_at": 1731951599.807929, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4ac77ca02713a84c278cce8733000fc1\") }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_4ac77ca02713a84c278cce8733000fc1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, version_tag\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_linkedin_ads__account_history`\n group by source_relation, account_id, version_tag\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_linkedin_ads__account_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__account_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "version_tag"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__account_history')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_amazon_ads__account_report_profile_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__account_report_profile_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66", "fqn": ["amazon_ads", "not_null_amazon_ads__account_report_profile_id"], "alias": "not_null_amazon_ads__account_report_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.837499, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "amazon_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__account_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__account_report_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect profile_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__account_report`\nwhere profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "profile_id", "file_key_name": "models.amazon_ads__account_report", "attached_node": "model.amazon_ads.amazon_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "profile_id", "model": "{{ get_where_subquery(ref('amazon_ads__account_report')) }}"}, "namespace": null}}, "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_amazon_ads__account_report_account_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__account_report_account_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061", "fqn": ["amazon_ads", "not_null_amazon_ads__account_report_account_id"], "alias": "not_null_amazon_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.839573, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "amazon_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__account_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.amazon_ads__account_report", "attached_node": "model.amazon_ads.amazon_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('amazon_ads__account_report')) }}"}, "namespace": null}}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_source_relation__date_day__profile_id.5ff488055c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__account_report_source_relation__date_day__profile_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_416219fe3044d8d47e223761d365cb57.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_source_relation__date_day__profile_id.5ff488055c", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__account_report_source_relation__date_day__profile_id"], "alias": "dbt_utils_unique_combination_o_416219fe3044d8d47e223761d365cb57", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_416219fe3044d8d47e223761d365cb57", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_416219fe3044d8d47e223761d365cb57"}, "created_at": 1731951599.8407302, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_416219fe3044d8d47e223761d365cb57\") }}", "language": "sql", "refs": [{"name": "amazon_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__account_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_416219fe3044d8d47e223761d365cb57.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, profile_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__account_report`\n group by source_relation, date_day, profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.amazon_ads__account_report", "attached_node": "model.amazon_ads.amazon_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "profile_id"], "model": "{{ get_where_subquery(ref('amazon_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_amazon_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a", "fqn": ["amazon_ads", "not_null_amazon_ads__ad_group_report_ad_group_id"], "alias": "not_null_amazon_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.8438232, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "amazon_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__ad_group_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.amazon_ads__ad_group_report", "attached_node": "model.amazon_ads.amazon_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('amazon_ads__ad_group_report')) }}"}, "namespace": null}}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_source_relation__date_day__ad_group_id.9f5387d4e0": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_source_relation__date_day__ad_group_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_e8503e4f9f94438125f72f1d09111a10.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_source_relation__date_day__ad_group_id.9f5387d4e0", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_source_relation__date_day__ad_group_id"], "alias": "dbt_utils_unique_combination_o_e8503e4f9f94438125f72f1d09111a10", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e8503e4f9f94438125f72f1d09111a10", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e8503e4f9f94438125f72f1d09111a10"}, "created_at": 1731951599.845161, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e8503e4f9f94438125f72f1d09111a10\") }}", "language": "sql", "refs": [{"name": "amazon_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__ad_group_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_e8503e4f9f94438125f72f1d09111a10.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, ad_group_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__ad_group_report`\n group by source_relation, date_day, ad_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.amazon_ads__ad_group_report", "attached_node": "model.amazon_ads.amazon_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "ad_group_id"], "model": "{{ get_where_subquery(ref('amazon_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_amazon_ads__ad_report_ad_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__ad_report_ad_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3", "fqn": ["amazon_ads", "not_null_amazon_ads__ad_report_ad_id"], "alias": "not_null_amazon_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.848321, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "amazon_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__ad_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.amazon_ads__ad_report", "attached_node": "model.amazon_ads.amazon_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('amazon_ads__ad_report')) }}"}, "namespace": null}}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_source_relation__date_day__ad_id.5c0ccedb91": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_source_relation__date_day__ad_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_83fde40f0388d2e6fb8c9c3244db5f32.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_source_relation__date_day__ad_id.5c0ccedb91", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_source_relation__date_day__ad_id"], "alias": "dbt_utils_unique_combination_o_83fde40f0388d2e6fb8c9c3244db5f32", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_83fde40f0388d2e6fb8c9c3244db5f32", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_83fde40f0388d2e6fb8c9c3244db5f32"}, "created_at": 1731951599.8493361, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_83fde40f0388d2e6fb8c9c3244db5f32\") }}", "language": "sql", "refs": [{"name": "amazon_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__ad_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_83fde40f0388d2e6fb8c9c3244db5f32.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, ad_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__ad_report`\n group by source_relation, date_day, ad_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.amazon_ads__ad_report", "attached_node": "model.amazon_ads.amazon_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "ad_id"], "model": "{{ get_where_subquery(ref('amazon_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_amazon_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__campaign_report_campaign_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c", "fqn": ["amazon_ads", "not_null_amazon_ads__campaign_report_campaign_id"], "alias": "not_null_amazon_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.852136, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "amazon_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__campaign_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.amazon_ads__campaign_report", "attached_node": "model.amazon_ads.amazon_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('amazon_ads__campaign_report')) }}"}, "namespace": null}}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_source_relation__date_day__campaign_id.0fcead4f41": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_source_relation__date_day__campaign_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_fa3819f4bf4290da54c5b88ce0d9dc36.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_source_relation__date_day__campaign_id.0fcead4f41", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_source_relation__date_day__campaign_id"], "alias": "dbt_utils_unique_combination_o_fa3819f4bf4290da54c5b88ce0d9dc36", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fa3819f4bf4290da54c5b88ce0d9dc36", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fa3819f4bf4290da54c5b88ce0d9dc36"}, "created_at": 1731951599.8532338, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fa3819f4bf4290da54c5b88ce0d9dc36\") }}", "language": "sql", "refs": [{"name": "amazon_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__campaign_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_fa3819f4bf4290da54c5b88ce0d9dc36.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, campaign_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__campaign_report`\n group by source_relation, date_day, campaign_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.amazon_ads__campaign_report", "attached_node": "model.amazon_ads.amazon_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "campaign_id"], "model": "{{ get_where_subquery(ref('amazon_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_amazon_ads__portfolio_report_profile_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__portfolio_report_profile_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6", "fqn": ["amazon_ads", "not_null_amazon_ads__portfolio_report_profile_id"], "alias": "not_null_amazon_ads__portfolio_report_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.855926, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "amazon_ads__portfolio_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__portfolio_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__portfolio_report_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect profile_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__portfolio_report`\nwhere profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "profile_id", "file_key_name": "models.amazon_ads__portfolio_report", "attached_node": "model.amazon_ads.amazon_ads__portfolio_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "profile_id", "model": "{{ get_where_subquery(ref('amazon_ads__portfolio_report')) }}"}, "namespace": null}}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_source_relation__date_day__portfolio_id.b3bfe4fce4": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_source_relation__date_day__portfolio_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_cbcf46ab6ce03f3dedf83ab5cd9dd622.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_source_relation__date_day__portfolio_id.b3bfe4fce4", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_source_relation__date_day__portfolio_id"], "alias": "dbt_utils_unique_combination_o_cbcf46ab6ce03f3dedf83ab5cd9dd622", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cbcf46ab6ce03f3dedf83ab5cd9dd622", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cbcf46ab6ce03f3dedf83ab5cd9dd622"}, "created_at": 1731951599.857142, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cbcf46ab6ce03f3dedf83ab5cd9dd622\") }}", "language": "sql", "refs": [{"name": "amazon_ads__portfolio_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__portfolio_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_cbcf46ab6ce03f3dedf83ab5cd9dd622.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, portfolio_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__portfolio_report`\n group by source_relation, date_day, portfolio_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.amazon_ads__portfolio_report", "attached_node": "model.amazon_ads.amazon_ads__portfolio_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "portfolio_id"], "model": "{{ get_where_subquery(ref('amazon_ads__portfolio_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_amazon_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__keyword_report_keyword_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a", "fqn": ["amazon_ads", "not_null_amazon_ads__keyword_report_keyword_id"], "alias": "not_null_amazon_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.859788, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "amazon_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__keyword_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.amazon_ads__keyword_report", "attached_node": "model.amazon_ads.amazon_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('amazon_ads__keyword_report')) }}"}, "namespace": null}}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_source_relation__date_day__keyword_id.34f042afc1": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_source_relation__date_day__keyword_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_91428774900936bd3a49f04fdde1a93d.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_source_relation__date_day__keyword_id.34f042afc1", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_source_relation__date_day__keyword_id"], "alias": "dbt_utils_unique_combination_o_91428774900936bd3a49f04fdde1a93d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_91428774900936bd3a49f04fdde1a93d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_91428774900936bd3a49f04fdde1a93d"}, "created_at": 1731951599.860849, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_91428774900936bd3a49f04fdde1a93d\") }}", "language": "sql", "refs": [{"name": "amazon_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__keyword_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_91428774900936bd3a49f04fdde1a93d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, keyword_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__keyword_report`\n group by source_relation, date_day, keyword_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.amazon_ads__keyword_report", "attached_node": "model.amazon_ads.amazon_ads__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "keyword_id"], "model": "{{ get_where_subquery(ref('amazon_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_amazon_ads__search_report_search_term", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__search_report_search_term.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a", "fqn": ["amazon_ads", "not_null_amazon_ads__search_report_search_term"], "alias": "not_null_amazon_ads__search_report_search_term", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951599.8633971, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "amazon_ads__search_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__search_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__search_report_search_term.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_term\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__search_report`\nwhere search_term is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "search_term", "file_key_name": "models.amazon_ads__search_report", "attached_node": "model.amazon_ads.amazon_ads__search_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_term", "model": "{{ get_where_subquery(ref('amazon_ads__search_report')) }}"}, "namespace": null}}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_source_relation__date_day__search_term__keyword_id.21a027f105": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__search_report_source_relation__date_day__search_term__keyword_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_101099c02761163dd498edf7f610e670.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_source_relation__date_day__search_term__keyword_id.21a027f105", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__search_report_source_relation__date_day__search_term__keyword_id"], "alias": "dbt_utils_unique_combination_o_101099c02761163dd498edf7f610e670", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_101099c02761163dd498edf7f610e670", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_101099c02761163dd498edf7f610e670"}, "created_at": 1731951599.8643992, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_101099c02761163dd498edf7f610e670\") }}", "language": "sql", "refs": [{"name": "amazon_ads__search_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__search_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_101099c02761163dd498edf7f610e670.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, search_term, keyword_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`amazon_ads__search_report`\n group by source_relation, date_day, search_term, keyword_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.amazon_ads__search_report", "attached_node": "model.amazon_ads.amazon_ads__search_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "search_term", "keyword_id"], "model": "{{ get_where_subquery(ref('amazon_ads__search_report')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_facebook_ads__url_report_base_url", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__url_report_base_url.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be", "fqn": ["facebook_ads", "not_null_facebook_ads__url_report_base_url"], "alias": "not_null_facebook_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1731951600.11066, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "facebook_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "base_url", "file_key_name": "models.facebook_ads__url_report", "attached_node": "model.facebook_ads.facebook_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('facebook_ads__url_report')) }}"}, "namespace": null}}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.ef8d3469d4": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_850ed029de5e6ff1d32f50b06eaeb4d3.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.ef8d3469d4", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id"], "alias": "dbt_utils_unique_combination_o_850ed029de5e6ff1d32f50b06eaeb4d3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_850ed029de5e6ff1d32f50b06eaeb4d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_850ed029de5e6ff1d32f50b06eaeb4d3"}, "created_at": 1731951600.113056, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_850ed029de5e6ff1d32f50b06eaeb4d3\") }}", "language": "sql", "refs": [{"name": "facebook_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_850ed029de5e6ff1d32f50b06eaeb4d3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_set_id, ad_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__url_report`\n group by source_relation, date_day, account_id, campaign_id, ad_set_id, ad_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.facebook_ads__url_report", "attached_node": "model.facebook_ads.facebook_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_set_id", "ad_id"], "model": "{{ get_where_subquery(ref('facebook_ads__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_facebook_ads__ad_report_ad_id", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__ad_report_ad_id.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238", "fqn": ["facebook_ads", "not_null_facebook_ads__ad_report_ad_id"], "alias": "not_null_facebook_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.116244, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "facebook_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.facebook_ads__ad_report", "attached_node": "model.facebook_ads.facebook_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('facebook_ads__ad_report')) }}"}, "namespace": null}}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.c866a344f6": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_6e4b66137204a720abb9a9c7bc742089.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.c866a344f6", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id"], "alias": "dbt_utils_unique_combination_o_6e4b66137204a720abb9a9c7bc742089", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6e4b66137204a720abb9a9c7bc742089", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6e4b66137204a720abb9a9c7bc742089"}, "created_at": 1731951600.118025, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6e4b66137204a720abb9a9c7bc742089\") }}", "language": "sql", "refs": [{"name": "facebook_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_6e4b66137204a720abb9a9c7bc742089.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_set_id, ad_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__ad_report`\n group by source_relation, date_day, account_id, campaign_id, ad_set_id, ad_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.facebook_ads__ad_report", "attached_node": "model.facebook_ads.facebook_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_set_id", "ad_id"], "model": "{{ get_where_subquery(ref('facebook_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_facebook_ads__ad_set_report_ad_set_id", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__ad_set_report_ad_set_id.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4", "fqn": ["facebook_ads", "not_null_facebook_ads__ad_set_report_ad_set_id"], "alias": "not_null_facebook_ads__ad_set_report_ad_set_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.12433, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "facebook_ads__ad_set_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_set_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__ad_set_report_ad_set_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_set_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__ad_set_report`\nwhere ad_set_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_set_id", "file_key_name": "models.facebook_ads__ad_set_report", "attached_node": "model.facebook_ads.facebook_ads__ad_set_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_set_id", "model": "{{ get_where_subquery(ref('facebook_ads__ad_set_report')) }}"}, "namespace": null}}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_source_relation__date_day__account_id__campaign_id__ad_set_id.8707f6bd30": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_source_relation__date_day__account_id__campaign_id__ad_set_id", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_b961bbfa62a03a9958c073786edc4c15.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_source_relation__date_day__account_id__campaign_id__ad_set_id.8707f6bd30", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_source_relation__date_day__account_id__campaign_id__ad_set_id"], "alias": "dbt_utils_unique_combination_o_b961bbfa62a03a9958c073786edc4c15", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b961bbfa62a03a9958c073786edc4c15", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b961bbfa62a03a9958c073786edc4c15"}, "created_at": 1731951600.12604, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b961bbfa62a03a9958c073786edc4c15\") }}", "language": "sql", "refs": [{"name": "facebook_ads__ad_set_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_set_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_b961bbfa62a03a9958c073786edc4c15.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_set_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__ad_set_report`\n group by source_relation, date_day, account_id, campaign_id, ad_set_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.facebook_ads__ad_set_report", "attached_node": "model.facebook_ads.facebook_ads__ad_set_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_set_id"], "model": "{{ get_where_subquery(ref('facebook_ads__ad_set_report')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_facebook_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__campaign_report_campaign_id.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21", "fqn": ["facebook_ads", "not_null_facebook_ads__campaign_report_campaign_id"], "alias": "not_null_facebook_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.129823, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "facebook_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__campaign_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.facebook_ads__campaign_report", "attached_node": "model.facebook_ads.facebook_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('facebook_ads__campaign_report')) }}"}, "namespace": null}}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_source_relation__date_day__account_id__campaign_id.f97e1afff3": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_source_relation__date_day__account_id__campaign_id", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_f8c57e0e8b2ceeee09e9b03884eb051f.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_source_relation__date_day__account_id__campaign_id.f97e1afff3", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_source_relation__date_day__account_id__campaign_id"], "alias": "dbt_utils_unique_combination_o_f8c57e0e8b2ceeee09e9b03884eb051f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f8c57e0e8b2ceeee09e9b03884eb051f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f8c57e0e8b2ceeee09e9b03884eb051f"}, "created_at": 1731951600.1327791, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f8c57e0e8b2ceeee09e9b03884eb051f\") }}", "language": "sql", "refs": [{"name": "facebook_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__campaign_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_f8c57e0e8b2ceeee09e9b03884eb051f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__campaign_report`\n group by source_relation, date_day, account_id, campaign_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.facebook_ads__campaign_report", "attached_node": "model.facebook_ads.facebook_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id"], "model": "{{ get_where_subquery(ref('facebook_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_facebook_ads__account_report_account_id", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__account_report_account_id.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024", "fqn": ["facebook_ads", "not_null_facebook_ads__account_report_account_id"], "alias": "not_null_facebook_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.1367428, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "facebook_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__account_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.facebook_ads__account_report", "attached_node": "model.facebook_ads.facebook_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('facebook_ads__account_report')) }}"}, "namespace": null}}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_source_relation__date_day__account_id.bf8a017de1": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__account_report_source_relation__date_day__account_id", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_6e8a815205ee0246fa9dad45a7c74067.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_source_relation__date_day__account_id.bf8a017de1", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__account_report_source_relation__date_day__account_id"], "alias": "dbt_utils_unique_combination_o_6e8a815205ee0246fa9dad45a7c74067", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6e8a815205ee0246fa9dad45a7c74067", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6e8a815205ee0246fa9dad45a7c74067"}, "created_at": 1731951600.138274, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6e8a815205ee0246fa9dad45a7c74067\") }}", "language": "sql", "refs": [{"name": "facebook_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__account_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_6e8a815205ee0246fa9dad45a7c74067.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__account_report`\n group by source_relation, date_day, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.facebook_ads__account_report", "attached_node": "model.facebook_ads.facebook_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id"], "model": "{{ get_where_subquery(ref('facebook_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_facebook_ads__url_tags__fivetran_id", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__url_tags__fivetran_id.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3", "fqn": ["facebook_ads", "not_null_facebook_ads__url_tags__fivetran_id"], "alias": "not_null_facebook_ads__url_tags__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.1424499, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "facebook_ads__url_tags", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_tags"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__url_tags__fivetran_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__url_tags`\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_id", "file_key_name": "models.facebook_ads__url_tags", "attached_node": "model.facebook_ads.facebook_ads__url_tags", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('facebook_ads__url_tags')) }}"}, "namespace": null}}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags_source_relation___fivetran_id__key__type.c65de59dec": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__url_tags_source_relation___fivetran_id__key__type", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_0edcd43a1d9ada73ae05d9299e782956.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags_source_relation___fivetran_id__key__type.c65de59dec", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__url_tags_source_relation___fivetran_id__key__type"], "alias": "dbt_utils_unique_combination_o_0edcd43a1d9ada73ae05d9299e782956", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0edcd43a1d9ada73ae05d9299e782956", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0edcd43a1d9ada73ae05d9299e782956"}, "created_at": 1731951600.143627, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0edcd43a1d9ada73ae05d9299e782956\") }}", "language": "sql", "refs": [{"name": "facebook_ads__url_tags", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_tags"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_0edcd43a1d9ada73ae05d9299e782956.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, _fivetran_id, key, type\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`facebook_ads__url_tags`\n group by source_relation, _fivetran_id, key, type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.facebook_ads__url_tags", "attached_node": "model.facebook_ads.facebook_ads__url_tags", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "_fivetran_id", "key", "type"], "model": "{{ get_where_subquery(ref('facebook_ads__url_tags')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_snapchat_ads__account_report_date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__account_report_date_day.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260", "fqn": ["snapchat_ads", "not_null_snapchat_ads__account_report_date_day"], "alias": "not_null_snapchat_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.164294, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__account_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__account_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__account_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.snapchat_ads__account_report", "attached_node": "model.snapchat_ads.snapchat_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__account_report')) }}"}, "namespace": null}}, "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_snapchat_ads__account_report_ad_account_id", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__account_report_ad_account_id.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b", "fqn": ["snapchat_ads", "not_null_snapchat_ads__account_report_ad_account_id"], "alias": "not_null_snapchat_ads__account_report_ad_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "WARN", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "WARN"}, "created_at": 1731951600.1656199, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\") }}", "language": "sql", "refs": [{"name": "snapchat_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__account_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__account_report_ad_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__account_report`\nwhere ad_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_account_id", "file_key_name": "models.snapchat_ads__account_report", "attached_node": "model.snapchat_ads.snapchat_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_account_id", "model": "{{ get_where_subquery(ref('snapchat_ads__account_report')) }}"}, "namespace": null}}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_source_relation__ad_account_id__date_day.654a687cf1": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_source_relation__ad_account_id__date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "dbt_utils_unique_combination_o_214c2bcb5ae73bd8026704ca3c8449e8.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_source_relation__ad_account_id__date_day.654a687cf1", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_source_relation__ad_account_id__date_day"], "alias": "dbt_utils_unique_combination_o_214c2bcb5ae73bd8026704ca3c8449e8", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_214c2bcb5ae73bd8026704ca3c8449e8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_214c2bcb5ae73bd8026704ca3c8449e8"}, "created_at": 1731951600.166657, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_214c2bcb5ae73bd8026704ca3c8449e8\") }}", "language": "sql", "refs": [{"name": "snapchat_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__account_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_214c2bcb5ae73bd8026704ca3c8449e8.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_account_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__account_report`\n group by source_relation, ad_account_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.snapchat_ads__account_report", "attached_node": "model.snapchat_ads.snapchat_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_account_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_snapchat_ads__ad_report_date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__ad_report_date_day.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_report_date_day"], "alias": "not_null_snapchat_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.1696398, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.snapchat_ads__ad_report", "attached_node": "model.snapchat_ads.snapchat_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__ad_report')) }}"}, "namespace": null}}, "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_snapchat_ads__ad_report_ad_id", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__ad_report_ad_id.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_report_ad_id"], "alias": "not_null_snapchat_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.170658, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.snapchat_ads__ad_report", "attached_node": "model.snapchat_ads.snapchat_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('snapchat_ads__ad_report')) }}"}, "namespace": null}}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_source_relation__ad_id__date_day.9116e93fba": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_source_relation__ad_id__date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "dbt_utils_unique_combination_o_aee83389914e2784af892d88888b08c1.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_source_relation__ad_id__date_day.9116e93fba", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_source_relation__ad_id__date_day"], "alias": "dbt_utils_unique_combination_o_aee83389914e2784af892d88888b08c1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_aee83389914e2784af892d88888b08c1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_aee83389914e2784af892d88888b08c1"}, "created_at": 1731951600.171794, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_aee83389914e2784af892d88888b08c1\") }}", "language": "sql", "refs": [{"name": "snapchat_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_aee83389914e2784af892d88888b08c1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__ad_report`\n group by source_relation, ad_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.snapchat_ads__ad_report", "attached_node": "model.snapchat_ads.snapchat_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_snapchat_ads__campaign_report_date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__campaign_report_date_day.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b", "fqn": ["snapchat_ads", "not_null_snapchat_ads__campaign_report_date_day"], "alias": "not_null_snapchat_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.1746612, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__campaign_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.snapchat_ads__campaign_report", "attached_node": "model.snapchat_ads.snapchat_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__campaign_report')) }}"}, "namespace": null}}, "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_snapchat_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__campaign_report_campaign_id.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac", "fqn": ["snapchat_ads", "not_null_snapchat_ads__campaign_report_campaign_id"], "alias": "not_null_snapchat_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.175662, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__campaign_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.snapchat_ads__campaign_report", "attached_node": "model.snapchat_ads.snapchat_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('snapchat_ads__campaign_report')) }}"}, "namespace": null}}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_source_relation__campaign_id__date_day.557487ad6a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_source_relation__campaign_id__date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "dbt_utils_unique_combination_o_e2e52096c5d2adfdd8022dda67d2eefb.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_source_relation__campaign_id__date_day.557487ad6a", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_source_relation__campaign_id__date_day"], "alias": "dbt_utils_unique_combination_o_e2e52096c5d2adfdd8022dda67d2eefb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e2e52096c5d2adfdd8022dda67d2eefb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e2e52096c5d2adfdd8022dda67d2eefb"}, "created_at": 1731951600.176657, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e2e52096c5d2adfdd8022dda67d2eefb\") }}", "language": "sql", "refs": [{"name": "snapchat_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__campaign_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_e2e52096c5d2adfdd8022dda67d2eefb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__campaign_report`\n group by source_relation, campaign_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.snapchat_ads__campaign_report", "attached_node": "model.snapchat_ads.snapchat_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_snapchat_ads__ad_squad_report_date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__ad_squad_report_date_day.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_squad_report_date_day"], "alias": "not_null_snapchat_ads__ad_squad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.17949, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__ad_squad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_squad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_squad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__ad_squad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.snapchat_ads__ad_squad_report", "attached_node": "model.snapchat_ads.snapchat_ads__ad_squad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__ad_squad_report')) }}"}, "namespace": null}}, "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_snapchat_ads__ad_squad_report_ad_squad_id", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__ad_squad_report_ad_squad_id.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_squad_report_ad_squad_id"], "alias": "not_null_snapchat_ads__ad_squad_report_ad_squad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.180502, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__ad_squad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_squad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_squad_report_ad_squad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__ad_squad_report`\nwhere ad_squad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_squad_id", "file_key_name": "models.snapchat_ads__ad_squad_report", "attached_node": "model.snapchat_ads.snapchat_ads__ad_squad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_squad_id", "model": "{{ get_where_subquery(ref('snapchat_ads__ad_squad_report')) }}"}, "namespace": null}}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_source_relation__ad_squad_id__date_day.b1a26a5bb4": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_source_relation__ad_squad_id__date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "dbt_utils_unique_combination_o_aae226efcde859f979c893443d7e72e3.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_source_relation__ad_squad_id__date_day.b1a26a5bb4", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_source_relation__ad_squad_id__date_day"], "alias": "dbt_utils_unique_combination_o_aae226efcde859f979c893443d7e72e3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_aae226efcde859f979c893443d7e72e3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_aae226efcde859f979c893443d7e72e3"}, "created_at": 1731951600.181582, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_aae226efcde859f979c893443d7e72e3\") }}", "language": "sql", "refs": [{"name": "snapchat_ads__ad_squad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_squad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_aae226efcde859f979c893443d7e72e3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_squad_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__ad_squad_report`\n group by source_relation, ad_squad_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.snapchat_ads__ad_squad_report", "attached_node": "model.snapchat_ads.snapchat_ads__ad_squad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_squad_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__ad_squad_report')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_snapchat_ads__url_report_date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__url_report_date_day.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6", "fqn": ["snapchat_ads", "not_null_snapchat_ads__url_report_date_day"], "alias": "not_null_snapchat_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.18498, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.snapchat_ads__url_report", "attached_node": "model.snapchat_ads.snapchat_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__url_report')) }}"}, "namespace": null}}, "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_snapchat_ads__url_report_ad_id", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__url_report_ad_id.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78", "fqn": ["snapchat_ads", "not_null_snapchat_ads__url_report_ad_id"], "alias": "not_null_snapchat_ads__url_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.186823, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__url_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__url_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.snapchat_ads__url_report", "attached_node": "model.snapchat_ads.snapchat_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('snapchat_ads__url_report')) }}"}, "namespace": null}}, "test.snapchat_ads.not_null_snapchat_ads__url_report_base_url.15676dc1de": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_snapchat_ads__url_report_base_url", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__url_report_base_url.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_base_url.15676dc1de", "fqn": ["snapchat_ads", "not_null_snapchat_ads__url_report_base_url"], "alias": "not_null_snapchat_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1731951600.188304, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snapchat_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "base_url", "file_key_name": "models.snapchat_ads__url_report", "attached_node": "model.snapchat_ads.snapchat_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('snapchat_ads__url_report')) }}"}, "namespace": null}}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_source_relation__ad_id__date_day.86e3504c07": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_source_relation__ad_id__date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "dbt_utils_unique_combination_o_d0f023fab5dadee3873fc4a187d38b76.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_source_relation__ad_id__date_day.86e3504c07", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_source_relation__ad_id__date_day"], "alias": "dbt_utils_unique_combination_o_d0f023fab5dadee3873fc4a187d38b76", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d0f023fab5dadee3873fc4a187d38b76", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d0f023fab5dadee3873fc4a187d38b76"}, "created_at": 1731951600.19007, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_d0f023fab5dadee3873fc4a187d38b76\") }}", "language": "sql", "refs": [{"name": "snapchat_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_d0f023fab5dadee3873fc4a187d38b76.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`snapchat_ads__url_report`\n group by source_relation, ad_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.snapchat_ads__url_report", "attached_node": "model.snapchat_ads.snapchat_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_google_ads__account_history_account_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__account_history_account_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f", "fqn": ["google_ads_source", "not_null_stg_google_ads__account_history_account_id"], "alias": "not_null_stg_google_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.212211, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__account_history_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_google_ads__account_history", "attached_node": "model.google_ads_source.stg_google_ads__account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_google_ads__account_history')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_source_relation__account_id__updated_at.0a4d931c44": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_source_relation__account_id__updated_at", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_31e6e54f7527cc244a5cb8a70c16821f.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_source_relation__account_id__updated_at.0a4d931c44", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_source_relation__account_id__updated_at"], "alias": "dbt_utils_unique_combination_o_31e6e54f7527cc244a5cb8a70c16821f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_31e6e54f7527cc244a5cb8a70c16821f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_31e6e54f7527cc244a5cb8a70c16821f"}, "created_at": 1731951600.2133482, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_31e6e54f7527cc244a5cb8a70c16821f\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_31e6e54f7527cc244a5cb8a70c16821f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, updated_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_history`\n group by source_relation, account_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__account_history", "attached_node": "model.google_ads_source.stg_google_ads__account_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__account_history')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_google_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_google_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.216987, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_google_ads__ad_group_history", "attached_node": "model.google_ads_source.stg_google_ads__ad_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_history')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_source_relation__ad_group_id__updated_at.94eb3f93a4": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_source_relation__ad_group_id__updated_at", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_067aaf35bea7bd5fb30314e43ff18b69.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_source_relation__ad_group_id__updated_at.94eb3f93a4", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_source_relation__ad_group_id__updated_at"], "alias": "dbt_utils_unique_combination_o_067aaf35bea7bd5fb30314e43ff18b69", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_067aaf35bea7bd5fb30314e43ff18b69", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_067aaf35bea7bd5fb30314e43ff18b69"}, "created_at": 1731951600.218024, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_067aaf35bea7bd5fb30314e43ff18b69\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_067aaf35bea7bd5fb30314e43ff18b69.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, updated_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_history`\n group by source_relation, ad_group_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__ad_group_history", "attached_node": "model.google_ads_source.stg_google_ads__ad_group_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_google_ads__ad_history_ad_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_history_ad_id"], "alias": "not_null_stg_google_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.2211351, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_google_ads__ad_history", "attached_node": "model.google_ads_source.stg_google_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_history')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_source_relation__ad_id__ad_group_id__updated_at.edca86664e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_source_relation__ad_id__ad_group_id__updated_at", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_4c005e7bd18474717bc35e0b26db0b0b.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_source_relation__ad_id__ad_group_id__updated_at.edca86664e", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_source_relation__ad_id__ad_group_id__updated_at"], "alias": "dbt_utils_unique_combination_o_4c005e7bd18474717bc35e0b26db0b0b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4c005e7bd18474717bc35e0b26db0b0b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4c005e7bd18474717bc35e0b26db0b0b"}, "created_at": 1731951600.222334, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4c005e7bd18474717bc35e0b26db0b0b\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_4c005e7bd18474717bc35e0b26db0b0b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, ad_group_id, updated_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_history`\n group by source_relation, ad_id, ad_group_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__ad_history", "attached_node": "model.google_ads_source.stg_google_ads__ad_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "ad_group_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_history')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_google_ads__ad_stats_date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_stats_date_day"], "alias": "not_null_stg_google_ads__ad_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.225125, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_stats_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_google_ads__ad_stats", "attached_node": "model.google_ads_source.stg_google_ads__ad_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_stats')) }}"}, "namespace": null}}, "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_google_ads__ad_stats_ad_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_stats_ad_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_stats_ad_id"], "alias": "not_null_stg_google_ads__ad_stats_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.226143, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_stats_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_stats`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_google_ads__ad_stats", "attached_node": "model.google_ads_source.stg_google_ads__ad_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_stats')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_source_relation__ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.222a7d9413": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_source_relation__ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_f3094c425e91780390549f0d6ae9846c.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_source_relation__ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.222a7d9413", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_source_relation__ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day"], "alias": "dbt_utils_unique_combination_o_f3094c425e91780390549f0d6ae9846c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f3094c425e91780390549f0d6ae9846c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f3094c425e91780390549f0d6ae9846c"}, "created_at": 1731951600.2271628, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f3094c425e91780390549f0d6ae9846c\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_f3094c425e91780390549f0d6ae9846c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, ad_network_type, device, ad_group_id, keyword_ad_group_criterion, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_stats`\n group by source_relation, ad_id, ad_network_type, device, ad_group_id, keyword_ad_group_criterion, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__ad_stats", "attached_node": "model.google_ads_source.stg_google_ads__ad_stats", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "ad_network_type", "device", "ad_group_id", "keyword_ad_group_criterion", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_stats')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_google_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75", "fqn": ["google_ads_source", "not_null_stg_google_ads__campaign_history_campaign_id"], "alias": "not_null_stg_google_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.229988, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_google_ads__campaign_history", "attached_node": "model.google_ads_source.stg_google_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_history')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_source_relation__campaign_id__updated_at.008fea6b77": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_source_relation__campaign_id__updated_at", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_621a1b868581e76d3d957feb6d72332c.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_source_relation__campaign_id__updated_at.008fea6b77", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_source_relation__campaign_id__updated_at"], "alias": "dbt_utils_unique_combination_o_621a1b868581e76d3d957feb6d72332c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_621a1b868581e76d3d957feb6d72332c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_621a1b868581e76d3d957feb6d72332c"}, "created_at": 1731951600.2312572, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_621a1b868581e76d3d957feb6d72332c\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_621a1b868581e76d3d957feb6d72332c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, updated_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__campaign_history`\n group by source_relation, campaign_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__campaign_history", "attached_node": "model.google_ads_source.stg_google_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_google_ads__ad_group_criterion_history_criterion_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_criterion_history_criterion_id"], "alias": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031"}, "created_at": 1731951600.234637, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_criterion_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect criterion_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_criterion_history`\nwhere criterion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "criterion_id", "file_key_name": "models.stg_google_ads__ad_group_criterion_history", "attached_node": "model.google_ads_source.stg_google_ads__ad_group_criterion_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "criterion_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_criterion_history')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_source_relation__criterion_id__ad_group_id__updated_at.8d37dd2fa0": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_source_relation__criterion_id__ad_group_id__updated_at", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_3cabc69e13347735158c8ff9e61f1ab0.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_source_relation__criterion_id__ad_group_id__updated_at.8d37dd2fa0", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_source_relation__criterion_id__ad_group_id__updated_at"], "alias": "dbt_utils_unique_combination_o_3cabc69e13347735158c8ff9e61f1ab0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3cabc69e13347735158c8ff9e61f1ab0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3cabc69e13347735158c8ff9e61f1ab0"}, "created_at": 1731951600.235759, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3cabc69e13347735158c8ff9e61f1ab0\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_criterion_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_3cabc69e13347735158c8ff9e61f1ab0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, criterion_id, ad_group_id, updated_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_criterion_history`\n group by source_relation, criterion_id, ad_group_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__ad_group_criterion_history", "attached_node": "model.google_ads_source.stg_google_ads__ad_group_criterion_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "criterion_id", "ad_group_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_criterion_history')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_google_ads__ad_group_stats_date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_group_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_stats_date_day"], "alias": "not_null_stg_google_ads__ad_group_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.2383602, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_group_stats_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_google_ads__ad_group_stats", "attached_node": "model.google_ads_source.stg_google_ads__ad_group_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_stats')) }}"}, "namespace": null}}, "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_google_ads__ad_group_stats_ad_group_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_group_stats_ad_group_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_stats_ad_group_id"], "alias": "not_null_stg_google_ads__ad_group_stats_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.239831, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_group_stats_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_stats`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_google_ads__ad_group_stats", "attached_node": "model.google_ads_source.stg_google_ads__ad_group_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_stats')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_source_relation__ad_group_id__device__ad_network_type__date_day.0755df524f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_source_relation__ad_group_id__device__ad_network_type__date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_154e1de1509cc30cc55df003541cbe50.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_source_relation__ad_group_id__device__ad_network_type__date_day.0755df524f", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_source_relation__ad_group_id__device__ad_network_type__date_day"], "alias": "dbt_utils_unique_combination_o_154e1de1509cc30cc55df003541cbe50", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_154e1de1509cc30cc55df003541cbe50", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_154e1de1509cc30cc55df003541cbe50"}, "created_at": 1731951600.24094, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_154e1de1509cc30cc55df003541cbe50\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_154e1de1509cc30cc55df003541cbe50.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, device, ad_network_type, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__ad_group_stats`\n group by source_relation, ad_group_id, device, ad_network_type, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__ad_group_stats", "attached_node": "model.google_ads_source.stg_google_ads__ad_group_stats", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "device", "ad_network_type", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_stats')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_google_ads__campaign_stats_date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__campaign_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b", "fqn": ["google_ads_source", "not_null_stg_google_ads__campaign_stats_date_day"], "alias": "not_null_stg_google_ads__campaign_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.24387, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__campaign_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__campaign_stats_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__campaign_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_google_ads__campaign_stats", "attached_node": "model.google_ads_source.stg_google_ads__campaign_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_stats')) }}"}, "namespace": null}}, "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_google_ads__campaign_stats_campaign_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__campaign_stats_campaign_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f", "fqn": ["google_ads_source", "not_null_stg_google_ads__campaign_stats_campaign_id"], "alias": "not_null_stg_google_ads__campaign_stats_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.244899, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__campaign_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__campaign_stats_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__campaign_stats`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_google_ads__campaign_stats", "attached_node": "model.google_ads_source.stg_google_ads__campaign_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_stats')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_source_relation__campaign_id__ad_network_type__device__date_day.fea3ecfe6f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_source_relation__campaign_id__ad_network_type__device__date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_dea1c7f4a7dede650459570868e49c91.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_source_relation__campaign_id__ad_network_type__device__date_day.fea3ecfe6f", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_source_relation__campaign_id__ad_network_type__device__date_day"], "alias": "dbt_utils_unique_combination_o_dea1c7f4a7dede650459570868e49c91", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dea1c7f4a7dede650459570868e49c91", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dea1c7f4a7dede650459570868e49c91"}, "created_at": 1731951600.246013, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dea1c7f4a7dede650459570868e49c91\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__campaign_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_dea1c7f4a7dede650459570868e49c91.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, ad_network_type, device, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__campaign_stats`\n group by source_relation, campaign_id, ad_network_type, device, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__campaign_stats", "attached_node": "model.google_ads_source.stg_google_ads__campaign_stats", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "ad_network_type", "device", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_stats')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_google_ads__keyword_stats_date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__keyword_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d", "fqn": ["google_ads_source", "not_null_stg_google_ads__keyword_stats_date_day"], "alias": "not_null_stg_google_ads__keyword_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.249163, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__keyword_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__keyword_stats_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__keyword_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_google_ads__keyword_stats", "attached_node": "model.google_ads_source.stg_google_ads__keyword_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__keyword_stats')) }}"}, "namespace": null}}, "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_google_ads__keyword_stats_keyword_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__keyword_stats_keyword_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0", "fqn": ["google_ads_source", "not_null_stg_google_ads__keyword_stats_keyword_id"], "alias": "not_null_stg_google_ads__keyword_stats_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.250856, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__keyword_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__keyword_stats_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__keyword_stats`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_google_ads__keyword_stats", "attached_node": "model.google_ads_source.stg_google_ads__keyword_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_google_ads__keyword_stats')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_source_relation__keyword_id__date_day.4ecf84a32f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_source_relation__keyword_id__date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_d8764204cb22c1955f2ac90f55ad2259.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_source_relation__keyword_id__date_day.4ecf84a32f", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_source_relation__keyword_id__date_day"], "alias": "dbt_utils_unique_combination_o_d8764204cb22c1955f2ac90f55ad2259", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d8764204cb22c1955f2ac90f55ad2259", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d8764204cb22c1955f2ac90f55ad2259"}, "created_at": 1731951600.2520478, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d8764204cb22c1955f2ac90f55ad2259\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__keyword_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_d8764204cb22c1955f2ac90f55ad2259.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, keyword_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__keyword_stats`\n group by source_relation, keyword_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__keyword_stats", "attached_node": "model.google_ads_source.stg_google_ads__keyword_stats", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__keyword_stats')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_google_ads__account_stats_account_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__account_stats_account_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b", "fqn": ["google_ads_source", "not_null_stg_google_ads__account_stats_account_id"], "alias": "not_null_stg_google_ads__account_stats_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.254823, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__account_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__account_stats_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_stats`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_google_ads__account_stats", "attached_node": "model.google_ads_source.stg_google_ads__account_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_google_ads__account_stats')) }}"}, "namespace": null}}, "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_google_ads__account_stats_date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__account_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5", "fqn": ["google_ads_source", "not_null_stg_google_ads__account_stats_date_day"], "alias": "not_null_stg_google_ads__account_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.25614, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__account_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__account_stats_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_google_ads__account_stats", "attached_node": "model.google_ads_source.stg_google_ads__account_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__account_stats')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_source_relation__account_id__device__ad_network_type__date_day.7d4d5e9ce2": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_source_relation__account_id__device__ad_network_type__date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_eac6a4b83a9b000b437d9f32d485821f.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_source_relation__account_id__device__ad_network_type__date_day.7d4d5e9ce2", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_source_relation__account_id__device__ad_network_type__date_day"], "alias": "dbt_utils_unique_combination_o_eac6a4b83a9b000b437d9f32d485821f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eac6a4b83a9b000b437d9f32d485821f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eac6a4b83a9b000b437d9f32d485821f"}, "created_at": 1731951600.257204, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eac6a4b83a9b000b437d9f32d485821f\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__account_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_eac6a4b83a9b000b437d9f32d485821f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, device, ad_network_type, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_google_ads__account_stats`\n group by source_relation, account_id, device, ad_network_type, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__account_stats", "attached_node": "model.google_ads_source.stg_google_ads__account_stats", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "device", "ad_network_type", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__account_stats')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_apple_search_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_group_report_ad_group_id"], "alias": "not_null_apple_search_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.2881, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.apple_search_ads__ad_group_report", "attached_node": "model.apple_search_ads.apple_search_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('apple_search_ads__ad_group_report')) }}"}, "namespace": null}}, "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_apple_search_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__ad_group_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_group_report_date_day"], "alias": "not_null_apple_search_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.2895, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.apple_search_ads__ad_group_report", "attached_node": "model.apple_search_ads.apple_search_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__ad_group_report')) }}"}, "namespace": null}}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_source_relation__organization_id__campaign_id__ad_group_id__date_day.3c4191e648": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_source_relation__organization_id__campaign_id__ad_group_id__date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_fe11289b4cac32289b2d28ca15016d26.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_source_relation__organization_id__campaign_id__ad_group_id__date_day.3c4191e648", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_source_relation__organization_id__campaign_id__ad_group_id__date_day"], "alias": "dbt_utils_unique_combination_o_fe11289b4cac32289b2d28ca15016d26", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fe11289b4cac32289b2d28ca15016d26", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fe11289b4cac32289b2d28ca15016d26"}, "created_at": 1731951600.290622, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fe11289b4cac32289b2d28ca15016d26\") }}", "language": "sql", "refs": [{"name": "apple_search_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_fe11289b4cac32289b2d28ca15016d26.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, campaign_id, ad_group_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__ad_group_report`\n group by source_relation, organization_id, campaign_id, ad_group_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.apple_search_ads__ad_group_report", "attached_node": "model.apple_search_ads.apple_search_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "campaign_id", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_apple_search_ads__ad_report_ad_id", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__ad_report_ad_id.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_report_ad_id"], "alias": "not_null_apple_search_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.2940202, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.apple_search_ads__ad_report", "attached_node": "model.apple_search_ads.apple_search_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('apple_search_ads__ad_report')) }}"}, "namespace": null}}, "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_apple_search_ads__ad_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__ad_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_report_date_day"], "alias": "not_null_apple_search_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.295163, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.apple_search_ads__ad_report", "attached_node": "model.apple_search_ads.apple_search_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__ad_report')) }}"}, "namespace": null}}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_source_relation__organization_id__campaign_id__ad_group_id__ad_id__date_day.6d5d406b55": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_source_relation__organization_id__campaign_id__ad_group_id__ad_id__date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_fa4548ed540d1314d883cc2e8fe04520.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_source_relation__organization_id__campaign_id__ad_group_id__ad_id__date_day.6d5d406b55", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_source_relation__organization_id__campaign_id__ad_group_id__ad_id__date_day"], "alias": "dbt_utils_unique_combination_o_fa4548ed540d1314d883cc2e8fe04520", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fa4548ed540d1314d883cc2e8fe04520", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fa4548ed540d1314d883cc2e8fe04520"}, "created_at": 1731951600.296326, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fa4548ed540d1314d883cc2e8fe04520\") }}", "language": "sql", "refs": [{"name": "apple_search_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_fa4548ed540d1314d883cc2e8fe04520.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, campaign_id, ad_group_id, ad_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__ad_report`\n group by source_relation, organization_id, campaign_id, ad_group_id, ad_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.apple_search_ads__ad_report", "attached_node": "model.apple_search_ads.apple_search_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "campaign_id", "ad_group_id", "ad_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_apple_search_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__campaign_report_campaign_id.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146", "fqn": ["apple_search_ads", "not_null_apple_search_ads__campaign_report_campaign_id"], "alias": "not_null_apple_search_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.299669, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.apple_search_ads__campaign_report", "attached_node": "model.apple_search_ads.apple_search_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('apple_search_ads__campaign_report')) }}"}, "namespace": null}}, "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_apple_search_ads__campaign_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__campaign_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a", "fqn": ["apple_search_ads", "not_null_apple_search_ads__campaign_report_date_day"], "alias": "not_null_apple_search_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.300695, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.apple_search_ads__campaign_report", "attached_node": "model.apple_search_ads.apple_search_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__campaign_report')) }}"}, "namespace": null}}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_source_relation__organization_id__campaign_id__date_day.0fdb29354b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_source_relation__organization_id__campaign_id__date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_334b4826674b5328c712537f8d4860c4.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_source_relation__organization_id__campaign_id__date_day.0fdb29354b", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_source_relation__organization_id__campaign_id__date_day"], "alias": "dbt_utils_unique_combination_o_334b4826674b5328c712537f8d4860c4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_334b4826674b5328c712537f8d4860c4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_334b4826674b5328c712537f8d4860c4"}, "created_at": 1731951600.3017, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_334b4826674b5328c712537f8d4860c4\") }}", "language": "sql", "refs": [{"name": "apple_search_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_334b4826674b5328c712537f8d4860c4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, campaign_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__campaign_report`\n group by source_relation, organization_id, campaign_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.apple_search_ads__campaign_report", "attached_node": "model.apple_search_ads.apple_search_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_apple_search_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__keyword_report_keyword_id.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db", "fqn": ["apple_search_ads", "not_null_apple_search_ads__keyword_report_keyword_id"], "alias": "not_null_apple_search_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.304548, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.apple_search_ads__keyword_report", "attached_node": "model.apple_search_ads.apple_search_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('apple_search_ads__keyword_report')) }}"}, "namespace": null}}, "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_apple_search_ads__keyword_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__keyword_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82", "fqn": ["apple_search_ads", "not_null_apple_search_ads__keyword_report_date_day"], "alias": "not_null_apple_search_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.306038, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__keyword_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__keyword_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.apple_search_ads__keyword_report", "attached_node": "model.apple_search_ads.apple_search_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__keyword_report')) }}"}, "namespace": null}}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_source_relation__organization_id__campaign_id__ad_group_id__keyword_id__date_day.974556d271": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_source_relation__organization_id__campaign_id__ad_group_id__keyword_id__date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_5c7418df5951e28b87067eef47e194a4.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_source_relation__organization_id__campaign_id__ad_group_id__keyword_id__date_day.974556d271", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_source_relation__organization_id__campaign_id__ad_group_id__keyword_id__date_day"], "alias": "dbt_utils_unique_combination_o_5c7418df5951e28b87067eef47e194a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5c7418df5951e28b87067eef47e194a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5c7418df5951e28b87067eef47e194a4"}, "created_at": 1731951600.307189, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5c7418df5951e28b87067eef47e194a4\") }}", "language": "sql", "refs": [{"name": "apple_search_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_5c7418df5951e28b87067eef47e194a4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, campaign_id, ad_group_id, keyword_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__keyword_report`\n group by source_relation, organization_id, campaign_id, ad_group_id, keyword_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.apple_search_ads__keyword_report", "attached_node": "model.apple_search_ads.apple_search_ads__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "campaign_id", "ad_group_id", "keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_apple_search_ads__organization_report_organization_id", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__organization_report_organization_id.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8", "fqn": ["apple_search_ads", "not_null_apple_search_ads__organization_report_organization_id"], "alias": "not_null_apple_search_ads__organization_report_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.3097441, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__organization_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__organization_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__organization_report_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__organization_report`\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.apple_search_ads__organization_report", "attached_node": "model.apple_search_ads.apple_search_ads__organization_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('apple_search_ads__organization_report')) }}"}, "namespace": null}}, "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_apple_search_ads__organization_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__organization_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523", "fqn": ["apple_search_ads", "not_null_apple_search_ads__organization_report_date_day"], "alias": "not_null_apple_search_ads__organization_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.310733, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__organization_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__organization_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__organization_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__organization_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.apple_search_ads__organization_report", "attached_node": "model.apple_search_ads.apple_search_ads__organization_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__organization_report')) }}"}, "namespace": null}}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_source_relation__organization_id__date_day.8a9d834203": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_source_relation__organization_id__date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_c9d3d0a890cfbe0e23588c177a8f9147.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_source_relation__organization_id__date_day.8a9d834203", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_source_relation__organization_id__date_day"], "alias": "dbt_utils_unique_combination_o_c9d3d0a890cfbe0e23588c177a8f9147", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c9d3d0a890cfbe0e23588c177a8f9147", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c9d3d0a890cfbe0e23588c177a8f9147"}, "created_at": 1731951600.311795, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c9d3d0a890cfbe0e23588c177a8f9147\") }}", "language": "sql", "refs": [{"name": "apple_search_ads__organization_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__organization_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_c9d3d0a890cfbe0e23588c177a8f9147.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__organization_report`\n group by source_relation, organization_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.apple_search_ads__organization_report", "attached_node": "model.apple_search_ads.apple_search_ads__organization_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__organization_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_apple_search_ads__search_term_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__search_term_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c", "fqn": ["apple_search_ads", "not_null_apple_search_ads__search_term_report_date_day"], "alias": "not_null_apple_search_ads__search_term_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.3141649, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__search_term_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__search_term_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__search_term_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.apple_search_ads__search_term_report", "attached_node": "model.apple_search_ads.apple_search_ads__search_term_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__search_term_report')) }}"}, "namespace": null}}, "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_apple_search_ads__search_term_report_search_term_text", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__search_term_report_search_term_text.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7", "fqn": ["apple_search_ads", "not_null_apple_search_ads__search_term_report_search_term_text"], "alias": "not_null_apple_search_ads__search_term_report_search_term_text", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.315347, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__search_term_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__search_term_report_search_term_text.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_term_text\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__search_term_report`\nwhere search_term_text is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "search_term_text", "file_key_name": "models.apple_search_ads__search_term_report", "attached_node": "model.apple_search_ads.apple_search_ads__search_term_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_term_text", "model": "{{ get_where_subquery(ref('apple_search_ads__search_term_report')) }}"}, "namespace": null}}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_source_relation__search_term_text__match_type__date_day__keyword_id__ad_group_id__campaign_id__organization_id.82f7464f67": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_source_relation__search_term_text__match_type__date_day__keyword_id__ad_group_id__campaign_id__organization_id", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_d03054394a6ffc127373b3cdc6b831d6.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_source_relation__search_term_text__match_type__date_day__keyword_id__ad_group_id__campaign_id__organization_id.82f7464f67", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_source_relation__search_term_text__match_type__date_day__keyword_id__ad_group_id__campaign_id__organization_id"], "alias": "dbt_utils_unique_combination_o_d03054394a6ffc127373b3cdc6b831d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d03054394a6ffc127373b3cdc6b831d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d03054394a6ffc127373b3cdc6b831d6"}, "created_at": 1731951600.316394, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d03054394a6ffc127373b3cdc6b831d6\") }}", "language": "sql", "refs": [{"name": "apple_search_ads__search_term_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_d03054394a6ffc127373b3cdc6b831d6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, search_term_text, match_type, date_day, keyword_id, ad_group_id, campaign_id, organization_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`apple_search_ads__search_term_report`\n group by source_relation, search_term_text, match_type, date_day, keyword_id, ad_group_id, campaign_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.apple_search_ads__search_term_report", "attached_node": "model.apple_search_ads.apple_search_ads__search_term_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "search_term_text", "match_type", "date_day", "keyword_id", "ad_group_id", "campaign_id", "organization_id"], "model": "{{ get_where_subquery(ref('apple_search_ads__search_term_report')) }}"}, "namespace": "dbt_utils"}}, "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_ad_reporting__account_report_account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__account_report_account_id.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022", "fqn": ["ad_reporting", "not_null_ad_reporting__account_report_account_id"], "alias": "not_null_ad_reporting__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "WARN", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "WARN"}, "created_at": 1731951600.347218, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\") }}", "language": "sql", "refs": [{"name": "ad_reporting__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__account_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.ad_reporting__account_report", "attached_node": "model.ad_reporting.ad_reporting__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('ad_reporting__account_report')) }}"}, "namespace": null}}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_source_relation__platform__date_day__account_id.4cb64b5631": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__account_report_source_relation__platform__date_day__account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_137fe22ab042d858489ea7f3610c5581.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_source_relation__platform__date_day__account_id.4cb64b5631", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__account_report_source_relation__platform__date_day__account_id"], "alias": "dbt_utils_unique_combination_o_137fe22ab042d858489ea7f3610c5581", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_137fe22ab042d858489ea7f3610c5581", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_137fe22ab042d858489ea7f3610c5581"}, "created_at": 1731951600.348481, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_137fe22ab042d858489ea7f3610c5581\") }}", "language": "sql", "refs": [{"name": "ad_reporting__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__account_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_137fe22ab042d858489ea7f3610c5581.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, platform, date_day, account_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__account_report`\n group by source_relation, platform, date_day, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.ad_reporting__account_report", "attached_node": "model.ad_reporting.ad_reporting__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "platform", "date_day", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_ad_reporting__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__ad_group_report_ad_group_id.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842", "fqn": ["ad_reporting", "not_null_ad_reporting__ad_group_report_ad_group_id"], "alias": "not_null_ad_reporting__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.3510652, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "ad_reporting__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_group_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.ad_reporting__ad_group_report", "attached_node": "model.ad_reporting.ad_reporting__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('ad_reporting__ad_group_report')) }}"}, "namespace": null}}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id.629300a679": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_03c850f1086750c5dae5d8942fc2ff12.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id.629300a679", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id"], "alias": "dbt_utils_unique_combination_o_03c850f1086750c5dae5d8942fc2ff12", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_03c850f1086750c5dae5d8942fc2ff12", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_03c850f1086750c5dae5d8942fc2ff12"}, "created_at": 1731951600.3521678, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_03c850f1086750c5dae5d8942fc2ff12\") }}", "language": "sql", "refs": [{"name": "ad_reporting__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_group_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_03c850f1086750c5dae5d8942fc2ff12.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, platform, date_day, ad_group_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__ad_group_report`\n group by source_relation, platform, date_day, ad_group_id, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.ad_reporting__ad_group_report", "attached_node": "model.ad_reporting.ad_reporting__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "platform", "date_day", "ad_group_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_ad_reporting__ad_report_ad_id", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__ad_report_ad_id.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152", "fqn": ["ad_reporting", "not_null_ad_reporting__ad_report_ad_id"], "alias": "not_null_ad_reporting__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.35456, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "ad_reporting__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.ad_reporting__ad_report", "attached_node": "model.ad_reporting.ad_reporting__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('ad_reporting__ad_report')) }}"}, "namespace": null}}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_source_relation__platform__date_day__ad_id__ad_group_id__campaign_id__account_id.2e26485f58": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_source_relation__platform__date_day__ad_id__ad_group_id__campaign_id__account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_2c5307aa3633e863dfc695574d4d9c18.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_source_relation__platform__date_day__ad_id__ad_group_id__campaign_id__account_id.2e26485f58", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_source_relation__platform__date_day__ad_id__ad_group_id__campaign_id__account_id"], "alias": "dbt_utils_unique_combination_o_2c5307aa3633e863dfc695574d4d9c18", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c5307aa3633e863dfc695574d4d9c18", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c5307aa3633e863dfc695574d4d9c18"}, "created_at": 1731951600.356162, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c5307aa3633e863dfc695574d4d9c18\") }}", "language": "sql", "refs": [{"name": "ad_reporting__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_2c5307aa3633e863dfc695574d4d9c18.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, platform, date_day, ad_id, ad_group_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__ad_report`\n group by source_relation, platform, date_day, ad_id, ad_group_id, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.ad_reporting__ad_report", "attached_node": "model.ad_reporting.ad_reporting__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "platform", "date_day", "ad_id", "ad_group_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_ad_reporting__campaign_report_campaign_id", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__campaign_report_campaign_id.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b", "fqn": ["ad_reporting", "not_null_ad_reporting__campaign_report_campaign_id"], "alias": "not_null_ad_reporting__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.359073, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "ad_reporting__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__campaign_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.ad_reporting__campaign_report", "attached_node": "model.ad_reporting.ad_reporting__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('ad_reporting__campaign_report')) }}"}, "namespace": null}}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_source_relation__platform__date_day__campaign_id__account_id.0cad44418b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_source_relation__platform__date_day__campaign_id__account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_fd9fb8e6caf04131c36f258d26401bb5.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_source_relation__platform__date_day__campaign_id__account_id.0cad44418b", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_source_relation__platform__date_day__campaign_id__account_id"], "alias": "dbt_utils_unique_combination_o_fd9fb8e6caf04131c36f258d26401bb5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd9fb8e6caf04131c36f258d26401bb5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd9fb8e6caf04131c36f258d26401bb5"}, "created_at": 1731951600.360209, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd9fb8e6caf04131c36f258d26401bb5\") }}", "language": "sql", "refs": [{"name": "ad_reporting__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__campaign_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_fd9fb8e6caf04131c36f258d26401bb5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, platform, date_day, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__campaign_report`\n group by source_relation, platform, date_day, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.ad_reporting__campaign_report", "attached_node": "model.ad_reporting.ad_reporting__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "platform", "date_day", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_ad_reporting__keyword_report_keyword_id", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__keyword_report_keyword_id.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334", "fqn": ["ad_reporting", "not_null_ad_reporting__keyword_report_keyword_id"], "alias": "not_null_ad_reporting__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.36263, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "ad_reporting__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__keyword_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.ad_reporting__keyword_report", "attached_node": "model.ad_reporting.ad_reporting__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('ad_reporting__keyword_report')) }}"}, "namespace": null}}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_source_relation__platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id.62e073f236": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_source_relation__platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_166d6a59c9a78ecdc683ed7e8b476cb6.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_source_relation__platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id.62e073f236", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_source_relation__platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id"], "alias": "dbt_utils_unique_combination_o_166d6a59c9a78ecdc683ed7e8b476cb6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_166d6a59c9a78ecdc683ed7e8b476cb6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_166d6a59c9a78ecdc683ed7e8b476cb6"}, "created_at": 1731951600.3637261, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_166d6a59c9a78ecdc683ed7e8b476cb6\") }}", "language": "sql", "refs": [{"name": "ad_reporting__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__keyword_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_166d6a59c9a78ecdc683ed7e8b476cb6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, platform, date_day, keyword_id, keyword_match_type, ad_group_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__keyword_report`\n group by source_relation, platform, date_day, keyword_id, keyword_match_type, ad_group_id, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.ad_reporting__keyword_report", "attached_node": "model.ad_reporting.ad_reporting__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "platform", "date_day", "keyword_id", "keyword_match_type", "ad_group_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_ad_reporting__search_report_search_query", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__search_report_search_query.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb", "fqn": ["ad_reporting", "not_null_ad_reporting__search_report_search_query"], "alias": "not_null_ad_reporting__search_report_search_query", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.366557, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "ad_reporting__search_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__search_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__search_report_search_query.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__search_report`\nwhere search_query is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "search_query", "file_key_name": "models.ad_reporting__search_report", "attached_node": "model.ad_reporting.ad_reporting__search_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_query", "model": "{{ get_where_subquery(ref('ad_reporting__search_report')) }}"}, "namespace": null}}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__search_report_source_relation__platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.ee233ddb9e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__search_report_source_relation__platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_bb96ab2a60f00da0e77e4f2773a83450.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__search_report_source_relation__platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.ee233ddb9e", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__search_report_source_relation__platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id"], "alias": "dbt_utils_unique_combination_o_bb96ab2a60f00da0e77e4f2773a83450", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bb96ab2a60f00da0e77e4f2773a83450", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bb96ab2a60f00da0e77e4f2773a83450"}, "created_at": 1731951600.367938, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bb96ab2a60f00da0e77e4f2773a83450\") }}", "language": "sql", "refs": [{"name": "ad_reporting__search_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__search_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_bb96ab2a60f00da0e77e4f2773a83450.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, platform, date_day, search_query, search_match_type, keyword_id, ad_group_id, campaign_id, account_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__search_report`\n group by source_relation, platform, date_day, search_query, search_match_type, keyword_id, ad_group_id, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.ad_reporting__search_report", "attached_node": "model.ad_reporting.ad_reporting__search_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "platform", "date_day", "search_query", "search_match_type", "keyword_id", "ad_group_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__search_report')) }}"}, "namespace": "dbt_utils"}}, "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_ad_reporting__url_report_base_url", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__url_report_base_url.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6", "fqn": ["ad_reporting", "not_null_ad_reporting__url_report_base_url"], "alias": "not_null_ad_reporting__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1731951600.3713899, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "ad_reporting__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__url_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "base_url", "file_key_name": "models.ad_reporting__url_report", "attached_node": "model.ad_reporting.ad_reporting__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('ad_reporting__url_report')) }}"}, "namespace": null}}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__url_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id__base_url__url_host__url_path__utm_campaign__utm_content__utm_medium__utm_source__utm_term.2e59004ca0": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__url_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id__base_url__url_host__url_path__utm_campaign__utm_content__utm_medium__utm_source__utm_term", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_4202d9f47b7d6f35c406d5002264f569.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__url_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id__base_url__url_host__url_path__utm_campaign__utm_content__utm_medium__utm_source__utm_term.2e59004ca0", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__url_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id__base_url__url_host__url_path__utm_campaign__utm_content__utm_medium__utm_source__utm_term"], "alias": "dbt_utils_unique_combination_o_4202d9f47b7d6f35c406d5002264f569", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4202d9f47b7d6f35c406d5002264f569", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4202d9f47b7d6f35c406d5002264f569"}, "created_at": 1731951600.3731751, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_4202d9f47b7d6f35c406d5002264f569\") }}", "language": "sql", "refs": [{"name": "ad_reporting__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__url_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_4202d9f47b7d6f35c406d5002264f569.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, platform, date_day, ad_group_id, campaign_id, account_id, base_url, url_host, url_path, utm_campaign, utm_content, utm_medium, utm_source, utm_term\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__url_report`\n group by source_relation, platform, date_day, ad_group_id, campaign_id, account_id, base_url, url_host, url_path, utm_campaign, utm_content, utm_medium, utm_source, utm_term\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.ad_reporting__url_report", "attached_node": "model.ad_reporting.ad_reporting__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "platform", "date_day", "ad_group_id", "campaign_id", "account_id", "base_url", "url_host", "url_path", "utm_campaign", "utm_content", "utm_medium", "utm_source", "utm_term"], "model": "{{ get_where_subquery(ref('ad_reporting__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_modified_at.e5d65fa28f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_group_history_modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_group_history_modified_at.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_modified_at.e5d65fa28f", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_history_modified_at"], "alias": "not_null_stg_apple_search_ads__ad_group_history_modified_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.565284, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_group_history_modified_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_group_history`\nwhere modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "modified_at", "file_key_name": "models.stg_apple_search_ads__ad_group_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "modified_at", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_history')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_ad_group_id.dc128eecb7": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_ad_group_id.dc128eecb7", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_apple_search_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.5664, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_apple_search_ads__ad_group_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_history')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_source_relation__ad_group_id__modified_at.a6db663569": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_source_relation__ad_group_id__modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_74e5a6715aab20b81bd051912f24e308.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_source_relation__ad_group_id__modified_at.a6db663569", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_source_relation__ad_group_id__modified_at"], "alias": "dbt_utils_unique_combination_o_74e5a6715aab20b81bd051912f24e308", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_74e5a6715aab20b81bd051912f24e308", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_74e5a6715aab20b81bd051912f24e308"}, "created_at": 1731951600.567434, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_74e5a6715aab20b81bd051912f24e308\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_74e5a6715aab20b81bd051912f24e308.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, modified_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_group_history`\n group by source_relation, ad_group_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__ad_group_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_ad_group_id.a115f9cfc1": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_ad_group_id.a115f9cfc1", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_report_ad_group_id"], "alias": "not_null_stg_apple_search_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.5705202, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_apple_search_ads__ad_group_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_date_day.4dfd46a43b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_group_report_date_day.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_date_day.4dfd46a43b", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_report_date_day"], "alias": "not_null_stg_apple_search_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.571637, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_apple_search_ads__ad_group_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_source_relation__ad_group_id__date_day.dc4ccb902d": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_source_relation__ad_group_id__date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_fcbe3d8b4cacd6c4f523174599ba57cb.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_source_relation__ad_group_id__date_day.dc4ccb902d", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_source_relation__ad_group_id__date_day"], "alias": "dbt_utils_unique_combination_o_fcbe3d8b4cacd6c4f523174599ba57cb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fcbe3d8b4cacd6c4f523174599ba57cb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fcbe3d8b4cacd6c4f523174599ba57cb"}, "created_at": 1731951600.572667, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fcbe3d8b4cacd6c4f523174599ba57cb\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_fcbe3d8b4cacd6c4f523174599ba57cb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_group_report`\n group by source_relation, ad_group_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__ad_group_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_history_modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_history_modified_at.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_history_modified_at"], "alias": "not_null_stg_apple_search_ads__ad_history_modified_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.5757241, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_history_modified_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_history`\nwhere modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "modified_at", "file_key_name": "models.stg_apple_search_ads__ad_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "modified_at", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_history')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_history_ad_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_history_ad_id"], "alias": "not_null_stg_apple_search_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.577003, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_apple_search_ads__ad_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_history')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_source_relation__ad_id__modified_at.45dfca7ca5": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_source_relation__ad_id__modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_ddcba6ed1b0ac1314f13f3415296d795.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_source_relation__ad_id__modified_at.45dfca7ca5", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_source_relation__ad_id__modified_at"], "alias": "dbt_utils_unique_combination_o_ddcba6ed1b0ac1314f13f3415296d795", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ddcba6ed1b0ac1314f13f3415296d795", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ddcba6ed1b0ac1314f13f3415296d795"}, "created_at": 1731951600.578779, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ddcba6ed1b0ac1314f13f3415296d795\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_ddcba6ed1b0ac1314f13f3415296d795.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, modified_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_history`\n group by source_relation, ad_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__ad_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_history')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_report_date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_report_date_day.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_report_date_day"], "alias": "not_null_stg_apple_search_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.581868, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_apple_search_ads__ad_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_group_id.a397755e9f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_report_ad_group_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_report_ad_group_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_group_id.a397755e9f", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_report_ad_group_id"], "alias": "not_null_stg_apple_search_ads__ad_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.583227, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_apple_search_ads__ad_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_report_ad_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_report_ad_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_report_ad_id"], "alias": "not_null_stg_apple_search_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.584267, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_apple_search_ads__ad_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_source_relation__ad_id__date_day__ad_group_id.f9bc5ff292": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_source_relation__ad_id__date_day__ad_group_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_ab09cea2dc8dde206ebbe853dddedb38.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_source_relation__ad_id__date_day__ad_group_id.f9bc5ff292", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_source_relation__ad_id__date_day__ad_group_id"], "alias": "dbt_utils_unique_combination_o_ab09cea2dc8dde206ebbe853dddedb38", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ab09cea2dc8dde206ebbe853dddedb38", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ab09cea2dc8dde206ebbe853dddedb38"}, "created_at": 1731951600.5853162, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ab09cea2dc8dde206ebbe853dddedb38\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_ab09cea2dc8dde206ebbe853dddedb38.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, date_day, ad_group_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__ad_report`\n group by source_relation, ad_id, date_day, ad_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__ad_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "date_day", "ad_group_id"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__campaign_history_modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__campaign_history_modified_at.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_history_modified_at"], "alias": "not_null_stg_apple_search_ads__campaign_history_modified_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.589046, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__campaign_history_modified_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_history`\nwhere modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "modified_at", "file_key_name": "models.stg_apple_search_ads__campaign_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "modified_at", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_history')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_history_campaign_id"], "alias": "not_null_stg_apple_search_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.590066, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_apple_search_ads__campaign_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_history')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_source_relation__campaign_id__modified_at.2e9f11582c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_source_relation__campaign_id__modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_23b86817399c19af07a85c4b6420cd02.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_source_relation__campaign_id__modified_at.2e9f11582c", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_source_relation__campaign_id__modified_at"], "alias": "dbt_utils_unique_combination_o_23b86817399c19af07a85c4b6420cd02", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_23b86817399c19af07a85c4b6420cd02", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_23b86817399c19af07a85c4b6420cd02"}, "created_at": 1731951600.591403, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_23b86817399c19af07a85c4b6420cd02\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_23b86817399c19af07a85c4b6420cd02.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, modified_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_history`\n group by source_relation, campaign_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__campaign_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__campaign_report_campaign_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_report_campaign_id"], "alias": "not_null_stg_apple_search_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.5944982, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_apple_search_ads__campaign_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__campaign_report_date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__campaign_report_date_day.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_report_date_day"], "alias": "not_null_stg_apple_search_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.595497, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_apple_search_ads__campaign_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_source_relation__campaign_id__date_day.87b6206f82": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_source_relation__campaign_id__date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_c61be8a238aa97b4fed812e9eed3ddec.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_source_relation__campaign_id__date_day.87b6206f82", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_source_relation__campaign_id__date_day"], "alias": "dbt_utils_unique_combination_o_c61be8a238aa97b4fed812e9eed3ddec", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c61be8a238aa97b4fed812e9eed3ddec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c61be8a238aa97b4fed812e9eed3ddec"}, "created_at": 1731951600.5964959, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c61be8a238aa97b4fed812e9eed3ddec\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_c61be8a238aa97b4fed812e9eed3ddec.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__campaign_report`\n group by source_relation, campaign_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__campaign_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__keyword_history_modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__keyword_history_modified_at.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_history_modified_at"], "alias": "not_null_stg_apple_search_ads__keyword_history_modified_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.5991511, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__keyword_history_modified_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__keyword_history`\nwhere modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "modified_at", "file_key_name": "models.stg_apple_search_ads__keyword_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "modified_at", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_history')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__keyword_history_keyword_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__keyword_history_keyword_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_history_keyword_id"], "alias": "not_null_stg_apple_search_ads__keyword_history_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.6001549, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__keyword_history_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__keyword_history`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_apple_search_ads__keyword_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_history')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_source_relation__keyword_id__modified_at.635c0ce086": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_source_relation__keyword_id__modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_f4f3bfccbc0efa873abce337f3b30531.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_source_relation__keyword_id__modified_at.635c0ce086", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_source_relation__keyword_id__modified_at"], "alias": "dbt_utils_unique_combination_o_f4f3bfccbc0efa873abce337f3b30531", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f4f3bfccbc0efa873abce337f3b30531", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f4f3bfccbc0efa873abce337f3b30531"}, "created_at": 1731951600.6016839, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f4f3bfccbc0efa873abce337f3b30531\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_f4f3bfccbc0efa873abce337f3b30531.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, keyword_id, modified_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__keyword_history`\n group by source_relation, keyword_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__keyword_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "keyword_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_history')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__keyword_report_keyword_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_report_keyword_id"], "alias": "not_null_stg_apple_search_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.6044831, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_apple_search_ads__keyword_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__keyword_report_date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__keyword_report_date_day.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_report_date_day"], "alias": "not_null_stg_apple_search_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.605566, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__keyword_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__keyword_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_apple_search_ads__keyword_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_source_relation__keyword_id__date_day.855ae5524a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_source_relation__keyword_id__date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_f0fd683a5364df85c7c654d28d470629.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_source_relation__keyword_id__date_day.855ae5524a", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_source_relation__keyword_id__date_day"], "alias": "dbt_utils_unique_combination_o_f0fd683a5364df85c7c654d28d470629", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f0fd683a5364df85c7c654d28d470629", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f0fd683a5364df85c7c654d28d470629"}, "created_at": 1731951600.606816, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f0fd683a5364df85c7c654d28d470629\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_f0fd683a5364df85c7c654d28d470629.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, keyword_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__keyword_report`\n group by source_relation, keyword_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__keyword_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__organization_organization_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__organization_organization_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__organization_organization_id"], "alias": "not_null_stg_apple_search_ads__organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.609405, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__organization`\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_apple_search_ads__organization", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__organization", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__organization')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_source_relation__organization_id.b5c488cb77": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_source_relation__organization_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_e417edcd48d4e118b7866ca779534b99.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_source_relation__organization_id.b5c488cb77", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_source_relation__organization_id"], "alias": "dbt_utils_unique_combination_o_e417edcd48d4e118b7866ca779534b99", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e417edcd48d4e118b7866ca779534b99", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e417edcd48d4e118b7866ca779534b99"}, "created_at": 1731951600.610523, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e417edcd48d4e118b7866ca779534b99\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_e417edcd48d4e118b7866ca779534b99.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__organization`\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__organization", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__organization", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__organization')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report__fivetran_id.aa430d1dad": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__search_term_report__fivetran_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__search_term_report__fivetran_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report__fivetran_id.aa430d1dad", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__search_term_report__fivetran_id"], "alias": "not_null_stg_apple_search_ads__search_term_report__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.613291, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__search_term_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__search_term_report__fivetran_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__search_term_report`\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_id", "file_key_name": "models.stg_apple_search_ads__search_term_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__search_term_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report_date_day.fd93df3302": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_apple_search_ads__search_term_report_date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__search_term_report_date_day.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report_date_day.fd93df3302", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__search_term_report_date_day"], "alias": "not_null_stg_apple_search_ads__search_term_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.614604, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__search_term_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__search_term_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__search_term_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_apple_search_ads__search_term_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__search_term_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report_source_relation___fivetran_id__date_day.ef07562d98": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report_source_relation___fivetran_id__date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_578f6e896b4c5e5899ae63410bd5d78f.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report_source_relation___fivetran_id__date_day.ef07562d98", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report_source_relation___fivetran_id__date_day"], "alias": "dbt_utils_unique_combination_o_578f6e896b4c5e5899ae63410bd5d78f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_578f6e896b4c5e5899ae63410bd5d78f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_578f6e896b4c5e5899ae63410bd5d78f"}, "created_at": 1731951600.615702, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_578f6e896b4c5e5899ae63410bd5d78f\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__search_term_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_578f6e896b4c5e5899ae63410bd5d78f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, _fivetran_id, date_day\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_apple_search_ads__search_term_report`\n group by source_relation, _fivetran_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__search_term_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "_fivetran_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__search_term_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_pinterest_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_pinterest_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.641174, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_pinterest_ads__ad_group_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__ad_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_history')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_source_relation__ad_group_id___fivetran_synced.ef2b22b2ca": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_source_relation__ad_group_id___fivetran_synced", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_134e768b136a5eef8552f78c59128a49.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_source_relation__ad_group_id___fivetran_synced.ef2b22b2ca", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_source_relation__ad_group_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_134e768b136a5eef8552f78c59128a49", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_134e768b136a5eef8552f78c59128a49", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_134e768b136a5eef8552f78c59128a49"}, "created_at": 1731951600.6428008, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_134e768b136a5eef8552f78c59128a49\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_134e768b136a5eef8552f78c59128a49.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__ad_group_history`\n group by source_relation, ad_group_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__ad_group_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__ad_group_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_pinterest_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__campaign_history_campaign_id"], "alias": "not_null_stg_pinterest_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.646241, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_pinterest_ads__campaign_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_history')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_source_relation__campaign_id___fivetran_synced.84df0386bc": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_source_relation__campaign_id___fivetran_synced", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_74030546c699ecf7612473df072dbafa.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_source_relation__campaign_id___fivetran_synced.84df0386bc", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_source_relation__campaign_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_74030546c699ecf7612473df072dbafa", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_74030546c699ecf7612473df072dbafa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_74030546c699ecf7612473df072dbafa"}, "created_at": 1731951600.64731, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_74030546c699ecf7612473df072dbafa\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_74030546c699ecf7612473df072dbafa.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__campaign_history`\n group by source_relation, campaign_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__campaign_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id"], "alias": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f"}, "created_at": 1731951600.649952, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__pin_promotion_history`\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "pin_promotion_id", "file_key_name": "models.stg_pinterest_ads__pin_promotion_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "pin_promotion_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_history')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history_source_relation___fivetran_synced__pin_promotion_id.8064d48c11": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history_source_relation___fivetran_synced__pin_promotion_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_cace7040b0d01671fe884710a1b1cd3d.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history_source_relation___fivetran_synced__pin_promotion_id.8064d48c11", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history_source_relation___fivetran_synced__pin_promotion_id"], "alias": "dbt_utils_unique_combination_o_cace7040b0d01671fe884710a1b1cd3d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cace7040b0d01671fe884710a1b1cd3d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cace7040b0d01671fe884710a1b1cd3d"}, "created_at": 1731951600.6509519, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cace7040b0d01671fe884710a1b1cd3d\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_cace7040b0d01671fe884710a1b1cd3d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, _fivetran_synced, pin_promotion_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__pin_promotion_history`\n group by source_relation, _fivetran_synced, pin_promotion_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__pin_promotion_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "_fivetran_synced", "pin_promotion_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_history')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_pinterest_ads__pin_promotion_report_date_day", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__pin_promotion_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__pin_promotion_report_date_day"], "alias": "not_null_stg_pinterest_ads__pin_promotion_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.654151, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__pin_promotion_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__pin_promotion_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__pin_promotion_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_report')) }}"}, "namespace": null}}, "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id"], "alias": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b"}, "created_at": 1731951600.655176, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__pin_promotion_report`\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "pin_promotion_id", "file_key_name": "models.stg_pinterest_ads__pin_promotion_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "pin_promotion_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_report')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_source_relation__date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.8b358e3946": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_source_relation__date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_24441f3e985691349a9102c867f91fb3.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_source_relation__date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.8b358e3946", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_source_relation__date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id"], "alias": "dbt_utils_unique_combination_o_24441f3e985691349a9102c867f91fb3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_24441f3e985691349a9102c867f91fb3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_24441f3e985691349a9102c867f91fb3"}, "created_at": 1731951600.6567261, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_24441f3e985691349a9102c867f91fb3\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_24441f3e985691349a9102c867f91fb3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, pin_promotion_id, ad_group_id, campaign_id, advertiser_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__pin_promotion_report`\n group by source_relation, date_day, pin_promotion_id, ad_group_id, campaign_id, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__pin_promotion_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "pin_promotion_id", "ad_group_id", "campaign_id", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_pinterest_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__ad_group_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__ad_group_report_date_day"], "alias": "not_null_stg_pinterest_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.6594071, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__ad_group_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_report')) }}"}, "namespace": null}}, "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_pinterest_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__ad_group_report_ad_group_id"], "alias": "not_null_stg_pinterest_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.6604831, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_pinterest_ads__ad_group_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_report')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_source_relation__date_day__ad_group_id__campaign_id__advertiser_id.83246fd43c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_source_relation__date_day__ad_group_id__campaign_id__advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_0c6a5b7b08888471787b052067371a36.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_source_relation__date_day__ad_group_id__campaign_id__advertiser_id.83246fd43c", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_source_relation__date_day__ad_group_id__campaign_id__advertiser_id"], "alias": "dbt_utils_unique_combination_o_0c6a5b7b08888471787b052067371a36", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0c6a5b7b08888471787b052067371a36", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0c6a5b7b08888471787b052067371a36"}, "created_at": 1731951600.661485, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0c6a5b7b08888471787b052067371a36\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_0c6a5b7b08888471787b052067371a36.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, ad_group_id, campaign_id, advertiser_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__ad_group_report`\n group by source_relation, date_day, ad_group_id, campaign_id, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__ad_group_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "ad_group_id", "campaign_id", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_pinterest_ads__advertiser_history_advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__advertiser_history_advertiser_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__advertiser_history_advertiser_id"], "alias": "not_null_stg_pinterest_ads__advertiser_history_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.664601, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__advertiser_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__advertiser_history_advertiser_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_history`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "advertiser_id", "file_key_name": "models.stg_pinterest_ads__advertiser_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__advertiser_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_history')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_source_relation__updated_at__advertiser_id.8308a26e9f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_source_relation__updated_at__advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_a3096f9769ccab296403865906441f7d.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_source_relation__updated_at__advertiser_id.8308a26e9f", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_source_relation__updated_at__advertiser_id"], "alias": "dbt_utils_unique_combination_o_a3096f9769ccab296403865906441f7d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a3096f9769ccab296403865906441f7d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a3096f9769ccab296403865906441f7d"}, "created_at": 1731951600.6657522, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a3096f9769ccab296403865906441f7d\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__advertiser_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_a3096f9769ccab296403865906441f7d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, updated_at, advertiser_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_history`\n group by source_relation, updated_at, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__advertiser_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__advertiser_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "updated_at", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_history')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_pinterest_ads__advertiser_report_date_day", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__advertiser_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__advertiser_report_date_day"], "alias": "not_null_stg_pinterest_ads__advertiser_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.6682649, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__advertiser_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__advertiser_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__advertiser_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_report')) }}"}, "namespace": null}}, "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_pinterest_ads__advertiser_report_advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__advertiser_report_advertiser_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__advertiser_report_advertiser_id"], "alias": "not_null_stg_pinterest_ads__advertiser_report_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.6693919, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__advertiser_report_advertiser_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_report`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "advertiser_id", "file_key_name": "models.stg_pinterest_ads__advertiser_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__advertiser_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_report')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_source_relation__date_day__advertiser_id.cadbd5fae2": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_source_relation__date_day__advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_932368f2cac6bdb986cba77336b98fb0.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_source_relation__date_day__advertiser_id.cadbd5fae2", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_source_relation__date_day__advertiser_id"], "alias": "dbt_utils_unique_combination_o_932368f2cac6bdb986cba77336b98fb0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_932368f2cac6bdb986cba77336b98fb0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_932368f2cac6bdb986cba77336b98fb0"}, "created_at": 1731951600.670437, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_932368f2cac6bdb986cba77336b98fb0\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_932368f2cac6bdb986cba77336b98fb0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, advertiser_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__advertiser_report`\n group by source_relation, date_day, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__advertiser_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__advertiser_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_pinterest_ads__campaign_report_date_day", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__campaign_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__campaign_report_date_day"], "alias": "not_null_stg_pinterest_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.6742039, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__campaign_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_report')) }}"}, "namespace": null}}, "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_pinterest_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__campaign_report_campaign_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__campaign_report_campaign_id"], "alias": "not_null_stg_pinterest_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.675321, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_pinterest_ads__campaign_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_report')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_source_relation__date_day__campaign_id__advertiser_id.6dd9b7bce6": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_source_relation__date_day__campaign_id__advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_53ca18b9f5afd64ad98c6100a883a702.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_source_relation__date_day__campaign_id__advertiser_id.6dd9b7bce6", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_source_relation__date_day__campaign_id__advertiser_id"], "alias": "dbt_utils_unique_combination_o_53ca18b9f5afd64ad98c6100a883a702", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_53ca18b9f5afd64ad98c6100a883a702", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_53ca18b9f5afd64ad98c6100a883a702"}, "created_at": 1731951600.676357, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_53ca18b9f5afd64ad98c6100a883a702\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_53ca18b9f5afd64ad98c6100a883a702.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, campaign_id, advertiser_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__campaign_report`\n group by source_relation, date_day, campaign_id, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__campaign_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "campaign_id", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_pinterest_ads__keyword_history_keyword_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__keyword_history_keyword_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__keyword_history_keyword_id"], "alias": "not_null_stg_pinterest_ads__keyword_history_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.679471, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__keyword_history_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__keyword_history`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_pinterest_ads__keyword_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__keyword_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_history')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_source_relation__keyword_id__ad_group_id___fivetran_synced.2cd3b85ca9": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_source_relation__keyword_id__ad_group_id___fivetran_synced", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_6cccf96e051599d97f707cf4a94fe26f.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_source_relation__keyword_id__ad_group_id___fivetran_synced.2cd3b85ca9", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_source_relation__keyword_id__ad_group_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_6cccf96e051599d97f707cf4a94fe26f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6cccf96e051599d97f707cf4a94fe26f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6cccf96e051599d97f707cf4a94fe26f"}, "created_at": 1731951600.6812842, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6cccf96e051599d97f707cf4a94fe26f\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_6cccf96e051599d97f707cf4a94fe26f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, keyword_id, ad_group_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__keyword_history`\n group by source_relation, keyword_id, ad_group_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__keyword_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__keyword_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "keyword_id", "ad_group_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_history')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_pinterest_ads__keyword_report_date_day", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__keyword_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__keyword_report_date_day"], "alias": "not_null_stg_pinterest_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.684491, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__keyword_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__keyword_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__keyword_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_report')) }}"}, "namespace": null}}, "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_pinterest_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__keyword_report_keyword_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__keyword_report_keyword_id"], "alias": "not_null_stg_pinterest_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.6855, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_pinterest_ads__keyword_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_report')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_source_relation__date_day__keyword_id__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.f43dda0239": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_source_relation__date_day__keyword_id__pin_promotion_id__ad_group_id__campaign_id__advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_7d62116c979ca3d6fb6cb021dd639a68.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_source_relation__date_day__keyword_id__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.f43dda0239", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_source_relation__date_day__keyword_id__pin_promotion_id__ad_group_id__campaign_id__advertiser_id"], "alias": "dbt_utils_unique_combination_o_7d62116c979ca3d6fb6cb021dd639a68", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7d62116c979ca3d6fb6cb021dd639a68", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7d62116c979ca3d6fb6cb021dd639a68"}, "created_at": 1731951600.686625, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7d62116c979ca3d6fb6cb021dd639a68\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_7d62116c979ca3d6fb6cb021dd639a68.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, keyword_id, pin_promotion_id, ad_group_id, campaign_id, advertiser_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_pinterest_ads__keyword_report`\n group by source_relation, date_day, keyword_id, pin_promotion_id, ad_group_id, campaign_id, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__keyword_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "keyword_id", "pin_promotion_id", "ad_group_id", "campaign_id", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_tiktok_ads__advertiser_advertiser_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__advertiser_advertiser_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__advertiser_advertiser_id"], "alias": "not_null_stg_tiktok_ads__advertiser_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.7464561, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__advertiser", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__advertiser_advertiser_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__advertiser`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "advertiser_id", "file_key_name": "models.stg_tiktok_ads__advertiser", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__advertiser')) }}"}, "namespace": null}}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__advertiser_source_relation__advertiser_id.4b39eb0db8": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__advertiser_source_relation__advertiser_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_3e7e88f3f497325405be05932f37ea2e.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__advertiser_source_relation__advertiser_id.4b39eb0db8", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__advertiser_source_relation__advertiser_id"], "alias": "dbt_utils_unique_combination_o_3e7e88f3f497325405be05932f37ea2e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3e7e88f3f497325405be05932f37ea2e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3e7e88f3f497325405be05932f37ea2e"}, "created_at": 1731951600.747651, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3e7e88f3f497325405be05932f37ea2e\") }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__advertiser", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_3e7e88f3f497325405be05932f37ea2e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, advertiser_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__advertiser`\n group by source_relation, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_tiktok_ads__advertiser", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__advertiser')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_tiktok_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.7502232, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_tiktok_ads__ad_group_history", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_group_history')) }}"}, "namespace": null}}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_source_relation__ad_group_id__updated_at.94fc2240d4": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_source_relation__ad_group_id__updated_at", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_2ce2e8d20e561240fd8236ce15212a77.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_source_relation__ad_group_id__updated_at.94fc2240d4", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_source_relation__ad_group_id__updated_at"], "alias": "dbt_utils_unique_combination_o_2ce2e8d20e561240fd8236ce15212a77", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2ce2e8d20e561240fd8236ce15212a77", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2ce2e8d20e561240fd8236ce15212a77"}, "created_at": 1731951600.751224, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2ce2e8d20e561240fd8236ce15212a77\") }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_2ce2e8d20e561240fd8236ce15212a77.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, updated_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_group_history`\n group by source_relation, ad_group_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_tiktok_ads__ad_group_history", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_history_ad_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_history_ad_id"], "alias": "not_null_stg_tiktok_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.754008, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_tiktok_ads__ad_history", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_history')) }}"}, "namespace": null}}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_source_relation__ad_id__updated_at.64ebc5aea6": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_source_relation__ad_id__updated_at", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_3e79eabd58ab858677e7781a46e7d8b9.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_source_relation__ad_id__updated_at.64ebc5aea6", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_source_relation__ad_id__updated_at"], "alias": "dbt_utils_unique_combination_o_3e79eabd58ab858677e7781a46e7d8b9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3e79eabd58ab858677e7781a46e7d8b9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3e79eabd58ab858677e7781a46e7d8b9"}, "created_at": 1731951600.755059, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3e79eabd58ab858677e7781a46e7d8b9\") }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_3e79eabd58ab858677e7781a46e7d8b9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, updated_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_history`\n group by source_relation, ad_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_tiktok_ads__ad_history", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_history')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_tiktok_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__campaign_history_campaign_id"], "alias": "not_null_stg_tiktok_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.777534, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_tiktok_ads__campaign_history", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_history')) }}"}, "namespace": null}}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_source_relation__campaign_id__updated_at.52babc6036": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_source_relation__campaign_id__updated_at", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_7aab7ed41249c473b67c95735fdd521f.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_source_relation__campaign_id__updated_at.52babc6036", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_source_relation__campaign_id__updated_at"], "alias": "dbt_utils_unique_combination_o_7aab7ed41249c473b67c95735fdd521f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7aab7ed41249c473b67c95735fdd521f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7aab7ed41249c473b67c95735fdd521f"}, "created_at": 1731951600.7808871, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7aab7ed41249c473b67c95735fdd521f\") }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_7aab7ed41249c473b67c95735fdd521f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, updated_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__campaign_history`\n group by source_relation, campaign_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_tiktok_ads__campaign_history", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_report_hourly_ad_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_report_hourly_ad_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_report_hourly_ad_id"], "alias": "not_null_stg_tiktok_ads__ad_report_hourly_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.8315089, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_report_hourly_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_report_hourly`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_tiktok_ads__ad_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_report_hourly')) }}"}, "namespace": null}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour"], "alias": "not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.832612, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_report_hourly`\nwhere stat_time_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "stat_time_hour", "file_key_name": "models.stg_tiktok_ads__ad_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "stat_time_hour", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_report_hourly')) }}"}, "namespace": null}}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_source_relation__ad_id__stat_time_hour.1f7d670427": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_source_relation__ad_id__stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_e6060e94140e3a6953ae3700b1fabae0.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_source_relation__ad_id__stat_time_hour.1f7d670427", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_source_relation__ad_id__stat_time_hour"], "alias": "dbt_utils_unique_combination_o_e6060e94140e3a6953ae3700b1fabae0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e6060e94140e3a6953ae3700b1fabae0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e6060e94140e3a6953ae3700b1fabae0"}, "created_at": 1731951600.833762, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e6060e94140e3a6953ae3700b1fabae0\") }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_e6060e94140e3a6953ae3700b1fabae0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, stat_time_hour\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_report_hourly`\n group by source_relation, ad_id, stat_time_hour\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_tiktok_ads__ad_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "stat_time_hour"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_report_hourly')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.8da17119f1": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.8da17119f1", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id"], "alias": "not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.836918, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_group_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_group_report_hourly`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_tiktok_ads__ad_group_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_group_report_hourly')) }}"}, "namespace": null}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.ca4b495127": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.ca4b495127", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour"], "alias": "not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.837972, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_group_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_group_report_hourly`\nwhere stat_time_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "stat_time_hour", "file_key_name": "models.stg_tiktok_ads__ad_group_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "stat_time_hour", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_group_report_hourly')) }}"}, "namespace": null}}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_source_relation__ad_group_id__stat_time_hour.f0681f097c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_source_relation__ad_group_id__stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_c2666a445415f25f1fd55b9540f98d10.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_source_relation__ad_group_id__stat_time_hour.f0681f097c", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_source_relation__ad_group_id__stat_time_hour"], "alias": "dbt_utils_unique_combination_o_c2666a445415f25f1fd55b9540f98d10", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c2666a445415f25f1fd55b9540f98d10", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c2666a445415f25f1fd55b9540f98d10"}, "created_at": 1731951600.8390982, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c2666a445415f25f1fd55b9540f98d10\") }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_group_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_c2666a445415f25f1fd55b9540f98d10.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, stat_time_hour\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__ad_group_report_hourly`\n group by source_relation, ad_group_id, stat_time_hour\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_tiktok_ads__ad_group_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "stat_time_hour"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_group_report_hourly')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id"], "alias": "not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.8424408, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__campaign_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__campaign_report_hourly`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_tiktok_ads__campaign_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_report_hourly')) }}"}, "namespace": null}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour"], "alias": "not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.843738, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__campaign_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__campaign_report_hourly`\nwhere stat_time_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "stat_time_hour", "file_key_name": "models.stg_tiktok_ads__campaign_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "stat_time_hour", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_report_hourly')) }}"}, "namespace": null}}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_source_relation__campaign_id__stat_time_hour.91b84f3ede": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_source_relation__campaign_id__stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_db7f8f91773e74d564ab66f9f0497b28.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_source_relation__campaign_id__stat_time_hour.91b84f3ede", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_source_relation__campaign_id__stat_time_hour"], "alias": "dbt_utils_unique_combination_o_db7f8f91773e74d564ab66f9f0497b28", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_db7f8f91773e74d564ab66f9f0497b28", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_db7f8f91773e74d564ab66f9f0497b28"}, "created_at": 1731951600.845121, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_db7f8f91773e74d564ab66f9f0497b28\") }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__campaign_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_db7f8f91773e74d564ab66f9f0497b28.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, stat_time_hour\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_tiktok_ads__campaign_report_hourly`\n group by source_relation, campaign_id, stat_time_hour\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_tiktok_ads__campaign_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "stat_time_hour"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_report_hourly')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_facebook_ads__account_history_account_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__account_history_account_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__account_history_account_id"], "alias": "not_null_stg_facebook_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.8723211, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__account_history_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_facebook_ads__account_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__account_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_facebook_ads__account_history__fivetran_synced", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__account_history__fivetran_synced.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__account_history__fivetran_synced"], "alias": "not_null_stg_facebook_ads__account_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.87396, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__account_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__account_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_synced", "file_key_name": "models.stg_facebook_ads__account_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_facebook_ads__account_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_source_relation__account_id___fivetran_synced.f81aca1247": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_source_relation__account_id___fivetran_synced", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_f1aad48dbc1b2c2943c7368848da8a98.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_source_relation__account_id___fivetran_synced.f81aca1247", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_source_relation__account_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_f1aad48dbc1b2c2943c7368848da8a98", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f1aad48dbc1b2c2943c7368848da8a98", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f1aad48dbc1b2c2943c7368848da8a98"}, "created_at": 1731951600.875093, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f1aad48dbc1b2c2943c7368848da8a98\") }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_f1aad48dbc1b2c2943c7368848da8a98.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__account_history`\n group by source_relation, account_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_facebook_ads__account_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__account_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__account_history')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_facebook_ads__ad_history_ad_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_history_ad_id"], "alias": "not_null_stg_facebook_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.8804889, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_facebook_ads__ad_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_facebook_ads__ad_history_updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_history_updated_at.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_history_updated_at"], "alias": "not_null_stg_facebook_ads__ad_history_updated_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.88161, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_history_updated_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_history`\nwhere updated_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "updated_at", "file_key_name": "models.stg_facebook_ads__ad_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "updated_at", "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_source_relation__ad_id__updated_at.664b870e6c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_source_relation__ad_id__updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_3ebe08205599fa597ed00fd7c1713fd5.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_source_relation__ad_id__updated_at.664b870e6c", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_source_relation__ad_id__updated_at"], "alias": "dbt_utils_unique_combination_o_3ebe08205599fa597ed00fd7c1713fd5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ebe08205599fa597ed00fd7c1713fd5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ebe08205599fa597ed00fd7c1713fd5"}, "created_at": 1731951600.882626, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ebe08205599fa597ed00fd7c1713fd5\") }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_3ebe08205599fa597ed00fd7c1713fd5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, updated_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_history`\n group by source_relation, ad_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_facebook_ads__ad_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__ad_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_history')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_facebook_ads__ad_set_history_ad_set_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_set_history_ad_set_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_set_history_ad_set_id"], "alias": "not_null_stg_facebook_ads__ad_set_history_ad_set_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.885644, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__ad_set_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_set_history_ad_set_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_set_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_set_history`\nwhere ad_set_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_set_id", "file_key_name": "models.stg_facebook_ads__ad_set_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_set_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_set_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_facebook_ads__ad_set_history_updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_set_history_updated_at.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_set_history_updated_at"], "alias": "not_null_stg_facebook_ads__ad_set_history_updated_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.88671, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__ad_set_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_set_history_updated_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_set_history`\nwhere updated_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "updated_at", "file_key_name": "models.stg_facebook_ads__ad_set_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "updated_at", "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_set_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_source_relation__ad_set_id__updated_at.ff1d43114a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_source_relation__ad_set_id__updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_188752cfa5e76048bd891390076e4410.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_source_relation__ad_set_id__updated_at.ff1d43114a", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_source_relation__ad_set_id__updated_at"], "alias": "dbt_utils_unique_combination_o_188752cfa5e76048bd891390076e4410", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_188752cfa5e76048bd891390076e4410", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_188752cfa5e76048bd891390076e4410"}, "created_at": 1731951600.887826, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_188752cfa5e76048bd891390076e4410\") }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__ad_set_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_188752cfa5e76048bd891390076e4410.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_set_id, updated_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__ad_set_history`\n group by source_relation, ad_set_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_facebook_ads__ad_set_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_set_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_set_history')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_facebook_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__campaign_history_campaign_id"], "alias": "not_null_stg_facebook_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.890902, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_facebook_ads__campaign_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__campaign_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_facebook_ads__campaign_history_updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__campaign_history_updated_at.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__campaign_history_updated_at"], "alias": "not_null_stg_facebook_ads__campaign_history_updated_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.891962, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__campaign_history_updated_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__campaign_history`\nwhere updated_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "updated_at", "file_key_name": "models.stg_facebook_ads__campaign_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "updated_at", "model": "{{ get_where_subquery(ref('stg_facebook_ads__campaign_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_source_relation__campaign_id__updated_at.82c4f9a2a1": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_source_relation__campaign_id__updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_25638a8aacb87adbe02252bd0c22a591.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_source_relation__campaign_id__updated_at.82c4f9a2a1", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_source_relation__campaign_id__updated_at"], "alias": "dbt_utils_unique_combination_o_25638a8aacb87adbe02252bd0c22a591", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_25638a8aacb87adbe02252bd0c22a591", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_25638a8aacb87adbe02252bd0c22a591"}, "created_at": 1731951600.892978, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_25638a8aacb87adbe02252bd0c22a591\") }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_25638a8aacb87adbe02252bd0c22a591.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, updated_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__campaign_history`\n group by source_relation, campaign_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_facebook_ads__campaign_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_facebook_ads__creative_history__fivetran_synced", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__creative_history__fivetran_synced.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__creative_history__fivetran_synced"], "alias": "not_null_stg_facebook_ads__creative_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.8961542, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__creative_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__creative_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__creative_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_synced", "file_key_name": "models.stg_facebook_ads__creative_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__creative_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_facebook_ads__creative_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_facebook_ads__creative_history_creative_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__creative_history_creative_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__creative_history_creative_id"], "alias": "not_null_stg_facebook_ads__creative_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.897289, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__creative_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__creative_history_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__creative_history`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "creative_id", "file_key_name": "models.stg_facebook_ads__creative_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__creative_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__creative_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_source_relation___fivetran_id.2466dae947": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_source_relation___fivetran_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_4cfbaafcd1dee5ef85e3f65391a5a9ad.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_source_relation___fivetran_id.2466dae947", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_source_relation___fivetran_id"], "alias": "dbt_utils_unique_combination_o_4cfbaafcd1dee5ef85e3f65391a5a9ad", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4cfbaafcd1dee5ef85e3f65391a5a9ad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4cfbaafcd1dee5ef85e3f65391a5a9ad"}, "created_at": 1731951600.898307, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4cfbaafcd1dee5ef85e3f65391a5a9ad\") }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__creative_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_4cfbaafcd1dee5ef85e3f65391a5a9ad.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, _fivetran_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__creative_history`\n group by source_relation, _fivetran_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_facebook_ads__creative_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__creative_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "_fivetran_id"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__creative_history')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_facebook_ads__basic_ad_ad_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__basic_ad_ad_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__basic_ad_ad_id"], "alias": "not_null_stg_facebook_ads__basic_ad_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.9007978, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__basic_ad_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_facebook_ads__basic_ad", "attached_node": "model.facebook_ads_source.stg_facebook_ads__basic_ad", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__basic_ad')) }}"}, "namespace": null}}, "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_facebook_ads__basic_ad_account_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__basic_ad_account_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__basic_ad_account_id"], "alias": "not_null_stg_facebook_ads__basic_ad_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951600.9017978, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__basic_ad_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_facebook_ads__basic_ad", "attached_node": "model.facebook_ads_source.stg_facebook_ads__basic_ad", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__basic_ad')) }}"}, "namespace": null}}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_source_relation__date_day__ad_id__account_id.9c647961f0": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_source_relation__date_day__ad_id__account_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_478f0ed1d8a9ad654a164e0b33dad4d2.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_source_relation__date_day__ad_id__account_id.9c647961f0", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_source_relation__date_day__ad_id__account_id"], "alias": "dbt_utils_unique_combination_o_478f0ed1d8a9ad654a164e0b33dad4d2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_478f0ed1d8a9ad654a164e0b33dad4d2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_478f0ed1d8a9ad654a164e0b33dad4d2"}, "created_at": 1731951600.90288, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_478f0ed1d8a9ad654a164e0b33dad4d2\") }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_478f0ed1d8a9ad654a164e0b33dad4d2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, ad_id, account_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad`\n group by source_relation, date_day, ad_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_facebook_ads__basic_ad", "attached_node": "model.facebook_ads_source.stg_facebook_ads__basic_ad", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "ad_id", "account_id"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__basic_ad')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_actions_source_relation__date_day__ad_id__action_type.3f1bea13d9": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_actions_source_relation__date_day__ad_id__action_type", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_66412182ce22d19b158e5837adf4e3b3.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_actions_source_relation__date_day__ad_id__action_type.3f1bea13d9", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_actions_source_relation__date_day__ad_id__action_type"], "alias": "dbt_utils_unique_combination_o_66412182ce22d19b158e5837adf4e3b3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_66412182ce22d19b158e5837adf4e3b3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_66412182ce22d19b158e5837adf4e3b3"}, "created_at": 1731951600.9054668, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_66412182ce22d19b158e5837adf4e3b3\") }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_actions"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_66412182ce22d19b158e5837adf4e3b3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, ad_id, action_type\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad_actions`\n group by source_relation, date_day, ad_id, action_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_facebook_ads__basic_ad_actions", "attached_node": "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "ad_id", "action_type"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__basic_ad_actions')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_action_values_source_relation__date_day__ad_id__action_type.3c32585825": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_action_values_source_relation__date_day__ad_id__action_type", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_cd20f9e334071169ff4962869fa3fe37.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_action_values_source_relation__date_day__ad_id__action_type.3c32585825", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_action_values_source_relation__date_day__ad_id__action_type"], "alias": "dbt_utils_unique_combination_o_cd20f9e334071169ff4962869fa3fe37", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cd20f9e334071169ff4962869fa3fe37", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cd20f9e334071169ff4962869fa3fe37"}, "created_at": 1731951600.908624, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cd20f9e334071169ff4962869fa3fe37\") }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad_action_values", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_cd20f9e334071169ff4962869fa3fe37.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, ad_id, action_type\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_facebook_ads__basic_ad_action_values`\n group by source_relation, date_day, ad_id, action_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_facebook_ads__basic_ad_action_values", "attached_node": "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "ad_id", "action_type"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__basic_ad_action_values')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_account_history__fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_account_history__fivetran_synced"], "alias": "not_null_stg_snapchat_ads__ad_account_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.086435, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_account_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__ad_account_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_account_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_account_history_ad_account_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_account_history_ad_account_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_account_history_ad_account_id"], "alias": "not_null_stg_snapchat_ads__ad_account_history_ad_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.090515, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_account_history_ad_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_account_history`\nwhere ad_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_account_id", "file_key_name": "models.stg_snapchat_ads__ad_account_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_account_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_account_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_source_relation__ad_account_id___fivetran_synced.b8a4da92d1": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_source_relation__ad_account_id___fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_3190b1077468dff34e96d53f9129d3ad.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_source_relation__ad_account_id___fivetran_synced.b8a4da92d1", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_source_relation__ad_account_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_3190b1077468dff34e96d53f9129d3ad", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3190b1077468dff34e96d53f9129d3ad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3190b1077468dff34e96d53f9129d3ad"}, "created_at": 1731951601.095514, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3190b1077468dff34e96d53f9129d3ad\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_3190b1077468dff34e96d53f9129d3ad.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_account_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_account_history`\n group by source_relation, ad_account_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_account_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_account_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_account_history')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_history__fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_history__fivetran_synced"], "alias": "not_null_stg_snapchat_ads__ad_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.1088378, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__ad_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_history_ad_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_history_ad_id"], "alias": "not_null_stg_snapchat_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.116562, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_snapchat_ads__ad_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_source_relation__ad_id___fivetran_synced.630e3ffee4": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_source_relation__ad_id___fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_f0ee7dccca2fb2438166f8dca2158302.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_source_relation__ad_id___fivetran_synced.630e3ffee4", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_source_relation__ad_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_f0ee7dccca2fb2438166f8dca2158302", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f0ee7dccca2fb2438166f8dca2158302", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f0ee7dccca2fb2438166f8dca2158302"}, "created_at": 1731951601.1230452, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f0ee7dccca2fb2438166f8dca2158302\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_f0ee7dccca2fb2438166f8dca2158302.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_history`\n group by source_relation, ad_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_history')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_hourly_report_ad_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_hourly_report_ad_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_hourly_report_ad_id"], "alias": "not_null_stg_snapchat_ads__ad_hourly_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.129843, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_hourly_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_hourly_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_snapchat_ads__ad_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_hourly_report')) }}"}, "namespace": null}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_hourly_report_date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_hourly_report_date_hour.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_hourly_report_date_hour"], "alias": "not_null_stg_snapchat_ads__ad_hourly_report_date_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.1313238, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_hourly_report_date_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_hourly_report`\nwhere date_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_hour", "file_key_name": "models.stg_snapchat_ads__ad_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_hour", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_hourly_report')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_source_relation__ad_id__date_hour.f2d4b9252f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_source_relation__ad_id__date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_6555cce51f9e5f821cdfba36a30dc18c.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_source_relation__ad_id__date_hour.f2d4b9252f", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_source_relation__ad_id__date_hour"], "alias": "dbt_utils_unique_combination_o_6555cce51f9e5f821cdfba36a30dc18c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6555cce51f9e5f821cdfba36a30dc18c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6555cce51f9e5f821cdfba36a30dc18c"}, "created_at": 1731951601.132716, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6555cce51f9e5f821cdfba36a30dc18c\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_6555cce51f9e5f821cdfba36a30dc18c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, date_hour\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_hourly_report`\n group by source_relation, ad_id, date_hour\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "date_hour"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_hourly_report')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced"], "alias": "not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.136867, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_squad_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__ad_squad_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id"], "alias": "not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.137919, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_squad_history`\nwhere ad_squad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_squad_id", "file_key_name": "models.stg_snapchat_ads__ad_squad_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_squad_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_source_relation__ad_squad_id___fivetran_synced.5d97ae5ee3": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_source_relation__ad_squad_id___fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_d2dca03685a09270498ff6ebadf17c56.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_source_relation__ad_squad_id___fivetran_synced.5d97ae5ee3", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_source_relation__ad_squad_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_d2dca03685a09270498ff6ebadf17c56", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d2dca03685a09270498ff6ebadf17c56", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d2dca03685a09270498ff6ebadf17c56"}, "created_at": 1731951601.1390002, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d2dca03685a09270498ff6ebadf17c56\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_d2dca03685a09270498ff6ebadf17c56.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_squad_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_squad_history`\n group by source_relation, ad_squad_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_squad_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_squad_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_history')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.ab16aa72c9": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.ab16aa72c9", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id"], "alias": "not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.14226, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_squad_hourly_report`\nwhere ad_squad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_squad_id", "file_key_name": "models.stg_snapchat_ads__ad_squad_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_squad_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_hourly_report')) }}"}, "namespace": null}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour"], "alias": "not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.144622, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_squad_hourly_report`\nwhere date_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_hour", "file_key_name": "models.stg_snapchat_ads__ad_squad_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_hour", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_hourly_report')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_source_relation__ad_squad_id__date_hour.25afb4f9ae": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_source_relation__ad_squad_id__date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_67ba47c849a8a4422b78966095415fac.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_source_relation__ad_squad_id__date_hour.25afb4f9ae", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_source_relation__ad_squad_id__date_hour"], "alias": "dbt_utils_unique_combination_o_67ba47c849a8a4422b78966095415fac", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_67ba47c849a8a4422b78966095415fac", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_67ba47c849a8a4422b78966095415fac"}, "created_at": 1731951601.148082, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_67ba47c849a8a4422b78966095415fac\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_67ba47c849a8a4422b78966095415fac.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_squad_id, date_hour\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__ad_squad_hourly_report`\n group by source_relation, ad_squad_id, date_hour\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_squad_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_squad_id", "date_hour"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_hourly_report')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_snapchat_ads__campaign_history__fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_history__fivetran_synced"], "alias": "not_null_stg_snapchat_ads__campaign_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.154103, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__campaign_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__campaign_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_snapchat_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_history_campaign_id"], "alias": "not_null_stg_snapchat_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.157263, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_snapchat_ads__campaign_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_source_relation__campaign_id___fivetran_synced.e003c1a660": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_source_relation__campaign_id___fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_2067af3e2838f3bcff0258eb157de014.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_source_relation__campaign_id___fivetran_synced.e003c1a660", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_source_relation__campaign_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_2067af3e2838f3bcff0258eb157de014", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2067af3e2838f3bcff0258eb157de014", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2067af3e2838f3bcff0258eb157de014"}, "created_at": 1731951601.160497, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2067af3e2838f3bcff0258eb157de014\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_2067af3e2838f3bcff0258eb157de014.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__campaign_history`\n group by source_relation, campaign_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__campaign_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id"], "alias": "not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.165987, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__campaign_hourly_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_snapchat_ads__campaign_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_hourly_report')) }}"}, "namespace": null}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_snapchat_ads__campaign_hourly_report_date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_hourly_report_date_hour"], "alias": "not_null_stg_snapchat_ads__campaign_hourly_report_date_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.16716, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__campaign_hourly_report`\nwhere date_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_hour", "file_key_name": "models.stg_snapchat_ads__campaign_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_hour", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_hourly_report')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_source_relation__campaign_id__date_hour.3998b6bf9d": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_source_relation__campaign_id__date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_90aa9903c369415cae32db38a6fa709d.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_source_relation__campaign_id__date_hour.3998b6bf9d", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_source_relation__campaign_id__date_hour"], "alias": "dbt_utils_unique_combination_o_90aa9903c369415cae32db38a6fa709d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_90aa9903c369415cae32db38a6fa709d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_90aa9903c369415cae32db38a6fa709d"}, "created_at": 1731951601.16819, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_90aa9903c369415cae32db38a6fa709d\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_90aa9903c369415cae32db38a6fa709d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, date_hour\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__campaign_hourly_report`\n group by source_relation, campaign_id, date_hour\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__campaign_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "date_hour"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_hourly_report')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_snapchat_ads__creative_history__fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__creative_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__creative_history__fivetran_synced"], "alias": "not_null_stg_snapchat_ads__creative_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.1713212, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__creative_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__creative_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__creative_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__creative_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_snapchat_ads__creative_history_creative_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__creative_history_creative_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__creative_history_creative_id"], "alias": "not_null_stg_snapchat_ads__creative_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.1730208, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__creative_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__creative_history_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_history`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "creative_id", "file_key_name": "models.stg_snapchat_ads__creative_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__creative_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_source_relation__creative_id___fivetran_synced.1d4efdd418": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_source_relation__creative_id___fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_fa589e52860732e2e8a9cb69701ed9da.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_source_relation__creative_id___fivetran_synced.1d4efdd418", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_source_relation__creative_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_fa589e52860732e2e8a9cb69701ed9da", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fa589e52860732e2e8a9cb69701ed9da", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fa589e52860732e2e8a9cb69701ed9da"}, "created_at": 1731951601.174241, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fa589e52860732e2e8a9cb69701ed9da\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__creative_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_fa589e52860732e2e8a9cb69701ed9da.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, creative_id, _fivetran_synced\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_history`\n group by source_relation, creative_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__creative_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__creative_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "creative_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_history')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_snapchat_ads__creative_url_tag_history_creative_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__creative_url_tag_history_creative_id"], "alias": "not_null_stg_snapchat_ads__creative_url_tag_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.1770802, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__creative_url_tag_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_url_tag_history`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "creative_id", "file_key_name": "models.stg_snapchat_ads__creative_url_tag_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_url_tag_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_source_relation__creative_id__param_key__updated_at.6ed98c175a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_source_relation__creative_id__param_key__updated_at", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_ee34b38641f864cf9860e2199aa29b16.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_source_relation__creative_id__param_key__updated_at.6ed98c175a", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_source_relation__creative_id__param_key__updated_at"], "alias": "dbt_utils_unique_combination_o_ee34b38641f864cf9860e2199aa29b16", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ee34b38641f864cf9860e2199aa29b16", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ee34b38641f864cf9860e2199aa29b16"}, "created_at": 1731951601.178133, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ee34b38641f864cf9860e2199aa29b16\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__creative_url_tag_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_ee34b38641f864cf9860e2199aa29b16.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, creative_id, param_key, updated_at\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_snapchat_ads__creative_url_tag_history`\n group by source_relation, creative_id, param_key, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__creative_url_tag_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "creative_id", "param_key", "updated_at"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_url_tag_history')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_microsoft_ads__account_report_account_id", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__account_report_account_id.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e", "fqn": ["microsoft_ads", "not_null_microsoft_ads__account_report_account_id"], "alias": "not_null_microsoft_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.200145, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "microsoft_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__account_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.microsoft_ads__account_report", "attached_node": "model.microsoft_ads.microsoft_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('microsoft_ads__account_report')) }}"}, "namespace": null}}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code.42178a7c9b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_ff9ffa66e6c4afc994c572d2a7580f65.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code.42178a7c9b", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code"], "alias": "dbt_utils_unique_combination_o_ff9ffa66e6c4afc994c572d2a7580f65", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ff9ffa66e6c4afc994c572d2a7580f65", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ff9ffa66e6c4afc994c572d2a7580f65"}, "created_at": 1731951601.20133, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ff9ffa66e6c4afc994c572d2a7580f65\") }}", "language": "sql", "refs": [{"name": "microsoft_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__account_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_ff9ffa66e6c4afc994c572d2a7580f65.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__account_report`\n group by source_relation, date_day, account_id, device_os, device_type, network, currency_code\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.microsoft_ads__account_report", "attached_node": "model.microsoft_ads.microsoft_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "device_os", "device_type", "network", "currency_code"], "model": "{{ get_where_subquery(ref('microsoft_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_microsoft_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9", "fqn": ["microsoft_ads", "not_null_microsoft_ads__ad_group_report_ad_group_id"], "alias": "not_null_microsoft_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.204164, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "microsoft_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_group_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.microsoft_ads__ad_group_report", "attached_node": "model.microsoft_ads.microsoft_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('microsoft_ads__ad_group_report')) }}"}, "namespace": null}}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.da08ee00a5": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_e299eef4742eda377faab929d2bc01da.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.da08ee00a5", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code"], "alias": "dbt_utils_unique_combination_o_e299eef4742eda377faab929d2bc01da", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e299eef4742eda377faab929d2bc01da", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e299eef4742eda377faab929d2bc01da"}, "created_at": 1731951601.205216, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e299eef4742eda377faab929d2bc01da\") }}", "language": "sql", "refs": [{"name": "microsoft_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_group_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_e299eef4742eda377faab929d2bc01da.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__ad_group_report`\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, device_os, device_type, network, currency_code\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.microsoft_ads__ad_group_report", "attached_node": "model.microsoft_ads.microsoft_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "device_os", "device_type", "network", "currency_code"], "model": "{{ get_where_subquery(ref('microsoft_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_microsoft_ads__ad_report_ad_id", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__ad_report_ad_id.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125", "fqn": ["microsoft_ads", "not_null_microsoft_ads__ad_report_ad_id"], "alias": "not_null_microsoft_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.208256, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "microsoft_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.microsoft_ads__ad_report", "attached_node": "model.microsoft_ads.microsoft_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('microsoft_ads__ad_report')) }}"}, "namespace": null}}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.e13fd60438": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_343b08b3d25faa9de49f5ce0eda20ecb.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.e13fd60438", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code"], "alias": "dbt_utils_unique_combination_o_343b08b3d25faa9de49f5ce0eda20ecb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_343b08b3d25faa9de49f5ce0eda20ecb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_343b08b3d25faa9de49f5ce0eda20ecb"}, "created_at": 1731951601.2096682, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_343b08b3d25faa9de49f5ce0eda20ecb\") }}", "language": "sql", "refs": [{"name": "microsoft_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_343b08b3d25faa9de49f5ce0eda20ecb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, ad_type, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__ad_report`\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, ad_type, device_os, device_type, network, currency_code\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.microsoft_ads__ad_report", "attached_node": "model.microsoft_ads.microsoft_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "ad_id", "ad_type", "device_os", "device_type", "network", "currency_code"], "model": "{{ get_where_subquery(ref('microsoft_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_microsoft_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__campaign_report_campaign_id.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8", "fqn": ["microsoft_ads", "not_null_microsoft_ads__campaign_report_campaign_id"], "alias": "not_null_microsoft_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.213144, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "microsoft_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__campaign_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.microsoft_ads__campaign_report", "attached_node": "model.microsoft_ads.microsoft_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('microsoft_ads__campaign_report')) }}"}, "namespace": null}}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code.00fc594532": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_44876f6339324cf1e10ccb300cc80539.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code.00fc594532", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code"], "alias": "dbt_utils_unique_combination_o_44876f6339324cf1e10ccb300cc80539", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_44876f6339324cf1e10ccb300cc80539", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_44876f6339324cf1e10ccb300cc80539"}, "created_at": 1731951601.214795, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44876f6339324cf1e10ccb300cc80539\") }}", "language": "sql", "refs": [{"name": "microsoft_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__campaign_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_44876f6339324cf1e10ccb300cc80539.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__campaign_report`\n group by source_relation, date_day, account_id, campaign_id, device_os, device_type, network, currency_code\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.microsoft_ads__campaign_report", "attached_node": "model.microsoft_ads.microsoft_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "device_os", "device_type", "network", "currency_code"], "model": "{{ get_where_subquery(ref('microsoft_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_microsoft_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__keyword_report_keyword_id.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b", "fqn": ["microsoft_ads", "not_null_microsoft_ads__keyword_report_keyword_id"], "alias": "not_null_microsoft_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.2182841, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "microsoft_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__keyword_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.microsoft_ads__keyword_report", "attached_node": "model.microsoft_ads.microsoft_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('microsoft_ads__keyword_report')) }}"}, "namespace": null}}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.e4af52a80b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_22a49ae45b7a5fab7653ce3bea641314.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.e4af52a80b", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code"], "alias": "dbt_utils_unique_combination_o_22a49ae45b7a5fab7653ce3bea641314", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_22a49ae45b7a5fab7653ce3bea641314", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_22a49ae45b7a5fab7653ce3bea641314"}, "created_at": 1731951601.219659, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_22a49ae45b7a5fab7653ce3bea641314\") }}", "language": "sql", "refs": [{"name": "microsoft_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__keyword_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_22a49ae45b7a5fab7653ce3bea641314.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__keyword_report`\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, device_os, device_type, network, currency_code\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.microsoft_ads__keyword_report", "attached_node": "model.microsoft_ads.microsoft_ads__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "ad_id", "keyword_id", "device_os", "device_type", "network", "currency_code"], "model": "{{ get_where_subquery(ref('microsoft_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_microsoft_ads__search_report_search_query", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__search_report_search_query.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d", "fqn": ["microsoft_ads", "not_null_microsoft_ads__search_report_search_query"], "alias": "not_null_microsoft_ads__search_report_search_query", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.222883, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "microsoft_ads__search_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__search_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__search_report_search_query.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__search_report`\nwhere search_query is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "search_query", "file_key_name": "models.microsoft_ads__search_report", "attached_node": "model.microsoft_ads.microsoft_ads__search_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_query", "model": "{{ get_where_subquery(ref('microsoft_ads__search_report')) }}"}, "namespace": null}}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__match_type.6753357660": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__match_type", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_dd4da238099fa2071814de626bddc196.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__match_type.6753357660", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__match_type"], "alias": "dbt_utils_unique_combination_o_dd4da238099fa2071814de626bddc196", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dd4da238099fa2071814de626bddc196", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dd4da238099fa2071814de626bddc196"}, "created_at": 1731951601.22414, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dd4da238099fa2071814de626bddc196\") }}", "language": "sql", "refs": [{"name": "microsoft_ads__search_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__search_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_dd4da238099fa2071814de626bddc196.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, search_query, device_os, device_type, network, match_type\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__search_report`\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, search_query, device_os, device_type, network, match_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.microsoft_ads__search_report", "attached_node": "model.microsoft_ads.microsoft_ads__search_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "ad_id", "keyword_id", "search_query", "device_os", "device_type", "network", "match_type"], "model": "{{ get_where_subquery(ref('microsoft_ads__search_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_microsoft_ads__url_report_base_url", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__url_report_base_url.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a", "fqn": ["microsoft_ads", "not_null_microsoft_ads__url_report_base_url"], "alias": "not_null_microsoft_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1731951601.2291179, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "microsoft_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__url_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "base_url", "file_key_name": "models.microsoft_ads__url_report", "attached_node": "model.microsoft_ads.microsoft_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('microsoft_ads__url_report')) }}"}, "namespace": null}}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.0ea4732dff": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_7fd99fa19e1faae2e73f2f6c8350fa7f.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.0ea4732dff", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code"], "alias": "dbt_utils_unique_combination_o_7fd99fa19e1faae2e73f2f6c8350fa7f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7fd99fa19e1faae2e73f2f6c8350fa7f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7fd99fa19e1faae2e73f2f6c8350fa7f"}, "created_at": 1731951601.2320588, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_7fd99fa19e1faae2e73f2f6c8350fa7f\") }}", "language": "sql", "refs": [{"name": "microsoft_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__url_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_7fd99fa19e1faae2e73f2f6c8350fa7f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, device_os, device_type, network, currency_code\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`microsoft_ads__url_report`\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, device_os, device_type, network, currency_code\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.microsoft_ads__url_report", "attached_node": "model.microsoft_ads.microsoft_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "ad_id", "device_os", "device_type", "network", "currency_code"], "model": "{{ get_where_subquery(ref('microsoft_ads__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__account_history_account_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__account_history_account_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__account_history_account_id"], "alias": "not_null_stg_twitter_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.291619, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__account_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__account_history_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_twitter_ads__account_history", "attached_node": "model.twitter_ads_source.stg_twitter_ads__account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__account_history')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_source_relation__account_id__updated_timestamp.3492933c38": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_source_relation__account_id__updated_timestamp", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_500b1c5e14598d51307017cdf7591341.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_source_relation__account_id__updated_timestamp.3492933c38", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_source_relation__account_id__updated_timestamp"], "alias": "dbt_utils_unique_combination_o_500b1c5e14598d51307017cdf7591341", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_500b1c5e14598d51307017cdf7591341", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_500b1c5e14598d51307017cdf7591341"}, "created_at": 1731951601.2929752, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_500b1c5e14598d51307017cdf7591341\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__account_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_500b1c5e14598d51307017cdf7591341.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, updated_timestamp\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__account_history`\n group by source_relation, account_id, updated_timestamp\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__account_history", "attached_node": "model.twitter_ads_source.stg_twitter_ads__account_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "updated_timestamp"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__account_history')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_history_campaign_id"], "alias": "not_null_stg_twitter_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.297281, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_twitter_ads__campaign_history", "attached_node": "model.twitter_ads_source.stg_twitter_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_history')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_source_relation__campaign_id__updated_timestamp.9b0c16487d": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_source_relation__campaign_id__updated_timestamp", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_a59e3c301853a53e1908b63d8b12887b.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_source_relation__campaign_id__updated_timestamp.9b0c16487d", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_source_relation__campaign_id__updated_timestamp"], "alias": "dbt_utils_unique_combination_o_a59e3c301853a53e1908b63d8b12887b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a59e3c301853a53e1908b63d8b12887b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a59e3c301853a53e1908b63d8b12887b"}, "created_at": 1731951601.2983801, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a59e3c301853a53e1908b63d8b12887b\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_a59e3c301853a53e1908b63d8b12887b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, updated_timestamp\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__campaign_history`\n group by source_relation, campaign_id, updated_timestamp\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__campaign_history", "attached_node": "model.twitter_ads_source.stg_twitter_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "updated_timestamp"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_history_line_item_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_history_line_item_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_history_line_item_id"], "alias": "not_null_stg_twitter_ads__line_item_history_line_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.301547, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_history_line_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_history`\nwhere line_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "line_item_id", "file_key_name": "models.stg_twitter_ads__line_item_history", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "line_item_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_history')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_source_relation__line_item_id__updated_timestamp.646fa5270f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_source_relation__line_item_id__updated_timestamp", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_d64b6eedad764e0dc879f582c43e4544.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_source_relation__line_item_id__updated_timestamp.646fa5270f", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_source_relation__line_item_id__updated_timestamp"], "alias": "dbt_utils_unique_combination_o_d64b6eedad764e0dc879f582c43e4544", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d64b6eedad764e0dc879f582c43e4544", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d64b6eedad764e0dc879f582c43e4544"}, "created_at": 1731951601.30262, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d64b6eedad764e0dc879f582c43e4544\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_d64b6eedad764e0dc879f582c43e4544.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, line_item_id, updated_timestamp\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_history`\n group by source_relation, line_item_id, updated_timestamp\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__line_item_history", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "line_item_id", "updated_timestamp"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_history')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id"], "alias": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976"}, "created_at": 1731951601.3056462, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__promoted_tweet_history`\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "promoted_tweet_id", "file_key_name": "models.stg_twitter_ads__promoted_tweet_history", "attached_node": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "promoted_tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_history')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_source_relation__promoted_tweet_id__updated_timestamp.7016099e0a": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_source_relation__promoted_tweet_id__updated_timestamp", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_35bb4648dda14e078b21d14ca0d34f38.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_source_relation__promoted_tweet_id__updated_timestamp.7016099e0a", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_source_relation__promoted_tweet_id__updated_timestamp"], "alias": "dbt_utils_unique_combination_o_35bb4648dda14e078b21d14ca0d34f38", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_35bb4648dda14e078b21d14ca0d34f38", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_35bb4648dda14e078b21d14ca0d34f38"}, "created_at": 1731951601.306891, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_35bb4648dda14e078b21d14ca0d34f38\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_35bb4648dda14e078b21d14ca0d34f38.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, promoted_tweet_id, updated_timestamp\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__promoted_tweet_history`\n group by source_relation, promoted_tweet_id, updated_timestamp\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__promoted_tweet_history", "attached_node": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "promoted_tweet_id", "updated_timestamp"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_history')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__promoted_tweet_report_date_day", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__promoted_tweet_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_report_date_day"], "alias": "not_null_stg_twitter_ads__promoted_tweet_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.311105, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__promoted_tweet_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__promoted_tweet_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_twitter_ads__promoted_tweet_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id"], "alias": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa"}, "created_at": 1731951601.312665, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__promoted_tweet_report`\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "promoted_tweet_id", "file_key_name": "models.stg_twitter_ads__promoted_tweet_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "promoted_tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__promoted_tweet_report_placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__promoted_tweet_report_placement.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_report_placement"], "alias": "not_null_stg_twitter_ads__promoted_tweet_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.313709, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__promoted_tweet_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__promoted_tweet_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "placement", "file_key_name": "models.stg_twitter_ads__promoted_tweet_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement.9d96bf07d3": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_bde425a03f5a6cb7efeda5c5a7f398fd.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement.9d96bf07d3", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement"], "alias": "dbt_utils_unique_combination_o_bde425a03f5a6cb7efeda5c5a7f398fd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bde425a03f5a6cb7efeda5c5a7f398fd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bde425a03f5a6cb7efeda5c5a7f398fd"}, "created_at": 1731951601.3148549, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bde425a03f5a6cb7efeda5c5a7f398fd\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_bde425a03f5a6cb7efeda5c5a7f398fd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, promoted_tweet_id, placement\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__promoted_tweet_report`\n group by source_relation, date_day, promoted_tweet_id, placement\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__promoted_tweet_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "promoted_tweet_id", "placement"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__tweet_url_index", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__tweet_url_index.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__tweet_url_index"], "alias": "not_null_stg_twitter_ads__tweet_url_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.318282, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__tweet_url", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__tweet_url_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__tweet_url`\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_twitter_ads__tweet_url", "attached_node": "model.twitter_ads_source.stg_twitter_ads__tweet_url", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet_url')) }}"}, "namespace": null}}, "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__tweet_url_tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__tweet_url_tweet_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__tweet_url_tweet_id"], "alias": "not_null_stg_twitter_ads__tweet_url_tweet_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.3194492, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__tweet_url", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__tweet_url_tweet_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect tweet_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__tweet_url`\nwhere tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "tweet_id", "file_key_name": "models.stg_twitter_ads__tweet_url", "attached_node": "model.twitter_ads_source.stg_twitter_ads__tweet_url", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet_url')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_source_relation__index__tweet_id.ce1a2b4a87": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_source_relation__index__tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_e770dc45175abf92d51dabb017a29aa8.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_source_relation__index__tweet_id.ce1a2b4a87", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_source_relation__index__tweet_id"], "alias": "dbt_utils_unique_combination_o_e770dc45175abf92d51dabb017a29aa8", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e770dc45175abf92d51dabb017a29aa8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e770dc45175abf92d51dabb017a29aa8"}, "created_at": 1731951601.320468, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e770dc45175abf92d51dabb017a29aa8\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__tweet_url", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_e770dc45175abf92d51dabb017a29aa8.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, index, tweet_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__tweet_url`\n group by source_relation, index, tweet_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__tweet_url", "attached_node": "model.twitter_ads_source.stg_twitter_ads__tweet_url", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "index", "tweet_id"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet_url')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__campaign_report_date_day", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_report_date_day"], "alias": "not_null_stg_twitter_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.3235269, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_twitter_ads__campaign_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_report_campaign_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_report_campaign_id"], "alias": "not_null_stg_twitter_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.324533, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_twitter_ads__campaign_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__campaign_report_placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_report_placement.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_report_placement"], "alias": "not_null_stg_twitter_ads__campaign_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.325514, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__campaign_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "placement", "file_key_name": "models.stg_twitter_ads__campaign_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement.9d5717ee54": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_f7a0017c7f25444789b16611acaec0f9.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement.9d5717ee54", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement"], "alias": "dbt_utils_unique_combination_o_f7a0017c7f25444789b16611acaec0f9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f7a0017c7f25444789b16611acaec0f9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f7a0017c7f25444789b16611acaec0f9"}, "created_at": 1731951601.3266392, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f7a0017c7f25444789b16611acaec0f9\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_f7a0017c7f25444789b16611acaec0f9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, campaign_id, placement\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__campaign_report`\n group by source_relation, date_day, campaign_id, placement\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__campaign_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "campaign_id", "placement"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_report_date_day", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_report_date_day"], "alias": "not_null_stg_twitter_ads__line_item_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.32972, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_twitter_ads__line_item_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_report_line_item_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_report_line_item_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_report_line_item_id"], "alias": "not_null_stg_twitter_ads__line_item_report_line_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.330857, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_report_line_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_report`\nwhere line_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "line_item_id", "file_key_name": "models.stg_twitter_ads__line_item_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "line_item_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_report_placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_report_placement.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_report_placement"], "alias": "not_null_stg_twitter_ads__line_item_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.331881, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "placement", "file_key_name": "models.stg_twitter_ads__line_item_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement.6c8686e61c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_5fb00a8db61a3e441709d904aea5a1f5.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement.6c8686e61c", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement"], "alias": "dbt_utils_unique_combination_o_5fb00a8db61a3e441709d904aea5a1f5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5fb00a8db61a3e441709d904aea5a1f5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5fb00a8db61a3e441709d904aea5a1f5"}, "created_at": 1731951601.333003, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5fb00a8db61a3e441709d904aea5a1f5\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_5fb00a8db61a3e441709d904aea5a1f5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, line_item_id, placement\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_report`\n group by source_relation, date_day, line_item_id, placement\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__line_item_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "line_item_id", "placement"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.e5f015e9ec": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_keywords_report_keyword_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.e5f015e9ec", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_keywords_report_keyword_id"], "alias": "not_null_stg_twitter_ads__line_item_keywords_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.335907, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_keywords_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_twitter_ads__line_item_keywords_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_keywords_report_date_day", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_keywords_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_keywords_report_date_day"], "alias": "not_null_stg_twitter_ads__line_item_keywords_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.337543, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_keywords_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_twitter_ads__line_item_keywords_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_source_relation__date_day__keyword_id.579bdc1f1c": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_source_relation__date_day__keyword_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_8b315b84c17644dba5b3f8000a97211d.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_source_relation__date_day__keyword_id.579bdc1f1c", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_source_relation__date_day__keyword_id"], "alias": "dbt_utils_unique_combination_o_8b315b84c17644dba5b3f8000a97211d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_8b315b84c17644dba5b3f8000a97211d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8b315b84c17644dba5b3f8000a97211d"}, "created_at": 1731951601.3386931, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8b315b84c17644dba5b3f8000a97211d\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_keywords_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__line_item_keywords_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "keyword_id"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_stg_twitter_ads__tweet_tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__tweet_tweet_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__tweet_tweet_id"], "alias": "not_null_stg_twitter_ads__tweet_tweet_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.341562, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__tweet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__tweet_tweet_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect tweet_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__tweet`\nwhere tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "tweet_id", "file_key_name": "models.stg_twitter_ads__tweet", "attached_node": "model.twitter_ads_source.stg_twitter_ads__tweet", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_source_relation__tweet_id.70de7f05f5": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_source_relation__tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_8424d33a3c207535850a930edff10b8d.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_source_relation__tweet_id.70de7f05f5", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_source_relation__tweet_id"], "alias": "dbt_utils_unique_combination_o_8424d33a3c207535850a930edff10b8d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8424d33a3c207535850a930edff10b8d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8424d33a3c207535850a930edff10b8d"}, "created_at": 1731951601.342832, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8424d33a3c207535850a930edff10b8d\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__tweet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_8424d33a3c207535850a930edff10b8d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, tweet_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__tweet`\n group by source_relation, tweet_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__tweet", "attached_node": "model.twitter_ads_source.stg_twitter_ads__tweet", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "tweet_id"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_linkedin_ads__account_report_account_id", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__account_report_account_id.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842", "fqn": ["linkedin", "not_null_linkedin_ads__account_report_account_id"], "alias": "not_null_linkedin_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.363929, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__account_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.linkedin_ads__account_report", "attached_node": "model.linkedin.linkedin_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('linkedin_ads__account_report')) }}"}, "namespace": null}}, "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_linkedin_ads__account_report_date_day", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__account_report_date_day.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53", "fqn": ["linkedin", "not_null_linkedin_ads__account_report_date_day"], "alias": "not_null_linkedin_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.365221, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__account_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__account_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__account_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.linkedin_ads__account_report", "attached_node": "model.linkedin.linkedin_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__account_report')) }}"}, "namespace": null}}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_source_relation__date_day__account_id.da7ea6faeb": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_source_relation__date_day__account_id", "resource_type": "test", "package_name": "linkedin", "path": "dbt_utils_unique_combination_o_9bce6acaab40fad14f6e4d3d5d48ab0f.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_source_relation__date_day__account_id.da7ea6faeb", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_source_relation__date_day__account_id"], "alias": "dbt_utils_unique_combination_o_9bce6acaab40fad14f6e4d3d5d48ab0f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9bce6acaab40fad14f6e4d3d5d48ab0f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9bce6acaab40fad14f6e4d3d5d48ab0f"}, "created_at": 1731951601.3667421, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9bce6acaab40fad14f6e4d3d5d48ab0f\") }}", "language": "sql", "refs": [{"name": "linkedin_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__account_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_9bce6acaab40fad14f6e4d3d5d48ab0f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__account_report`\n group by source_relation, date_day, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.linkedin_ads__account_report", "attached_node": "model.linkedin.linkedin_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_linkedin_ads__campaign_report_date_day", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__campaign_report_date_day.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_report_date_day"], "alias": "not_null_linkedin_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.370338, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.linkedin_ads__campaign_report", "attached_node": "model.linkedin.linkedin_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_report')) }}"}, "namespace": null}}, "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_linkedin_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__campaign_report_campaign_id.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_report_campaign_id"], "alias": "not_null_linkedin_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.371548, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.linkedin_ads__campaign_report", "attached_node": "model.linkedin.linkedin_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_report')) }}"}, "namespace": null}}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_source_relation__date_day__campaign_id__account_id__campaign_group_id.89a0d4ba0b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_source_relation__date_day__campaign_id__account_id__campaign_group_id", "resource_type": "test", "package_name": "linkedin", "path": "dbt_utils_unique_combination_o_2834640947c9276be5c38e14adcf7c0e.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_source_relation__date_day__campaign_id__account_id__campaign_group_id.89a0d4ba0b", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_source_relation__date_day__campaign_id__account_id__campaign_group_id"], "alias": "dbt_utils_unique_combination_o_2834640947c9276be5c38e14adcf7c0e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2834640947c9276be5c38e14adcf7c0e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2834640947c9276be5c38e14adcf7c0e"}, "created_at": 1731951601.372939, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2834640947c9276be5c38e14adcf7c0e\") }}", "language": "sql", "refs": [{"name": "linkedin_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_2834640947c9276be5c38e14adcf7c0e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, campaign_id, account_id, campaign_group_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__campaign_report`\n group by source_relation, date_day, campaign_id, account_id, campaign_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.linkedin_ads__campaign_report", "attached_node": "model.linkedin.linkedin_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "campaign_id", "account_id", "campaign_group_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_linkedin_ads__campaign_group_report_date_day", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__campaign_group_report_date_day.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_group_report_date_day"], "alias": "not_null_linkedin_ads__campaign_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.375867, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__campaign_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_group_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__campaign_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.linkedin_ads__campaign_group_report", "attached_node": "model.linkedin.linkedin_ads__campaign_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_group_report')) }}"}, "namespace": null}}, "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_linkedin_ads__campaign_group_report_campaign_group_id", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__campaign_group_report_campaign_group_id.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_group_report_campaign_group_id"], "alias": "not_null_linkedin_ads__campaign_group_report_campaign_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.377132, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__campaign_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_group_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_group_report_campaign_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_group_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__campaign_group_report`\nwhere campaign_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_group_id", "file_key_name": "models.linkedin_ads__campaign_group_report", "attached_node": "model.linkedin.linkedin_ads__campaign_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_group_id", "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_group_report')) }}"}, "namespace": null}}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_source_relation__date_day__campaign_group_id__account_id.36e7743abc": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_source_relation__date_day__campaign_group_id__account_id", "resource_type": "test", "package_name": "linkedin", "path": "dbt_utils_unique_combination_o_c1d8df8e935ca6d9fae1aac12e5c9569.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_source_relation__date_day__campaign_group_id__account_id.36e7743abc", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_source_relation__date_day__campaign_group_id__account_id"], "alias": "dbt_utils_unique_combination_o_c1d8df8e935ca6d9fae1aac12e5c9569", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c1d8df8e935ca6d9fae1aac12e5c9569", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c1d8df8e935ca6d9fae1aac12e5c9569"}, "created_at": 1731951601.37832, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c1d8df8e935ca6d9fae1aac12e5c9569\") }}", "language": "sql", "refs": [{"name": "linkedin_ads__campaign_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_group_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_c1d8df8e935ca6d9fae1aac12e5c9569.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, campaign_group_id, account_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__campaign_group_report`\n group by source_relation, date_day, campaign_group_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.linkedin_ads__campaign_group_report", "attached_node": "model.linkedin.linkedin_ads__campaign_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "campaign_group_id", "account_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_linkedin_ads__creative_report_date_day", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__creative_report_date_day.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020", "fqn": ["linkedin", "not_null_linkedin_ads__creative_report_date_day"], "alias": "not_null_linkedin_ads__creative_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.381216, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__creative_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__creative_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__creative_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__creative_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.linkedin_ads__creative_report", "attached_node": "model.linkedin.linkedin_ads__creative_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__creative_report')) }}"}, "namespace": null}}, "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_linkedin_ads__creative_report_creative_id", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__creative_report_creative_id.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889", "fqn": ["linkedin", "not_null_linkedin_ads__creative_report_creative_id"], "alias": "not_null_linkedin_ads__creative_report_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.3822238, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__creative_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__creative_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__creative_report_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__creative_report`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "creative_id", "file_key_name": "models.linkedin_ads__creative_report", "attached_node": "model.linkedin.linkedin_ads__creative_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('linkedin_ads__creative_report')) }}"}, "namespace": null}}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.f9e5f8f610": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id", "resource_type": "test", "package_name": "linkedin", "path": "dbt_utils_unique_combination_o_6c351b701eaff508f607182136ef5c9c.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.f9e5f8f610", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id"], "alias": "dbt_utils_unique_combination_o_6c351b701eaff508f607182136ef5c9c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6c351b701eaff508f607182136ef5c9c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6c351b701eaff508f607182136ef5c9c"}, "created_at": 1731951601.38325, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6c351b701eaff508f607182136ef5c9c\") }}", "language": "sql", "refs": [{"name": "linkedin_ads__creative_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__creative_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_6c351b701eaff508f607182136ef5c9c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, creative_id, campaign_id, campaign_group_id, account_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__creative_report`\n group by source_relation, date_day, creative_id, campaign_id, campaign_group_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.linkedin_ads__creative_report", "attached_node": "model.linkedin.linkedin_ads__creative_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "creative_id", "campaign_id", "campaign_group_id", "account_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__creative_report')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_linkedin_ads__url_report_date_day", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__url_report_date_day.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315", "fqn": ["linkedin", "not_null_linkedin_ads__url_report_date_day"], "alias": "not_null_linkedin_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.385822, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.linkedin_ads__url_report", "attached_node": "model.linkedin.linkedin_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__url_report')) }}"}, "namespace": null}}, "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_linkedin_ads__url_report_creative_id", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__url_report_creative_id.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2", "fqn": ["linkedin", "not_null_linkedin_ads__url_report_creative_id"], "alias": "not_null_linkedin_ads__url_report_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1731951601.3870971, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__url_report_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__url_report`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "creative_id", "file_key_name": "models.linkedin_ads__url_report", "attached_node": "model.linkedin.linkedin_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('linkedin_ads__url_report')) }}"}, "namespace": null}}, "test.linkedin.not_null_linkedin_ads__url_report_click_uri.81534087cb": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "not_null_linkedin_ads__url_report_click_uri", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__url_report_click_uri.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_click_uri.81534087cb", "fqn": ["linkedin", "not_null_linkedin_ads__url_report_click_uri"], "alias": "not_null_linkedin_ads__url_report_click_uri", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1731951601.3888052, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "linkedin_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__url_report_click_uri.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect click_uri\nfrom `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__url_report`\nwhere click_uri is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "click_uri", "file_key_name": "models.linkedin_ads__url_report", "attached_node": "model.linkedin.linkedin_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "click_uri", "model": "{{ get_where_subquery(ref('linkedin_ads__url_report')) }}"}, "namespace": null}}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.0ff865de89": {"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id", "resource_type": "test", "package_name": "linkedin", "path": "dbt_utils_unique_combination_o_ffc9560cb56727d91f17784e571bfd77.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.0ff865de89", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id"], "alias": "dbt_utils_unique_combination_o_ffc9560cb56727d91f17784e571bfd77", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ffc9560cb56727d91f17784e571bfd77", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ffc9560cb56727d91f17784e571bfd77"}, "created_at": 1731951601.390351, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_ffc9560cb56727d91f17784e571bfd77\") }}", "language": "sql", "refs": [{"name": "linkedin_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_ffc9560cb56727d91f17784e571bfd77.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, creative_id, campaign_id, campaign_group_id, account_id\n from `dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`linkedin_ads__url_report`\n group by source_relation, date_day, creative_id, campaign_id, campaign_group_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.linkedin_ads__url_report", "attached_node": "model.linkedin.linkedin_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "creative_id", "campaign_id", "campaign_group_id", "account_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__url_report')) }}"}, "namespace": "dbt_utils"}}}, "sources": {"source.microsoft_ads_source.microsoft_ads.account_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "account_history", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.account_history", "fqn": ["microsoft_ads_source", "microsoft_ads", "account_history"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_account_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a version of one or more Microsoft accounts.", "columns": {"id": {"name": "id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_account_history_data`", "created_at": 1731951601.399201}, "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "account_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "account_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_account_performance_daily_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by account and all non-metric columns.", "columns": {"date": {"name": "date", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_qualified": {"name": "conversions_qualified", "description": "Number of [conversions](https://learn.microsoft.com/en-us/advertising/reporting-service/conversionperformancereportcolumn?view=bingads-13#conversionsqualified), measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`) Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "revenue": {"name": "revenue", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_qualified": {"name": "all_conversions_qualified", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_account_performance_daily_report_data`", "created_at": 1731951601.400157}, "source.microsoft_ads_source.microsoft_ads.ad_group_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_group_history", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_history", "fqn": ["microsoft_ads_source", "microsoft_ads", "ad_group_history"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_ad_group_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a version of one or more Microsoft ad groups.", "columns": {"id": {"name": "id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_time": {"name": "modified_time", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The date in which an ad group starts running.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The date in which this ad group will no longer run.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of this ad group; see the following [documentation](https://help.ads.microsoft.com/apex/index/3/en/53094) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_ad_group_history_data`", "created_at": 1731951601.400288}, "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_group_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "ad_group_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_ad_group_performance_daily_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by account, campaign, ad group and all non-metric columns.", "columns": {"date": {"name": "date", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_qualified": {"name": "conversions_qualified", "description": "Number of [conversions](https://learn.microsoft.com/en-us/advertising/reporting-service/conversionperformancereportcolumn?view=bingads-13#conversionsqualified), measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`) Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "revenue": {"name": "revenue", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_qualified": {"name": "all_conversions_qualified", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`)\nNumber of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_revenue": {"name": "all_revenue", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_ad_group_performance_daily_report_data`", "created_at": 1731951601.400435}, "source.microsoft_ads_source.microsoft_ads.ad_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_history", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_history", "fqn": ["microsoft_ads_source", "microsoft_ads", "ad_history"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_ad_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a version of one or more Microsoft ads.", "columns": {"id": {"name": "id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title_part_1": {"name": "title_part_1", "description": "The name of the corresponding ad; `title_part_1` is used as the ad name as a proxy as one is not provided by the data source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "final_url": {"name": "final_url", "description": "The full URL that the ad links to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_time": {"name": "modified_time", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of this ad; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/adstatus?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The ad type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/adtype?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_ad_history_data`", "created_at": 1731951601.400555}, "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "ad_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_ad_performance_daily_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad and all non-metric columns.", "columns": {"date": {"name": "date", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_qualified": {"name": "conversions_qualified", "description": "Number of [conversions](https://learn.microsoft.com/en-us/advertising/reporting-service/conversionperformancereportcolumn?view=bingads-13#conversionsqualified), measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`) Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "revenue": {"name": "revenue", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_qualified": {"name": "all_conversions_qualified", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`)\nNumber of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_revenue": {"name": "all_revenue", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_ad_performance_daily_report_data`", "created_at": 1731951601.400699}, "source.microsoft_ads_source.microsoft_ads.campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_history", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_history", "fqn": ["microsoft_ads_source", "microsoft_ads", "campaign_history"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a version of one or more Microsoft campaigns.", "columns": {"id": {"name": "id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_time": {"name": "modified_time", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The campaign type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaigntype?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of this campaign; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaignstatus?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_campaign_history_data`", "created_at": 1731951601.400813}, "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "campaign_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_campaign_performance_daily_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by account, campaign and all non-metric columns.", "columns": {"date": {"name": "date", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_association_status": {"name": "budget_association_status", "description": "Indicates whether or not the campaign is currently spending from the budget mentioned in the BudgetName column. The possible values are `Current` and `Ended`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_name": {"name": "budget_name", "description": "The name of the budget. This column will be empty for unshared budgets.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_status": {"name": "budget_status", "description": "The budget status. The possible values are `Active` and `Deleted`. This column will be empty for unshared budgets.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_qualified": {"name": "conversions_qualified", "description": "Number of [conversions](https://learn.microsoft.com/en-us/advertising/reporting-service/conversionperformancereportcolumn?view=bingads-13#conversionsqualified), measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`) Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "revenue": {"name": "revenue", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_qualified": {"name": "all_conversions_qualified", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`)\nNumber of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_revenue": {"name": "all_revenue", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_campaign_performance_daily_report_data`", "created_at": 1731951601.400954}, "source.microsoft_ads_source.microsoft_ads.keyword_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "keyword_history", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_history", "fqn": ["microsoft_ads_source", "microsoft_ads", "keyword_history"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_keyword_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a version of one or more Microsoft keywords.", "columns": {"id": {"name": "id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The keyword(s) associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_time": {"name": "modified_time", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "The match type associated with this record; values contain but may not be limited to 'Broad', 'Exact', 'Phrase'. Please refer to Microsoft Ad's [documentation](https://help.ads.microsoft.com/#apex/ads/en/50822/1).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of this keyword; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/keywordstatus?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_keyword_history_data`", "created_at": 1731951601.401068}, "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "keyword_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "keyword_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_keyword_performance_daily_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad, keyword and all non-metric columns.", "columns": {"date": {"name": "date", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_qualified": {"name": "conversions_qualified", "description": "Number of [conversions](https://learn.microsoft.com/en-us/advertising/reporting-service/conversionperformancereportcolumn?view=bingads-13#conversionsqualified), measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`) Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "revenue": {"name": "revenue", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_qualified": {"name": "all_conversions_qualified", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`)\nNumber of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_revenue": {"name": "all_revenue", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_keyword_performance_daily_report_data`", "created_at": 1731951601.401321}, "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "search_query_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "search_query_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_search_performance_daily_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad, keyword and all non-metric columns.", "columns": {"date": {"name": "date", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_query": {"name": "search_query", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_qualified": {"name": "conversions_qualified", "description": "Number of [conversions](https://learn.microsoft.com/en-us/advertising/reporting-service/conversionperformancereportcolumn?view=bingads-13#conversionsqualified), measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`) Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "revenue": {"name": "revenue", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_qualified": {"name": "all_conversions_qualified", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`)\nNumber of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_revenue": {"name": "all_revenue", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`microsoft_ads_search_performance_daily_report_data`", "created_at": 1731951601.401472}, "source.reddit_ads_source.reddit_ads.account": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "account", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.account", "fqn": ["reddit_ads_source", "reddit_ads", "account"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_account_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents information about an account.", "columns": {"id": {"name": "id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attribution_type": {"name": "attribution_type", "description": "Attribution type: \"CLICK_THROUGH_CONVERSION\", \"VIEW_THROUGH_CONVERSION\", or \"ALL_CONVERSION\".\nCLICK_THROUGH_CONVERSION: A user clicked on your ad and then completed the conversion action on your site. \nVIEW_THROUGH_CONVERSION: A user saw your ad and did not click it, but did complete the conversion action on your site.\nALL_CONVERSION: Combination of both.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_attribution_window": {"name": "click_attribution_window", "description": "Determines how long after clicking on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current state of the advertiser. \"PENDING_BILLING\", \"VALID\", \"TRUSTED\", \"ADMIN\", \"FAILED_BILLING\", \"SUSPICIOUS\", \"SUSPENDED\", or \"BANNED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone_id": {"name": "time_zone_id", "description": "The time zone id preference for this account", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_attribution_window": {"name": "view_attribution_window", "description": "Determines how long after viewing on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_account_data`", "created_at": 1731951601.4015949}, "source.reddit_ads_source.reddit_ads.account_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "account_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.account_report", "fqn": ["reddit_ads_source", "reddit_ads", "account_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_account_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a summary of events for each given date and account.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comment_downvotes": {"name": "comment_downvotes", "description": "The number comment downvotes for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comment_upvotes": {"name": "comment_upvotes", "description": "The number comment upvotes for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments_page_views": {"name": "comments_page_views", "description": "The number of times the comments page was viewed for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_roas": {"name": "conversion_roas", "description": "Return on ad spend for purchases for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The cost-per-click for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The click-through-rate for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ecpm": {"name": "ecpm", "description": "The effective CPM for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount (in microcurrency) spent for this report period in Ad Account's currency, as defined [here](https://ads-api.reddit.com/docs/#tag/Reporting/paths/~1api~1v2.0~1accounts~1{account_id}~1reports/get)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_started": {"name": "video_started", "description": "The number of times the ad was served and the video began playing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_25_percent": {"name": "video_watched_25_percent", "description": "The number of times the ad was served and at least 25% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_3_seconds": {"name": "video_watched_3_seconds", "description": "The number of times the ad was served and at least 3 seconds of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_50_percent": {"name": "video_watched_50_percent", "description": "The number of times the ad was served and at least 50% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_5_seconds": {"name": "video_watched_5_seconds", "description": "The number of times the ad was served and at least 5 seconds of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_75_percent": {"name": "video_watched_75_percent", "description": "The number of times the ad was served and at least 75% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "viewer_comments": {"name": "viewer_comments", "description": "The number of times a user saw the post, and also commented on it. We count per view + comment combination (similar to a conversion)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_account_report_data`", "created_at": 1731951601.4019399}, "source.reddit_ads_source.reddit_ads.ad": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.ad", "fqn": ["reddit_ads_source", "reddit_ads", "ad"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_ad_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents information about each ad.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_url": {"name": "click_url", "description": "The destination url, or the website address, that a visitor goes to when they click on the ad", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_id": {"name": "post_id", "description": "The ID of the post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_url": {"name": "post_url", "description": "The URL belonging to the post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rejection_reason": {"name": "rejection_reason", "description": "Reason why entity was rejected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_data`", "created_at": 1731951601.4022348}, "source.reddit_ads_source.reddit_ads.ad_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.ad_report", "fqn": ["reddit_ads_source", "reddit_ads", "ad_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_ad_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a summary of events for each given date and ad.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comment_downvotes": {"name": "comment_downvotes", "description": "The number comment downvotes for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comment_upvotes": {"name": "comment_upvotes", "description": "The number comment upvotes for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments_page_views": {"name": "comments_page_views", "description": "The number of times the comments page was viewed for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_roas": {"name": "conversion_roas", "description": "Return on ad spend for purchases for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The cost-per-click for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The click-through-rate for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ecpm": {"name": "ecpm", "description": "The effective CPM for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount (in microcurrency) spent for this report period in Ad Account's currency, as defined [here](https://ads-api.reddit.com/docs/#tag/Reporting/paths/~1api~1v2.0~1accounts~1{account_id}~1reports/get)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_started": {"name": "video_started", "description": "The number of times the ad was served and the video began playing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_25_percent": {"name": "video_watched_25_percent", "description": "The number of times the ad was served and at least 25% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_3_seconds": {"name": "video_watched_3_seconds", "description": "The number of times the ad was served and at least 3 seconds of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_50_percent": {"name": "video_watched_50_percent", "description": "The number of times the ad was served and at least 50% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_5_seconds": {"name": "video_watched_5_seconds", "description": "The number of times the ad was served and at least 5 seconds of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_75_percent": {"name": "video_watched_75_percent", "description": "The number of times the ad was served and at least 75% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "viewer_comments": {"name": "viewer_comments", "description": "The number of times a user saw the post, and also commented on it. We count per view + comment combination (similar to a conversion)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_report_data`", "created_at": 1731951601.4025211}, "source.reddit_ads_source.reddit_ads.ad_group": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_group", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.ad_group", "fqn": ["reddit_ads_source", "reddit_ads", "ad_group"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_ad_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents information about each ad group.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_strategy": {"name": "bid_strategy", "description": "The bid strategy for this entity. \"MAXIMIZE_VOLUME\", \"MANUAL_BIDDING\", or \"BIDLESS\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_value": {"name": "bid_value", "description": "The amount to pay in microcurrency per bidding event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "When the entity will stop delivering.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expand_targeting": {"name": "expand_targeting", "description": "Boolean that when selected, allows Reddit to expand your targeting to maximize your results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "goal_type": {"name": "goal_type", "description": "The type of goal for the entity. \"IMPRESSIONS\", \"PERCENTAGE\", \"CLICKS\", \"CONVERSIONS\", \"LIFETIME_SPEND\", \"DAILY_SPEND\", or \"VIDEO_VIEWABLE_IMPRESSIONS\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "goal_value": {"name": "goal_value", "description": "The value used to determine the goal has been met. This is measured in microcurrency for monetary goals types.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization_strategy_type": {"name": "optimization_strategy_type", "description": "The strategy to use when optimizing the delivery of an ad. \"DOWNSTREAM_CONVERSIONS\" or \"APP_INSTALLS\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "When the entity will begin to deliver.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_group_data`", "created_at": 1731951601.402682}, "source.reddit_ads_source.reddit_ads.ad_group_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_group_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.ad_group_report", "fqn": ["reddit_ads_source", "reddit_ads", "ad_group_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_ad_group_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a summary of events for each given date and ad group.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comment_downvotes": {"name": "comment_downvotes", "description": "The number comment downvotes for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comment_upvotes": {"name": "comment_upvotes", "description": "The number comment upvotes for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments_page_views": {"name": "comments_page_views", "description": "The number of times the comments page was viewed for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_roas": {"name": "conversion_roas", "description": "Return on ad spend for purchases for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The cost-per-click for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The click-through-rate for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ecpm": {"name": "ecpm", "description": "The effective CPM for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount (in microcurrency) spent for this report period in Ad Account's currency, as defined [here](https://ads-api.reddit.com/docs/#tag/Reporting/paths/~1api~1v2.0~1accounts~1{account_id}~1reports/get)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_started": {"name": "video_started", "description": "The number of times the ad was served and the video began playing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_25_percent": {"name": "video_watched_25_percent", "description": "The number of times the ad was served and at least 25% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_3_seconds": {"name": "video_watched_3_seconds", "description": "The number of times the ad was served and at least 3 seconds of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_50_percent": {"name": "video_watched_50_percent", "description": "The number of times the ad was served and at least 50% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_5_seconds": {"name": "video_watched_5_seconds", "description": "The number of times the ad was served and at least 5 seconds of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_75_percent": {"name": "video_watched_75_percent", "description": "The number of times the ad was served and at least 75% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "viewer_comments": {"name": "viewer_comments", "description": "The number of times a user saw the post, and also commented on it. We count per view + comment combination (similar to a conversion)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_group_report_data`", "created_at": 1731951601.403069}, "source.reddit_ads_source.reddit_ads.campaign": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.campaign", "fqn": ["reddit_ads_source", "reddit_ads", "campaign"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_campaign_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents information about each campaign.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Campaign level funding instrument id", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The objective type of a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_campaign_data`", "created_at": 1731951601.403255}, "source.reddit_ads_source.reddit_ads.campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.campaign_report", "fqn": ["reddit_ads_source", "reddit_ads", "campaign_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_campaign_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a summary of events for each given date and campaign.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comment_downvotes": {"name": "comment_downvotes", "description": "The number comment downvotes for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comment_upvotes": {"name": "comment_upvotes", "description": "The number comment upvotes for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments_page_views": {"name": "comments_page_views", "description": "The number of times the comments page was viewed for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_roas": {"name": "conversion_roas", "description": "Return on ad spend for purchases for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The cost-per-click for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The click-through-rate for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ecpm": {"name": "ecpm", "description": "The effective CPM for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount (in microcurrency) spent for this report period in Ad Account's currency, as defined [here](https://ads-api.reddit.com/docs/#tag/Reporting/paths/~1api~1v2.0~1accounts~1{account_id}~1reports/get)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_started": {"name": "video_started", "description": "The number of times the ad was served and the video began playing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_25_percent": {"name": "video_watched_25_percent", "description": "The number of times the ad was served and at least 25% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_3_seconds": {"name": "video_watched_3_seconds", "description": "The number of times the ad was served and at least 3 seconds of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_50_percent": {"name": "video_watched_50_percent", "description": "The number of times the ad was served and at least 50% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_5_seconds": {"name": "video_watched_5_seconds", "description": "The number of times the ad was served and at least 5 seconds of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_75_percent": {"name": "video_watched_75_percent", "description": "The number of times the ad was served and at least 75% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "viewer_comments": {"name": "viewer_comments", "description": "The number of times a user saw the post, and also commented on it. We count per view + comment combination (similar to a conversion)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_campaign_report_data`", "created_at": 1731951601.403614}, "source.reddit_ads_source.reddit_ads.account_conversions_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "account_conversions_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.account_conversions_report", "fqn": ["reddit_ads_source", "reddit_ads", "account_conversions_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_account_conversions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Provides a summary of conversion events at the account level, aggregating key metrics by event and day.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_value": {"name": "avg_value", "description": "The average value of conversions over a given period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_month": {"name": "click_through_conversion_attribution_window_month", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_month": {"name": "view_through_conversion_attribution_window_month", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_day": {"name": "click_through_conversion_attribution_window_day", "description": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_week": {"name": "click_through_conversion_attribution_window_week", "description": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_day": {"name": "view_through_conversion_attribution_window_day", "description": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_week": {"name": "view_through_conversion_attribution_window_week", "description": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_account_conversions`", "created_at": 1731951601.4038022}, "source.reddit_ads_source.reddit_ads.ad_group_conversions_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_group_conversions_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.ad_group_conversions_report", "fqn": ["reddit_ads_source", "reddit_ads", "ad_group_conversions_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_ad_group_conversions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Provides a summary of conversion events at the ad group level, aggregating key metrics by event and day.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_value": {"name": "avg_value", "description": "The average value of conversions over a given period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_month": {"name": "click_through_conversion_attribution_window_month", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_month": {"name": "view_through_conversion_attribution_window_month", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_day": {"name": "click_through_conversion_attribution_window_day", "description": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_week": {"name": "click_through_conversion_attribution_window_week", "description": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_day": {"name": "view_through_conversion_attribution_window_day", "description": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_week": {"name": "view_through_conversion_attribution_window_week", "description": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_group_conversions`", "created_at": 1731951601.40395}, "source.reddit_ads_source.reddit_ads.ad_conversions_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_conversions_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.ad_conversions_report", "fqn": ["reddit_ads_source", "reddit_ads", "ad_conversions_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_ad_conversions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Provides a summary of conversion events at the individual ad level, aggregating key metrics by event and day.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_value": {"name": "avg_value", "description": "The average value of conversions over a given period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_month": {"name": "click_through_conversion_attribution_window_month", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_month": {"name": "view_through_conversion_attribution_window_month", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_day": {"name": "click_through_conversion_attribution_window_day", "description": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_week": {"name": "click_through_conversion_attribution_window_week", "description": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_day": {"name": "view_through_conversion_attribution_window_day", "description": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_week": {"name": "view_through_conversion_attribution_window_week", "description": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_ad_conversions`", "created_at": 1731951601.404085}, "source.reddit_ads_source.reddit_ads.campaign_conversions_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_conversions_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.campaign_conversions_report", "fqn": ["reddit_ads_source", "reddit_ads", "campaign_conversions_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_campaign_conversions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Provides a summary of conversion events at the campaign level, aggregating key metrics by event and day.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_value": {"name": "avg_value", "description": "The average value of conversions over a given period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_month": {"name": "click_through_conversion_attribution_window_month", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_month": {"name": "view_through_conversion_attribution_window_month", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_day": {"name": "click_through_conversion_attribution_window_day", "description": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_week": {"name": "click_through_conversion_attribution_window_week", "description": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_day": {"name": "view_through_conversion_attribution_window_day", "description": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_week": {"name": "view_through_conversion_attribution_window_week", "description": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`reddit_ads_campaign_conversions`", "created_at": 1731951601.404217}, "source.amazon_ads_source.amazon_ads.ad_group_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_group_history", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.ad_group_history", "fqn": ["amazon_ads_source", "amazon_ads", "ad_group_history"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_ad_group_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents an ad group in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_bid": {"name": "default_bid", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_ad_group_history_data`", "created_at": 1731951601.404342}, "source.amazon_ads_source.amazon_ads.ad_group_level_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_group_level_report", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.ad_group_level_report", "fqn": ["amazon_ads_source", "amazon_ads", "ad_group_level_report"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_ad_group_level_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by Amazon ad group.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_ad_group_level_report_data`", "created_at": 1731951601.404465}, "source.amazon_ads_source.amazon_ads.advertised_product_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "advertised_product_report", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.advertised_product_report", "fqn": ["amazon_ads_source", "amazon_ads", "advertised_product_report"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_advertised_product_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Advertised product reports contain performance data for products that are advertised as part of your campaigns.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertised_asin": {"name": "advertised_asin", "description": "The ASIN associated to an advertised product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertised_sku": {"name": "advertised_sku", "description": "The SKU being advertised.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_advertised_product_report_data`", "created_at": 1731951601.404599}, "source.amazon_ads_source.amazon_ads.campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_history", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.campaign_history", "fqn": ["amazon_ads_source", "amazon_ads", "campaign_history"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a campaign in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bidding_strategy": {"name": "bidding_strategy", "description": "The bidding strategy associated with a campaign (legacyForSales, autoForSales, or manual.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget": {"name": "budget", "description": "The budget for the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_type": {"name": "budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_budget": {"name": "effective_budget", "description": "Adjusted budget for the campaign that has been impacted by a budget rule.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "targeting_type": {"name": "targeting_type", "description": "The type of targeting used for the campaign, either manual or auto.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_campaign_history_data`", "created_at": 1731951601.404907}, "source.amazon_ads_source.amazon_ads.campaign_level_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_level_report", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.campaign_level_report", "fqn": ["amazon_ads_source", "amazon_ads", "campaign_level_report"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_campaign_level_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by Amazon campaign.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_applicable_budget_rule_id": {"name": "campaign_applicable_budget_rule_id", "description": "The ID associated to the active budget rule for a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_applicable_budget_rule_name": {"name": "campaign_applicable_budget_rule_name", "description": "The name associated to the active budget rule for a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_rule_based_budget_amount": {"name": "campaign_rule_based_budget_amount", "description": "The value of the rule-based budget for a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_campaign_level_report_data`", "created_at": 1731951601.4054332}, "source.amazon_ads_source.amazon_ads.keyword_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "keyword_history", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.keyword_history", "fqn": ["amazon_ads_source", "amazon_ads", "keyword_history"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_keyword_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a keyword in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid": {"name": "bid", "description": "Bid associated with this keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The exact text for the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "One of (broad, exact, or phrase.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_language_keyword": {"name": "native_language_keyword", "description": "The unlocalized keyword text in the preferred locale of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_language_locale": {"name": "native_language_locale", "description": "The preferred language locale of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_keyword_history_data`", "created_at": 1731951601.4055822}, "source.amazon_ads_source.amazon_ads.portfolio_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "portfolio_history", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.portfolio_history", "fqn": ["amazon_ads_source", "amazon_ads", "portfolio_history"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_portfolio_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a portfolio in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_amount": {"name": "budget_amount", "description": "The budget amount associated with the portfolio. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_currency_code": {"name": "budget_currency_code", "description": "The currency used for all monetary values for entities under this profile. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_end_date": {"name": "budget_end_date", "description": "The end date after which the budget is no longer applied. Optional if policy is set to dateRange or monthlyRecurring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_start_date": {"name": "budget_start_date", "description": "The starting date in YYYYMMDD format to which the budget is applied. Required if policy is set to dateRange. Not specified if policy is set to monthlyRecurring. Note that the starting date for monthlyRecurring is the date when the policy is set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_policy": {"name": "budget_policy", "description": "The budget policy. Set to dateRange to specify a budget for a specific period of time. Set to monthlyRecurring to specify a budget that is automatically renewed at the beginning of each month. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "in_budget": {"name": "in_budget", "description": "Indicates the current budget status of the portfolio. Set to true if the portfolio is in budget, set to false if the portfolio is out of budget.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_portfolio_history_data`", "created_at": 1731951601.405716}, "source.amazon_ads_source.amazon_ads.product_ad_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "product_ad_history", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.product_ad_history", "fqn": ["amazon_ads_source", "amazon_ads", "product_ad_history"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_product_ad_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a product in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "asin": {"name": "asin", "description": "The Amazon Standard Identification Number (ASIN) associated with the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sku": {"name": "sku", "description": "The product SKU associated with the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_product_ad_history_data`", "created_at": 1731951601.406126}, "source.amazon_ads_source.amazon_ads.profile": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "profile", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.profile", "fqn": ["amazon_ads_source", "amazon_ads", "profile"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a profile. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "ID of the profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_marketplace_string_id": {"name": "account_marketplace_string_id", "description": "The identifier of the marketplace to which the account is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account subtype.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "One of seller, vendor, or agency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_valid_payment_method": {"name": "account_valid_payment_method", "description": "For Vendors, this returns if the Advertiser has set up a valid payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency used for all monetary values for entities under this profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget for Sponsored Product campaigns for seller type accounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The time zone used for all date-based campaign management and reporting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_profile_data`", "created_at": 1731951601.4063702}, "source.amazon_ads_source.amazon_ads.targeting_keyword_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "targeting_keyword_report", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.targeting_keyword_report", "fqn": ["amazon_ads_source", "amazon_ads", "targeting_keyword_report"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_targeting_keyword_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Targeting reports contain performance metrics broken down by both targeting expressions and keywords.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_keyword_status": {"name": "ad_keyword_status", "description": "Current status of a keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_bid": {"name": "keyword_bid", "description": "Bid associated with a keyword or targeting expression.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_type": {"name": "keyword_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "targeting": {"name": "targeting", "description": "A string representation of the expression object used in the targeting clause.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_targeting_keyword_report_data`", "created_at": 1731951601.406584}, "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "search_term_ad_keyword_report", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report", "fqn": ["amazon_ads_source", "amazon_ads", "search_term_ad_keyword_report"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_search_term_ad_keyword_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Search term reports contain search term performance metrics broken down by targeting expressions and keywords.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_bid": {"name": "keyword_bid", "description": "Bid associated with a keyword or targeting expression.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_term": {"name": "search_term", "description": "The search term used by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "targeting": {"name": "targeting", "description": "A string representation of the expression object used in the targeting clause.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`amazon_ads_search_term_ad_keyword_report_data`", "created_at": 1731951601.406817}, "source.linkedin_source.linkedin_ads.ad_analytics_by_creative": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_analytics_by_creative", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin_ads.ad_analytics_by_creative", "fqn": ["linkedin_source", "linkedin_ads", "ad_analytics_by_creative"], "source_name": "linkedin_ads", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_analytics_by_creative_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance of ads at the creative level.", "columns": {"creative_id": {"name": "creative_id", "description": "The ID of the related creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "day": {"name": "day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_in_local_currency": {"name": "cost_in_local_currency", "description": "The cost of the ads in the local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_in_usd": {"name": "cost_in_usd", "description": "The cost of the ads in the USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_analytics_by_creative_data`", "created_at": 1731951601.406954}, "source.linkedin_source.linkedin_ads.creative_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "creative_history", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin_ads.creative_history", "fqn": ["linkedin_source", "linkedin_ads", "creative_history"], "source_name": "linkedin_ads", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_creative_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a 'version' of a creative.", "columns": {"id": {"name": "id", "description": "Unique internal ID representing the creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The timestamp of when the version was updated (Linkedin Ads pre-January 2023 API Update).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated (Linkedin Ads post-January 2023 API Update).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The timestamp of when the creative was created (Linkedin Ads pre-January 2023 API Update).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the creative was created (Linkedin Ads post-January 2023 API Update).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign the creative belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_uri": {"name": "click_uri", "description": "Required when creative type is TEXT_AD. Maximum character limit of 500 after URL encoding all special characters. \nLimit does not include the \"https://\" prefix.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "intended_status": {"name": "intended_status", "description": "ACTIVE - Creative creation is complete and creative is available for review and serve.\nPAUSED - Creative creation is complete and creative is current, but should temporarily not be served. This status is not valid upon creation.\nDRAFT - Creative creation is incomplete and may still be edited.\nARCHIVED - Creative creation is complete, but creative should not be served and should be separated from non-archived creatives in any UI.\nCANCELED - Creative is permanently canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_creative_history_data`", "created_at": 1731951601.4071438}, "source.linkedin_source.linkedin_ads.campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_history", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin_ads.campaign_history", "fqn": ["linkedin_source", "linkedin_ads", "campaign_history"], "source_name": "linkedin_ads", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a 'version' of a campaign.", "columns": {"id": {"name": "id", "description": "Unique internal ID representing the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account the campaign belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "The ID of the campaign group the campaign belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The timestamp of when the campaign was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "A label for the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "audience_expansion_enabled": {"name": "audience_expansion_enabled", "description": "Boolean (default=false) representing whether Audience Expansion is enabled for the campaign provides query expansion for certain targeting criteria.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_type": {"name": "cost_type", "description": "CPM - Cost per thousand advertising impressions. If type=SPONSORED_INMAILS; cost per send(CPS) is measured as CPM x 1000.\nCPC- Cost per individual click on the associated link.\nCPV- Cost per view for video ads.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_selection": {"name": "creative_selection", "description": "ROUND_ROBIN - Rotate through available creatives to serve them as evenly as possible.\nOPTIMIZED (default) - Bias selection taking into account such as expected performance. Not available for Message and Conversation Ads (type=SPONSORED_INMAILS).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_amount": {"name": "daily_budget_amount", "description": "Maximum amount to spend per day UTC. The amount of money as a real number string.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_currency_code": {"name": "daily_budget_currency_code", "description": "ISO currency code. The currency must match that of the parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "format": {"name": "format", "description": "The ad format on the campaign level. See https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads/campaign-formats?view=li-lms-2022-07", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "locale_country": {"name": "locale_country", "description": "Locale of the campaign. An uppercase two-letter country code as defined by ISO-3166.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "locale_language": {"name": "locale_language", "description": "Locale of the campaign. A lowercase two-letter language code as defined by ISO-639.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective_type": {"name": "objective_type", "description": "Campaign Objective type values. Click [here](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ad-budget-pricing-type-combinations?view=li-lms-2022-07) for Campaign Objective descriptions. One of: - BRAND_AWARENESS - ENGAGEMENT - JOB_APPLICANTS - LEAD_GENERATION - WEBSITE_CONVERSIONS - WEBSITE_VISITS - VIDEO_VIEWS\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "offsite_delivery_enabled": {"name": "offsite_delivery_enabled", "description": "Boolean indicating if this campaign to allowed to be served on the LinkedIn Audience Network to extend the reach of your campaign by delivering ads beyond the LinkedIn feed to members on third-party apps and sites.\t(default will be \"True\" from June 30, 2022)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization_target_type": {"name": "optimization_target_type", "description": "Determines how this campaign is optimized for spending. If this is not set, there is no optimization. Refer to the documentation here. Default = 'NONE'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_start": {"name": "run_schedule_start", "description": "Scheduled date range to run associated creatives. The start date must be non-null. Represents the inclusive (greater than or equal to) value in which to start the range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_end": {"name": "run_schedule_end", "description": "Scheduled date range to run associated creatives. The start date must be non-null. Represents the exclusive (strictly less than) value in which to end the range, if provided.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "ACTIVE - Denotes that the campaign is fully servable.\nPAUSED - Denotes that the campaign meets all requirements to be served, but temporarily should not be.\nARCHIVED - Denotes that the campaign is presently inactive, and should mostly be hidden in the UI until un-archived.\nCOMPLETED - Denotes that the campaign has reached a specified budgetary or chronological limit.\nCANCELED - Denotes that the campaign has been permanently canceled, such as when an advertising account is permanently closed.\nDRAFT - Denotes that the campaign is still being edited and not eligible for serving. Some validation will be postponed until the campaign is activated.\nPENDING_DELETION - Denotes that the campaign has been requested to be deleted that is currently pending.\nREMOVED - Denotes that the campaign was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "TEXT_AD - Text-based ads that show up in the right column or top of the page on LinkedIn.\nSPONSORED_UPDATES - Native ads that promote a company's content updates in the LinkedIn feed.\nSPONSORED_INMAILS - Personalized messages with a call-to-action button delivered to a LinkedIn's member inbox.\nDYNAMIC - Ads that are dynamically personalized.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "This value is used as one of the following: amount to bid (for manual bidding), amount which is the target cost (for target cost bidding) per click, impression, or other event depending on the pricing model, or cost cap (for cost cap bidding). The amount of money as a real number string. The amount should be non-negative if the bidding strategy is manual, target cost, or cost cap bidding. The default is 0 with the currency code set to match that of the associated account.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Amount to bid per click, impression, or other event depending on the pricing model. The default is 0 with the currency code set to match that of the associated account. ISO currency code.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_campaign_history_data`", "created_at": 1731951601.408119}, "source.linkedin_source.linkedin_ads.campaign_group_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_group_history", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin_ads.campaign_group_history", "fqn": ["linkedin_source", "linkedin_ads", "campaign_group_history"], "source_name": "linkedin_ads", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_campaign_group_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a 'version' of a campaign group.", "columns": {"id": {"name": "id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account the campaign group belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The timestamp of when the campaign group was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "backfilled": {"name": "backfilled", "description": "Flag that denotes whether the campaign group was created organically or to backfill existing campaigns. This is a read-only field set by the system. Default = false", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_start": {"name": "run_schedule_start", "description": "Represents the inclusive (greater than or equal to) date when to start running the associated campaigns under this campaign group. This field is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_end": {"name": "run_schedule_end", "description": "Represents the exclusive (strictly less than) date when to stop running the associated campaigns under this campaign group. If this field is unset, it indicates an open range with no end date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of campaign group. Possible values are: ACTIVE - Denotes that the campaign group is capable of serving ads, subject to run date and budget limitations (as well as any other limitations at the account or campaign level). ARCHIVED - Denotes that the campaign group is presently inactive, and should mostly be hidden in the UI until un-archived. CANCELLED - Denotes that the campaign group has been permanently canceled and cannot be reactivated. Not a settable status. DRAFT - Denotes that the campaign group is in a preliminary state and should temporarily not be served. PAUSED - Denotes that the campaign group meets all requirements to be served, but temporarily should not be. PENDING_DELETION - Denotes that the campaign group has been requested to be deleted that is currently pending. REMOVED - Denoted that the campaign group was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_campaign_group_history_data`", "created_at": 1731951601.408294}, "source.linkedin_source.linkedin_ads.account_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "account_history", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin_ads.account_history", "fqn": ["linkedin_source", "linkedin_ads", "account_history"], "source_name": "linkedin_ads", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_account_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a 'version' of an account.", "columns": {"id": {"name": "id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The timestamp of when the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "A label for the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The ISO 4217 currency code of the account, such as 'USD' for United States Dollar (default).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notified_on_campaign_optimization": {"name": "notified_on_campaign_optimization", "description": "Boolean (default=false) indicating if the campaign contact is notified about campaign optimization opportunities", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notified_on_creative_approval": {"name": "notified_on_creative_approval", "description": "Boolean (default=false) indicating if the creative contact is notified when a creative has been reviewed and approved", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notified_on_creative_rejection": {"name": "notified_on_creative_rejection", "description": "Boolean (default=false) indicating if the creative contact is notified when a creative has been rejected due to content", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notified_on_end_of_campaign": {"name": "notified_on_end_of_campaign", "description": "Boolean (default=false) indicating if the campaign contact is notified when an associated campaign has been completed", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "ACTIVE - Account is active; this is the default state\nCANCELLED - Account has been permanently cancelled\nDRAFT - Account is in draft status, meaning it's not yet fully set up and it is not serving\nPENDING_DELETION - Denotes that the account has been requested to be deleted that is currently pending\nREMOVED - Denotes that the account was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "BUSINESS - This is the only value allowed when creating accounts through the API.\nENTERPRISE - This value cannot be used to create accounts through the API and is reserved for accounts created by LinkedIn's internal ad operations systems.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_account_history_data`", "created_at": 1731951601.408436}, "source.linkedin_source.linkedin_ads.ad_analytics_by_campaign": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_analytics_by_campaign", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin_ads.ad_analytics_by_campaign", "fqn": ["linkedin_source", "linkedin_ads", "ad_analytics_by_campaign"], "source_name": "linkedin_ads", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_analytics_by_campaign_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance of ads at the campaign level.", "columns": {"campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "day": {"name": "day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_in_local_currency": {"name": "cost_in_local_currency", "description": "The cost of the ads in the local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_in_usd": {"name": "cost_in_usd", "description": "The cost of the ads in the USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`linkedin_ad_analytics_by_campaign_data`", "created_at": 1731951601.4085581}, "source.google_ads_source.google_ads.ad_stats": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_stats", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.ad_stats", "fqn": ["google_ads_source", "google_ads", "ad_stats"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_stats_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of an ad in Google Ads broken down to the ad network, device type, and ad group criterion.", "columns": {"customer_id": {"name": "customer_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group": {"name": "ad_group", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_ad_group_criterion": {"name": "keyword_ad_group_criterion", "description": "The ad group which the keyword criterion resides.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_micros": {"name": "cost_micros", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_ad_stats_data`", "created_at": 1731951601.408695}, "source.google_ads_source.google_ads.ad_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_history", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.ad_history", "fqn": ["google_ads_source", "google_ads", "ad_history"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of an ad in Google Ads.", "columns": {"ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The display url of the ad that is being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of the ad in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "final_urls": {"name": "final_urls", "description": "A list of urls that are used for the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "Boolean representing whether the state of the record is currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_ad_history_data`", "created_at": 1731951601.4088142}, "source.google_ads_source.google_ads.ad_group_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_group_history", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.ad_group_history", "fqn": ["google_ads_source", "google_ads", "ad_group_history"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_group_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of an ad group in Google Ads.", "columns": {"id": {"name": "id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of the ad group in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "Boolean representing whether the state of the record is currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_ad_group_history_data`", "created_at": 1731951601.4089339}, "source.google_ads_source.google_ads.campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_history", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.campaign_history", "fqn": ["google_ads_source", "google_ads", "campaign_history"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a campaign in Google Ads.", "columns": {"id": {"name": "id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertising_channel_type": {"name": "advertising_channel_type", "description": "The type of advertising channel being used by the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertising_channel_subtype": {"name": "advertising_channel_subtype", "description": "The advertising channel subtype that is being used by the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "Status of the ads and how they are currently being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "General status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tracking_url_template": {"name": "tracking_url_template", "description": "The tracking url template being used throughout the campaign ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "Boolean representing whether the state of the record is currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_campaign_history_data`", "created_at": 1731951601.4090629}, "source.google_ads_source.google_ads.account_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "account_history", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.account_history", "fqn": ["google_ads_source", "google_ads", "account_history"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_account_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a historical version of an account in Google Ads.", "columns": {"id": {"name": "id", "description": "The ID of the Account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency of the spend reported.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "auto_tagging_enabled": {"name": "auto_tagging_enabled", "description": "Boolean indicating if auto tagging is enabled on the account ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone of the account ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "descriptive_name": {"name": "descriptive_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "Boolean representing whether the state of the record is currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_account_history_data`", "created_at": 1731951601.409179}, "source.google_ads_source.google_ads.ad_group_criterion_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_group_criterion_history", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.ad_group_criterion_history", "fqn": ["google_ads_source", "google_ads", "ad_group_criterion_history"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_group_criterion_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a historical version of an ad group criterion in Google Ads.", "columns": {"id": {"name": "id", "description": "Unique identifier of the ad group criterion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_campaign_id": {"name": "base_campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of ad group criterion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad group criterion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_match_type": {"name": "keyword_match_type", "description": "The match type which dictate how closely the keyword needs to match with the user\u2019s search query so that the ad can be considered for the auction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The text used within the keyword criterion that is being matched against.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "Boolean representing whether the state of the record is currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_ad_group_criterion_history_data`", "created_at": 1731951601.409298}, "source.google_ads_source.google_ads.ad_group_stats": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_group_stats", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.ad_group_stats", "fqn": ["google_ads_source", "google_ads", "ad_group_stats"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_group_stats_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of an ad group in Google Ads broken down to the ad network and device type.", "columns": {"customer_id": {"name": "customer_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_micros": {"name": "cost_micros", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_ad_group_stats_data`", "created_at": 1731951601.409421}, "source.google_ads_source.google_ads.campaign_stats": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_stats", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.campaign_stats", "fqn": ["google_ads_source", "google_ads", "campaign_stats"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_campaign_stats_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a campaign in Google Ads broken down to the ad network and device type.", "columns": {"customer_id": {"name": "customer_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_micros": {"name": "cost_micros", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_campaign_stats_data`", "created_at": 1731951601.409666}, "source.google_ads_source.google_ads.keyword_stats": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "keyword_stats", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.keyword_stats", "fqn": ["google_ads_source", "google_ads", "keyword_stats"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_keyword_stats_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a keyword in Google Ads.", "columns": {"customer_id": {"name": "customer_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "The unique ID of the keyword record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_criterion_criterion_id": {"name": "ad_group_criterion_criterion_id", "description": "Reference to the ad group criterion used for the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_micros": {"name": "cost_micros", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_keyword_stats_data`", "created_at": 1731951601.409817}, "source.google_ads_source.google_ads.account_stats": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "account_stats", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.account_stats", "fqn": ["google_ads_source", "google_ads", "account_stats"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_account_stats_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of an account in Google Ads broken down to the ad network and device type.", "columns": {"customer_id": {"name": "customer_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_micros": {"name": "cost_micros", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`google_ads_account_stats_data`", "created_at": 1731951601.409943}, "source.apple_search_ads_source.apple_search_ads.ad_group_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_group_history", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_history", "fqn": ["apple_search_ads_source", "apple_search_ads", "ad_group_history"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_ad_group_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of an ad group in Apple Search Ads.", "columns": {"modification_time": {"name": "modification_time", "description": "Timestamp of when the ad group object was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Timestamp of designated ad group start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The designated ad group end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Ad group name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad group, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_ad_group_history_data`", "created_at": 1731951601.4101062}, "source.apple_search_ads_source.apple_search_ads.ad_group_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_group_report", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_report", "fqn": ["apple_search_ads_source", "apple_search_ads", "ad_group_report"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_ad_group_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of an ad group in Apple Search Ads.", "columns": {"ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_amount": {"name": "local_spend_amount", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_currency": {"name": "local_spend_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_ad_group_report_data`", "created_at": 1731951601.410228}, "source.apple_search_ads_source.apple_search_ads.ad_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_history", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_history", "fqn": ["apple_search_ads_source", "apple_search_ads", "ad_history"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_ad_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of an ad in Apple Search Ads.", "columns": {"creation_time": {"name": "creation_time", "description": "Timestamp of when ad was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modification_time": {"name": "modification_time", "description": "Timestamp of when the ad object was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "org_id": {"name": "org_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Ad name associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Ad ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_ad_history_data`", "created_at": 1731951601.4103959}, "source.apple_search_ads_source.apple_search_ads.ad_level_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_level_report", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_level_report", "fqn": ["apple_search_ads_source", "apple_search_ads", "ad_level_report"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_ad_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of an ad in Apple Search Ads.", "columns": {"date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_amount": {"name": "local_spend_amount", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_currency": {"name": "local_spend_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_ad_report_data`", "created_at": 1731951601.410531}, "source.apple_search_ads_source.apple_search_ads.campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_history", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_history", "fqn": ["apple_search_ads_source", "apple_search_ads", "campaign_history"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a campaign in Apple Search Ads.", "columns": {"modification_time": {"name": "modification_time", "description": "Timestamp of when the campaign object was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "The designated ad group start time (ad group with the earliest start time associated with this campaign).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The designated campaign end time (ad group with the latest start time associated with this campaign).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Campaign name for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the campaign, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_campaign_history_data`", "created_at": 1731951601.4106581}, "source.apple_search_ads_source.apple_search_ads.campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_report", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_report", "fqn": ["apple_search_ads_source", "apple_search_ads", "campaign_report"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_campaign_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a campaign in Apple Search Ads.", "columns": {"id": {"name": "id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_amount": {"name": "local_spend_amount", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_currency": {"name": "local_spend_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_campaign_report_data`", "created_at": 1731951601.410783}, "source.apple_search_ads_source.apple_search_ads.keyword_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "keyword_history", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_history", "fqn": ["apple_search_ads_source", "apple_search_ads", "keyword_history"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_keyword_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a keyword in Apple Search Ads.", "columns": {"modification_time": {"name": "modification_time", "description": "Timestamp of when the keyword object was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount": {"name": "bid_amount", "description": "The bid amount to display your ad for the matching text value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_currency": {"name": "bid_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; EXACT or BROAD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the keyword, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "text": {"name": "text", "description": "The word or phrase to match in user searches, to show respective ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_keyword_history_data`", "created_at": 1731951601.4109068}, "source.apple_search_ads_source.apple_search_ads.keyword_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "keyword_report", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_report", "fqn": ["apple_search_ads_source", "apple_search_ads", "keyword_report"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_keyword_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a keyword in Apple Search Ads.", "columns": {"id": {"name": "id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_amount": {"name": "local_spend_amount", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_currency": {"name": "local_spend_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_keyword_report_data`", "created_at": 1731951601.4110231}, "source.apple_search_ads_source.apple_search_ads.organization": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "organization", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.organization", "fqn": ["apple_search_ads_source", "apple_search_ads", "organization"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents an organization in Apple Search Ads.", "columns": {"organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Specified currency for respective organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payment_model": {"name": "payment_model", "description": "Values include 'LOC', 'PAYG' or (payment method hasn't been set).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "Organization default timezone; values can be ORTZ or UTC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_organization_data`", "created_at": 1731951601.4111319}, "source.apple_search_ads_source.apple_search_ads.search_term_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "search_term_report", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.search_term_report", "fqn": ["apple_search_ads_source", "apple_search_ads", "search_term_report"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_search_term_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a search term in Apple Search Ads.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "A Fivetran internal unique id that helps us avoid duplicate rows in primary keyless tables.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount_amount": {"name": "bid_amount_amount", "description": "The bid amount to display your ad for the matching text value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount_currency": {"name": "bid_amount_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword": {"name": "keyword", "description": "The word or phrase to match in user searches, to show respective ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_display_status": {"name": "keyword_display_status", "description": "The keyword display status can either be ACTIVE or PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_amount": {"name": "local_spend_amount", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_currency": {"name": "local_spend_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; values include EXACT, BROAD or AUTO.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_term_source": {"name": "search_term_source", "description": "The search term source can either be TARGETED or AUTO; if this value is AUTO so will match_type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_term_text": {"name": "search_term_text", "description": "The word or phrase to match of user searches.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`apple_search_search_term_report_data`", "created_at": 1731951601.411365}, "source.pinterest_source.pinterest_ads.pin_promotion_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "pin_promotion_report", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_report", "fqn": ["pinterest_source", "pinterest_ads", "pin_promotion_report"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_pin_promotion_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a Pinterest Pin promotion.", "columns": {"date": {"name": "date", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_1": {"name": "impression_1", "description": "The number of paid pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_2": {"name": "impression_2", "description": "The number of earned pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_1": {"name": "clickthrough_1", "description": "The number of paid pin clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_2": {"name": "clickthrough_2", "description": "The number of earned outbound clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_in_micro_dollar": {"name": "spend_in_micro_dollar", "description": "The amount of spend in micro dollars that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value_in_micro_dollar": {"name": "total_conversions_value_in_micro_dollar", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. The value is expressed in microdollars, where one microdollar is one-millionth of a US dollar. Example: If the total order value from conversions is $50,000, this would be represented as 50,000,000,000 microdollars.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_pin_promotion_report_data`", "created_at": 1731951601.4115179}, "source.pinterest_source.pinterest_ads.pin_promotion_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "pin_promotion_history", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_history", "fqn": ["pinterest_source", "pinterest_ads", "pin_promotion_history"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_pin_promotion_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a Pinterest Pin promotion.", "columns": {"id": {"name": "id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "Pin creation time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "destination_url": {"name": "destination_url", "description": "Pin destination URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Pin promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_id": {"name": "pin_id", "description": "Original pin ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the Pin promotion. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_type": {"name": "creative_type", "description": "The creative type. \nOne of \"APP\", \"APP_VIDEO\", \"BOARD\", \"CAROUSEL\", \"CINEMATIC\", \"COMMERCE\", \"MAX_VIDEO\", \"NATIVE_VIDEO\", \"REGULAR\", \n\"SEARCH_PROMINENCE\", \"SEARCH_PROMINENCE_CAROUSEL\", \"SHOPPING\", \"SHOP_THE_PIN\", \"THIRD_PARTY\", or \"VIDEO\".\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_pin_promotion_history_data`", "created_at": 1731951601.411647}, "source.pinterest_source.pinterest_ads.campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_history", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.campaign_history", "fqn": ["pinterest_source", "pinterest_ads", "campaign_history"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a Pinterest Campaign.", "columns": {"id": {"name": "id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "Campaign creation time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Campaign name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the Campaign. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_ad_group_budget_in_micro_currency": {"name": "default_ad_group_budget_in_micro_currency", "description": "When transitioning from campaign budget optimization to non-campaign budget optimization, the default_ad_group_budget_in_micro_currency will propagate to each child ad groups daily budget. Unit is micro currency of the associated advertiser account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_automated_campaign": {"name": "is_automated_campaign", "description": "Specifies whether the campaign was created in the automated campaign flow", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_campaign_budget_optimization": {"name": "is_campaign_budget_optimization", "description": "Determines if a campaign automatically generate ad-group level budgets given a campaign budget to maximize campaign outcome. When transitioning from non-cbo to cbo, all previous child ad group budget will be cleared.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_flexible_daily_budgets": {"name": "is_flexible_daily_budgets", "description": "Determine if a campaign has flexible daily budgets setup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_campaign_history_data`", "created_at": 1731951601.411801}, "source.pinterest_source.pinterest_ads.ad_group_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_group_history", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.ad_group_history", "fqn": ["pinterest_source", "pinterest_ads", "ad_group_history"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ad_group_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a Pinterest Ad Group.", "columns": {"id": {"name": "id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "Ad group creation time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Ad group name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the Ad group. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Ad group start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "Ad group end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pacing_delivery_type": {"name": "pacing_delivery_type", "description": "Ad group pacing delivery type. With ACCELERATED, an ad group budget is spent as fast as possible. With STANDARD, an ad group budget is spent smoothly over a day. When using CBO, only the STANDARD pacing delivery type is allowed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement_group": {"name": "placement_group", "description": "The placement group. \"ALL\", \"SEARCH\", \"BROWSE\", or \"OTHER\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary_status": {"name": "summary_status", "description": "Summary status. \"RUNNING\", \"PAUSED\", \"NOT_STARTED\", \"COMPLETED\", \"ADVERTISER_DISABLED\", \"ARCHIVED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_ad_group_history_data`", "created_at": 1731951601.4119282}, "source.pinterest_source.pinterest_ads.ad_group_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_group_report", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.ad_group_report", "fqn": ["pinterest_source", "pinterest_ads", "ad_group_report"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ad_group_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a Pinterest ad group.", "columns": {"date": {"name": "date", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_1": {"name": "impression_1", "description": "The number of paid pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_2": {"name": "impression_2", "description": "The number of earned pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_1": {"name": "clickthrough_1", "description": "The number of paid pin clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_2": {"name": "clickthrough_2", "description": "The number of earned outbound clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_in_micro_dollar": {"name": "spend_in_micro_dollar", "description": "The amount of spend in micro dollars that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value_in_micro_dollar": {"name": "total_conversions_value_in_micro_dollar", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. The value is expressed in microdollars, where one microdollar is one-millionth of a US dollar. Example: If the total order value from conversions is $50,000, this would be represented as 50,000,000,000 microdollars.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_ad_group_report_data`", "created_at": 1731951601.4120672}, "source.pinterest_source.pinterest_ads.advertiser_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "advertiser_history", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.advertiser_history", "fqn": ["pinterest_source", "pinterest_ads", "advertiser_history"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_advertiser_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a Pinterest advertiser.", "columns": {"id": {"name": "id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country code where the advertiser is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "Timestamp of when a record was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency code which the a", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_time": {"name": "updated_time", "description": "Timestamp of when a record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owner_username": {"name": "owner_username", "description": "Advertiser's username.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owner_user_id": {"name": "owner_user_id", "description": "Unique identifier of the owner user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "permissions": {"name": "permissions", "description": "The permissions associated with this account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_advertiser_history_data`", "created_at": 1731951601.41219}, "source.pinterest_source.pinterest_ads.advertiser_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "advertiser_report", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.advertiser_report", "fqn": ["pinterest_source", "pinterest_ads", "advertiser_report"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_advertiser_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a Pinterest advertiser.", "columns": {"date": {"name": "date", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_1": {"name": "impression_1", "description": "The number of paid pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_2": {"name": "impression_2", "description": "The number of earned pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_1": {"name": "clickthrough_1", "description": "The number of paid pin clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_2": {"name": "clickthrough_2", "description": "The number of earned outbound clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_in_micro_dollar": {"name": "spend_in_micro_dollar", "description": "The amount of spend in micro dollars that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value_in_micro_dollar": {"name": "total_conversions_value_in_micro_dollar", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. The value is expressed in microdollars, where one microdollar is one-millionth of a US dollar. Example: If the total order value from conversions is $50,000, this would be represented as 50,000,000,000 microdollars.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_advertiser_report_data`", "created_at": 1731951601.412311}, "source.pinterest_source.pinterest_ads.campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_report", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.campaign_report", "fqn": ["pinterest_source", "pinterest_ads", "campaign_report"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_campaign_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a Pinterest campaign.", "columns": {"date": {"name": "date", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_1": {"name": "impression_1", "description": "The number of paid pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_2": {"name": "impression_2", "description": "The number of earned pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_1": {"name": "clickthrough_1", "description": "The number of paid pin clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_2": {"name": "clickthrough_2", "description": "The number of earned outbound clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_in_micro_dollar": {"name": "spend_in_micro_dollar", "description": "The amount of spend in micro dollars that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value_in_micro_dollar": {"name": "total_conversions_value_in_micro_dollar", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. The value is expressed in microdollars, where one microdollar is one-millionth of a US dollar. Example: If the total order value from conversions is $50,000, this would be represented as 50,000,000,000 microdollars.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_campaign_report_data`", "created_at": 1731951601.412435}, "source.pinterest_source.pinterest_ads.keyword_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "keyword_history", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.keyword_history", "fqn": ["pinterest_source", "pinterest_ads", "keyword_history"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_keyword_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a Pinterest keyword.", "columns": {"id": {"name": "id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "value": {"name": "value", "description": "The text value that makes upd the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "The unique identifier of the record within the Fivetran synced table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "archived": {"name": "archived", "description": "Boolean indicating if the keyword is archived.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid": {"name": "bid", "description": "Bid amount set for the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of match the keyword is tied to. Either Exact or Broad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_type": {"name": "parent_type", "description": "Identifier of what grain the parent type is. Ad group or campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_keyword_history_data`", "created_at": 1731951601.412555}, "source.pinterest_source.pinterest_ads.keyword_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "keyword_report", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.keyword_report", "fqn": ["pinterest_source", "pinterest_ads", "keyword_report"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_keyword_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a Pinterest key word.", "columns": {"date": {"name": "date", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_1": {"name": "impression_1", "description": "The number of paid pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_2": {"name": "impression_2", "description": "The number of earned pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_1": {"name": "clickthrough_1", "description": "The number of paid pin clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_2": {"name": "clickthrough_2", "description": "The number of earned outbound clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_in_micro_dollar": {"name": "spend_in_micro_dollar", "description": "The amount of spend in micro dollars that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value_in_micro_dollar": {"name": "total_conversions_value_in_micro_dollar", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. The value is expressed in microdollars, where one microdollar is one-millionth of a US dollar. Example: If the total order value from conversions is $50,000, this would be represented as 50,000,000,000 microdollars.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`pinterest_keyword_report_data`", "created_at": 1731951601.4126852}, "source.tiktok_ads_source.tiktok_ads.advertiser": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "advertiser", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.advertiser", "fqn": ["tiktok_ads_source", "tiktok_ads", "advertiser"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_advertiser_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents data for one advertiser.", "columns": {"id": {"name": "id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "address": {"name": "address", "description": "Advertiser address information", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Account available balance", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cellphone_number": {"name": "cellphone_number", "description": "Contact mobile number, desensitised data. This is the newest version of the field `phone_number`, which was renamed after the Tiktok Ads v1.3 API release.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company": {"name": "company", "description": "Advertiser's company name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contacter": {"name": "contacter", "description": "Contact Person", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The advertiser's country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "create_time": {"name": "create_time", "description": "Advertiser's create time", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Type of currency used by advertisers", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Brand description, i.e. promotional content", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email": {"name": "email", "description": "Advertiser contact email, desensitised data", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "industry": {"name": "industry", "description": "Advertiser industry category", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "Language used by advertisers", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "license_no": {"name": "license_no", "description": "License number", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "license_url": {"name": "license_url", "description": "License preview address, the link is valid for an hour by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Advertiser name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "phone_number": {"name": "phone_number", "description": "Contact mobile number, desensitised data. IMPORTANT: This field will not be populated for connectors utilizing the Tiktok Ads v1.3 API version, as the column was renamed. The new column name is `cellphone_number`.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "promotion_area": {"name": "promotion_area", "description": "Operation area", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason": {"name": "reason", "description": "Reason for rejection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role": {"name": "role", "description": "Advertiser role", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Advertiser status", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "telephone": {"name": "telephone", "description": "Fixed phone number, desensitised data IMPORTANT: This field will not be populated for connectors utilizing the Tiktok Ads v1.3 API version, as the column was renamed. The new column name is `telephone_number`.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "telephone_number": {"name": "telephone_number", "description": "Fixed phone number, desensitised data This is the newest version of the field `telephone`, which was renamed after the Tiktok Ads v1.3 API release.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Ad account time zone including GMT offset", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`tiktok_advertiser_data`", "created_at": 1731951601.412838}, "source.tiktok_ads_source.tiktok_ads.campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_history", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_history", "fqn": ["tiktok_ads_source", "tiktok_ads", "campaign_history"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a TikTok campaign.", "columns": {"campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget": {"name": "budget", "description": "Campaign budget", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_mode": {"name": "budget_mode", "description": "Budget type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_type": {"name": "campaign_type", "description": "Campaign Type, indicates the campaign is a regular campaign or iOS 14 campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "create_time": {"name": "create_time", "description": "Time at which the campaign was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_new_structure": {"name": "is_new_structure", "description": "Whether the campaign is a new structure (for the same campaign, the structure of campaign, adgroups and ads are the same)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective_type": {"name": "objective_type", "description": "Advertising objective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opt_status": {"name": "opt_status", "description": "Operation status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Campaign status", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "split_test_variable": {"name": "split_test_variable", "description": "Split Test variables. Optional values; TARGETING, BIDDING_OPTIMIZATION , CREATIVE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`tiktok_campaign_history_data`", "created_at": 1731951601.4129632}, "source.tiktok_ads_source.tiktok_ads.adgroup_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "adgroup_history", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_history", "fqn": ["tiktok_ads_source", "tiktok_ads", "adgroup_history"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_adgroup_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a TikTok ad group.", "columns": {"adgroup_id": {"name": "adgroup_id", "description": "Ad group ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The Ad group's campaign ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "action_categories": {"name": "action_categories", "description": "IDs of the action categories (behaviors) that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "action_days": {"name": "action_days", "description": "The number of days of the time period to include action from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adgroup_name": {"name": "adgroup_name", "description": "Ad group name. Character limit is 512 and cannot contain emoji.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age": {"name": "age", "description": "Age groups you want to target. IMPORTANT: This field will not be populated for connectors utilizing the Tiktok Ads v1.3 API version, as the column was renamed. The new column name is `age_group`.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_groups": {"name": "age_groups", "description": "Age groups you want to target. This is the newest version of the field `age`, which was renamed after the Tiktok Ads v1.3 API release.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "android_osv": {"name": "android_osv", "description": "Minimum Android version.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_download_url": {"name": "app_download_url", "description": "App download link", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_id": {"name": "app_id", "description": "The Application id of the promoted app", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_name": {"name": "app_name", "description": "App name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_type": {"name": "app_type", "description": "App type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "audience": {"name": "audience", "description": "A list of audience IDs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid": {"name": "bid", "description": "CPC, CPM bidding, oCPM learning bidding", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_type": {"name": "bid_type", "description": "Bidding Strategy", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "billing_event": {"name": "billing_event", "description": "Bid method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget": {"name": "budget", "description": "Ad budget. Returns 0.0 when Campaign Budget Optimization (budget_optimize_switch) is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_mode": {"name": "budget_mode", "description": "Budget mode. This field will be ignored when Campaign Budget Optimization (budget_optimize_switch) is enabled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "carriers": {"name": "carriers", "description": "Carriers that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_tracking_url": {"name": "click_tracking_url", "description": "Click monitoring URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "connection_type": {"name": "connection_type", "description": "Device connection types that you want to target. Default; unlimited.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_bid": {"name": "conversion_bid", "description": "oCPM conversion bid", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpv_video_duration": {"name": "cpv_video_duration", "description": "Video playback duration, required if optimize_goal is VIDEO_VIEW. Allowed values; SIX_SECONDS (video playback 6s), TWO_SECONDS (video playback 2s)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_material_mode": {"name": "creative_material_mode", "description": "Creative delivery mode.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dayparting": {"name": "dayparting", "description": "Ad delivery period, the default is always and the format is 48 * 7 character string, represented by 0 or 1. > That is, with half an hour as the minimum granularity, a day (24 hours) is divided by the minimum granularity(30 mins) from Monday to Sunday. Resulting in a 48*7 format.0 represents not to be delivered, 1 represents delivery. no transmission, full transmission 0, full transmission 1 all represent full time delivery", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deep_bid_type": {"name": "deep_bid_type", "description": "Bidding strategy for in-app events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deep_cpabid": {"name": "deep_cpabid", "description": "Deep bid", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deep_external_action": {"name": "deep_external_action", "description": "Deep conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Display name of ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "enable_inventory_filter": {"name": "enable_inventory_filter", "description": "Inventory filtering (Unsafe videos will not be displayed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "excluded_audience": {"name": "excluded_audience", "description": "A list of audience ID to be excluded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_action": {"name": "external_action", "description": "Conversion event for the ad group. It is required when the promoted object is an app with tracking urls, or when pixel_id is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fallback_type": {"name": "fallback_type", "description": "Fallback Type. If the audience do not have the app installed, you can have them fall back to install the app, or to view a specific web page. Not applicable for Deferred Deeplink. Allowed values; APP_INSTALL, WEBSITE, UNSET. If website is chosen, you need to specify the url via landing_page_url field.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "frequency, together with frequency_schedule, controls how often people see your ad (only available for REACH ads). For example, frequency = 2 frequency_schedule = 3 means \"show ads no more than twice every 3 day\".\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency_schedule": {"name": "frequency_schedule", "description": "frequency, together with frequency, controls how often people see your ad (only available for REACH ads).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_tracking_url": {"name": "impression_tracking_url", "description": "Display monitoring URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "interest_category_v2": {"name": "interest_category_v2", "description": "Interest classification. If the interest is specified, users that do not meet interest target will be excluded during delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ios_osv": {"name": "ios_osv", "description": "Minimum iOS version.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_comment_disable": {"name": "is_comment_disable", "description": "Whether to allow comments on your ads on TikTok, Vigo, Helo.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hfss": {"name": "is_hfss", "description": "Whether the promoted content is HFSS foods (foods that are high in fat, salt, or sugar).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_new_structure": {"name": "is_new_structure", "description": "Whether the campaign is a new structure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keywords": {"name": "keywords", "description": "Keywords used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "landing_page_url": {"name": "landing_page_url", "description": "Landing page URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "languages": {"name": "languages", "description": "Codes of the languages that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "IDs of the locations that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "open_url": {"name": "open_url", "description": "The specific location where you want your audience to go if they have your app installed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "open_url_type": {"name": "open_url_type", "description": "The open URL type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operation_system": {"name": "operation_system", "description": "Device operating systems that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opt_status": {"name": "opt_status", "description": "Operation status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimize_goal": {"name": "optimize_goal", "description": "Optimization goal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pacing": {"name": "pacing", "description": "You can choose between PACING_MODE_SMOOTH and PACING_MODE_FAST. For PACING_MODE_SMOOTH, the budget is allocated evenly within the scheduled time. PACING_MODE_FAST would consume budget and produce results as soon as possible. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "package": {"name": "package", "description": "Package name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pangle_block_app_list_id": {"name": "pangle_block_app_list_id", "description": "Pangle app block list ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pixel_id": {"name": "pixel_id", "description": "Pixel ID. Only application for landing pages.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "The apps where you want to deliver your ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement_type": {"name": "placement_type", "description": "Placement type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_image": {"name": "profile_image", "description": "Avatar URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_end_time": {"name": "schedule_end_time", "description": "Ad delivery end time (UTC+0). Format should be YYYY-MM-DD HH:MM:SS", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_start_time": {"name": "schedule_start_time", "description": "Ad delivery start time (UTC+0). Format should be YYYY-MM-DD HH:MM:SS", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_type": {"name": "schedule_type", "description": "The schedule type, which can be either SCHEDULE_START_END or SCHEDULE_FROM_NOW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "skip_learning_phase": {"name": "skip_learning_phase", "description": "Whether to skip the learning stage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "statistic_type": {"name": "statistic_type", "description": "conversion bid statistic type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Ad group status", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_actions": {"name": "video_actions", "description": "Number of video actions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_download": {"name": "video_download", "description": "Whether users can download your video ads on TikTok(cannot be updated once created).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`tiktok_adgroup_history_data`", "created_at": 1731951601.413208}, "source.tiktok_ads_source.tiktok_ads.ad_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_history", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_history", "fqn": ["tiktok_ads_source", "tiktok_ads", "ad_history"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_ad_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a TikTok ad.", "columns": {"ad_id": {"name": "ad_id", "description": "Ad ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adgroup_id": {"name": "adgroup_id", "description": "Ad group ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad Name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_text": {"name": "ad_text", "description": "The ad text.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_name": {"name": "app_name", "description": "The display name of app download ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "call_to_action": {"name": "call_to_action", "description": "Call to action values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_tracking_url": {"name": "click_tracking_url", "description": "Click monitoring URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "create_time": {"name": "create_time", "description": "Time at which the ad was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The display name of landing page or pure exposure ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "image_ids": {"name": "image_ids", "description": "A list of image IDs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_tracking_url": {"name": "impression_tracking_url", "description": "Display monitoring URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_aco": {"name": "is_aco", "description": "Whether the ad is an automated ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_creative_authorized": {"name": "is_creative_authorized", "description": "Whether you grant displaying some of your ads in our TikTok For Business Creative Center. Only valid for non-US advertisers, the default value is false.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_new_structure": {"name": "is_new_structure", "description": "Whether the campaign is a new structure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "landing_page_url": {"name": "landing_page_url", "description": "Landing page URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "open_url": {"name": "open_url", "description": "The specific location where you want your audience to go if they have your app installed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opt_status": {"name": "opt_status", "description": "Operation status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "playable_url": {"name": "playable_url", "description": "Playable material url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_image": {"name": "profile_image", "description": "Avatar URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Ad status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_id": {"name": "video_id", "description": "The video ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`tiktok_ad_history_data`", "created_at": 1731951601.413357}, "source.tiktok_ads_source.tiktok_ads.ad_report_hourly": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_report_hourly", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_report_hourly", "fqn": ["tiktok_ads_source", "tiktok_ads", "ad_report_hourly"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_ad_report_hourly_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents data for each ad for each hour.", "columns": {"ad_id": {"name": "ad_id", "description": "Ad id", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_conversion": {"name": "cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_play_actions": {"name": "video_play_actions", "description": "The number of times your video starts to play. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_rate": {"name": "conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "result": {"name": "result", "description": "The number of times your ad achieved an outcome, based on the optimization goal you selected. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the results. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_cost_per_result": {"name": "real_time_cost_per_result", "description": "As a campaign may have different optimization goals, the total number of result is not supported in campaign section now, please go to the ad group section to view the cost per Result. (The total count is based on when the conversion actually happened.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_result": {"name": "real_time_result", "description": "The number of times your ad achieved an outcome, based on the optimization goal you selected. As a campaign may have different optimization goals, the total number of result is not supported in campaign section now , Please go to the ad group section to view the result. (The total count is based on when the conversion actually happened.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_view_p_100": {"name": "video_view_p_100", "description": "The number of times your video was played at 100% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion_rate": {"name": "real_time_conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is based on when the conversion actually happened.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_secondary_goal_result": {"name": "cost_per_secondary_goal_result", "description": "The average cost for each secondary goal result from your adverts. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_goal_result_rate": {"name": "secondary_goal_result_rate", "description": "The percentage of secondary goal results you achieved out of all of the installs of your adverts. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. The total count is calculated based on the time each ad impression occurred.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_1000_reached": {"name": "cost_per_1000_reached", "description": "The average cost to reach 1,000 unique users. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_cost_per_conversion": {"name": "real_time_cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is based on when the conversion actually happened.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits_rate": {"name": "profile_visits_rate", "description": "The rate of profile visits per impression the paid ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play": {"name": "average_video_play", "description": "The average time your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits the ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of new followers that were gained within 1 day of a user seeing a paid ad. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "result_rate": {"name": "result_rate", "description": "The percentage of results you achieved out of all of the views/clicks on your ads. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the result rate. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_goal_result": {"name": "secondary_goal_result", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_result": {"name": "cost_per_result", "description": "The average cost for each result from your ads. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the cost per result. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play_per_user": {"name": "average_video_play_per_user", "description": "The average time your video was played per person, including any time spent replaying the video. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_result_rate": {"name": "real_time_result_rate", "description": "As a campaign may have different optimization goals, the total number of result is not supported in campaign section now ,Please go to the ad group section to view the Result Rate. (The total count is based on when the conversion actually happened.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The estimated total amount of money you've spent on your campaign, ad group or ad during its schedule.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`tiktok_ad_report_hourly_data`", "created_at": 1731951601.41353}, "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_report_hourly", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly", "fqn": ["tiktok_ads_source", "tiktok_ads", "campaign_report_hourly"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_campaign_report_hourly_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents data for each campaign for each hour.", "columns": {"campaign_id": {"name": "campaign_id", "description": "Campaign id", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_conversion": {"name": "cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_play_actions": {"name": "video_play_actions", "description": "The number of times your video starts to play. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_rate": {"name": "conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "result": {"name": "result", "description": "The number of times your ad achieved an outcome, based on the optimization goal you selected. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the results. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_cost_per_result": {"name": "real_time_cost_per_result", "description": "As a campaign may have different optimization goals, the total number of result is not supported in campaign section now, please go to the ad group section to view the cost per Result. (The total count is based on when the conversion actually happened.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_result": {"name": "real_time_result", "description": "The number of times your ad achieved an outcome, based on the optimization goal you selected. As a campaign may have different optimization goals, the total number of result is not supported in campaign section now , Please go to the ad group section to view the result. (The total count is based on when the conversion actually happened.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_view_p_100": {"name": "video_view_p_100", "description": "The number of times your video was played at 100% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion_rate": {"name": "real_time_conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is based on when the conversion actually happened.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_secondary_goal_result": {"name": "cost_per_secondary_goal_result", "description": "The average cost for each secondary goal result from your adverts. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_goal_result_rate": {"name": "secondary_goal_result_rate", "description": "The percentage of secondary goal results you achieved out of all of the installs of your adverts. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. The total count is calculated based on the time each ad impression occurred.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_1000_reached": {"name": "cost_per_1000_reached", "description": "The average cost to reach 1,000 unique users. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_cost_per_conversion": {"name": "real_time_cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is based on when the conversion actually happened.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits_rate": {"name": "profile_visits_rate", "description": "The rate of profile visits per impression the paid ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play": {"name": "average_video_play", "description": "The average time your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits the ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of new followers that were gained within 1 day of a user seeing a paid ad. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "result_rate": {"name": "result_rate", "description": "The percentage of results you achieved out of all of the views/clicks on your ads. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the result rate. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_goal_result": {"name": "secondary_goal_result", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_result": {"name": "cost_per_result", "description": "The average cost for each result from your ads. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the cost per result. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play_per_user": {"name": "average_video_play_per_user", "description": "The average time your video was played per person, including any time spent replaying the video. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_result_rate": {"name": "real_time_result_rate", "description": "As a campaign may have different optimization goals, the total number of result is not supported in campaign section now ,Please go to the ad group section to view the Result Rate. (The total count is based on when the conversion actually happened.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The estimated total amount of money you've spent on your campaign, ad group or ad during its schedule.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`tiktok_campaign_report_hourly_data`", "created_at": 1731951601.413722}, "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "adgroup_report_hourly", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly", "fqn": ["tiktok_ads_source", "tiktok_ads", "adgroup_report_hourly"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_adgroup_report_hourly_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents data for each ad group for each hour.", "columns": {"adgroup_id": {"name": "adgroup_id", "description": "Ad group id", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_conversion": {"name": "cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_play_actions": {"name": "video_play_actions", "description": "The number of times your video starts to play. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_rate": {"name": "conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is calculated based on the time each ad impression occurred.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "result": {"name": "result", "description": "The number of times your ad achieved an outcome, based on the optimization goal you selected. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the results. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_cost_per_result": {"name": "real_time_cost_per_result", "description": "As a campaign may have different optimization goals, the total number of result is not supported in campaign section now, please go to the ad group section to view the cost per Result. (The total count is based on when the conversion actually happened.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_result": {"name": "real_time_result", "description": "The number of times your ad achieved an outcome, based on the optimization goal you selected. As a campaign may have different optimization goals, the total number of result is not supported in campaign section now , Please go to the ad group section to view the result. (The total count is based on when the conversion actually happened.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_view_p_100": {"name": "video_view_p_100", "description": "The number of times your video was played at 100% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion_rate": {"name": "real_time_conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is based on when the conversion actually happened.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_secondary_goal_result": {"name": "cost_per_secondary_goal_result", "description": "The average cost for each secondary goal result from your adverts. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_goal_result_rate": {"name": "secondary_goal_result_rate", "description": "The percentage of secondary goal results you achieved out of all of the installs of your adverts. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. The total count is calculated based on the time each ad impression occurred.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_1000_reached": {"name": "cost_per_1000_reached", "description": "The average cost to reach 1,000 unique users. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_cost_per_conversion": {"name": "real_time_cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is based on when the conversion actually happened.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits_rate": {"name": "profile_visits_rate", "description": "The rate of profile visits per impression the paid ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play": {"name": "average_video_play", "description": "The average time your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits the ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of new followers that were gained within 1 day of a user seeing a paid ad. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "result_rate": {"name": "result_rate", "description": "The percentage of results you achieved out of all of the views/clicks on your ads. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the result rate. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_goal_result": {"name": "secondary_goal_result", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_result": {"name": "cost_per_result", "description": "The average cost for each result from your ads. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the cost per result. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play_per_user": {"name": "average_video_play_per_user", "description": "The average time your video was played per person, including any time spent replaying the video. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_result_rate": {"name": "real_time_result_rate", "description": "As a campaign may have different optimization goals, the total number of result is not supported in campaign section now ,Please go to the ad group section to view the Result Rate. (The total count is based on when the conversion actually happened.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The estimated total amount of money you've spent on your campaign, ad group or ad during its schedule.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`tiktok_adgroup_report_hourly_data`", "created_at": 1731951601.4138958}, "source.facebook_ads_source.facebook_ads.account_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "account_history", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.account_history", "fqn": ["facebook_ads_source", "facebook_ads", "account_history"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_account_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table reflects a version of a Facebook ad account.", "columns": {"id": {"name": "id", "description": "The ID of the ad account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_status": {"name": "account_status", "description": "Current status of account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_country_code": {"name": "business_country_code", "description": "Country code of business associated to account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The time account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency associated with account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone_name": {"name": "timezone_name", "description": "Timezone associated with account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_account_history_data`", "created_at": 1731951601.41404}, "source.facebook_ads_source.facebook_ads.ad_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_history", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.ad_history", "fqn": ["facebook_ads_source", "facebook_ads", "ad_history"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_ad_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table reflects a version of a Facebook ad.", "columns": {"id": {"name": "id", "description": "The ID of this ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "ID of the ad set that contains the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Ad campaign that contains this ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the ad creative to be used by this ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_time": {"name": "updated_time", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_domain": {"name": "conversion_domain", "description": "The domain you've configured the ad to convert to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_ad_history_data`", "created_at": 1731951601.414166}, "source.facebook_ads_source.facebook_ads.ad_set_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_set_history", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.ad_set_history", "fqn": ["facebook_ads_source", "facebook_ads", "ad_set_history"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_ad_set_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table reflects a version of a Facebook ad set.", "columns": {"id": {"name": "id", "description": "The ID of the ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad set belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Ad campaign that contains this ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_time": {"name": "updated_time", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Timestamp of designated ad set start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "Timestamp of designated ad set end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_strategy": {"name": "bid_strategy", "description": "Bid strategy values are - 'LOWEST_COST_WITHOUT_CAP', 'LOWEST_COST_WITH_BID_CAP', 'COST_CAP', 'LOWEST_COST_WITH_MIN_ROAS'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization_goal": {"name": "optimization_goal", "description": "The optimization goal this ad set is using. Possible values defined [here](https://developers.facebook.com/docs/marketing-api/reference/ad-campaign/#fields).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_ad_set_history_data`", "created_at": 1731951601.414345}, "source.facebook_ads_source.facebook_ads.basic_ad": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "basic_ad", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad", "fqn": ["facebook_ads_source", "facebook_ads", "basic_ad"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_basic_ad_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of an ad in Facebook.", "columns": {"ad_id": {"name": "ad_id", "description": "The ID of the ad the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of the ad the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adset_name": {"name": "adset_name", "description": "Name of the ad set the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the reported performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inline_link_clicks": {"name": "inline_link_clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of people who saw any content from your Page or about your Page. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The average number of times each person saw your ad; it is calculated as impressions divided by reach.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_basic_ad_data`", "created_at": 1731951601.414465}, "source.facebook_ads_source.facebook_ads.basic_ad_actions": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "basic_ad_actions", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad_actions", "fqn": ["facebook_ads_source", "facebook_ads", "basic_ad_actions"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_basic_ad_actions_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily conversion performance of an ad in Facebook. This is the prebuilt `basic_ad` report broken down by `action_type`.", "columns": {"_1_d_view": {"name": "_1_d_view", "description": "Conversion metric value using an attribution window of \"1 day after viewing the ad\". Not included in downstream models by default, but can be added using the `facebook_ads__basic_ad_actions_passthrough_metrics` var.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_7_d_click": {"name": "_7_d_click", "description": "Conversion metric value using an attribution window of \"7 days after clicking the ad\". Not included in downstream models by default, but can be added using the `facebook_ads__basic_ad_actions_passthrough_metrics` var.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_28_d_click": {"name": "_28_d_click", "description": "Conversion metric value using an attribution window of \"28 days after clicking the ad\". Deprecated by Facebook due to digital privacy initiatives. Not included in downstream models by default, but can be added using the `facebook_ads__basic_ad_actions_passthrough_metrics` var.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "Defunct field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "action_type": {"name": "action_type", "description": "The kind of actions taken on your ad, Page, app or event after your ad was served to someone, even if they didn't click on it. Action types include Page likes, app installs, conversions, event responses and more. Actions prepended by app_custom_event come from mobile app events and actions prepended by offsite_conversion come from the Facebook Pixel.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the reported performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "Index reflecting the `action_type` tracked for this ad on this day. Column of not much consequence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inline": {"name": "inline", "description": "Conversion metric value using the attribution window that occurs on the ad itself. Not included in downstream models by default, but can be added using the `facebook_ads__basic_ad_actions_passthrough_metrics` var.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "value": {"name": "value", "description": "Conversion metric value using the default attribution window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_basic_ad_actions_data`", "created_at": 1731951601.414588}, "source.facebook_ads_source.facebook_ads.basic_ad_action_values": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "basic_ad_action_values", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad_action_values", "fqn": ["facebook_ads_source", "facebook_ads", "basic_ad_action_values"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_basic_ad_action_values_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": null, "external": null, "description": "Each record represents the daily conversion values associated with an ad in Facebook. This is the prebuilt `basic_ad` report broken down by `action_type` and `action_value`.", "columns": {"_7_d_click": {"name": "_7_d_click", "description": "Conversion metric value using an attribution window of \"7 days after clicking the ad\". Not included in downstream models by default, but can be added using the `facebook_ads__basic_ad_actions_passthrough_metrics` var.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "Defunct field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "action_type": {"name": "action_type", "description": "The kind of actions taken on your ad, Page, app or event after your ad was served to someone, even if they didn't click on it. Action types include Page likes, app installs, conversions, event responses and more. Actions prepended by app_custom_event come from mobile app events and actions prepended by offsite_conversion come from the Facebook Pixel.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the reported performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "Index reflecting the `action_type` tracked for this ad on this day. Column of not much consequence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "value": {"name": "value", "description": "Monetary value associated with the convesion action using the default attribution window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_basic_ad_action_values_data`", "created_at": 1731951601.4147031}, "source.facebook_ads_source.facebook_ads.campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_history", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.campaign_history", "fqn": ["facebook_ads_source", "facebook_ads", "campaign_history"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table reflects a version of a Facebook campaign.", "columns": {"id": {"name": "id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this campaign belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_time": {"name": "updated_time", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The time the campaign was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Timestamp of designated campaign start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_time": {"name": "stop_time", "description": "Timestamp of designated campaign end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "lifetime_budget": {"name": "lifetime_budget", "description": "Lifetime budget of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_campaign_history_data`", "created_at": 1731951601.4148228}, "source.facebook_ads_source.facebook_ads.creative_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "creative_history", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.creative_history", "fqn": ["facebook_ads_source", "facebook_ads", "creative_history"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_creative_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table reflects a version of a Facebook creative.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique record identifier", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_link": {"name": "page_link", "description": "URL destination of Facebook ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_page_link": {"name": "template_page_link", "description": "URL destination of Facebook dynamic ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique ID for an ad creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Ad account ID for the account this ad creative belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of this ad creative as seen in the ad account's library.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_tags": {"name": "url_tags", "description": "A set of query string parameters which will replace or be appended to urls clicked from page post ads, message of the post, and canvas app install creatives only.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "asset_feed_spec_link_urls": {"name": "asset_feed_spec_link_urls", "description": "Link to the asset feed spec", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_child_attachments": {"name": "object_story_link_data_child_attachments", "description": "Link of the object story child attachments", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_caption": {"name": "object_story_link_data_caption", "description": "Link of the object story caption", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_description": {"name": "object_story_link_data_description", "description": "Link of the object story description", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_link": {"name": "object_story_link_data_link", "description": "Link of the object story link", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_message": {"name": "object_story_link_data_message", "description": "Link of the object story message", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_app_link_spec_ios": {"name": "template_app_link_spec_ios", "description": "Link of the object story spec for ios", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_app_link_spec_ipad": {"name": "template_app_link_spec_ipad", "description": "Link of the template app spec for ipad", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_app_link_spec_android": {"name": "template_app_link_spec_android", "description": "Link of the template app for android", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_app_link_spec_iphone": {"name": "template_app_link_spec_iphone", "description": "Link of the template app for iphone", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`facebook_ads_creative_history_data`", "created_at": 1731951601.414978}, "source.snapchat_ads_source.snapchat_ads.ad_account_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_account_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_account_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "ad_account_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_account_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a historic version of an ad account in Snapchat.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser": {"name": "advertiser", "description": "Name of advertiser", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency used by account", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Account timezone", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_ad_account_history_data`", "created_at": 1731951601.4150982}, "source.snapchat_ads_source.snapchat_ads.ad_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "ad_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a historic version of an ad in Snapchat.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the ad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the related ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the ad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_ad_history_data`", "created_at": 1731951601.4152179}, "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_hourly_report", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_hourly_report", "fqn": ["snapchat_ads_source", "snapchat_ads", "ad_hourly_report"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_hourly_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents an hourly performance summary for an ad in Snapchat.", "columns": {"ad_id": {"name": "ad_id", "description": "The ID of the ad that the report relates to in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_1": {"name": "attachment_quartile_1", "description": "Number of times your Long Form Video was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_2": {"name": "attachment_quartile_2", "description": "Number of times your Long Form Video was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_3": {"name": "attachment_quartile_3", "description": "Number of times your Long Form Video was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_total_view_time_millis": {"name": "attachment_total_view_time_millis", "description": "Total time Snapchatters spent on the attachment (HH:MM:SS)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_view_completion": {"name": "attachment_view_completion", "description": "The number of times your Long Form Video was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_time_millis": {"name": "screen_time_millis", "description": "The number of milli seconds spent watching your ad across all paid impressions. Screen time starts recording as soon as the media is fully rendered on the device and the autoplay video starts", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views": {"name": "video_views", "description": "The number of times your video was watched at least 2 seconds or swiped up, whichever comes first", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_completion": {"name": "view_completion", "description": "The number of times your video ad was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_time_millis": {"name": "view_time_millis", "description": "The number of milli seconds spent watching your ad across all users reached.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend in microdollars for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes for an ad in the hour of the record. Swipes are when your ad was swiped up on or the CTA was tapped to view the attachment below.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases attributed to an ad in the hour of the record (microcurrency in Ad Account's currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases attributed to an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_add_billing": {"name": "conversion_add_billing", "description": "Total number of attributed \"ADD_BILLING\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_save": {"name": "conversion_save", "description": "Total number of attributed \"SAVE\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_add_cart": {"name": "conversion_add_cart", "description": "Total number of attributed \"ADD_CART\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups": {"name": "conversion_sign_ups", "description": "Total number of attributed \"SIGN_UP\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_start_checkout": {"name": "conversion_start_checkout", "description": "Total number of attributed \"START_CHECKOUT\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_searches": {"name": "conversion_searches", "description": "Total number of attributed \"SEARCH\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_view_content": {"name": "conversion_view_content", "description": "Total number of attributed \"VIEW_CONTENT\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_app_opens": {"name": "conversion_app_opens", "description": "Total number of attributed \"APP_OPEN\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_level_completes": {"name": "conversion_level_completes", "description": "Total number of attributed \"LEVEL_COMPLETE\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_page_views": {"name": "conversion_page_views", "description": "Total number of attributed \"PAGE_VIEW\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_ad_hourly_report_data`", "created_at": 1731951601.415385}, "source.snapchat_ads_source.snapchat_ads.ad_squad_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_squad_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "ad_squad_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_squad_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a historic version of an ad squad in Snapchat.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_ad_squad_history_data`", "created_at": 1731951601.4154959}, "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "ad_squad_hourly_report", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report", "fqn": ["snapchat_ads_source", "snapchat_ads", "ad_squad_hourly_report"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_squad_hourly_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents an hourly performance summary for each ad squad.", "columns": {"ad_squad_id": {"name": "ad_squad_id", "description": "ID of the ad squad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_1": {"name": "attachment_quartile_1", "description": "Number of times your Long Form Video was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_2": {"name": "attachment_quartile_2", "description": "Number of times your Long Form Video was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_3": {"name": "attachment_quartile_3", "description": "Number of times your Long Form Video was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_total_view_time_millis": {"name": "attachment_total_view_time_millis", "description": "Total time Snapchatters spent on the attachment (HH:MM:SS)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_view_completion": {"name": "attachment_view_completion", "description": "The number of times your Long Form Video was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_time_millis": {"name": "screen_time_millis", "description": "The number of milli seconds spent watching your ad across all paid impressions. Screen time starts recording as soon as the media is fully rendered on the device and the autoplay video starts", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views": {"name": "video_views", "description": "The number of times your video was watched at least 2 seconds or swiped up, whichever comes first", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_completion": {"name": "view_completion", "description": "The number of times your video ad was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_time_millis": {"name": "view_time_millis", "description": "The number of milli seconds spent watching your ad across all users reached.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend in microdollars for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes for an ad in the hour of the record. Swipes are when your ad was swiped up on or the CTA was tapped to view the attachment below.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases attributed to an ad in the hour of the record (microcurrency in Ad Account's currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases attributed to an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_add_billing": {"name": "conversion_add_billing", "description": "Total number of attributed \"ADD_BILLING\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_save": {"name": "conversion_save", "description": "Total number of attributed \"SAVE\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_add_cart": {"name": "conversion_add_cart", "description": "Total number of attributed \"ADD_CART\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups": {"name": "conversion_sign_ups", "description": "Total number of attributed \"SIGN_UP\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_start_checkout": {"name": "conversion_start_checkout", "description": "Total number of attributed \"START_CHECKOUT\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_searches": {"name": "conversion_searches", "description": "Total number of attributed \"SEARCH\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_view_content": {"name": "conversion_view_content", "description": "Total number of attributed \"VIEW_CONTENT\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_app_opens": {"name": "conversion_app_opens", "description": "Total number of attributed \"APP_OPEN\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_level_completes": {"name": "conversion_level_completes", "description": "Total number of attributed \"LEVEL_COMPLETE\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_page_views": {"name": "conversion_page_views", "description": "Total number of attributed \"PAGE_VIEW\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_ad_squad_hourly_report_data`", "created_at": 1731951601.415651}, "source.snapchat_ads_source.snapchat_ads.campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "campaign_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a historic version of a campaign in Snapchat.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related ad account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_campaign_history_data`", "created_at": 1731951601.415765}, "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_hourly_report", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report", "fqn": ["snapchat_ads_source", "snapchat_ads", "campaign_hourly_report"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_campaign_hourly_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents an hourly performance summary for each campaign.", "columns": {"campaign_id": {"name": "campaign_id", "description": "ID of campaign", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_1": {"name": "attachment_quartile_1", "description": "Number of times your Long Form Video was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_2": {"name": "attachment_quartile_2", "description": "Number of times your Long Form Video was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_3": {"name": "attachment_quartile_3", "description": "Number of times your Long Form Video was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_total_view_time_millis": {"name": "attachment_total_view_time_millis", "description": "Total time Snapchatters spent on the attachment (HH:MM:SS)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_view_completion": {"name": "attachment_view_completion", "description": "The number of times your Long Form Video was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_time_millis": {"name": "screen_time_millis", "description": "The number of milli seconds spent watching your ad across all paid impressions. Screen time starts recording as soon as the media is fully rendered on the device and the autoplay video starts", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views": {"name": "video_views", "description": "The number of times your video was watched at least 2 seconds or swiped up, whichever comes first", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_completion": {"name": "view_completion", "description": "The number of times your video ad was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_time_millis": {"name": "view_time_millis", "description": "The number of milli seconds spent watching your ad across all users reached.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend in microdollars for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes for an ad in the hour of the record. Swipes are when your ad was swiped up on or the CTA was tapped to view the attachment below.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases attributed to an ad in the hour of the record (microcurrency in Ad Account's currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases attributed to an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_add_billing": {"name": "conversion_add_billing", "description": "Total number of attributed \"ADD_BILLING\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_save": {"name": "conversion_save", "description": "Total number of attributed \"SAVE\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_add_cart": {"name": "conversion_add_cart", "description": "Total number of attributed \"ADD_CART\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups": {"name": "conversion_sign_ups", "description": "Total number of attributed \"SIGN_UP\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_start_checkout": {"name": "conversion_start_checkout", "description": "Total number of attributed \"START_CHECKOUT\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_searches": {"name": "conversion_searches", "description": "Total number of attributed \"SEARCH\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_view_content": {"name": "conversion_view_content", "description": "Total number of attributed \"VIEW_CONTENT\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_app_opens": {"name": "conversion_app_opens", "description": "Total number of attributed \"APP_OPEN\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_level_completes": {"name": "conversion_level_completes", "description": "Total number of attributed \"LEVEL_COMPLETE\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_page_views": {"name": "conversion_page_views", "description": "Total number of attributed \"PAGE_VIEW\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_campaign_hourly_report_data`", "created_at": 1731951601.415925}, "source.snapchat_ads_source.snapchat_ads.creative_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "creative_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "creative_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_creative_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a historic version of a creative in Snapchat.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the creative in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related ad account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the creative in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "web_view_url": {"name": "web_view_url", "description": "The URL of the creative if the creative is of type 'web view'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_creative_history_data`", "created_at": 1731951601.416043}, "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "creative_url_tag_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "creative_url_tag_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_creative_url_tag_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a URL parameter key-value pair for a creative in Snapchat.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "key": {"name": "key", "description": "The URL parameter key, i.e. UTM_SOURCE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "value": {"name": "value", "description": "The URL parameter value, i.e. Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`snapchat_creative_url_tag_history_data`", "created_at": 1731951601.416179}, "source.twitter_ads_source.twitter_ads.account_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "account_history", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.account_history", "fqn": ["twitter_ads_source", "twitter_ads", "account_history"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_account_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of each account. The versions can be differentiated by the updated_at timestamp.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_id": {"name": "business_id", "description": "The ID of the related business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_name": {"name": "business_name", "description": "The name of the related business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deleted": {"name": "deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "industry_type": {"name": "industry_type", "description": "The industry of the accounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The timezone the account is set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone_switch_at": {"name": "timezone_switch_at", "description": "The timestamp the account's timezone was last changed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "salt": {"name": "salt", "description": "The random encryption key used to has data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_account_history_data`", "created_at": 1731951601.4163358}, "source.twitter_ads_source.twitter_ads.campaign_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_history", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.campaign_history", "fqn": ["twitter_ads_source", "twitter_ads", "campaign_history"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of each campaign. The versions can be differentiated by the updated_at timestamp.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currently all metrics for the account are set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_amount_local_micro": {"name": "daily_budget_amount_local_micro", "description": "The daily budget amount to be allocated to the campaign. The currency associated with the specified funding instrument will be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deleted": {"name": "deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duration_in_days": {"name": "duration_in_days", "description": "The time period within which the frequency_cap is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The time the campaign will end", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency_cap": {"name": "frequency_cap", "description": "The maximum number of times an ad could be delivered to a user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "servable": {"name": "servable", "description": "Whether the campaign is in a state to be actively served to users.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "standard_delivery": {"name": "standard_delivery", "description": "Whether standard delivery is enabled (vs accelerated delivery).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "The time the campaign will start.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_budget_amount_local_micro": {"name": "total_budget_amount_local_micro", "description": "The total budget amount to be allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Reference to the funding instrument.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_campaign_history_data`", "created_at": 1731951601.416492}, "source.twitter_ads_source.twitter_ads.line_item_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "line_item_history", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_history", "fqn": ["twitter_ads_source", "twitter_ads", "line_item_history"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_line_item_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of each line item. The versions can be differentiated by the updated_at timestamp.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_domain": {"name": "advertiser_domain", "description": "The website domain for this advertiser, without the protocol specification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_user_id": {"name": "advertiser_user_id", "description": "The Twitter user identifier for the handle promoting the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "automatically_select_bid": {"name": "automatically_select_bid", "description": "Whether automatically optimize bidding is enabled based on daily budget and campaign flight dates.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount_local_micro": {"name": "bid_amount_local_micro", "description": "The bid amount to be associated with this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_type": {"name": "bid_type", "description": "The bidding mechanism.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_unit": {"name": "bid_unit", "description": "The bid unit for this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "charge_by": {"name": "charge_by", "description": "The unit to charge this line item by.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_source": {"name": "creative_source", "description": "The source of the creatives for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency in which metrics will be reported.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deleted": {"name": "deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The timestamp at which the line item will stop being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The campaign objective for this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization": {"name": "optimization", "description": "The optimization setting to use with this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_web_event_tag": {"name": "primary_web_event_tag", "description": "The identifier of the primary web event tag. Allows more accurate tracking of engagements for the campaign pertaining to this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "product_type": {"name": "product_type", "description": "The type of promoted product that this line item will contain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "The timestamp at which the line item will start being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "target_cpa_local_micro": {"name": "target_cpa_local_micro", "description": "The target cost per acquisition for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_budget_amount_local_micro": {"name": "total_budget_amount_local_micro", "description": "The total budget amount to be allocated to the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_line_item_history_data`", "created_at": 1731951601.4166431}, "source.twitter_ads_source.twitter_ads.promoted_tweet_history": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "promoted_tweet_history", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_history", "fqn": ["twitter_ads_source", "twitter_ads", "promoted_tweet_history"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_promoted_tweet_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of each promoted tweet. The versions can be differentiated by the updated_at timestamp.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deleted": {"name": "deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the related tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_promoted_tweet_history_data`", "created_at": 1731951601.4167628}, "source.twitter_ads_source.twitter_ads.tweet_url": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "tweet_url", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.tweet_url", "fqn": ["twitter_ads_source", "twitter_ads", "tweet_url"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_tweet_url_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a URL used in a tweet.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The URL as it will be displayed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expanded_url": {"name": "expanded_url", "description": "The fully expanded URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "The index of the URL within the tweet (ie if there are multiple URLs in the tweet).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "indices": {"name": "indices", "description": "The start and end point of where the URL is placed in the tweet text.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the related tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url": {"name": "url", "description": "The 't.co' shortened URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_tweet_url_data`", "created_at": 1731951601.4168909}, "source.twitter_ads_source.twitter_ads.promoted_tweet_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "promoted_tweet_report", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_report", "fqn": ["twitter_ads_source", "twitter_ads", "promoted_tweet_report"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_promoted_tweet_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the performance of a promoted tweet on a given day, in its defined placement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "billed_charge_local_micro": {"name": "billed_charge_local_micro", "description": "The spend for the promoted tweet on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the promoted tweet on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the promoted tweet on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "promoted_tweet_id": {"name": "promoted_tweet_id", "description": "The ID of the related promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the promoted tweet on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_assisted": {"name": "mobile_conversion_payment_info_additions_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_post_engagement": {"name": "mobile_conversion_payment_info_additions_post_engagement", "description": "Number of **post-engagement** mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_post_view": {"name": "mobile_conversion_payment_info_additions_post_view", "description": "Number of **post-view** mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_assisted": {"name": "mobile_conversion_add_to_wishlists_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_post_engagement": {"name": "mobile_conversion_add_to_wishlists_post_engagement", "description": "Number of **post-engagement** mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_post_view": {"name": "mobile_conversion_add_to_wishlists_post_view", "description": "Number of **post-view** mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_assisted": {"name": "mobile_conversion_add_to_carts_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_post_engagement": {"name": "mobile_conversion_add_to_carts_post_engagement", "description": "Number of **post-engagement** mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_post_view": {"name": "mobile_conversion_add_to_carts_post_view", "description": "Number of **post-view** mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups_metric": {"name": "conversion_sign_ups_metric", "description": "Total number of sign ups. This is the same as the sum of post views, post engagements and assisted sign ups. This is also the sum of website and mobile app sign ups", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_assisted": {"name": "mobile_conversion_checkouts_initiated_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_post_engagement": {"name": "mobile_conversion_checkouts_initiated_post_engagement", "description": "Number of **post-engagement** mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_post_view": {"name": "mobile_conversion_checkouts_initiated_post_view", "description": "Number of **post-view** mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_assisted": {"name": "mobile_conversion_searches_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_post_engagement": {"name": "mobile_conversion_searches_post_engagement", "description": "Number of **post-engagement** mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_post_view": {"name": "mobile_conversion_searches_post_view", "description": "Number of **post-view** mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_assisted": {"name": "mobile_conversion_content_views_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_post_engagement": {"name": "mobile_conversion_content_views_post_engagement", "description": "Number of **post-engagement** mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_post_view": {"name": "mobile_conversion_content_views_post_view", "description": "Number of **post-view** mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_sale_amount": {"name": "mobile_conversion_payment_info_additions_sale_amount", "description": "The sale amount corresponding to mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_sale_amount": {"name": "mobile_conversion_add_to_wishlists_sale_amount", "description": "The sale amount corresponding to mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_sale_amount": {"name": "mobile_conversion_add_to_carts_sale_amount", "description": "The sale amount corresponding to mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups_sale_amount": {"name": "conversion_sign_ups_sale_amount", "description": "The sale amount corresponding to sign ups.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_sale_amount": {"name": "mobile_conversion_checkouts_initiated_sale_amount", "description": "The sale amount corresponding to mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_sale_amount": {"name": "mobile_conversion_searches_sale_amount", "description": "The sale amount corresponding to mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_sale_amount": {"name": "mobile_conversion_content_views_sale_amount", "description": "The sale amount corresponding to mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_promoted_tweet_report_data`", "created_at": 1731951601.4170702}, "source.twitter_ads_source.twitter_ads.tweet": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "tweet", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.tweet", "fqn": ["twitter_ads_source", "twitter_ads", "tweet"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_tweet_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a tweet, promoted or not.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of the tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "If provided, the non-public title of the tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_text": {"name": "full_text", "description": "Full text of the tweet's content.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "lang": {"name": "lang", "description": "Two-letter language code of the tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_tweet_data`", "created_at": 1731951601.4171898}, "source.twitter_ads_source.twitter_ads.campaign_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "campaign_report", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.campaign_report", "fqn": ["twitter_ads_source", "twitter_ads", "campaign_report"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_campaign_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the performance of an ad campaign on a given day.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "billed_charge_local_micro": {"name": "billed_charge_local_micro", "description": "The spend for the campaign on that day, in micros and in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the campaign on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the campaign on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the ad campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the campaign on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_assisted": {"name": "mobile_conversion_payment_info_additions_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_post_engagement": {"name": "mobile_conversion_payment_info_additions_post_engagement", "description": "Number of **post-engagement** mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_post_view": {"name": "mobile_conversion_payment_info_additions_post_view", "description": "Number of **post-view** mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_assisted": {"name": "mobile_conversion_add_to_wishlists_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_post_engagement": {"name": "mobile_conversion_add_to_wishlists_post_engagement", "description": "Number of **post-engagement** mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_post_view": {"name": "mobile_conversion_add_to_wishlists_post_view", "description": "Number of **post-view** mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_assisted": {"name": "mobile_conversion_add_to_carts_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_post_engagement": {"name": "mobile_conversion_add_to_carts_post_engagement", "description": "Number of **post-engagement** mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_post_view": {"name": "mobile_conversion_add_to_carts_post_view", "description": "Number of **post-view** mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups_metric": {"name": "conversion_sign_ups_metric", "description": "Total number of sign ups. This is the same as the sum of post views, post engagements and assisted sign ups. This is also the sum of website and mobile app sign ups", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_assisted": {"name": "mobile_conversion_checkouts_initiated_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_post_engagement": {"name": "mobile_conversion_checkouts_initiated_post_engagement", "description": "Number of **post-engagement** mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_post_view": {"name": "mobile_conversion_checkouts_initiated_post_view", "description": "Number of **post-view** mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_assisted": {"name": "mobile_conversion_searches_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_post_engagement": {"name": "mobile_conversion_searches_post_engagement", "description": "Number of **post-engagement** mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_post_view": {"name": "mobile_conversion_searches_post_view", "description": "Number of **post-view** mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_assisted": {"name": "mobile_conversion_content_views_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_post_engagement": {"name": "mobile_conversion_content_views_post_engagement", "description": "Number of **post-engagement** mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_post_view": {"name": "mobile_conversion_content_views_post_view", "description": "Number of **post-view** mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_sale_amount": {"name": "mobile_conversion_payment_info_additions_sale_amount", "description": "The sale amount corresponding to mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_sale_amount": {"name": "mobile_conversion_add_to_wishlists_sale_amount", "description": "The sale amount corresponding to mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_sale_amount": {"name": "mobile_conversion_add_to_carts_sale_amount", "description": "The sale amount corresponding to mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups_sale_amount": {"name": "conversion_sign_ups_sale_amount", "description": "The sale amount corresponding to sign ups.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_sale_amount": {"name": "mobile_conversion_checkouts_initiated_sale_amount", "description": "The sale amount corresponding to mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_sale_amount": {"name": "mobile_conversion_searches_sale_amount", "description": "The sale amount corresponding to mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_sale_amount": {"name": "mobile_conversion_content_views_sale_amount", "description": "The sale amount corresponding to mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_campaign_report_data`", "created_at": 1731951601.417763}, "source.twitter_ads_source.twitter_ads.line_item_report": {"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "line_item_report", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_report", "fqn": ["twitter_ads_source", "twitter_ads", "line_item_report"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_line_item_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the performance of a line item (ad group) on a given day.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "billed_charge_local_micro": {"name": "billed_charge_local_micro", "description": "The spend for the line item on that day, in micros and in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the line item on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the line item on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_assisted": {"name": "mobile_conversion_payment_info_additions_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_post_engagement": {"name": "mobile_conversion_payment_info_additions_post_engagement", "description": "Number of **post-engagement** mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_post_view": {"name": "mobile_conversion_payment_info_additions_post_view", "description": "Number of **post-view** mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_assisted": {"name": "mobile_conversion_add_to_wishlists_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_post_engagement": {"name": "mobile_conversion_add_to_wishlists_post_engagement", "description": "Number of **post-engagement** mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_post_view": {"name": "mobile_conversion_add_to_wishlists_post_view", "description": "Number of **post-view** mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_assisted": {"name": "mobile_conversion_add_to_carts_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_post_engagement": {"name": "mobile_conversion_add_to_carts_post_engagement", "description": "Number of **post-engagement** mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_post_view": {"name": "mobile_conversion_add_to_carts_post_view", "description": "Number of **post-view** mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups_metric": {"name": "conversion_sign_ups_metric", "description": "Total number of sign ups. This is the same as the sum of post views, post engagements and assisted sign ups. This is also the sum of website and mobile app sign ups", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_assisted": {"name": "mobile_conversion_checkouts_initiated_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_post_engagement": {"name": "mobile_conversion_checkouts_initiated_post_engagement", "description": "Number of **post-engagement** mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_post_view": {"name": "mobile_conversion_checkouts_initiated_post_view", "description": "Number of **post-view** mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_assisted": {"name": "mobile_conversion_searches_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_post_engagement": {"name": "mobile_conversion_searches_post_engagement", "description": "Number of **post-engagement** mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_post_view": {"name": "mobile_conversion_searches_post_view", "description": "Number of **post-view** mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_assisted": {"name": "mobile_conversion_content_views_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_post_engagement": {"name": "mobile_conversion_content_views_post_engagement", "description": "Number of **post-engagement** mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_post_view": {"name": "mobile_conversion_content_views_post_view", "description": "Number of **post-view** mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_sale_amount": {"name": "mobile_conversion_payment_info_additions_sale_amount", "description": "The sale amount corresponding to mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_sale_amount": {"name": "mobile_conversion_add_to_wishlists_sale_amount", "description": "The sale amount corresponding to mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_sale_amount": {"name": "mobile_conversion_add_to_carts_sale_amount", "description": "The sale amount corresponding to mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups_sale_amount": {"name": "conversion_sign_ups_sale_amount", "description": "The sale amount corresponding to sign ups.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_sale_amount": {"name": "mobile_conversion_checkouts_initiated_sale_amount", "description": "The sale amount corresponding to mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_sale_amount": {"name": "mobile_conversion_searches_sale_amount", "description": "The sale amount corresponding to mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_sale_amount": {"name": "mobile_conversion_content_views_sale_amount", "description": "The sale amount corresponding to mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_line_item_report_data`", "created_at": 1731951601.4179919}}, "macros": {"macro.dbt_bigquery.date_sharded_table": {"name": "date_sharded_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "unique_id": "macro.dbt_bigquery.date_sharded_table", "macro_sql": "{% macro date_sharded_table(base_name) %}\n {{ return(base_name ~ \"[DBT__PARTITION_DATE]\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.821336, "supported_languages": null}, "macro.dbt_bigquery.grant_access_to": {"name": "grant_access_to", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "unique_id": "macro.dbt_bigquery.grant_access_to", "macro_sql": "{% macro grant_access_to(entity, entity_type, role, grant_target_dict) -%}\n {% do adapter.grant_access_to(entity, entity_type, role, grant_target_dict) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.821559, "supported_languages": null}, "macro.dbt_bigquery.get_partitions_metadata": {"name": "get_partitions_metadata", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "unique_id": "macro.dbt_bigquery.get_partitions_metadata", "macro_sql": "\n\n{%- macro get_partitions_metadata(table) -%}\n {%- if execute -%}\n {%- set res = adapter.get_partitions_metadata(table) -%}\n {{- return(res) -}}\n {%- endif -%}\n {{- return(None) -}}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.821832, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_table_as": {"name": "bigquery__create_table_as", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_table_as", "macro_sql": "{% macro bigquery__create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {%- if language == 'sql' -%}\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set raw_cluster_by = config.get('cluster_by', none) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {%- set partition_config = adapter.parse_partition_by(raw_partition_by) -%}\n {%- if partition_config.time_ingestion_partitioning -%}\n {%- set columns = get_columns_with_types_in_query_sql(sql) -%}\n {%- set table_dest_columns_csv = columns_without_partition_fields_csv(partition_config, columns) -%}\n {%- set columns = '(' ~ table_dest_columns_csv ~ ')' -%}\n {%- endif -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {%- set contract_config = config.get('contract') -%}\n {%- if contract_config.enforced -%}\n {{ get_assert_columns_equivalent(compiled_code) }}\n {{ get_table_columns_and_constraints() }}\n {%- set compiled_code = get_select_subquery(compiled_code) %}\n {% else %}\n {#-- cannot do contracts at the same time as time ingestion partitioning -#}\n {{ columns }}\n {% endif %}\n {{ partition_by(partition_config) }}\n {{ cluster_by(raw_cluster_by) }}\n\n {{ bigquery_table_options(config, model, temporary) }}\n\n {#-- PARTITION BY cannot be used with the AS query_statement clause.\n https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#partition_expression\n -#}\n {%- if not partition_config.time_ingestion_partitioning %}\n as (\n {{ compiled_code }}\n );\n {%- endif %}\n {%- elif language == 'python' -%}\n {#--\n N.B. Python models _can_ write to temp views HOWEVER they use a different session\n and have already expired by the time they need to be used (I.E. in merges for incremental models)\n\n TODO: Deep dive into spark sessions to see if we can reuse a single session for an entire\n dbt invocation.\n --#}\n\n {#-- when a user wants to change the schema of an existing relation, they must intentionally drop the table in the dataset --#}\n {%- set old_relation = adapter.get_relation(database=relation.database, schema=relation.schema, identifier=relation.identifier) -%}\n {%- if (old_relation.is_table and (should_full_refresh())) -%}\n {% do adapter.drop_relation(relation) %}\n {%- endif -%}\n {{ py_write_table(compiled_code=compiled_code, target_relation=relation.quote(database=False, schema=False, identifier=False)) }}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"bigquery__create_table_as macro didn't get supported language, it got %s\" % language) %}\n {%- endif -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.get_columns_with_types_in_query_sql", "macro.dbt_bigquery.columns_without_partition_fields_csv", "macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery", "macro.dbt_bigquery.partition_by", "macro.dbt_bigquery.cluster_by", "macro.dbt_bigquery.bigquery_table_options", "macro.dbt.should_full_refresh", "macro.dbt_bigquery.py_write_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.826245, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_view_as": {"name": "bigquery__create_view_as", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_view_as", "macro_sql": "{% macro bigquery__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {{ bigquery_view_options(config, model) }}\n {%- set contract_config = config.get('contract') -%}\n {%- if contract_config.enforced -%}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as {{ sql }};\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_view_options", "macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8267279, "supported_languages": null}, "macro.dbt_bigquery.bigquery__drop_schema": {"name": "bigquery__drop_schema", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__drop_schema", "macro_sql": "{% macro bigquery__drop_schema(relation) -%}\n {{ adapter.drop_schema(relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8268669, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_columns_in_relation": {"name": "bigquery__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_columns_in_relation", "macro_sql": "{% macro bigquery__get_columns_in_relation(relation) -%}\n {{ return(adapter.get_columns_in_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.827091, "supported_languages": null}, "macro.dbt_bigquery.bigquery__list_relations_without_caching": {"name": "bigquery__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__list_relations_without_caching", "macro_sql": "{% macro bigquery__list_relations_without_caching(schema_relation) -%}\n {{ return(adapter.list_relations_without_caching(schema_relation)) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.827277, "supported_languages": null}, "macro.dbt_bigquery.bigquery__list_schemas": {"name": "bigquery__list_schemas", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__list_schemas", "macro_sql": "{% macro bigquery__list_schemas(database) -%}\n {{ return(adapter.list_schemas(database)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8274298, "supported_languages": null}, "macro.dbt_bigquery.bigquery__check_schema_exists": {"name": "bigquery__check_schema_exists", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__check_schema_exists", "macro_sql": "{% macro bigquery__check_schema_exists(information_schema, schema) %}\n {{ return(adapter.check_schema_exists(information_schema.database, schema)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.827617, "supported_languages": null}, "macro.dbt_bigquery.bigquery__persist_docs": {"name": "bigquery__persist_docs", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__persist_docs", "macro_sql": "{% macro bigquery__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do alter_column_comment(relation, model.columns) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.827898, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_column_comment": {"name": "bigquery__alter_column_comment", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__alter_column_comment", "macro_sql": "{% macro bigquery__alter_column_comment(relation, column_dict) -%}\n {% do adapter.update_columns(relation, column_dict) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.828059, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_relation_add_columns": {"name": "bigquery__alter_relation_add_columns", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__alter_relation_add_columns", "macro_sql": "{% macro bigquery__alter_relation_add_columns(relation, add_columns) %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {{ return(run_query(sql)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8284822, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_relation_drop_columns": {"name": "bigquery__alter_relation_drop_columns", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__alter_relation_drop_columns", "macro_sql": "{% macro bigquery__alter_relation_drop_columns(relation, drop_columns) %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in drop_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {{ return(run_query(sql)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.829011, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_column_type": {"name": "bigquery__alter_column_type", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__alter_column_type", "macro_sql": "{% macro bigquery__alter_column_type(relation, column_name, new_column_type) -%}\n {#-- Changing a column's data type using a query requires you to scan the entire table.\n The query charges can be significant if the table is very large.\n\n https://cloud.google.com/bigquery/docs/manually-changing-schemas#changing_a_columns_data_type\n #}\n {% set relation_columns = get_columns_in_relation(relation) %}\n\n {% set sql %}\n select\n {%- for col in relation_columns -%}\n {% if col.column == column_name %}\n CAST({{ col.quoted }} AS {{ new_column_type }}) AS {{ col.quoted }}\n {%- else %}\n {{ col.quoted }}\n {%- endif %}\n {%- if not loop.last %},{% endif -%}\n {%- endfor %}\n from {{ relation }}\n {% endset %}\n\n {% call statement('alter_column_type') %}\n {{ create_table_as(False, relation, sql)}}\n {%- endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_relation", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.830039, "supported_languages": null}, "macro.dbt_bigquery.bigquery__test_unique": {"name": "bigquery__test_unique", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__test_unique", "macro_sql": "{% macro bigquery__test_unique(model, column_name) %}\n\nwith dbt_test__target as (\n\n select {{ column_name }} as unique_field\n from {{ model }}\n where {{ column_name }} is not null\n\n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8308532, "supported_languages": null}, "macro.dbt_bigquery.bigquery__upload_file": {"name": "bigquery__upload_file", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__upload_file", "macro_sql": "{% macro bigquery__upload_file(local_file_path, database, table_schema, table_name) %}\n\n {{ log(\"kwargs: \" ~ kwargs) }}\n\n {% do adapter.upload_file(local_file_path, database, table_schema, table_name, kwargs=kwargs) %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.83135, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_csv_table": {"name": "bigquery__create_csv_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_csv_table", "macro_sql": "{% macro bigquery__create_csv_table(model, agate_table) %}\n -- no-op\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8318021, "supported_languages": null}, "macro.dbt_bigquery.bigquery__reset_csv_table": {"name": "bigquery__reset_csv_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_bigquery.bigquery__reset_csv_table", "macro_sql": "{% macro bigquery__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8319821, "supported_languages": null}, "macro.dbt_bigquery.bigquery__load_csv_rows": {"name": "bigquery__load_csv_rows", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_bigquery.bigquery__load_csv_rows", "macro_sql": "{% macro bigquery__load_csv_rows(model, agate_table) %}\n\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {{ adapter.load_dataframe(model['database'], model['schema'], model['alias'],\n \t\t\t\t\t\t\tagate_table, column_override) }}\n\n {% call statement() %}\n alter table {{ this.render() }} set {{ bigquery_table_options(config, model) }}\n {% endcall %}\n\n {% if config.persist_relation_docs() and 'description' in model %}\n\n \t{{ adapter.update_table_description(model['database'], model['schema'], model['alias'], model['description']) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_bigquery.bigquery_table_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.834904, "supported_languages": null}, "macro.dbt_bigquery.bigquery__handle_existing_table": {"name": "bigquery__handle_existing_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "unique_id": "macro.dbt_bigquery.bigquery__handle_existing_table", "macro_sql": "{% macro bigquery__handle_existing_table(full_refresh, old_relation) %}\n {%- if full_refresh -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- else -%}\n {{ exceptions.relation_wrong_type(old_relation, 'view') }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.838335, "supported_languages": null}, "macro.dbt_bigquery.materialization_view_bigquery": {"name": "materialization_view_bigquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "unique_id": "macro.dbt_bigquery.materialization_view_bigquery", "macro_sql": "{% materialization view, adapter='bigquery' -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {% set to_return = bigquery__create_or_replace_view() %}\n\n {% set target_relation = this.incorporate(type='view') %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if config.get('grant_access_to') %}\n {% for grant_target_dict in config.get('grant_access_to') %}\n {% do adapter.grant_access_to(this, 'view', None, grant_target_dict) %}\n {% endfor %}\n {% endif %}\n\n {% do return(to_return) %}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_or_replace_view", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8398972, "supported_languages": ["sql"]}, "macro.dbt_bigquery.materialization_table_bigquery": {"name": "materialization_table_bigquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_bigquery.materialization_table_bigquery", "macro_sql": "{% materialization table, adapter='bigquery', supported_languages=['sql', 'python']-%}\n\n {%- set language = model['language'] -%}\n {%- set identifier = model['alias'] -%}\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n {%- set target_relation = api.Relation.create(database=database, schema=schema, identifier=identifier, type='table') -%}\n\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {{ run_hooks(pre_hooks) }}\n\n {#\n We only need to drop this thing if it is not a table.\n If it _is_ already a table, then we can overwrite it without downtime\n Unlike table -> view, no need for `--full-refresh`: dropping a view is no big deal\n #}\n {%- if exists_not_as_table -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- endif -%}\n\n -- build model\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n {% if not adapter.is_replaceable(old_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ old_relation ~ \" because it is not replaceable\") %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n -- build model\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {{ run_hooks(post_hooks) }}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.856944, "supported_languages": ["sql", "python"]}, "macro.dbt_bigquery.py_write_table": {"name": "py_write_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_bigquery.py_write_table", "macro_sql": "{% macro py_write_table(compiled_code, target_relation) %}\nfrom pyspark.sql import SparkSession\n{%- set raw_partition_by = config.get('partition_by', none) -%}\n{%- set raw_cluster_by = config.get('cluster_by', none) -%}\n{%- set enable_list_inference = config.get('enable_list_inference', true) -%}\n{%- set intermediate_format = config.get('intermediate_format', none) -%}\n\n{%- set partition_config = adapter.parse_partition_by(raw_partition_by) %}\n\nspark = SparkSession.builder.appName('smallTest').getOrCreate()\n\nspark.conf.set(\"viewsEnabled\",\"true\")\nspark.conf.set(\"temporaryGcsBucket\",\"{{target.gcs_bucket}}\")\nspark.conf.set(\"enableListInference\", \"{{ enable_list_inference }}\")\n{% if intermediate_format %}\nspark.conf.set(\"intermediateFormat\", \"{{ intermediate_format }}\")\n{% endif %}\n\n{{ compiled_code }}\ndbt = dbtObj(spark.read.format(\"bigquery\").load)\ndf = model(dbt, spark)\n\n# COMMAND ----------\n# this is materialization code dbt generated, please do not modify\n\nimport pyspark\n# make sure pandas exists before using it\ntry:\n import pandas\n pandas_available = True\nexcept ImportError:\n pandas_available = False\n\n# make sure pyspark.pandas exists before using it\ntry:\n import pyspark.pandas\n pyspark_pandas_api_available = True\nexcept ImportError:\n pyspark_pandas_api_available = False\n\n# make sure databricks.koalas exists before using it\ntry:\n import databricks.koalas\n koalas_available = True\nexcept ImportError:\n koalas_available = False\n\n# preferentially convert pandas DataFrames to pandas-on-Spark or Koalas DataFrames first\n# since they know how to convert pandas DataFrames better than `spark.createDataFrame(df)`\n# and converting from pandas-on-Spark to Spark DataFrame has no overhead\nif pyspark_pandas_api_available and pandas_available and isinstance(df, pandas.core.frame.DataFrame):\n df = pyspark.pandas.frame.DataFrame(df)\nelif koalas_available and pandas_available and isinstance(df, pandas.core.frame.DataFrame):\n df = databricks.koalas.frame.DataFrame(df)\n\n# convert to pyspark.sql.dataframe.DataFrame\nif isinstance(df, pyspark.sql.dataframe.DataFrame):\n pass # since it is already a Spark DataFrame\nelif pyspark_pandas_api_available and isinstance(df, pyspark.pandas.frame.DataFrame):\n df = df.to_spark()\nelif koalas_available and isinstance(df, databricks.koalas.frame.DataFrame):\n df = df.to_spark()\nelif pandas_available and isinstance(df, pandas.core.frame.DataFrame):\n df = spark.createDataFrame(df)\nelse:\n msg = f\"{type(df)} is not a supported type for dbt Python materialization\"\n raise Exception(msg)\n\ndf.write \\\n .mode(\"overwrite\") \\\n .format(\"bigquery\") \\\n .option(\"writeMethod\", \"indirect\").option(\"writeDisposition\", 'WRITE_TRUNCATE') \\\n {%- if partition_config is not none %}\n {%- if partition_config.data_type | lower in ('date','timestamp','datetime') %}\n .option(\"partitionField\", \"{{- partition_config.field -}}\") \\\n {%- if partition_config.granularity is not none %}\n .option(\"partitionType\", \"{{- partition_config.granularity| upper -}}\") \\\n {%- endif %}\n {%- endif %}\n {%- endif %}\n {%- if raw_cluster_by is not none %}\n .option(\"clusteredFields\", \"{{- raw_cluster_by | join(',') -}}\") \\\n {%- endif %}\n .save(\"{{target_relation}}\")\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8587148, "supported_languages": null}, "macro.dbt_bigquery.materialization_copy_bigquery": {"name": "materialization_copy_bigquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/copy.sql", "original_file_path": "macros/materializations/copy.sql", "unique_id": "macro.dbt_bigquery.materialization_copy_bigquery", "macro_sql": "{% materialization copy, adapter='bigquery' -%}\n\n {# Setup #}\n {{ run_hooks(pre_hooks) }}\n\n {% set destination = this.incorporate(type='table') %}\n\n {# there can be several ref() or source() according to BQ copy API docs #}\n {# cycle over ref() and source() to create source tables array #}\n {% set source_array = [] %}\n {% for ref_table in model.refs %}\n {{ source_array.append(ref(ref_table.get('package'), ref_table.name, version=ref_table.get('version'))) }}\n {% endfor %}\n\n {% for src_table in model.sources %}\n {{ source_array.append(source(*src_table)) }}\n {% endfor %}\n\n {# Call adapter copy_table function #}\n {%- set result_str = adapter.copy_table(\n source_array,\n destination,\n config.get('copy_materialization', default = 'table')) -%}\n\n {{ store_result('main', response=result_str) }}\n\n {# Clean up #}\n {{ run_hooks(post_hooks) }}\n {%- do apply_grants(target_relation, grant_config) -%}\n {{ adapter.commit() }}\n\n {{ return({'relations': [destination]}) }}\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.860197, "supported_languages": ["sql"]}, "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy": {"name": "dbt_bigquery_validate_get_incremental_strategy", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "macro_sql": "{% macro dbt_bigquery_validate_get_incremental_strategy(config) %}\n {#-- Find and validate the incremental strategy #}\n {%- set strategy = config.get(\"incremental_strategy\") or 'merge' -%}\n\n {% set invalid_strategy_msg -%}\n Invalid incremental strategy provided: {{ strategy }}\n Expected one of: 'merge', 'insert_overwrite'\n {%- endset %}\n {% if strategy not in ['merge', 'insert_overwrite'] %}\n {% do exceptions.raise_compiler_error(invalid_strategy_msg) %}\n {% endif %}\n\n {% do return(strategy) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.862515, "supported_languages": null}, "macro.dbt_bigquery.source_sql_with_partition": {"name": "source_sql_with_partition", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.source_sql_with_partition", "macro_sql": "{% macro source_sql_with_partition(partition_by, source_sql) %}\n\n {%- if partition_by.time_ingestion_partitioning %}\n {{ return(wrap_with_time_ingestion_partitioning_sql(partition_by, source_sql, False)) }}\n {% else %}\n {{ return(source_sql) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.862821, "supported_languages": null}, "macro.dbt_bigquery.bq_create_table_as": {"name": "bq_create_table_as", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.bq_create_table_as", "macro_sql": "{% macro bq_create_table_as(partition_by, temporary, relation, compiled_code, language='sql') %}\n {%- set _dbt_max_partition = declare_dbt_max_partition(this, partition_by, compiled_code, language) -%}\n {% if partition_by.time_ingestion_partitioning and language == 'python' %}\n {% do exceptions.raise_compiler_error(\n \"Python models do not support ingestion time partitioning\"\n ) %}\n {% elif partition_by.time_ingestion_partitioning and language == 'sql' %}\n {#-- Create the table before inserting data as ingestion time partitioned tables can't be created with the transformed data --#}\n {% do run_query(create_table_as(temporary, relation, compiled_code)) %}\n {{ return(_dbt_max_partition + bq_insert_into_ingestion_time_partitioned_table_sql(relation, compiled_code)) }}\n {% else %}\n {{ return(_dbt_max_partition + create_table_as(temporary, relation, compiled_code, language)) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.declare_dbt_max_partition", "macro.dbt.run_query", "macro.dbt.create_table_as", "macro.dbt_bigquery.bq_insert_into_ingestion_time_partitioned_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8635972, "supported_languages": null}, "macro.dbt_bigquery.bq_generate_incremental_build_sql": {"name": "bq_generate_incremental_build_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.bq_generate_incremental_build_sql", "macro_sql": "{% macro bq_generate_incremental_build_sql(\n strategy, tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions, incremental_predicates\n) %}\n {#-- if partitioned, use BQ scripting to get the range of partition values to be updated --#}\n {% if strategy == 'insert_overwrite' %}\n\n {% set build_sql = bq_generate_incremental_insert_overwrite_build_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n ) %}\n\n {% else %} {# strategy == 'merge' #}\n\n {% set build_sql = bq_generate_incremental_merge_build_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, incremental_predicates\n ) %}\n\n {% endif %}\n\n {{ return(build_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bq_generate_incremental_insert_overwrite_build_sql", "macro.dbt_bigquery.bq_generate_incremental_merge_build_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.864264, "supported_languages": null}, "macro.dbt_bigquery.materialization_incremental_bigquery": {"name": "materialization_incremental_bigquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.materialization_incremental_bigquery", "macro_sql": "{% materialization incremental, adapter='bigquery', supported_languages=['sql', 'python'] -%}\n\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n {%- set language = model['language'] %}\n\n {%- set target_relation = this %}\n {%- set existing_relation = load_relation(this) %}\n {%- set tmp_relation = make_temp_relation(this) %}\n\n {#-- Validate early so we don't run SQL if the strategy is invalid --#}\n {% set strategy = dbt_bigquery_validate_get_incremental_strategy(config) -%}\n\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set partitions = config.get('partitions', none) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n\n {% set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') %}\n {% set incremental_predicates = config.get('predicates', default=none) or config.get('incremental_predicates', default=none) %}\n\n -- grab current tables grants config for comparison later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n {% if partition_by.copy_partitions is true and strategy != 'insert_overwrite' %} {#-- We can't copy partitions with merge strategy --#}\n {% set wrong_strategy_msg -%}\n The 'copy_partitions' option requires the 'incremental_strategy' option to be set to 'insert_overwrite'.\n {%- endset %}\n {% do exceptions.raise_compiler_error(wrong_strategy_msg) %}\n\n {% elif existing_relation is none %}\n {%- call statement('main', language=language) -%}\n {{ bq_create_table_as(partition_by, False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% elif existing_relation.is_view %}\n {#-- There's no way to atomically replace a view with a table on BQ --#}\n {{ adapter.drop_relation(existing_relation) }}\n {%- call statement('main', language=language) -%}\n {{ bq_create_table_as(partition_by, False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% elif full_refresh_mode %}\n {#-- If the partition/cluster config has changed, then we must drop and recreate --#}\n {% if not adapter.is_replaceable(existing_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ existing_relation ~ \" because it is not replaceable\") %}\n {{ adapter.drop_relation(existing_relation) }}\n {% endif %}\n {%- call statement('main', language=language) -%}\n {{ bq_create_table_as(partition_by, False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% else %}\n {%- if language == 'python' and strategy == 'insert_overwrite' -%}\n {#-- This lets us move forward assuming no python will be directly templated into a query --#}\n {%- set python_unsupported_msg -%}\n The 'insert_overwrite' strategy is not yet supported for python models.\n {%- endset %}\n {% do exceptions.raise_compiler_error(python_unsupported_msg) %}\n {%- endif -%}\n\n {% set tmp_relation_exists = false %}\n {% if on_schema_change != 'ignore' or language == 'python' %}\n {#-- Check first, since otherwise we may not build a temp table --#}\n {#-- Python always needs to create a temp table --#}\n {%- call statement('create_tmp_relation', language=language) -%}\n {{ bq_create_table_as(partition_by, True, tmp_relation, compiled_code, language) }}\n {%- endcall -%}\n {% set tmp_relation_exists = true %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, tmp_relation, existing_relation) %}\n {% endif %}\n\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n {#-- Add time ingestion pseudo column to destination column as not part of the 'schema' but still need it for actual data insertion --#}\n {% if partition_by.time_ingestion_partitioning %}\n {% set dest_columns = adapter.add_time_ingestion_partition_column(partition_by, dest_columns) %}\n {% endif %}\n\n {% set build_sql = bq_generate_incremental_build_sql(\n strategy, tmp_relation, target_relation, compiled_code, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, partition_by.copy_partitions, incremental_predicates\n ) %}\n\n {%- call statement('main') -%}\n {{ build_sql }}\n {% endcall %}\n\n {%- if language == 'python' and tmp_relation -%}\n {{ adapter.drop_relation(tmp_relation) }}\n {%- endif -%}\n\n {% endif %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.load_relation", "macro.dbt.make_temp_relation", "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt_bigquery.bq_create_table_as", "macro.dbt.process_schema_changes", "macro.dbt_bigquery.bq_generate_incremental_build_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.869589, "supported_languages": ["sql", "python"]}, "macro.dbt_bigquery.bigquery__snapshot_hash_arguments": {"name": "bigquery__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "unique_id": "macro.dbt_bigquery.bigquery__snapshot_hash_arguments", "macro_sql": "{% macro bigquery__snapshot_hash_arguments(args) -%}\n to_hex(md5(concat({%- for arg in args -%}\n coalesce(cast({{ arg }} as string), ''){% if not loop.last %}, '|',{% endif -%}\n {%- endfor -%}\n )))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8701282, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_columns": {"name": "bigquery__create_columns", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_columns", "macro_sql": "{% macro bigquery__create_columns(relation, columns) %}\n {{ adapter.alter_table_add_columns(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8703082, "supported_languages": null}, "macro.dbt_bigquery.bigquery__post_snapshot": {"name": "bigquery__post_snapshot", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "unique_id": "macro.dbt_bigquery.bigquery__post_snapshot", "macro_sql": "{% macro bigquery__post_snapshot(staging_relation) %}\n -- Clean up the snapshot temp table\n {% do drop_relation(staging_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.870454, "supported_languages": null}, "macro.dbt_bigquery.bigquery__can_clone_table": {"name": "bigquery__can_clone_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/clone.sql", "original_file_path": "macros/materializations/clone.sql", "unique_id": "macro.dbt_bigquery.bigquery__can_clone_table", "macro_sql": "{% macro bigquery__can_clone_table() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.870664, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_or_replace_clone": {"name": "bigquery__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/clone.sql", "original_file_path": "macros/materializations/clone.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_or_replace_clone", "macro_sql": "{% macro bigquery__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace\n table {{ this_relation }}\n clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8708081, "supported_languages": null}, "macro.dbt_bigquery.bq_generate_incremental_merge_build_sql": {"name": "bq_generate_incremental_merge_build_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/merge.sql", "original_file_path": "macros/materializations/incremental_strategy/merge.sql", "unique_id": "macro.dbt_bigquery.bq_generate_incremental_merge_build_sql", "macro_sql": "{% macro bq_generate_incremental_merge_build_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, incremental_predicates\n) %}\n {%- set source_sql -%}\n {%- if tmp_relation_exists -%}\n (\n select\n {% if partition_by.time_ingestion_partitioning -%}\n {{ partition_by.insertable_time_partitioning_field() }},\n {%- endif -%}\n * from {{ tmp_relation }}\n )\n {%- else -%} {#-- wrap sql in parens to make it a subquery --#}\n (\n {%- if partition_by.time_ingestion_partitioning -%}\n {{ wrap_with_time_ingestion_partitioning_sql(partition_by, sql, True) }}\n {%- else -%}\n {{sql}}\n {%- endif %}\n )\n {%- endif -%}\n {%- endset -%}\n\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set avoid_require_partition_filter = predicate_for_avoid_require_partition_filter() -%}\n {%- if avoid_require_partition_filter is not none -%}\n {% do predicates.append(avoid_require_partition_filter) %}\n {%- endif -%}\n\n {% set build_sql = get_merge_sql(target_relation, source_sql, unique_key, dest_columns, predicates) %}\n\n {{ return(build_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql", "macro.dbt_bigquery.predicate_for_avoid_require_partition_filter", "macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.872158, "supported_languages": null}, "macro.dbt_bigquery.declare_dbt_max_partition": {"name": "declare_dbt_max_partition", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/common.sql", "original_file_path": "macros/materializations/incremental_strategy/common.sql", "unique_id": "macro.dbt_bigquery.declare_dbt_max_partition", "macro_sql": "{% macro declare_dbt_max_partition(relation, partition_by, compiled_code, language='sql') %}\n\n {#-- TODO: revisit partitioning with python models --#}\n {%- if '_dbt_max_partition' in compiled_code and language == 'sql' -%}\n\n declare _dbt_max_partition {{ partition_by.data_type_for_partition() }} default (\n select max({{ partition_by.field }}) from {{ this }}\n where {{ partition_by.field }} is not null\n );\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.873021, "supported_languages": null}, "macro.dbt_bigquery.predicate_for_avoid_require_partition_filter": {"name": "predicate_for_avoid_require_partition_filter", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/common.sql", "original_file_path": "macros/materializations/incremental_strategy/common.sql", "unique_id": "macro.dbt_bigquery.predicate_for_avoid_require_partition_filter", "macro_sql": "{% macro predicate_for_avoid_require_partition_filter(target='DBT_INTERNAL_DEST') %}\n\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_config = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set predicate = none -%}\n\n {% if partition_config and config.get('require_partition_filter') -%}\n {%- set partition_field = partition_config.time_partitioning_field() if partition_config.time_ingestion_partitioning else partition_config.field -%}\n {% set predicate %}\n (\n `{{ target }}`.`{{ partition_field }}` is null\n or `{{ target }}`.`{{ partition_field }}` is not null\n )\n {% endset %}\n {%- endif -%}\n\n {{ return(predicate) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.873854, "supported_languages": null}, "macro.dbt_bigquery.bq_generate_incremental_insert_overwrite_build_sql": {"name": "bq_generate_incremental_insert_overwrite_build_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_generate_incremental_insert_overwrite_build_sql", "macro_sql": "{% macro bq_generate_incremental_insert_overwrite_build_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n) %}\n {% if partition_by is none %}\n {% set missing_partition_msg -%}\n The 'insert_overwrite' strategy requires the `partition_by` config.\n {%- endset %}\n {% do exceptions.raise_compiler_error(missing_partition_msg) %}\n {% endif %}\n\n {% set build_sql = bq_insert_overwrite_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n ) %}\n\n {{ return(build_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bq_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.877236, "supported_languages": null}, "macro.dbt_bigquery.bq_copy_partitions": {"name": "bq_copy_partitions", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_copy_partitions", "macro_sql": "{% macro bq_copy_partitions(tmp_relation, target_relation, partitions, partition_by) %}\n\n {% for partition in partitions %}\n {% if partition_by.data_type == 'int64' %}\n {% set partition = partition | as_text %}\n {% elif partition_by.granularity == 'hour' %}\n {% set partition = partition.strftime(\"%Y%m%d%H\") %}\n {% elif partition_by.granularity == 'day' %}\n {% set partition = partition.strftime(\"%Y%m%d\") %}\n {% elif partition_by.granularity == 'month' %}\n {% set partition = partition.strftime(\"%Y%m\") %}\n {% elif partition_by.granularity == 'year' %}\n {% set partition = partition.strftime(\"%Y\") %}\n {% endif %}\n {% set tmp_relation_partitioned = api.Relation.create(database=tmp_relation.database, schema=tmp_relation.schema, identifier=tmp_relation.table ~ '$' ~ partition, type=tmp_relation.type) %}\n {% set target_relation_partitioned = api.Relation.create(database=target_relation.database, schema=target_relation.schema, identifier=target_relation.table ~ '$' ~ partition, type=target_relation.type) %}\n {% do adapter.copy_table(tmp_relation_partitioned, target_relation_partitioned, \"table\") %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.878571, "supported_languages": null}, "macro.dbt_bigquery.bq_insert_overwrite_sql": {"name": "bq_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_insert_overwrite_sql", "macro_sql": "{% macro bq_insert_overwrite_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n) %}\n {% if partitions is not none and partitions != [] %} {# static #}\n {{ bq_static_insert_overwrite_sql(tmp_relation, target_relation, sql, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions) }}\n {% else %} {# dynamic #}\n {{ bq_dynamic_insert_overwrite_sql(tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bq_static_insert_overwrite_sql", "macro.dbt_bigquery.bq_dynamic_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8791401, "supported_languages": null}, "macro.dbt_bigquery.bq_static_insert_overwrite_sql": {"name": "bq_static_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_static_insert_overwrite_sql", "macro_sql": "{% macro bq_static_insert_overwrite_sql(\n tmp_relation, target_relation, sql, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n) %}\n\n {% set predicate -%}\n {{ partition_by.render_wrapped(alias='DBT_INTERNAL_DEST') }} in (\n {{ partitions | join (', ') }}\n )\n {%- endset %}\n\n {%- set source_sql -%}\n (\n {% if partition_by.time_ingestion_partitioning and tmp_relation_exists -%}\n select\n {{ partition_by.insertable_time_partitioning_field() }},\n * from {{ tmp_relation }}\n {% elif tmp_relation_exists -%}\n select\n * from {{ tmp_relation }}\n {%- elif partition_by.time_ingestion_partitioning -%}\n {{ wrap_with_time_ingestion_partitioning_sql(partition_by, sql, True) }}\n {%- else -%}\n {{sql}}\n {%- endif %}\n\n )\n {%- endset -%}\n\n {% if copy_partitions %}\n {% do bq_copy_partitions(tmp_relation, target_relation, partitions, partition_by) %}\n {% else %}\n\n {#-- In case we're putting the model SQL _directly_ into the MERGE statement,\n we need to prepend the MERGE statement with the user-configured sql_header,\n which may be needed to resolve that model SQL (e.g. referencing a variable or UDF in the header)\n in the \"temporary table exists\" case, we save the model SQL result as a temp table first, wherein the\n sql_header is included by the create_table_as macro.\n #}\n -- 1. run the merge statement\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header = not tmp_relation_exists) }};\n\n {%- if tmp_relation_exists -%}\n -- 2. clean up the temp table\n drop table if exists {{ tmp_relation }};\n {%- endif -%}\n\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql", "macro.dbt_bigquery.bq_copy_partitions", "macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.880119, "supported_languages": null}, "macro.dbt_bigquery.bq_dynamic_copy_partitions_insert_overwrite_sql": {"name": "bq_dynamic_copy_partitions_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_dynamic_copy_partitions_insert_overwrite_sql", "macro_sql": "{% macro bq_dynamic_copy_partitions_insert_overwrite_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions\n ) %}\n {%- if tmp_relation_exists is false -%}\n {# We run temp table creation in a separated script to move to partitions copy if it doesn't already exist #}\n {%- call statement('create_tmp_relation_for_copy', language='sql') -%}\n {{ bq_create_table_as(partition_by, True, tmp_relation, sql, 'sql')\n }}\n {%- endcall %}\n {%- endif -%}\n {%- set partitions_sql -%}\n select distinct {{ partition_by.render_wrapped() }}\n from {{ tmp_relation }}\n {%- endset -%}\n {%- set partitions = run_query(partitions_sql).columns[0].values() -%}\n {# We copy the partitions #}\n {%- do bq_copy_partitions(tmp_relation, target_relation, partitions, partition_by) -%}\n -- Clean up the temp table\n drop table if exists {{ tmp_relation }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_bigquery.bq_create_table_as", "macro.dbt.run_query", "macro.dbt_bigquery.bq_copy_partitions"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8808022, "supported_languages": null}, "macro.dbt_bigquery.bq_dynamic_insert_overwrite_sql": {"name": "bq_dynamic_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_dynamic_insert_overwrite_sql", "macro_sql": "{% macro bq_dynamic_insert_overwrite_sql(tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions) %}\n {%- if copy_partitions is true %}\n {{ bq_dynamic_copy_partitions_insert_overwrite_sql(tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions) }}\n {% else -%}\n {% set predicate -%}\n {{ partition_by.render_wrapped(alias='DBT_INTERNAL_DEST') }} in unnest(dbt_partitions_for_replacement)\n {%- endset %}\n\n {%- set source_sql -%}\n (\n select\n {% if partition_by.time_ingestion_partitioning -%}\n {{ partition_by.insertable_time_partitioning_field() }},\n {%- endif -%}\n * from {{ tmp_relation }}\n )\n {%- endset -%}\n\n -- generated script to merge partitions into {{ target_relation }}\n declare dbt_partitions_for_replacement array<{{ partition_by.data_type_for_partition() }}>;\n\n {# have we already created the temp table to check for schema changes? #}\n {% if not tmp_relation_exists %}\n -- 1. create a temp table with model data\n {{ bq_create_table_as(partition_by, True, tmp_relation, sql, 'sql') }}\n {% else %}\n -- 1. temp table already exists, we used it to check for schema changes\n {% endif %}\n {%- set partition_field = partition_by.time_partitioning_field() if partition_by.time_ingestion_partitioning else partition_by.render_wrapped() -%}\n\n -- 2. define partitions to update\n set (dbt_partitions_for_replacement) = (\n select as struct\n -- IGNORE NULLS: this needs to be aligned to _dbt_max_partition, which ignores null\n array_agg(distinct {{ partition_field }} IGNORE NULLS)\n from {{ tmp_relation }}\n );\n\n -- 3. run the merge statement\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate]) }};\n\n -- 4. clean up the temp table\n drop table if exists {{ tmp_relation }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bq_dynamic_copy_partitions_insert_overwrite_sql", "macro.dbt_bigquery.bq_create_table_as", "macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.881906, "supported_languages": null}, "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql": {"name": "wrap_with_time_ingestion_partitioning_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql", "macro_sql": "{% macro wrap_with_time_ingestion_partitioning_sql(partition_by, sql, is_nested) %}\n\n select TIMESTAMP({{ partition_by.field }}) as {{ partition_by.insertable_time_partitioning_field() }}, * EXCEPT({{ partition_by.field }}) from (\n {{ sql }}\n ){%- if not is_nested -%};{%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8833659, "supported_languages": null}, "macro.dbt_bigquery.get_quoted_with_types_csv": {"name": "get_quoted_with_types_csv", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.get_quoted_with_types_csv", "macro_sql": "{% macro get_quoted_with_types_csv(columns) %}\n {% set quoted = [] %}\n {% for col in columns -%}\n {%- do quoted.append(adapter.quote(col.name) ~ \" \" ~ col.data_type) -%}\n {%- endfor %}\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8837729, "supported_languages": null}, "macro.dbt_bigquery.columns_without_partition_fields_csv": {"name": "columns_without_partition_fields_csv", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.columns_without_partition_fields_csv", "macro_sql": "{% macro columns_without_partition_fields_csv(partition_config, columns) -%}\n {%- set columns_no_partition = partition_config.reject_partition_field_column(columns) -%}\n {% set columns_names = get_quoted_with_types_csv(columns_no_partition) %}\n {{ return(columns_names) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.get_quoted_with_types_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8841531, "supported_languages": null}, "macro.dbt_bigquery.bq_insert_into_ingestion_time_partitioned_table_sql": {"name": "bq_insert_into_ingestion_time_partitioned_table_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.bq_insert_into_ingestion_time_partitioned_table_sql", "macro_sql": "{% macro bq_insert_into_ingestion_time_partitioned_table_sql(target_relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {% set dest_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set dest_columns_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ partition_by.insertable_time_partitioning_field() }}, {{ dest_columns_csv }})\n {{ wrap_with_time_ingestion_partitioning_sql(partition_by, sql, False) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.884863, "supported_languages": null}, "macro.dbt_bigquery.get_columns_with_types_in_query_sql": {"name": "get_columns_with_types_in_query_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.get_columns_with_types_in_query_sql", "macro_sql": "{% macro get_columns_with_types_in_query_sql(select_sql) %}\n {% set sql %}\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endset %}\n {{ return(adapter.get_columns_in_select_sql(sql)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.885223, "supported_languages": null}, "macro.dbt_bigquery.bigquery__drop_relation": {"name": "bigquery__drop_relation", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt_bigquery.bigquery__drop_relation", "macro_sql": "{% macro bigquery__drop_relation(relation) -%}\n {% do adapter.drop_relation(relation) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.88541, "supported_languages": null}, "macro.dbt_bigquery.bigquery_options": {"name": "bigquery_options", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/options.sql", "original_file_path": "macros/relations/options.sql", "unique_id": "macro.dbt_bigquery.bigquery_options", "macro_sql": "{% macro bigquery_options(opts) %}\n {% set options -%}\n OPTIONS({% for opt_key, opt_val in opts.items() %}\n {{ opt_key }}={{ opt_val }}{{ \",\" if not loop.last }}\n {% endfor %})\n {%- endset %}\n {%- do return(options) -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8858612, "supported_languages": null}, "macro.dbt_bigquery.cluster_by": {"name": "cluster_by", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/cluster.sql", "original_file_path": "macros/relations/cluster.sql", "unique_id": "macro.dbt_bigquery.cluster_by", "macro_sql": "{% macro cluster_by(raw_cluster_by) %}\n {%- if raw_cluster_by is not none -%}\n cluster by {% if raw_cluster_by is string -%}\n {% set raw_cluster_by = [raw_cluster_by] %}\n {%- endif -%}\n {%- for cluster in raw_cluster_by -%}\n {{ cluster }}\n {%- if not loop.last -%}, {% endif -%}\n {%- endfor -%}\n\n {% endif %}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.886483, "supported_languages": null}, "macro.dbt_bigquery.bigquery__rename_relation": {"name": "bigquery__rename_relation", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt_bigquery.bigquery__rename_relation", "macro_sql": "{% macro bigquery__rename_relation(from_relation, to_relation) -%}\n {% do adapter.rename_relation(from_relation, to_relation) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8868768, "supported_languages": null}, "macro.dbt_bigquery.partition_by": {"name": "partition_by", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/partition.sql", "original_file_path": "macros/relations/partition.sql", "unique_id": "macro.dbt_bigquery.partition_by", "macro_sql": "{% macro partition_by(partition_config) -%}\n {%- if partition_config is none -%}\n {% do return('') %}\n {%- elif partition_config.time_ingestion_partitioning -%}\n partition by {{ partition_config.render_wrapped() }}\n {%- elif partition_config.data_type | lower in ('date','timestamp','datetime') -%}\n partition by {{ partition_config.render() }}\n {%- elif partition_config.data_type | lower in ('int64') -%}\n {%- set range = partition_config.range -%}\n partition by range_bucket(\n {{ partition_config.field }},\n generate_array({{ range.start}}, {{ range.end }}, {{ range.interval }})\n )\n {%- endif -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.887799, "supported_languages": null}, "macro.dbt_bigquery.bigquery__drop_materialized_view": {"name": "bigquery__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_bigquery.bigquery__drop_materialized_view", "macro_sql": "{% macro bigquery__drop_materialized_view(relation) %}\n drop materialized view if exists {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.887955, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_replace_materialized_view_as_sql": {"name": "bigquery__get_replace_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_replace_materialized_view_as_sql", "macro_sql": "{% macro bigquery__get_replace_materialized_view_as_sql(relation, sql) %}\n\n {%- set materialized_view = adapter.Relation.materialized_view_from_relation_config(config.model) -%}\n\n create or replace materialized view if not exists {{ relation }}\n {% if materialized_view.partition %}{{ partition_by(materialized_view.partition) }}{% endif %}\n {% if materialized_view.cluster %}{{ cluster_by(materialized_view.cluster.fields) }}{% endif %}\n {{ bigquery_options(materialized_view.options.as_ddl_dict()) }}\n as {{ sql }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.partition_by", "macro.dbt_bigquery.cluster_by", "macro.dbt_bigquery.bigquery_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.88857, "supported_languages": null}, "macro.dbt_bigquery.bigquery__refresh_materialized_view": {"name": "bigquery__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_bigquery.bigquery__refresh_materialized_view", "macro_sql": "{% macro bigquery__refresh_materialized_view(relation) %}\n call bq.refresh_materialized_view('{{ relation.database }}.{{ relation.schema }}.{{ relation.identifier }}')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.888787, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_alter_materialized_view_as_sql": {"name": "bigquery__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_alter_materialized_view_as_sql", "macro_sql": "{% macro bigquery__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n {% if configuration_changes.requires_full_refresh %}\n {{ get_replace_sql(existing_relation, relation, sql) }}\n {% else %}\n\n alter materialized view {{ relation }}\n set {{ bigquery_options(configuration_changes.options.context.as_ddl_dict()) }}\n\n {%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_bigquery.bigquery_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.88938, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_materialized_view_configuration_changes": {"name": "bigquery__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_materialized_view_configuration_changes", "macro_sql": "{% macro bigquery__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = adapter.describe_relation(existing_relation) %}\n {% set _configuration_changes = existing_relation.materialized_view_config_changeset(_existing_materialized_view, new_config.model) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.889677, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_create_materialized_view_as_sql": {"name": "bigquery__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_create_materialized_view_as_sql", "macro_sql": "{% macro bigquery__get_create_materialized_view_as_sql(relation, sql) %}\n\n {%- set materialized_view = adapter.Relation.materialized_view_from_relation_config(config.model) -%}\n\n create materialized view if not exists {{ relation }}\n {% if materialized_view.partition %}{{ partition_by(materialized_view.partition) }}{% endif %}\n {% if materialized_view.cluster %}{{ cluster_by(materialized_view.cluster.fields) }}{% endif %}\n {{ bigquery_options(materialized_view.options.as_ddl_dict()) }}\n as {{ sql }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.partition_by", "macro.dbt_bigquery.cluster_by", "macro.dbt_bigquery.bigquery_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.890291, "supported_languages": null}, "macro.dbt_bigquery.bigquery__drop_table": {"name": "bigquery__drop_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_bigquery.bigquery__drop_table", "macro_sql": "{% macro bigquery__drop_table(relation) %}\n drop table if exists {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.89043, "supported_languages": null}, "macro.dbt_bigquery.bigquery_table_options": {"name": "bigquery_table_options", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/table/options.sql", "original_file_path": "macros/relations/table/options.sql", "unique_id": "macro.dbt_bigquery.bigquery_table_options", "macro_sql": "{% macro bigquery_table_options(config, node, temporary) %}\n {% set opts = adapter.get_table_options(config, node, temporary) %}\n {%- do return(bigquery_options(opts)) -%}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8907259, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_rename_table_sql": {"name": "bigquery__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_rename_table_sql", "macro_sql": "{%- macro bigquery__get_rename_table_sql(relation, new_name) -%}\n alter table {{ relation }} rename to {{ new_name }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8908951, "supported_languages": null}, "macro.dbt_bigquery.bigquery__drop_view": {"name": "bigquery__drop_view", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_bigquery.bigquery__drop_view", "macro_sql": "{% macro bigquery__drop_view(relation) %}\n drop view if exists {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.891128, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_or_replace_view": {"name": "bigquery__create_or_replace_view", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_or_replace_view", "macro_sql": "{% macro bigquery__create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and not old_relation.is_view -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt_bigquery.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8928561, "supported_languages": null}, "macro.dbt_bigquery.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_bigquery.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.893057, "supported_languages": null}, "macro.dbt_bigquery.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_bigquery.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.893274, "supported_languages": null}, "macro.dbt_bigquery.bigquery_view_options": {"name": "bigquery_view_options", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/view/options.sql", "original_file_path": "macros/relations/view/options.sql", "unique_id": "macro.dbt_bigquery.bigquery_view_options", "macro_sql": "{% macro bigquery_view_options(config, node) %}\n {% set opts = adapter.get_view_options(config, node) %}\n {%- do return(bigquery_options(opts)) -%}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8935459, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_rename_view_sql": {"name": "bigquery__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_rename_view_sql", "macro_sql": "{%- macro bigquery__get_rename_view_sql(relation, new_name) -%}\n alter view {{ relation }} rename to {{ new_name }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.893714, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_catalog_relations": {"name": "bigquery__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/catalog/by_relation.sql", "original_file_path": "macros/catalog/by_relation.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_catalog_relations", "macro_sql": "{% macro bigquery__get_catalog_relations(information_schema, relations) -%}\n\n {%- if (relations | length) == 0 -%}\n {# Hopefully nothing cares about the columns we return when there are no rows #}\n {%- set query = \"select 1 as id limit 0\" -%}\n\n {%- else -%}\n {%- set query -%}\n with\n table_shards_stage as ({{ _bigquery__get_table_shards_sql(information_schema) }}),\n table_shards as (\n select * from table_shards_stage\n where (\n {%- for relation in relations -%}\n (\n upper(table_schema) = upper('{{ relation.schema }}')\n and upper(table_name) = upper('{{ relation.identifier }}')\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n ),\n tables as ({{ _bigquery__get_tables_sql() }}),\n table_stats as ({{ _bigquery__get_table_stats_sql() }}),\n\n columns as ({{ _bigquery__get_columns_sql(information_schema) }}),\n column_stats as ({{ _bigquery__get_column_stats_sql() }})\n\n {{ _bigquery__get_extended_catalog_sql() }}\n {%- endset -%}\n\n {%- endif -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery._bigquery__get_table_shards_sql", "macro.dbt_bigquery._bigquery__get_tables_sql", "macro.dbt_bigquery._bigquery__get_table_stats_sql", "macro.dbt_bigquery._bigquery__get_columns_sql", "macro.dbt_bigquery._bigquery__get_column_stats_sql", "macro.dbt_bigquery._bigquery__get_extended_catalog_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.895076, "supported_languages": null}, "macro.dbt_bigquery._bigquery__get_table_shards_sql": {"name": "_bigquery__get_table_shards_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/catalog/catalog.sql", "original_file_path": "macros/catalog/catalog.sql", "unique_id": "macro.dbt_bigquery._bigquery__get_table_shards_sql", "macro_sql": "{% macro _bigquery__get_table_shards_sql(information_schema) %}\n select\n tables.project_id as table_catalog,\n tables.dataset_id as table_schema,\n coalesce(REGEXP_EXTRACT(tables.table_id, '^(.+)[0-9]{8}$'), tables.table_id) as table_name,\n tables.table_id as shard_name,\n REGEXP_EXTRACT(tables.table_id, '^.+([0-9]{8})$') as shard_index,\n REGEXP_CONTAINS(tables.table_id, '^.+[0-9]{8}$') and tables.type = 1 as is_date_shard,\n case\n when materialized_views.table_name is not null then 'materialized view'\n when tables.type = 1 then 'table'\n when tables.type = 2 then 'view'\n else 'external'\n end as table_type,\n tables.type = 1 as is_table,\n JSON_VALUE(table_description.option_value) as table_comment,\n tables.size_bytes,\n tables.row_count\n from {{ information_schema.replace(information_schema_view='__TABLES__') }} tables\n left join {{ information_schema.replace(information_schema_view='MATERIALIZED_VIEWS') }} materialized_views\n on materialized_views.table_catalog = tables.project_id\n and materialized_views.table_schema = tables.dataset_id\n and materialized_views.table_name = tables.table_id\n left join {{ information_schema.replace(information_schema_view='TABLE_OPTIONS') }} table_description\n on table_description.table_catalog = tables.project_id\n and table_description.table_schema = tables.dataset_id\n and table_description.table_name = tables.table_id\n and table_description.option_name = 'description'\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.898071, "supported_languages": null}, "macro.dbt_bigquery._bigquery__get_tables_sql": {"name": "_bigquery__get_tables_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/catalog/catalog.sql", "original_file_path": "macros/catalog/catalog.sql", "unique_id": "macro.dbt_bigquery._bigquery__get_tables_sql", "macro_sql": "{% macro _bigquery__get_tables_sql() %}\n select distinct\n table_catalog,\n table_schema,\n table_name,\n is_date_shard,\n table_type,\n is_table,\n table_comment\n from table_shards\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8981671, "supported_languages": null}, "macro.dbt_bigquery._bigquery__get_table_stats_sql": {"name": "_bigquery__get_table_stats_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/catalog/catalog.sql", "original_file_path": "macros/catalog/catalog.sql", "unique_id": "macro.dbt_bigquery._bigquery__get_table_stats_sql", "macro_sql": "{% macro _bigquery__get_table_stats_sql() %}\n select\n table_catalog,\n table_schema,\n table_name,\n max(shard_name) as latest_shard_name,\n min(shard_index) as shard_min,\n max(shard_index) as shard_max,\n count(shard_index) as shard_count,\n sum(size_bytes) as size_bytes,\n sum(row_count) as row_count\n from table_shards\n group by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8982642, "supported_languages": null}, "macro.dbt_bigquery._bigquery__get_columns_sql": {"name": "_bigquery__get_columns_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/catalog/catalog.sql", "original_file_path": "macros/catalog/catalog.sql", "unique_id": "macro.dbt_bigquery._bigquery__get_columns_sql", "macro_sql": "{% macro _bigquery__get_columns_sql(information_schema) %}\n select\n columns.table_catalog,\n columns.table_schema,\n columns.table_name as shard_name,\n coalesce(paths.field_path, '') as column_name,\n -- invent a row number to account for nested fields\n -- BQ does not treat these nested properties as independent fields\n row_number() over (\n partition by\n columns.table_catalog,\n columns.table_schema,\n columns.table_name\n order by\n columns.ordinal_position,\n paths.field_path\n ) as column_index,\n coalesce(paths.data_type, '') as column_type,\n paths.description as column_comment,\n case when columns.is_partitioning_column = 'YES' then 1 else 0 end as is_partitioning_column,\n case when columns.is_partitioning_column = 'YES' then paths.field_path end as partition_column,\n case when columns.clustering_ordinal_position is not null then 1 else 0 end as is_clustering_column,\n case when columns.clustering_ordinal_position is not null then paths.field_path end as cluster_column,\n columns.clustering_ordinal_position\n from {{ information_schema.replace(information_schema_view='COLUMNS') }} columns\n join {{ information_schema.replace(information_schema_view='COLUMN_FIELD_PATHS') }} paths\n on paths.table_catalog = columns.table_catalog\n and paths.table_schema = columns.table_schema\n and paths.table_name = columns.table_name\n and paths.column_name = columns.column_name\n where columns.ordinal_position is not null\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.8985448, "supported_languages": null}, "macro.dbt_bigquery._bigquery__get_column_stats_sql": {"name": "_bigquery__get_column_stats_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/catalog/catalog.sql", "original_file_path": "macros/catalog/catalog.sql", "unique_id": "macro.dbt_bigquery._bigquery__get_column_stats_sql", "macro_sql": "{% macro _bigquery__get_column_stats_sql() %}\n select\n table_catalog,\n table_schema,\n shard_name,\n max(is_partitioning_column) = 1 as is_partitioned,\n max(partition_column) as partition_column,\n max(is_clustering_column) = 1 as is_clustered,\n array_to_string(\n array_agg(\n cluster_column ignore nulls\n order by clustering_ordinal_position\n ), ', '\n ) as clustering_columns\n from columns\n group by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.898655, "supported_languages": null}, "macro.dbt_bigquery._bigquery__get_extended_catalog_sql": {"name": "_bigquery__get_extended_catalog_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/catalog/catalog.sql", "original_file_path": "macros/catalog/catalog.sql", "unique_id": "macro.dbt_bigquery._bigquery__get_extended_catalog_sql", "macro_sql": "{% macro _bigquery__get_extended_catalog_sql() %}\n select\n tables.table_catalog as table_database,\n tables.table_schema,\n case\n when tables.is_date_shard then concat(tables.table_name, '*')\n else tables.table_name\n end as table_name,\n tables.table_type,\n tables.table_comment,\n -- coalesce column metadata fields to ensure they are non-null for catalog generation\n -- external table columns are not present in COLUMN_FIELD_PATHS\n coalesce(columns.column_name, '') as column_name,\n coalesce(columns.column_index, 1) as column_index,\n coalesce(columns.column_type, '') as column_type,\n coalesce(columns.column_comment, '') as column_comment,\n\n 'Shard count' as `stats__date_shards__label`,\n table_stats.shard_count as `stats__date_shards__value`,\n 'The number of date shards in this table' as `stats__date_shards__description`,\n tables.is_date_shard as `stats__date_shards__include`,\n\n 'Shard (min)' as `stats__date_shard_min__label`,\n table_stats.shard_min as `stats__date_shard_min__value`,\n 'The first date shard in this table' as `stats__date_shard_min__description`,\n tables.is_date_shard as `stats__date_shard_min__include`,\n\n 'Shard (max)' as `stats__date_shard_max__label`,\n table_stats.shard_max as `stats__date_shard_max__value`,\n 'The last date shard in this table' as `stats__date_shard_max__description`,\n tables.is_date_shard as `stats__date_shard_max__include`,\n\n '# Rows' as `stats__num_rows__label`,\n table_stats.row_count as `stats__num_rows__value`,\n 'Approximate count of rows in this table' as `stats__num_rows__description`,\n tables.is_table as `stats__num_rows__include`,\n\n 'Approximate Size' as `stats__num_bytes__label`,\n table_stats.size_bytes as `stats__num_bytes__value`,\n 'Approximate size of table as reported by BigQuery' as `stats__num_bytes__description`,\n tables.is_table as `stats__num_bytes__include`,\n\n 'Partitioned By' as `stats__partitioning_type__label`,\n column_stats.partition_column as `stats__partitioning_type__value`,\n 'The partitioning column for this table' as `stats__partitioning_type__description`,\n column_stats.is_partitioned as `stats__partitioning_type__include`,\n\n 'Clustered By' as `stats__clustering_fields__label`,\n column_stats.clustering_columns as `stats__clustering_fields__value`,\n 'The clustering columns for this table' as `stats__clustering_fields__description`,\n column_stats.is_clustered as `stats__clustering_fields__include`\n\n from tables\n join table_stats\n on table_stats.table_catalog = tables.table_catalog\n and table_stats.table_schema = tables.table_schema\n and table_stats.table_name = tables.table_name\n left join column_stats\n on column_stats.table_catalog = tables.table_catalog\n and column_stats.table_schema = tables.table_schema\n and column_stats.shard_name = table_stats.latest_shard_name\n left join columns\n on columns.table_catalog = tables.table_catalog\n and columns.table_schema = tables.table_schema\n and columns.shard_name = table_stats.latest_shard_name\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.898925, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_catalog": {"name": "bigquery__get_catalog", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/catalog/by_schema.sql", "original_file_path": "macros/catalog/by_schema.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_catalog", "macro_sql": "{% macro bigquery__get_catalog(information_schema, schemas) -%}\n\n {%- if (schemas | length) == 0 -%}\n {# Hopefully nothing cares about the columns we return when there are no rows #}\n {%- set query = \"select 1 as id limit 0\" -%}\n\n {%- else -%}\n {%- set query -%}\n with\n table_shards as (\n {{ _bigquery__get_table_shards_sql(information_schema) }}\n where (\n {%- for schema in schemas -%}\n upper(tables.dataset_id) = upper('{{ schema }}')\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n ),\n tables as ({{ _bigquery__get_tables_sql() }}),\n table_stats as ({{ _bigquery__get_table_stats_sql() }}),\n\n columns as ({{ _bigquery__get_columns_sql(information_schema) }}),\n column_stats as ({{ _bigquery__get_column_stats_sql() }})\n\n {{ _bigquery__get_extended_catalog_sql() }}\n {%- endset -%}\n\n {%- endif -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery._bigquery__get_table_shards_sql", "macro.dbt_bigquery._bigquery__get_tables_sql", "macro.dbt_bigquery._bigquery__get_table_stats_sql", "macro.dbt_bigquery._bigquery__get_columns_sql", "macro.dbt_bigquery._bigquery__get_column_stats_sql", "macro.dbt_bigquery._bigquery__get_extended_catalog_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9001012, "supported_languages": null}, "macro.dbt_bigquery.bigquery__except": {"name": "bigquery__except", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt_bigquery.bigquery__except", "macro_sql": "{% macro bigquery__except() %}\n\n except distinct\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.900209, "supported_languages": null}, "macro.dbt_bigquery.bigquery__dateadd": {"name": "bigquery__dateadd", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_bigquery.bigquery__dateadd", "macro_sql": "{% macro bigquery__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n datetime_add(\n cast( {{ from_date_or_timestamp }} as datetime),\n interval {{ interval }} {{ datepart }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.900426, "supported_languages": null}, "macro.dbt_bigquery.bigquery__current_timestamp": {"name": "bigquery__current_timestamp", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_bigquery.bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() -%}\n current_timestamp()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9005911, "supported_languages": null}, "macro.dbt_bigquery.bigquery__snapshot_string_as_time": {"name": "bigquery__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_bigquery.bigquery__snapshot_string_as_time", "macro_sql": "{% macro bigquery__snapshot_string_as_time(timestamp) -%}\n {%- set result = 'TIMESTAMP(\"' ~ timestamp ~ '\")' -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.900764, "supported_languages": null}, "macro.dbt_bigquery.bigquery__current_timestamp_backcompat": {"name": "bigquery__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_bigquery.bigquery__current_timestamp_backcompat", "macro_sql": "{% macro bigquery__current_timestamp_backcompat() -%}\n current_timestamp\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9008389, "supported_languages": null}, "macro.dbt_bigquery.bigquery__intersect": {"name": "bigquery__intersect", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt_bigquery.bigquery__intersect", "macro_sql": "{% macro bigquery__intersect() %}\n\n intersect distinct\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.900939, "supported_languages": null}, "macro.dbt_bigquery.bigquery__escape_single_quotes": {"name": "bigquery__escape_single_quotes", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt_bigquery.bigquery__escape_single_quotes", "macro_sql": "{% macro bigquery__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.901195, "supported_languages": null}, "macro.dbt_bigquery.bigquery__format_column": {"name": "bigquery__format_column", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/get_columns_spec_ddl.sql", "original_file_path": "macros/utils/get_columns_spec_ddl.sql", "unique_id": "macro.dbt_bigquery.bigquery__format_column", "macro_sql": "{% macro bigquery__format_column(column) -%}\n {% set data_type = column.data_type %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.902022, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_empty_schema_sql": {"name": "bigquery__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/get_columns_spec_ddl.sql", "original_file_path": "macros/utils/get_columns_spec_ddl.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_empty_schema_sql", "macro_sql": "{% macro bigquery__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {% for col in columns.values() %}\n {%- if col['data_type'] is not defined -%}\n {{ col_err.append(col['name']) }}\n {%- endif -%}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- endif -%}\n\n {%- set columns = adapter.nest_column_data_types(columns) -%}\n {{ return(dbt.default__get_empty_schema_sql(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9025888, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_select_subquery": {"name": "bigquery__get_select_subquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/get_columns_spec_ddl.sql", "original_file_path": "macros/utils/get_columns_spec_ddl.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_select_subquery", "macro_sql": "{% macro bigquery__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.902754, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_column_names": {"name": "bigquery__get_column_names", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/get_columns_spec_ddl.sql", "original_file_path": "macros/utils/get_columns_spec_ddl.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_column_names", "macro_sql": "{% macro bigquery__get_column_names() %}\n {#- loop through nested user_provided_columns to get column names -#}\n {%- set user_provided_columns = adapter.nest_column_data_types(model['columns']) -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9032252, "supported_languages": null}, "macro.dbt_bigquery.bigquery__right": {"name": "bigquery__right", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt_bigquery.bigquery__right", "macro_sql": "{% macro bigquery__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0\n then ''\n else\n substr(\n {{ string_text }},\n -1 * ({{ length_expression }})\n )\n end\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9034612, "supported_languages": null}, "macro.dbt_bigquery.bigquery__listagg": {"name": "bigquery__listagg", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_bigquery.bigquery__listagg", "macro_sql": "{% macro bigquery__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n {% if limit_num -%}\n limit {{ limit_num }}\n {%- endif %}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.903855, "supported_languages": null}, "macro.dbt_bigquery.bigquery__datediff": {"name": "bigquery__datediff", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_bigquery.bigquery__datediff", "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) -%}\n\n {% if dbt_version[0] == 1 and dbt_version[2] >= 2 %}\n {{ return(dbt.datediff(first_date, second_date, datepart)) }}\n {% else %}\n\n datetime_diff(\n cast({{second_date}} as datetime),\n cast({{first_date}} as datetime),\n {{datepart}}\n )\n\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.904338, "supported_languages": null}, "macro.dbt_bigquery.bigquery__safe_cast": {"name": "bigquery__safe_cast", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt_bigquery.bigquery__safe_cast", "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n{%- if type.lower().startswith('array') and field is iterable and (field is not string and field is not mapping) and field | length > 0 -%}\n {#-- Extract nested type from 'array' --#}\n {% set nested_type = type.lower()[6:-1] %}\n {#-- BigQuery does not support direct casts to arrays. instead, each element must be cast individually + reaggregated into an array --#}\n {%- if cast_from_string_unsupported_for(nested_type) %}\n (select array_agg(safe_cast(i as {{ nested_type }})) from unnest([\n {%- for nested_field in field %}\n {{ nested_field.strip('\"').strip(\"'\") }}{{ ',' if not loop.last }}\n {%- endfor %}\n ]) i)\n {%- else -%}\n (select array_agg(safe_cast(i as {{nested_type}})) from unnest({{field}}) i)\n {%- endif -%}\n\n{%- elif type.lower() == 'json' and field is mapping -%}\n safe_cast(json {{ dbt.string_literal(tojson(field)) }} as json)\n{%- elif cast_from_string_unsupported_for(type) and field is string -%}\n safe_cast({{field.strip('\"').strip(\"'\")}} as {{type}})\n{%- else -%}\n safe_cast({{field}} as {{type}})\n{%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.cast_from_string_unsupported_for", "macro.dbt.string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.905808, "supported_languages": null}, "macro.dbt_bigquery.cast_from_string_unsupported_for": {"name": "cast_from_string_unsupported_for", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt_bigquery.cast_from_string_unsupported_for", "macro_sql": "{% macro cast_from_string_unsupported_for(type) %}\n {{ return(type.lower().startswith('struct') or type.lower() == 'geography') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.906027, "supported_languages": null}, "macro.dbt_bigquery.bigquery__hash": {"name": "bigquery__hash", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt_bigquery.bigquery__hash", "macro_sql": "{% macro bigquery__hash(field) -%}\n to_hex({{dbt.default__hash(field)}})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.906188, "supported_languages": null}, "macro.dbt_bigquery.bigquery__position": {"name": "bigquery__position", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt_bigquery.bigquery__position", "macro_sql": "{% macro bigquery__position(substring_text, string_text) %}\n\n strpos(\n {{ string_text }},\n {{ substring_text }}\n\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9064908, "supported_languages": null}, "macro.dbt_bigquery.bigquery__string_literal": {"name": "bigquery__string_literal", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/string_literal.sql", "original_file_path": "macros/utils/string_literal.sql", "unique_id": "macro.dbt_bigquery.bigquery__string_literal", "macro_sql": "{%- macro bigquery__string_literal(value) -%}\n '''{{ value }}'''\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.906713, "supported_languages": null}, "macro.dbt_bigquery.bigquery__array_concat": {"name": "bigquery__array_concat", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt_bigquery.bigquery__array_concat", "macro_sql": "{% macro bigquery__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9069068, "supported_languages": null}, "macro.dbt_bigquery.bigquery__bool_or": {"name": "bigquery__bool_or", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt_bigquery.bigquery__bool_or", "macro_sql": "{% macro bigquery__bool_or(expression) -%}\n\n logical_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9071438, "supported_languages": null}, "macro.dbt_bigquery.bigquery__split_part": {"name": "bigquery__split_part", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_bigquery.bigquery__split_part", "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset({{ part_number - 1 }})]\n {% else %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset(\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 1 + {{ part_number }}\n )]\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9078321, "supported_languages": null}, "macro.dbt_bigquery.bigquery__date_trunc": {"name": "bigquery__date_trunc", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt_bigquery.bigquery__date_trunc", "macro_sql": "{% macro bigquery__date_trunc(datepart, date) -%}\n timestamp_trunc(\n cast({{date}} as timestamp),\n {{datepart}}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9080162, "supported_languages": null}, "macro.dbt_bigquery.bigquery__array_construct": {"name": "bigquery__array_construct", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt_bigquery.bigquery__array_construct", "macro_sql": "{% macro bigquery__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n [ {{ inputs|join(' , ') }} ]\n {% else %}\n ARRAY<{{data_type}}>[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.908394, "supported_languages": null}, "macro.dbt_bigquery.bigquery__array_append": {"name": "bigquery__array_append", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt_bigquery.bigquery__array_append", "macro_sql": "{% macro bigquery__array_append(array, new_element) -%}\n {{ array_concat(array, array_construct([new_element])) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.array_concat", "macro.dbt.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.908649, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_show_grant_sql": {"name": "bigquery__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_show_grant_sql", "macro_sql": "{% macro bigquery__get_show_grant_sql(relation) %}\n {% set location = adapter.get_dataset_location(relation) %}\n {% set relation = relation.incorporate(location=location) %}\n\n select privilege_type, grantee\n from {{ relation.information_schema(\"OBJECT_PRIVILEGES\") }}\n where object_schema = \"{{ relation.dataset }}\"\n and object_name = \"{{ relation.identifier }}\"\n -- filter out current user\n and split(grantee, ':')[offset(1)] != session_user()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.909438, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_grant_sql": {"name": "bigquery__get_grant_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_grant_sql", "macro_sql": "\n\n\n{%- macro bigquery__get_grant_sql(relation, privilege, grantee) -%}\n grant `{{ privilege }}` on {{ relation.type }} {{ relation }} to {{ '\\\"' + grantee|join('\\\", \\\"') + '\\\"' }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.909686, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_revoke_sql": {"name": "bigquery__get_revoke_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_revoke_sql", "macro_sql": "{%- macro bigquery__get_revoke_sql(relation, privilege, grantee) -%}\n revoke `{{ privilege }}` on {{ relation.type }} {{ relation }} from {{ '\\\"' + grantee|join('\\\", \\\"') + '\\\"' }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.909945, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_empty_subquery_sql": {"name": "bigquery__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_empty_subquery_sql", "macro_sql": "{% macro bigquery__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false and current_timestamp() = current_timestamp()\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.910246, "supported_languages": null}, "macro.dbt_bigquery.bigquery__resolve_model_name": {"name": "bigquery__resolve_model_name", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt_bigquery.bigquery__resolve_model_name", "macro_sql": "{% macro bigquery__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('`', '') | replace('\"', '\\\"') }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.910481, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.911615, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9118268, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.911972, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.912116, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.912259, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.912652, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.912949, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.913246, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9139688, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n merge into {{ target.render() }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }} = DBT_INTERNAL_DEST.{{ columns.dbt_scd_id }}\n\n when matched\n {% if config.get(\"dbt_valid_to_current\") %}\n and (DBT_INTERNAL_DEST.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }} or\n DBT_INTERNAL_DEST.{{ columns.dbt_valid_to }} is null)\n {% else %}\n and DBT_INTERNAL_DEST.{{ columns.dbt_valid_to }} is null\n {% endif %}\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.914643, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9183528, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.918781, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.919204, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set primary_key = config.get('unique_key') %}\n {% set updated_at = config.get('updated_at') %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes') or false %}\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.{{ columns.dbt_valid_from }} < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9201741, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9203498, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.920522, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9218922, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set check_cols_config = config.get('check_cols') %}\n {% set primary_key = config.get('unique_key') %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes') or false %}\n {% set updated_at = config.get('updated_at') or snapshot_get_time() %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9232829, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9314618, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation.render() }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.931825, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.932011, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.932118, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.932269, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.932393, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.932611, "supported_languages": null}, "macro.dbt.get_snapshot_table_column_names": {"name": "get_snapshot_table_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_snapshot_table_column_names", "macro_sql": "{% macro get_snapshot_table_column_names() %}\n {{ return({'dbt_valid_to': 'dbt_valid_to', 'dbt_valid_from': 'dbt_valid_from', 'dbt_scd_id': 'dbt_scd_id', 'dbt_updated_at': 'dbt_updated_at'}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.932862, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }}\n from {{ target_relation }}\n where\n {% if config.get('dbt_valid_to_current') %}\n {# Check for either dbt_valid_to_current OR null, in order to correctly update records with nulls #}\n ( {{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }} or {{ columns.dbt_valid_to }} is null)\n {% else %}\n {{ columns.dbt_valid_to }} is null\n {% endif %}\n\n ),\n\n insertions_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }},\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }}\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_to }}\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }}\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"snapshotted_data\") }}\n or ({{ unique_key_is_not_null(strategy.unique_key, \"snapshotted_data\") }} and ({{ strategy.row_changed }})\n\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.{{ columns.dbt_scd_id }}\n\n from updates_source_data as source_data\n join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_to }},\n snapshotted_data.{{ columns.dbt_scd_id }}\n\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.unique_key_fields", "macro.dbt.get_dbt_valid_to_current", "macro.dbt.unique_key_join_on", "macro.dbt.unique_key_is_null", "macro.dbt.unique_key_is_not_null", "macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9350169, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.935224, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n\n select *,\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }}\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.get_dbt_valid_to_current"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.935632, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.93606, "supported_languages": null}, "macro.dbt.get_updated_at_column_data_type": {"name": "get_updated_at_column_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_updated_at_column_data_type", "macro_sql": "{% macro get_updated_at_column_data_type(snapshot_sql) %}\n {% set snapshot_sql_column_schema = get_column_schema_from_query(snapshot_sql) %}\n {% set dbt_updated_at_data_type = null %}\n {% set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {% set ns.dbt_updated_at_data_type = null -%}\n {% for column in snapshot_sql_column_schema %}\n {% if ((column.column == 'dbt_updated_at') or (column.column == 'DBT_UPDATED_AT')) %}\n {% set ns.dbt_updated_at_data_type = column.dtype %}\n {% endif %}\n {% endfor %}\n {{ return(ns.dbt_updated_at_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.936624, "supported_languages": null}, "macro.dbt.check_time_data_types": {"name": "check_time_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.check_time_data_types", "macro_sql": "{% macro check_time_data_types(sql) %}\n {% set dbt_updated_at_data_type = get_updated_at_column_data_type(sql) %}\n {% set snapshot_get_time_data_type = get_snapshot_get_time_data_type() %}\n {% if snapshot_get_time_data_type is not none and dbt_updated_at_data_type is not none and snapshot_get_time_data_type != dbt_updated_at_data_type %}\n {% if exceptions.warn_snapshot_timestamp_data_types %}\n {{ exceptions.warn_snapshot_timestamp_data_types(snapshot_get_time_data_type, dbt_updated_at_data_type) }}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_updated_at_column_data_type", "macro.dbt.get_snapshot_get_time_data_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.937224, "supported_languages": null}, "macro.dbt.get_dbt_valid_to_current": {"name": "get_dbt_valid_to_current", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_dbt_valid_to_current", "macro_sql": "{% macro get_dbt_valid_to_current(strategy, columns) %}\n {% set dbt_valid_to_current = config.get('dbt_valid_to_current') or \"null\" %}\n coalesce(nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}), {{dbt_valid_to_current}})\n as {{ columns.dbt_valid_to }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.937552, "supported_languages": null}, "macro.dbt.unique_key_fields": {"name": "unique_key_fields", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_fields", "macro_sql": "{% macro unique_key_fields(unique_key) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n {{ key }} as dbt_unique_key_{{ loop.index }}\n {%- if not loop.last %} , {%- endif %}\n {% endfor %}\n {% else %}\n {{ unique_key }} as dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.937907, "supported_languages": null}, "macro.dbt.unique_key_join_on": {"name": "unique_key_join_on", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_join_on", "macro_sql": "{% macro unique_key_join_on(unique_key, identifier, from_identifier) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n {{ identifier }}.dbt_unique_key_{{ loop.index }} = {{ from_identifier }}.dbt_unique_key_{{ loop.index }}\n {%- if not loop.last %} and {%- endif %}\n {% endfor %}\n {% else %}\n {{ identifier }}.dbt_unique_key = {{ from_identifier }}.dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.938331, "supported_languages": null}, "macro.dbt.unique_key_is_null": {"name": "unique_key_is_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_null", "macro_sql": "{% macro unique_key_is_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is null\n {% else %}\n {{ identifier }}.dbt_unique_key is null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.938545, "supported_languages": null}, "macro.dbt.unique_key_is_not_null": {"name": "unique_key_is_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_not_null", "macro_sql": "{% macro unique_key_is_not_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is not null\n {% else %}\n {{ identifier }}.dbt_unique_key is not null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.93875, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {# The model['config'] parameter below is no longer used, but passing anyway for compatibility #}\n {# It was a dictionary of config, instead of the config object from the context #}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", model['config'], target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set build_or_select_sql = build_sql %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\n\n {{ adapter.valid_snapshot_target(target_relation, columns) }}\n\n {% set build_or_select_sql = snapshot_staging_table(strategy, sql, target_relation) %}\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set remove_columns = ['dbt_change_type', 'DBT_CHANGE_TYPE', 'dbt_unique_key', 'DBT_UNIQUE_KEY'] %}\n {% if unique_key | is_list %}\n {% for key in strategy.unique_key %}\n {{ remove_columns.append('dbt_unique_key_' + loop.index|string) }}\n {{ remove_columns.append('DBT_UNIQUE_KEY_' + loop.index|string) }}\n {% endfor %}\n {% endif %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'in', remove_columns)\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'in', remove_columns)\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n\n {{ check_time_data_types(build_or_select_sql) }}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_staging_table", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.check_time_data_types", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.944816, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9478028, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9490292, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9493601, "supported_languages": null}, "macro.dbt.get_unit_test_sql": {"name": "get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_unit_test_sql", "macro_sql": "{% macro get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n {{ adapter.dispatch('get_unit_test_sql', 'dbt')(main_sql, expected_fixture_sql, expected_column_names) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_unit_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.949656, "supported_languages": null}, "macro.dbt.default__get_unit_test_sql": {"name": "default__get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_unit_test_sql", "macro_sql": "{% macro default__get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n-- Build actual result given inputs\nwith dbt_internal_unit_test_actual as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%},{% endif %}{%- endfor -%}, {{ dbt.string_literal(\"actual\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ main_sql }}\n ) _dbt_internal_unit_test_actual\n),\n-- Build expected result\ndbt_internal_unit_test_expected as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%}, {% endif %}{%- endfor -%}, {{ dbt.string_literal(\"expected\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ expected_fixture_sql }}\n ) _dbt_internal_unit_test_expected\n)\n-- Union actual and expected results\nselect * from dbt_internal_unit_test_actual\nunion all\nselect * from dbt_internal_unit_test_expected\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.950606, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.951044, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.951426, "supported_languages": null}, "macro.dbt.materialization_unit_default": {"name": "materialization_unit_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/unit.sql", "original_file_path": "macros/materializations/tests/unit.sql", "unique_id": "macro.dbt.materialization_unit_default", "macro_sql": "{%- materialization unit, default -%}\n\n {% set relations = [] %}\n\n {% set expected_rows = config.get('expected_rows') %}\n {% set expected_sql = config.get('expected_sql') %}\n {% set tested_expected_column_names = expected_rows[0].keys() if (expected_rows | length ) > 0 else get_columns_in_query(sql) %} %}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {% do run_query(get_create_table_as_sql(True, temp_relation, get_empty_subquery_sql(sql))) %}\n {%- set columns_in_relation = adapter.get_columns_in_relation(temp_relation) -%}\n {%- set column_name_to_data_types = {} -%}\n {%- for column in columns_in_relation -%}\n {%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n {%- endfor -%}\n\n {% if not expected_sql %}\n {% set expected_sql = get_expected_sql(expected_rows, column_name_to_data_types) %}\n {% endif %}\n {% set unit_test_sql = get_unit_test_sql(sql, expected_sql, tested_expected_column_names) %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ unit_test_sql }}\n\n {%- endcall %}\n\n {% do adapter.drop_relation(temp_relation) %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt.make_temp_relation", "macro.dbt.run_query", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_empty_subquery_sql", "macro.dbt.get_expected_sql", "macro.dbt.get_unit_test_sql", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.953151, "supported_languages": ["sql"]}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.958476, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9589, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9591591, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation.render() ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation.render() ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.960704, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.960949, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9617379, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.964763, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.96792, "supported_languages": ["sql"]}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.969585, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.970121, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.970758, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9709928, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.97169, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.978844, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9807308, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.981119, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9821172, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9823868, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.983026, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9836512, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.984756, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.984985, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.985168, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.985455, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9856331, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.985918, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9861052, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.986358, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.986538, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.986681, "supported_languages": null}, "macro.dbt.get_incremental_microbatch_sql": {"name": "get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_microbatch_sql", "macro_sql": "{% macro get_incremental_microbatch_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_microbatch_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_microbatch_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.986857, "supported_languages": null}, "macro.dbt.default__get_incremental_microbatch_sql": {"name": "default__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_microbatch_sql", "macro_sql": "{% macro default__get_incremental_microbatch_sql(arg_dict) %}\n\n {{ exceptions.raise_not_implemented('microbatch materialization strategy not implemented for adapter ' + adapter.type()) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9870121, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.987375, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% set contract_config = config.get('contract') %}\n {% if not contract_config or not contract_config.enforced %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {% endif %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.993093, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951590.9993038, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.000572, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.001909, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.002759, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.003009, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.003125, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.003415, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation.render() }} clone {{ defer_relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0035782, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation.render() ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {% if target_relation and defer_relation and target_relation == defer_relation %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation.render()) }}\n {% else %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endif %}\n\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.007359, "supported_languages": ["sql"]}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation.render())) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.011186, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.016514, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.017386, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.017689, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation.render() %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0181918, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.018389, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.018525, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0186691, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.018789, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.018949, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.019068, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.01953, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.019713, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.020946, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.021374, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.021746, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.022262, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.022521, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.022798, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0231822, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0234282, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.024145, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation.render() }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.024531, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0247161, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.024915, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.02511, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.025902, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.027175, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.027605, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0278678, "supported_languages": null}, "macro.dbt.drop_schema_named": {"name": "drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.drop_schema_named", "macro_sql": "{% macro drop_schema_named(schema_name) %}\n {{ return(adapter.dispatch('drop_schema_named', 'dbt') (schema_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_schema_named"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0281532, "supported_languages": null}, "macro.dbt.default__drop_schema_named": {"name": "default__drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.default__drop_schema_named", "macro_sql": "{% macro default__drop_schema_named(schema_name) %}\n {% set schema_relation = api.Relation.create(schema=schema_name) %}\n {{ adapter.drop_schema(schema_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.028374, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.028779, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.029079, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.030133, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.030601, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.030818, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation.render() }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.03113, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.031494, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0317729, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.032452, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.03291, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.033387, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.033607, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{- adapter.dispatch('drop_materialized_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.033865, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.033994, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0344331, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.035168, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.035529, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.035674, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.035972, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.036159, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0368268, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0370262, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.037339, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0375009, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0377998, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.037955, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.039099, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.039235, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.039789, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.039961, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0401049, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.041488, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0418801, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0422342, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{- adapter.dispatch('drop_table', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.042497, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.042621, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.042897, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.043041, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.043312, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0434592, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.044395, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.044589, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.045033, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.045726, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.046178, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.046358, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.046533, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{- adapter.dispatch('drop_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.046775, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0468931, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.047746, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.047891, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.049356, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0495548, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation.render() ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0497909, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.050059, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0502021, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0506072, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.050764, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0509398, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation.render() }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.051371, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.051709, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0519931, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.052237, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0528052, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.054231, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.054788, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.05507, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.056971, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.058196, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.059128, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.059374, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.059745, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0598311, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.06059, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.061179, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.061407, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.06178, "supported_languages": null}, "macro.dbt.date": {"name": "date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.date", "macro_sql": "{% macro date(year, month, day) %}\n {{ return(adapter.dispatch('date', 'dbt') (year, month, day)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.062113, "supported_languages": null}, "macro.dbt.default__date": {"name": "default__date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.default__date", "macro_sql": "{% macro default__date(year, month, day) -%}\n {%- set dt = modules.datetime.date(year, month, day) -%}\n {%- set iso_8601_formatted_date = dt.strftime('%Y-%m-%d') -%}\n to_date('{{ iso_8601_formatted_date }}', 'YYYY-MM-DD')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0623932, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0627189, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.062879, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.063114, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.063234, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0640619, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.064468, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0646489, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.065144, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.065394, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0654988, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.06583, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0660632, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0662808, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.066356, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.066607, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.066744, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0670269, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.067159, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.067793, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.068187, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.068637, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.068942, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.069367, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.06954, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.069824, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.069994, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0702531, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.070412, "supported_languages": null}, "macro.dbt.cast": {"name": "cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.cast", "macro_sql": "{% macro cast(field, type) %}\n {{ return(adapter.dispatch('cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.070692, "supported_languages": null}, "macro.dbt.default__cast": {"name": "default__cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.default__cast", "macro_sql": "{% macro default__cast(field, type) %}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.070828, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.071081, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0712771, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0715652, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.071701, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.07202, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0721679, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.073139, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.073327, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.073566, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0737321, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0739, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.074079, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.07425, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.07443, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.074599, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.074749, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0749068, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.075052, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.075209, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.075354, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0756428, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.075855, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0761569, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.076266, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0766149, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0768871, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.077067, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.077665, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.077995, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.078341, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.078652, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.078788, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0791838, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.079436, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.079725, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0798562, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.080235, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.080425, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.080586, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0807722, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.08145, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0816891, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.081837, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.081943, "supported_languages": null}, "macro.dbt.get_snapshot_get_time_data_type": {"name": "get_snapshot_get_time_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.get_snapshot_get_time_data_type", "macro_sql": "{% macro get_snapshot_get_time_data_type() %}\n {% set snapshot_time = adapter.dispatch('snapshot_get_time', 'dbt')() %}\n {% set time_data_type_sql = 'select ' ~ snapshot_time ~ ' as dbt_snapshot_time' %}\n {% set snapshot_time_column_schema = get_column_schema_from_query(time_data_type_sql) %}\n {% set time_data_type = snapshot_time_column_schema[0].dtype %}\n {{ return(time_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.default__snapshot_get_time", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0823748, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.082554, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.082637, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.082808, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_bigquery.bigquery__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0829701, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.083848, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.083999, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0841641, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.084645, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.084861, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.085006, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.085174, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0853078, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.087689, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.087857, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.088068, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0884511, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0886872, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0889962, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.089174, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation.render() }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.08935, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.089592, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.090129, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.090351, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.090487, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.090901, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.091296, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0915709, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.091786, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.093508, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.093622, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.093785, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.093898, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0942268, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.094578, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0947719, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.095391, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation.render() }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.095616, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0958872, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation.render() }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0961301, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.096378, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.097106, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.097307, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.097575, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.097811, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation.render() ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.098984, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header is not none -%}\n {{ sql_header }}\n {%- endif %}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.099493, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "\n{%- macro get_limit_subquery_sql(sql, limit) -%}\n {{ adapter.dispatch('get_limit_sql', 'dbt')(sql, limit) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_limit_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.09969, "supported_languages": null}, "macro.dbt.default__get_limit_sql": {"name": "default__get_limit_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_sql", "macro_sql": "{% macro default__get_limit_sql(sql, limit) %}\n {{ compiled_code }}\n {% if limit is not none %}\n limit {{ limit }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.0998778, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1005561, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.100718, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.101011, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.101304, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.101584, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.102129, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1057541, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1060429, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.106266, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.106545, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.106792, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.107012, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.107209, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.107445, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.107648, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1079512, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.108135, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.108292, "supported_languages": null}, "macro.dbt.get_catalog_for_single_relation": {"name": "get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_for_single_relation", "macro_sql": "{% macro get_catalog_for_single_relation(relation) %}\n {{ return(adapter.dispatch('get_catalog_for_single_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_catalog_for_single_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.108473, "supported_languages": null}, "macro.dbt.default__get_catalog_for_single_relation": {"name": "default__get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_for_single_relation", "macro_sql": "{% macro default__get_catalog_for_single_relation(relation) %}\n {{ exceptions.raise_not_implemented(\n 'get_catalog_for_single_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1086311, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.108795, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.108944, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.109146, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.109389, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.111679, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1118321, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.112133, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1123462, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.112556, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1127381, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n {{ cast('null', col['data_type']) }} as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.113893, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.114229, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.114409, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.114958, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.115272, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation.render() }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation.render() }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation.render() }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation.render() }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.115964, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.116234, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation.render() }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.117301, "supported_languages": null}, "macro.dbt.get_fixture_sql": {"name": "get_fixture_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_fixture_sql", "macro_sql": "{% macro get_fixture_sql(rows, column_name_to_data_types) %}\n-- Fixture for {{ model.name }}\n{% set default_row = {} %}\n\n{%- if not column_name_to_data_types -%}\n{#-- Use defer_relation IFF it is available in the manifest and 'this' is missing from the database --#}\n{%- set this_or_defer_relation = defer_relation if (defer_relation and not load_relation(this)) else this -%}\n{%- set columns_in_relation = adapter.get_columns_in_relation(this_or_defer_relation) -%}\n\n{%- set column_name_to_data_types = {} -%}\n{%- for column in columns_in_relation -%}\n{#-- This needs to be a case-insensitive comparison --#}\n{%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n{%- endfor -%}\n{%- endif -%}\n\n{%- if not column_name_to_data_types -%}\n {{ exceptions.raise_compiler_error(\"Not able to get columns for unit test '\" ~ model.name ~ \"' from relation \" ~ this ~ \" because the relation doesn't exist\") }}\n{%- endif -%}\n\n{%- for column_name, column_type in column_name_to_data_types.items() -%}\n {%- do default_row.update({column_name: (safe_cast(\"null\", column_type) | trim )}) -%}\n{%- endfor -%}\n\n{{ validate_fixture_rows(rows, row_number) }}\n\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\n{%- set default_row_copy = default_row.copy() -%}\n{%- do default_row_copy.update(formatted_row) -%}\nselect\n{%- for column_name, column_value in default_row_copy.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n\n{%- if (rows | length) == 0 -%}\n select\n {%- for column_name, column_value in default_row.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%},{%- endif %}\n {%- endfor %}\n limit 0\n{%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.safe_cast", "macro.dbt.validate_fixture_rows", "macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.121033, "supported_languages": null}, "macro.dbt.get_expected_sql": {"name": "get_expected_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_expected_sql", "macro_sql": "{% macro get_expected_sql(rows, column_name_to_data_types) %}\n\n{%- if (rows | length) == 0 -%}\n select * from dbt_internal_unit_test_actual\n limit 0\n{%- else -%}\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\nselect\n{%- for column_name, column_value in formatted_row.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n{%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.12157, "supported_languages": null}, "macro.dbt.format_row": {"name": "format_row", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.format_row", "macro_sql": "\n\n{%- macro format_row(row, column_name_to_data_types) -%}\n {#-- generate case-insensitive formatted row --#}\n {% set formatted_row = {} %}\n {%- for column_name, column_value in row.items() -%}\n {% set column_name = column_name|lower %}\n\n {%- if column_name not in column_name_to_data_types %}\n {#-- if user-provided row contains column name that relation does not contain, raise an error --#}\n {% set fixture_name = \"expected output\" if model.resource_type == 'unit_test' else (\"'\" ~ model.name ~ \"'\") %}\n {{ exceptions.raise_compiler_error(\n \"Invalid column name: '\" ~ column_name ~ \"' in unit test fixture for \" ~ fixture_name ~ \".\"\n \"\\nAccepted columns for \" ~ fixture_name ~ \" are: \" ~ (column_name_to_data_types.keys()|list)\n ) }}\n {%- endif -%}\n\n {%- set column_type = column_name_to_data_types[column_name] %}\n\n {#-- sanitize column_value: wrap yaml strings in quotes, apply cast --#}\n {%- set column_value_clean = column_value -%}\n {%- if column_value is string -%}\n {%- set column_value_clean = dbt.string_literal(dbt.escape_single_quotes(column_value)) -%}\n {%- elif column_value is none -%}\n {%- set column_value_clean = 'null' -%}\n {%- endif -%}\n\n {%- set row_update = {column_name: safe_cast(column_value_clean, column_type) } -%}\n {%- do formatted_row.update(row_update) -%}\n {%- endfor -%}\n {{ return(formatted_row) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.string_literal", "macro.dbt.escape_single_quotes", "macro.dbt.safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1226518, "supported_languages": null}, "macro.dbt.validate_fixture_rows": {"name": "validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.validate_fixture_rows", "macro_sql": "{%- macro validate_fixture_rows(rows, row_number) -%}\n {{ return(adapter.dispatch('validate_fixture_rows', 'dbt')(rows, row_number)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__validate_fixture_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.122865, "supported_languages": null}, "macro.dbt.default__validate_fixture_rows": {"name": "default__validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.default__validate_fixture_rows", "macro_sql": "{%- macro default__validate_fixture_rows(rows, row_number) -%}\n {# This is an abstract method for adapter overrides as needed #}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.122967, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.124741, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.124949, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.125968, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.126403, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.127114, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.127609, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1276858, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.128222, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.128476, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.128798, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.129097, "supported_languages": null}, "macro.microsoft_ads_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.microsoft_ads_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1300192, "supported_languages": null}, "macro.microsoft_ads_source.microsoft_ads_add_pass_through_columns": {"name": "microsoft_ads_add_pass_through_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/microsoft_ads_add_pass_through_columns.sql", "original_file_path": "macros/microsoft_ads_add_pass_through_columns.sql", "unique_id": "macro.microsoft_ads_source.microsoft_ads_add_pass_through_columns", "macro_sql": "{% macro microsoft_ads_add_pass_through_columns(base_columns, pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for column in pass_through_fields %}\n\n {% if column is mapping %}\n {% set col_name = column.alias|default(column.name)|lower %}\n\n {% if col_name not in except_fields %}\n {% if column.alias %}\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% else %}\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% else %}\n {% if column|lower not in except_fields %}\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1316218, "supported_languages": null}, "macro.microsoft_ads_source.microsoft_ads_fill_pass_through_columns": {"name": "microsoft_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/microsoft_ads_fill_pass_through_columns.sql", "original_file_path": "macros/microsoft_ads_fill_pass_through_columns.sql", "unique_id": "macro.microsoft_ads_source.microsoft_ads_fill_pass_through_columns", "macro_sql": "{% macro microsoft_ads_fill_pass_through_columns(pass_through_fields, except=[]) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if (field.alias if field.alias else field.name) not in except %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1326232, "supported_languages": null}, "macro.microsoft_ads_source.get_campaign_daily_report_columns": {"name": "get_campaign_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_campaign_daily_report_columns.sql", "original_file_path": "macros/get_campaign_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_campaign_daily_report_columns", "macro_sql": "{% macro get_campaign_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget_association_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"revenue\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"all_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_revenue\", \"datatype\": dbt.type_numeric()}\n] %} \n\n{{ microsoft_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('microsoft_ads__campaign_passthrough_metrics'), except_fields=['conversions_qualified', 'conversions', 'revenue', 'all_conversions_qualified', 'all_conversions', 'all_revenue']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.microsoft_ads_source.microsoft_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.135539, "supported_languages": null}, "macro.microsoft_ads_source.get_ad_group_daily_report_columns": {"name": "get_ad_group_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_ad_group_daily_report_columns.sql", "original_file_path": "macros/get_ad_group_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_ad_group_daily_report_columns", "macro_sql": "{% macro get_ad_group_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()},\n {\"name\": \"conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"revenue\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"all_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_revenue\", \"datatype\": dbt.type_numeric()}\n] %} \n\n{{ microsoft_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('microsoft_ads__ad_group_passthrough_metrics'), except_fields=['conversions_qualified', 'conversions', 'revenue', 'all_conversions_qualified', 'all_conversions', 'all_revenue']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.microsoft_ads_source.microsoft_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.138388, "supported_languages": null}, "macro.microsoft_ads_source.get_account_daily_report_columns": {"name": "get_account_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_account_daily_report_columns.sql", "original_file_path": "macros/get_account_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_account_daily_report_columns", "macro_sql": "{% macro get_account_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()},\n {\"name\": \"conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"revenue\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"all_conversions_qualified\", \"datatype\": dbt.type_int()}\n] %} \n\n{{ microsoft_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('microsoft_ads__account_passthrough_metrics'), except_fields=['conversions_qualified', 'conversions', 'revenue', 'all_conversions_qualified']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.microsoft_ads_source.microsoft_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.140665, "supported_languages": null}, "macro.microsoft_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.microsoft_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.141685, "supported_languages": null}, "macro.microsoft_ads_source.get_account_history_columns": {"name": "get_account_history_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "unique_id": "macro.microsoft_ads_source.get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.142417, "supported_languages": null}, "macro.microsoft_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.microsoft_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title_part_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"final_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.143324, "supported_languages": null}, "macro.microsoft_ads_source.get_ad_daily_report_columns": {"name": "get_ad_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_ad_daily_report_columns.sql", "original_file_path": "macros/get_ad_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_ad_daily_report_columns", "macro_sql": "{% macro get_ad_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()},\n {\"name\": \"conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"revenue\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"all_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_revenue\", \"datatype\": dbt.type_numeric()}\n] %} \n\n{{ microsoft_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('microsoft_ads__ad_passthrough_metrics'), except_fields=['conversions_qualified', 'conversions', 'revenue', 'all_conversions_qualified', 'all_conversions', 'all_revenue']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.microsoft_ads_source.microsoft_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.146237, "supported_languages": null}, "macro.microsoft_ads_source.get_keyword_daily_report_columns": {"name": "get_keyword_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_keyword_daily_report_columns.sql", "original_file_path": "macros/get_keyword_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_keyword_daily_report_columns", "macro_sql": "{% macro get_keyword_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()},\n {\"name\": \"conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"revenue\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"all_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_revenue\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ microsoft_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('microsoft_ads__keyword_passthrough_metrics'), except_fields=['conversions_qualified', 'conversions', 'revenue', 'all_conversions_qualified', 'all_conversions', 'all_revenue']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.microsoft_ads_source.microsoft_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.149332, "supported_languages": null}, "macro.microsoft_ads_source.get_keyword_history_columns": {"name": "get_keyword_history_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "unique_id": "macro.microsoft_ads_source.get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1505, "supported_languages": null}, "macro.microsoft_ads_source.get_search_daily_report_columns": {"name": "get_search_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_search_daily_report_columns.sql", "original_file_path": "macros/get_search_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_search_daily_report_columns", "macro_sql": "{% macro get_search_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"search_query\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()},\n {\"name\": \"conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"revenue\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"all_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_revenue\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ microsoft_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('microsoft_ads__search_passthrough_metrics'), except_fields=['conversions_qualified', 'conversions', 'revenue', 'all_conversions_qualified', 'all_conversions', 'all_revenue']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.microsoft_ads_source.microsoft_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.15324, "supported_languages": null}, "macro.tiktok_ads.tiktok_ads_persist_pass_through_columns": {"name": "tiktok_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "tiktok_ads", "path": "macros/tiktok_ads_persist_pass_through_columns.sql", "original_file_path": "macros/tiktok_ads_persist_pass_through_columns.sql", "unique_id": "macro.tiktok_ads.tiktok_ads_persist_pass_through_columns", "macro_sql": "{% macro tiktok_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, exclude_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n {% if field_name not in exclude_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field_name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1542552, "supported_languages": null}, "macro.twitter_ads.twitter_ads_persist_pass_through_columns": {"name": "twitter_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "twitter_ads", "path": "macros/twitter_ads_persist_pass_through_columns.sql", "original_file_path": "macros/twitter_ads_persist_pass_through_columns.sql", "unique_id": "macro.twitter_ads.twitter_ads_persist_pass_through_columns", "macro_sql": "{% macro twitter_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, except_variable=none, exclude_fields=[]) %}\n\n{% set except_fields = [] %}\n{% if except_variable is not none %}\n {# Start creating list of fields to exclude #}\n {% for item in var(except_variable) %}\n {% do except_fields.append(item.name) %}\n {% endfor %}\n{% endif %}\n\n{% for field in exclude_fields %}\n {% do except_fields.append(field) %}\n{% endfor %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% if field not in except_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1559029, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.156373, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1568918, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.157423, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.158085, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.158412, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.158752, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1599412, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.160984, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.161904, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1630452, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.163691, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.164029, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1647518, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.165746, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.166285, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.166774, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1674938, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.168086, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.168677, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1690712, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.169746, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n {% if group_by_columns|length() == 0 %}\n where {{ column_name }} is not null\n limit 1\n {% endif %}\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1705742, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.171189, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1718059, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.172338, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.172671, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1730602, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.173476, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.174129, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as {{ dbt.type_numeric() }}) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.174947, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.176146, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1771982, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns, exclude_columns, precision)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1793122, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n\n{%- if compare_columns and exclude_columns -%}\n {{ exceptions.raise_compiler_error(\"Both a compare and an ignore list were provided to the `equality` macro. Only one is allowed\") }}\n{%- endif -%}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{# Ensure there are no extra columns in the compare_model vs model #}\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- do dbt_utils._is_ephemeral(compare_model, 'test_equality') -%}\n\n {%- set model_columns = adapter.get_columns_in_relation(model) -%}\n {%- set compare_model_columns = adapter.get_columns_in_relation(compare_model) -%}\n\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- set include_model_columns = [] %}\n {%- for column in model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n {%- for column in compare_model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_model_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns_set = set(include_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(include_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- else -%}\n {%- set compare_columns_set = set(model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(compare_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- endif -%}\n\n {% if compare_columns_set != compare_model_columns_set %}\n {{ exceptions.raise_compiler_error(compare_model ~\" has less columns than \" ~ model ~ \", please ensure they have the same columns or use the `compare_columns` or `exclude_columns` arguments to subset them.\") }}\n {% endif %}\n\n\n{% endif %}\n\n{%- if not precision -%}\n {%- if not compare_columns -%}\n {# \n You cannot get the columns in an ephemeral model (due to not existing in the information schema),\n so if the user does not provide an explicit list of columns we must error in the case it is ephemeral\n #}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model)-%}\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- for column in compare_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns = include_columns | map(attribute='quoted') %}\n {%- else -%} {# Compare columns provided #}\n {%- set compare_columns = compare_columns | map(attribute='quoted') %}\n {%- endif -%}\n {%- endif -%}\n\n {% set compare_cols_csv = compare_columns | join(', ') %}\n\n{% else %} {# Precision required #}\n {#-\n If rounding is required, we need to get the types, so it cannot be ephemeral even if they provide column names\n -#}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set columns = adapter.get_columns_in_relation(model) -%}\n\n {% set columns_list = [] %}\n {%- for col in columns -%}\n {%- if (\n (col.name|lower in compare_columns|map('lower') or not compare_columns) and\n (col.name|lower not in exclude_columns|map('lower') or not exclude_columns)\n ) -%}\n {# Databricks double type is not picked up by any number type checks in dbt #}\n {%- if col.is_float() or col.is_numeric() or col.data_type == 'double' -%}\n {# Cast is required due to postgres not having round for a double precision number #}\n {%- do columns_list.append('round(cast(' ~ col.quoted ~ ' as ' ~ dbt.type_numeric() ~ '),' ~ precision ~ ') as ' ~ col.quoted) -%}\n {%- else -%} {# Non-numeric type #}\n {%- do columns_list.append(col.quoted) -%}\n {%- endif -%}\n {% endif %}\n {%- endfor -%}\n\n {% set compare_cols_csv = columns_list | join(', ') %}\n\n{% endif %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_numeric", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.183434, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1839979, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.184294, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.18799, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.189452, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.189722, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1898859, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.190315, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1905851, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.190777, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1910248, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1911922, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{% if not string %}\n{{ return('') }}\n{% endif %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.192087, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1929011, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1936069, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1941812, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.19441, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.194762, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.195148, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.196001, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.196403, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.1967602, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.197561, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.198417, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.199286, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.199771, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.199998, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.200587, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2013922, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.202241, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2026439, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.20292, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.204245, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.205855, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, quote_identifiers)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2075388, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n {%- set current_col_name = adapter.quote(col.column) if quote_identifiers else col.column -%}\n select\n {%- for exclude_col in exclude %}\n {{ adapter.quote(exclude_col) if quote_identifiers else exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ adapter.quote(field_name) if quote_identifiers else field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(current_col_name) }}\n {% else %}\n {{ current_col_name }}\n {% endif %}\n as {{ cast_to }}) as {{ adapter.quote(value_name) if quote_identifiers else value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2093592, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.209653, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.209783, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.213244, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2170072, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2174861, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.217908, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.bigquery__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.218891, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.219118, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }} as tt\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.219289, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.219479, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.219646, "supported_languages": null}, "macro.dbt_utils.databricks__deduplicate": {"name": "databricks__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.databricks__deduplicate", "macro_sql": "\n{%- macro databricks__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.219817, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.219991, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.220385, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.220624, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.221013, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2215612, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.221906, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.222234, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.bigquery__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2257972, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.226271, "supported_languages": null}, "macro.dbt_utils.redshift__get_tables_by_pattern_sql": {"name": "redshift__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.redshift__get_tables_by_pattern_sql", "macro_sql": "{% macro redshift__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% set sql %}\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from \"{{ database }}\".\"information_schema\".\"tables\"\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n union all\n select distinct\n schemaname as {{ adapter.quote('table_schema') }},\n tablename as {{ adapter.quote('table_name') }},\n 'external' as {{ adapter.quote('table_type') }}\n from svv_external_tables\n where redshift_database_name = '{{ database }}'\n and schemaname ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n {% endset %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.227367, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.22809, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2285912, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2297852, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.231246, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2323031, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.23311, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.233571, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.234269, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2350562, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.235501, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.235828, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.236337, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2369878, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2375839, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.238258, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.default__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.238899, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2390451, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2391832, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.239321, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2398489, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.24065, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.241736, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.bigquery__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.242008, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2425432, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.243304, "supported_languages": null}, "macro.reddit_ads.reddit_ads_extract_url_parameter": {"name": "reddit_ads_extract_url_parameter", "resource_type": "macro", "package_name": "reddit_ads", "path": "macros/reddit_ads_extract_url_parameters.sql", "original_file_path": "macros/reddit_ads_extract_url_parameters.sql", "unique_id": "macro.reddit_ads.reddit_ads_extract_url_parameter", "macro_sql": "{% macro reddit_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('reddit_ads_extract_url_parameter', 'reddit_ads') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.reddit_ads.default__reddit_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.24366, "supported_languages": null}, "macro.reddit_ads.default__reddit_ads_extract_url_parameter": {"name": "default__reddit_ads_extract_url_parameter", "resource_type": "macro", "package_name": "reddit_ads", "path": "macros/reddit_ads_extract_url_parameters.sql", "original_file_path": "macros/reddit_ads_extract_url_parameters.sql", "unique_id": "macro.reddit_ads.default__reddit_ads_extract_url_parameter", "macro_sql": "{% macro default__reddit_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.243807, "supported_languages": null}, "macro.reddit_ads.spark__reddit_ads_extract_url_parameter": {"name": "spark__reddit_ads_extract_url_parameter", "resource_type": "macro", "package_name": "reddit_ads", "path": "macros/reddit_ads_extract_url_parameters.sql", "original_file_path": "macros/reddit_ads_extract_url_parameters.sql", "unique_id": "macro.reddit_ads.spark__reddit_ads_extract_url_parameter", "macro_sql": "{% macro spark__reddit_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2440052, "supported_languages": null}, "macro.reddit_ads.reddit_ads_persist_pass_through_columns": {"name": "reddit_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "reddit_ads", "path": "macros/reddit_ads_persist_pass_through_columns.sql", "original_file_path": "macros/reddit_ads_persist_pass_through_columns.sql", "unique_id": "macro.reddit_ads.reddit_ads_persist_pass_through_columns", "macro_sql": "{% macro reddit_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, alias_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n , {{ transform ~ '(cast(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ' as ' ~ dbt.type_float() ~ '))' }} \n as {{ field_name ~ ('_c' if field_name in alias_fields else '') }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.245093, "supported_languages": null}, "macro.pinterest.pinterest_ads_persist_pass_through_columns": {"name": "pinterest_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "pinterest", "path": "macros/pinterest_ads_persist_pass_through_columns.sql", "original_file_path": "macros/pinterest_ads_persist_pass_through_columns.sql", "unique_id": "macro.pinterest.pinterest_ads_persist_pass_through_columns", "macro_sql": "{% macro pinterest_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, exclude_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n {% if field_name not in exclude_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field_name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2463691, "supported_languages": null}, "macro.reddit_ads_source.get_account_columns": {"name": "get_account_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_account_columns.sql", "original_file_path": "macros/get_account_columns.sql", "unique_id": "macro.reddit_ads_source.get_account_columns", "macro_sql": "{% macro get_account_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"attribution_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_attribution_window\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_zone_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"view_attribution_window\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.247481, "supported_languages": null}, "macro.reddit_ads_source.get_ad_group_conversions_report_columns": {"name": "get_ad_group_conversions_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_ad_group_conversions_report_columns.sql", "original_file_path": "macros/get_ad_group_conversions_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_ad_group_conversions_report_columns", "macro_sql": "{% macro get_ad_group_conversions_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_through_conversion_attribution_window_month\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"event_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_items\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversion_attribution_window_month\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__ad_group_conversions_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2486432, "supported_languages": null}, "macro.reddit_ads_source.get_campaign_columns": {"name": "get_campaign_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_campaign_columns.sql", "original_file_path": "macros/get_campaign_columns.sql", "unique_id": "macro.reddit_ads_source.get_campaign_columns", "macro_sql": "{% macro get_campaign_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"configured_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"funding_instrument_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_processing\", \"datatype\": \"boolean\"},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"objective\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.24969, "supported_languages": null}, "macro.reddit_ads_source.get_ad_conversions_report_columns": {"name": "get_ad_conversions_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_ad_conversions_report_columns.sql", "original_file_path": "macros/get_ad_conversions_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_ad_conversions_report_columns", "macro_sql": "{% macro get_ad_conversions_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_through_conversion_attribution_window_month\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"event_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_items\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversion_attribution_window_month\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__ad_conversions_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.250824, "supported_languages": null}, "macro.reddit_ads_source.get_ad_columns": {"name": "get_ad_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_ad_columns.sql", "original_file_path": "macros/get_ad_columns.sql", "unique_id": "macro.reddit_ads_source.get_ad_columns", "macro_sql": "{% macro get_ad_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"configured_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_processing\", \"datatype\": \"boolean\"},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"post_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"post_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"rejection_reason\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.25231, "supported_languages": null}, "macro.reddit_ads_source.get_campaign_report_columns": {"name": "get_campaign_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_campaign_report_columns", "macro_sql": "{% macro get_campaign_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"region\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()}\n] %}\n\n{% if target.type in ('bigquery', 'spark', 'databricks') %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"quote\": True, \"alias\": \"date_day\" } ) }}\n\n{% else %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"alias\": \"date_day\"} ) }}\n\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__campaign_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.253837, "supported_languages": null}, "macro.reddit_ads_source.get_ad_report_columns": {"name": "get_ad_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_ad_report_columns.sql", "original_file_path": "macros/get_ad_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_ad_report_columns", "macro_sql": "{% macro get_ad_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"region\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()}\n] %}\n\n{% if target.type in ('bigquery', 'spark', 'databricks') %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"quote\": True, \"alias\": \"date_day\" } ) }}\n\n{% else %}\n {{ columns.append( {\"name\": \"date\", \"datatype\": \"date\", \"alias\": \"date_day\"} ) }}\n\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__ad_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.255595, "supported_languages": null}, "macro.reddit_ads_source.get_campaign_conversions_report_columns": {"name": "get_campaign_conversions_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_campaign_conversions_report_columns.sql", "original_file_path": "macros/get_campaign_conversions_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_campaign_conversions_report_columns", "macro_sql": "{% macro get_campaign_conversions_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_through_conversion_attribution_window_month\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"event_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_items\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversion_attribution_window_month\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__campaign_conversions_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.257011, "supported_languages": null}, "macro.reddit_ads_source.get_ad_group_report_columns": {"name": "get_ad_group_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_ad_group_report_columns.sql", "original_file_path": "macros/get_ad_group_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_ad_group_report_columns", "macro_sql": "{% macro get_ad_group_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()}, \n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"region\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()}\n] %}\n\n{% if target.type in ('bigquery', 'spark', 'databricks') %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"quote\": True, \"alias\": \"date_day\" } ) }}\n\n{% else %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"alias\": \"date_day\"} ) }}\n\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__ad_group_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2585878, "supported_languages": null}, "macro.reddit_ads_source.get_account_report_columns": {"name": "get_account_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_account_report_columns.sql", "original_file_path": "macros/get_account_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_account_report_columns", "macro_sql": "{% macro get_account_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"region\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()}\n] %}\n\n{% if target.type in ('bigquery', 'spark', 'databricks') %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"quote\": True, \"alias\": \"date_day\" } ) }}\n\n{% else %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"alias\": \"date_day\"} ) }}\n\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__account_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.260024, "supported_languages": null}, "macro.reddit_ads_source.get_ad_group_columns": {"name": "get_ad_group_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_ad_group_columns.sql", "original_file_path": "macros/get_ad_group_columns.sql", "unique_id": "macro.reddit_ads_source.get_ad_group_columns", "macro_sql": "{% macro get_ad_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"configured_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"expand_targeting\", \"datatype\": \"boolean\"},\n {\"name\": \"goal_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"goal_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_processing\", \"datatype\": \"boolean\"},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"optimization_strategy_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.261716, "supported_languages": null}, "macro.reddit_ads_source.get_account_conversions_report_columns": {"name": "get_account_conversions_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_account_conversions_report_columns.sql", "original_file_path": "macros/get_account_conversions_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_account_conversions_report_columns", "macro_sql": "{% macro get_account_conversions_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_through_conversion_attribution_window_month\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"event_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_items\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversion_attribution_window_month\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__account_conversions_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2627509, "supported_languages": null}, "macro.google_ads.google_ads_persist_pass_through_columns": {"name": "google_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "google_ads", "path": "macros/google_ads_persist_pass_through_columns.sql", "original_file_path": "macros/google_ads_persist_pass_through_columns.sql", "unique_id": "macro.google_ads.google_ads_persist_pass_through_columns", "macro_sql": "{% macro google_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, exclude_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n {% if field_name not in exclude_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field_name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.263851, "supported_languages": null}, "macro.amazon_ads_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.amazon_ads_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"default_bid\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2648342, "supported_languages": null}, "macro.amazon_ads_source.get_product_ad_history_columns": {"name": "get_product_ad_history_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_product_ad_history_columns.sql", "original_file_path": "macros/get_product_ad_history_columns.sql", "unique_id": "macro.amazon_ads_source.get_product_ad_history_columns", "macro_sql": "{% macro get_product_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"asin\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.266046, "supported_languages": null}, "macro.amazon_ads_source.get_profile_columns": {"name": "get_profile_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_profile_columns.sql", "original_file_path": "macros/get_profile_columns.sql", "unique_id": "macro.amazon_ads_source.get_profile_columns", "macro_sql": "{% macro get_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_marketplace_string_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_valid_payment_method\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.267641, "supported_languages": null}, "macro.amazon_ads_source.amazon_ads_add_pass_through_columns": {"name": "amazon_ads_add_pass_through_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/amazon_ads_add_pass_though_columns.sql", "original_file_path": "macros/amazon_ads_add_pass_though_columns.sql", "unique_id": "macro.amazon_ads_source.amazon_ads_add_pass_through_columns", "macro_sql": "{% macro amazon_ads_add_pass_through_columns(base_columns, pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for column in pass_through_fields %}\n \n {% if column is mapping %}\n {% set col_name = column.alias|default(column.name)|lower %}\n\n {% if col_name not in except_fields %}\n {% if column.alias %}\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% else %}\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% else %}\n {% if column|lower not in except_fields %}\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.269234, "supported_languages": null}, "macro.amazon_ads_source.get_advertised_product_report_columns": {"name": "get_advertised_product_report_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_advertised_product_report_columns.sql", "original_file_path": "macros/get_advertised_product_report_columns.sql", "unique_id": "macro.amazon_ads_source.get_advertised_product_report_columns", "macro_sql": "{% macro get_advertised_product_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"advertised_asin\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertised_sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"purchases_30_d\", \"datatype\": dbt.type_int()},\n {\"name\": \"sales_30_d\", \"datatype\": dbt.type_float()}\n] %}\n\n{# Add backwards compatibility if conversion metrics were added via passthrough columns prior to them being brought in by default #}\n{{ amazon_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('amazon_ads__advertised_product_passthrough_metrics'), except_fields=['purchases_30_d', 'sales_30_d']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.amazon_ads_source.amazon_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.271064, "supported_languages": null}, "macro.amazon_ads_source.get_ad_group_level_report_columns": {"name": "get_ad_group_level_report_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_ad_group_level_report_columns.sql", "original_file_path": "macros/get_ad_group_level_report_columns.sql", "unique_id": "macro.amazon_ads_source.get_ad_group_level_report_columns", "macro_sql": "{% macro get_ad_group_level_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_bidding_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"purchases_30_d\", \"datatype\": dbt.type_int()},\n {\"name\": \"sales_30_d\", \"datatype\": dbt.type_float()}\n] %}\n\n{# Add backwards compatibility if conversion metrics were added via passthrough columns prior to them being brought in by default #}\n{{ amazon_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('amazon_ads__ad_group_passthrough_metrics'), except_fields=['purchases_30_d', 'sales_30_d']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.amazon_ads_source.amazon_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.272181, "supported_languages": null}, "macro.amazon_ads_source.get_search_term_ad_keyword_report_columns": {"name": "get_search_term_ad_keyword_report_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_search_term_ad_keyword_report_columns.sql", "original_file_path": "macros/get_search_term_ad_keyword_report_columns.sql", "unique_id": "macro.amazon_ads_source.get_search_term_ad_keyword_report_columns", "macro_sql": "{% macro get_search_term_ad_keyword_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_keyword_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_bid\", \"datatype\": dbt.type_float()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"search_term\", \"datatype\": dbt.type_string()},\n {\"name\": \"targeting\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchases_30_d\", \"datatype\": dbt.type_int()},\n {\"name\": \"sales_30_d\", \"datatype\": dbt.type_float()}\n] %}\n\n{# Add backwards compatibility if conversion metrics were added via passthrough columns prior to them being brought in by default #}\n{{ amazon_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('amazon_ads__search_term_ad_keyword_passthrough_metrics'), except_fields=['purchases_30_d', 'sales_30_d']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.amazon_ads_source.amazon_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.27406, "supported_languages": null}, "macro.amazon_ads_source.get_campaign_level_report_columns": {"name": "get_campaign_level_report_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_campaign_level_report_columns.sql", "original_file_path": "macros/get_campaign_level_report_columns.sql", "unique_id": "macro.amazon_ads_source.get_campaign_level_report_columns", "macro_sql": "{% macro get_campaign_level_report_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_applicable_budget_rule_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_applicable_budget_rule_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_bidding_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_rule_based_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"purchases_30_d\", \"datatype\": dbt.type_int()},\n {\"name\": \"sales_30_d\", \"datatype\": dbt.type_float()}\n] %}\n\n{# Add backwards compatibility if conversion metrics were added via passthrough columns prior to them being brought in by default #}\n{{ amazon_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('amazon_ads__campaign_passthrough_metrics'), except_fields=['purchases_30_d', 'sales_30_d']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int", "macro.amazon_ads_source.amazon_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.275755, "supported_languages": null}, "macro.amazon_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.amazon_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"bidding_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"portfolio_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"profile_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"targeting_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget\", \"datatype\": dbt.type_float()},\n {\"name\": \"budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_budget\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2778292, "supported_languages": null}, "macro.amazon_ads_source.get_portfolio_history_columns": {"name": "get_portfolio_history_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_portfolio_history_columns.sql", "original_file_path": "macros/get_portfolio_history_columns.sql", "unique_id": "macro.amazon_ads_source.get_portfolio_history_columns", "macro_sql": "{% macro get_portfolio_history_columns() %}\n\n{% set columns = [\n {\"name\": \"budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget_end_date\", \"datatype\": \"date\"},\n {\"name\": \"budget_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget_start_date\", \"datatype\": \"date\"},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"in_budget\", \"datatype\": \"boolean\"},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"profile_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.279413, "supported_languages": null}, "macro.amazon_ads_source.get_targeting_keyword_report_columns": {"name": "get_targeting_keyword_report_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_targeting_keyword_report_columns.sql", "original_file_path": "macros/get_targeting_keyword_report_columns.sql", "unique_id": "macro.amazon_ads_source.get_targeting_keyword_report_columns", "macro_sql": "{% macro get_targeting_keyword_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_keyword_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_bid\", \"datatype\": dbt.type_float()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"targeting\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchases_30_d\", \"datatype\": dbt.type_int()},\n {\"name\": \"sales_30_d\", \"datatype\": dbt.type_float()}\n] %}\n\n{# Add backwards compatibility if conversion metrics were added via passthrough columns prior to them being brought in by default #}\n{{ amazon_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('amazon_ads__targeting_keyword_passthrough_metrics'), except_fields=['purchases_30_d', 'sales_30_d']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.amazon_ads_source.amazon_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.281444, "supported_languages": null}, "macro.amazon_ads_source.get_keyword_history_columns": {"name": "get_keyword_history_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "unique_id": "macro.amazon_ads_source.get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_language_keyword\", \"datatype\": dbt.type_string()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_language_locale\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.282774, "supported_languages": null}, "macro.amazon_ads_source.amazon_ads_fill_pass_through_columns": {"name": "amazon_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/amazon_ads_fill_pass_through_columns.sql", "original_file_path": "macros/amazon_ads_fill_pass_through_columns.sql", "unique_id": "macro.amazon_ads_source.amazon_ads_fill_pass_through_columns", "macro_sql": "{% macro amazon_ads_fill_pass_through_columns(pass_through_fields, except=[]) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if (field.alias if field.alias else field.name) not in except %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.283743, "supported_languages": null}, "macro.linkedin_source.get_creative_history_columns": {"name": "get_creative_history_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_creative_history_columns.sql", "original_file_path": "macros/get_creative_history_columns.sql", "unique_id": "macro.linkedin_source.get_creative_history_columns", "macro_sql": "{% macro get_creative_history_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"click_uri\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"last_modified_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"intended_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2847822, "supported_languages": null}, "macro.linkedin_source.linkedin_ads_extract_url_parameter": {"name": "linkedin_ads_extract_url_parameter", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/linkedin_ads_extract_url_parameters.sql", "original_file_path": "macros/linkedin_ads_extract_url_parameters.sql", "unique_id": "macro.linkedin_source.linkedin_ads_extract_url_parameter", "macro_sql": "{% macro linkedin_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('linkedin_ads_extract_url_parameter', 'linkedin_source') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.linkedin_source.default__linkedin_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2851331, "supported_languages": null}, "macro.linkedin_source.default__linkedin_ads_extract_url_parameter": {"name": "default__linkedin_ads_extract_url_parameter", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/linkedin_ads_extract_url_parameters.sql", "original_file_path": "macros/linkedin_ads_extract_url_parameters.sql", "unique_id": "macro.linkedin_source.default__linkedin_ads_extract_url_parameter", "macro_sql": "{% macro default__linkedin_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.2852821, "supported_languages": null}, "macro.linkedin_source.spark__linkedin_ads_extract_url_parameter": {"name": "spark__linkedin_ads_extract_url_parameter", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/linkedin_ads_extract_url_parameters.sql", "original_file_path": "macros/linkedin_ads_extract_url_parameters.sql", "unique_id": "macro.linkedin_source.spark__linkedin_ads_extract_url_parameter", "macro_sql": "{% macro spark__linkedin_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.285474, "supported_languages": null}, "macro.linkedin_source.linkedin_ads_add_pass_through_columns": {"name": "linkedin_ads_add_pass_through_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/linkedin_ads_add_pass_through_columns.sql", "original_file_path": "macros/linkedin_ads_add_pass_through_columns.sql", "unique_id": "macro.linkedin_source.linkedin_ads_add_pass_through_columns", "macro_sql": "{% macro linkedin_ads_add_pass_through_columns(base_columns, pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for column in pass_through_fields %}\n\n {% if column is mapping %}\n {% set col_name = column.alias|default(column.name)|lower %}\n \n {% if col_name not in except_fields %}\n {% if column.alias %}\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% else %}\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% else %}\n {% if column|lower not in except_fields %}\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.287478, "supported_languages": null}, "macro.linkedin_source.linkedin_ads_fill_pass_through_columns": {"name": "linkedin_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/linkedin_ads_fill_pass_through_columns.sql", "original_file_path": "macros/linkedin_ads_fill_pass_through_columns.sql", "unique_id": "macro.linkedin_source.linkedin_ads_fill_pass_through_columns", "macro_sql": "{% macro linkedin_ads_fill_pass_through_columns(pass_through_fields, except=[]) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if (field.alias if field.alias else field.name) not in except %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.288484, "supported_languages": null}, "macro.linkedin_source.get_campaign_group_history_columns": {"name": "get_campaign_group_history_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_campaign_group_history_columns.sql", "original_file_path": "macros/get_campaign_group_history_columns.sql", "unique_id": "macro.linkedin_source.get_campaign_group_history_columns", "macro_sql": "{% macro get_campaign_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"backfilled\", \"datatype\": \"boolean\"},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"run_schedule_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"run_schedule_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.289521, "supported_languages": null}, "macro.linkedin_source.get_ad_analytics_by_campaign_columns": {"name": "get_ad_analytics_by_campaign_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_ad_analytics_by_campaign_columns.sql", "original_file_path": "macros/get_ad_analytics_by_campaign_columns.sql", "unique_id": "macro.linkedin_source.get_ad_analytics_by_campaign_columns", "macro_sql": "{% macro get_ad_analytics_by_campaign_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_in_local_currency\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"cost_in_usd\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"day\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversion_value_in_local_currency\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('linkedin_ads__conversion_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ linkedin_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('linkedin_ads__campaign_passthrough_metrics'), except_fields=(var('linkedin_ads__conversion_fields') + ['conversion_value_in_local_currency'])) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns", "macro.linkedin_source.linkedin_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.290698, "supported_languages": null}, "macro.linkedin_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.linkedin_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"audience_expansion_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"campaign_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creative_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"daily_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"format\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"locale_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"locale_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"objective_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"offsite_delivery_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"optimization_target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"run_schedule_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"run_schedule_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"version_tag\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.293306, "supported_languages": null}, "macro.linkedin_source.get_ad_analytics_by_creative_columns": {"name": "get_ad_analytics_by_creative_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_ad_analytics_by_creative_columns.sql", "original_file_path": "macros/get_ad_analytics_by_creative_columns.sql", "unique_id": "macro.linkedin_source.get_ad_analytics_by_creative_columns", "macro_sql": "{% macro get_ad_analytics_by_creative_columns() %}\n\n{% set columns = [\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_in_local_currency\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"cost_in_usd\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"creative_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"day\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversion_value_in_local_currency\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('linkedin_ads__conversion_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ linkedin_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('linkedin_ads__creative_passthrough_metrics'), except_fields=(var('linkedin_ads__conversion_fields') + ['conversion_value_in_local_currency'])) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns", "macro.linkedin_source.linkedin_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.294484, "supported_languages": null}, "macro.linkedin_source.get_account_history_columns": {"name": "get_account_history_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "unique_id": "macro.linkedin_source.get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"version_tag\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.295431, "supported_languages": null}, "macro.spark_utils.get_tables": {"name": "get_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_tables", "macro_sql": "{% macro get_tables(table_regex_pattern='.*') %}\n\n {% set tables = [] %}\n {% for database in spark__list_schemas('not_used') %}\n {% for table in spark__list_relations_without_caching(database[0]) %}\n {% set db_tablename = database[0] ~ \".\" ~ table[1] %}\n {% set is_match = modules.re.match(table_regex_pattern, db_tablename) %}\n {% if is_match %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('type', 'TYPE', 'Type'))|first %}\n {% if table_type[1]|lower != 'view' %}\n {{ tables.append(db_tablename) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% endfor %}\n {{ return(tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.301379, "supported_languages": null}, "macro.spark_utils.get_delta_tables": {"name": "get_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_delta_tables", "macro_sql": "{% macro get_delta_tables(table_regex_pattern='.*') %}\n\n {% set delta_tables = [] %}\n {% for db_tablename in get_tables(table_regex_pattern) %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('provider', 'PROVIDER', 'Provider'))|first %}\n {% if table_type[1]|lower == 'delta' %}\n {{ delta_tables.append(db_tablename) }}\n {% endif %}\n {% endfor %}\n {{ return(delta_tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.302162, "supported_languages": null}, "macro.spark_utils.get_statistic_columns": {"name": "get_statistic_columns", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_statistic_columns", "macro_sql": "{% macro get_statistic_columns(table) %}\n\n {% call statement('input_columns', fetch_result=True) %}\n SHOW COLUMNS IN {{ table }}\n {% endcall %}\n {% set input_columns = load_result('input_columns').table %}\n\n {% set output_columns = [] %}\n {% for column in input_columns %}\n {% call statement('column_information', fetch_result=True) %}\n DESCRIBE TABLE {{ table }} `{{ column[0] }}`\n {% endcall %}\n {% if not load_result('column_information').table[1][1].startswith('struct') and not load_result('column_information').table[1][1].startswith('array') %}\n {{ output_columns.append('`' ~ column[0] ~ '`') }}\n {% endif %}\n {% endfor %}\n {{ return(output_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.303068, "supported_languages": null}, "macro.spark_utils.spark_optimize_delta_tables": {"name": "spark_optimize_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_optimize_delta_tables", "macro_sql": "{% macro spark_optimize_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Optimizing \" ~ table) }}\n {% do run_query(\"optimize \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.303906, "supported_languages": null}, "macro.spark_utils.spark_vacuum_delta_tables": {"name": "spark_vacuum_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_vacuum_delta_tables", "macro_sql": "{% macro spark_vacuum_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Vacuuming \" ~ table) }}\n {% do run_query(\"vacuum \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.30462, "supported_languages": null}, "macro.spark_utils.spark_analyze_tables": {"name": "spark_analyze_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_analyze_tables", "macro_sql": "{% macro spark_analyze_tables(table_regex_pattern='.*') %}\n\n {% for table in get_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set columns = get_statistic_columns(table) | join(',') %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Analyzing \" ~ table) }}\n {% if columns != '' %}\n {% do run_query(\"analyze table \" ~ table ~ \" compute statistics for columns \" ~ columns) %}\n {% endif %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.spark_utils.get_statistic_columns", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.3055182, "supported_languages": null}, "macro.spark_utils.spark__concat": {"name": "spark__concat", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/concat.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/concat.sql", "unique_id": "macro.spark_utils.spark__concat", "macro_sql": "{% macro spark__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.305734, "supported_languages": null}, "macro.spark_utils.spark__type_numeric": {"name": "spark__type_numeric", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "unique_id": "macro.spark_utils.spark__type_numeric", "macro_sql": "{% macro spark__type_numeric() %}\n decimal(28, 6)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.305852, "supported_languages": null}, "macro.spark_utils.spark__dateadd": {"name": "spark__dateadd", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "unique_id": "macro.spark_utils.spark__dateadd", "macro_sql": "{% macro spark__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {%- set clock_component -%}\n {# make sure the dates + timestamps are real, otherwise raise an error asap #}\n to_unix_timestamp({{ spark_utils.assert_not_null('to_timestamp', from_date_or_timestamp) }})\n - to_unix_timestamp({{ spark_utils.assert_not_null('date', from_date_or_timestamp) }})\n {%- endset -%}\n\n {%- if datepart in ['day', 'week'] -%}\n \n {%- set multiplier = 7 if datepart == 'week' else 1 -%}\n\n to_timestamp(\n to_unix_timestamp(\n date_add(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ['month', 'quarter', 'year'] -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'month' -%} 1\n {%- elif datepart == 'quarter' -%} 3\n {%- elif datepart == 'year' -%} 12\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n to_unix_timestamp(\n add_months(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n {{ spark_utils.assert_not_null('to_unix_timestamp', from_date_or_timestamp) }}\n + cast({{interval}} * {{multiplier}} as int)\n )\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro dateadd not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.30912, "supported_languages": null}, "macro.spark_utils.spark__datediff": {"name": "spark__datediff", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datediff.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datediff.sql", "unique_id": "macro.spark_utils.spark__datediff", "macro_sql": "{% macro spark__datediff(first_date, second_date, datepart) %}\n\n {%- if datepart in ['day', 'week', 'month', 'quarter', 'year'] -%}\n \n {# make sure the dates are real, otherwise raise an error asap #}\n {% set first_date = spark_utils.assert_not_null('date', first_date) %}\n {% set second_date = spark_utils.assert_not_null('date', second_date) %}\n \n {%- endif -%}\n \n {%- if datepart == 'day' -%}\n \n datediff({{second_date}}, {{first_date}})\n \n {%- elif datepart == 'week' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(datediff({{second_date}}, {{first_date}})/7)\n else ceil(datediff({{second_date}}, {{first_date}})/7)\n end\n \n -- did we cross a week boundary (Sunday)?\n + case\n when {{first_date}} < {{second_date}} and dayofweek({{second_date}}) < dayofweek({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofweek({{second_date}}) > dayofweek({{first_date}}) then -1\n else 0 end\n\n {%- elif datepart == 'month' -%}\n\n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}})))\n else ceil(months_between(date({{second_date}}), date({{first_date}})))\n end\n \n -- did we cross a month boundary?\n + case\n when {{first_date}} < {{second_date}} and dayofmonth({{second_date}}) < dayofmonth({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofmonth({{second_date}}) > dayofmonth({{first_date}}) then -1\n else 0 end\n \n {%- elif datepart == 'quarter' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}}))/3)\n else ceil(months_between(date({{second_date}}), date({{first_date}}))/3)\n end\n \n -- did we cross a quarter boundary?\n + case\n when {{first_date}} < {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n < (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then 1\n when {{first_date}} > {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n > (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then -1\n else 0 end\n\n {%- elif datepart == 'year' -%}\n \n year({{second_date}}) - year({{first_date}})\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set divisor -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n case when {{first_date}} < {{second_date}}\n then ceil((\n {# make sure the timestamps are real, otherwise raise an error asap #}\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n else floor((\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n end\n \n {% if datepart == 'millisecond' %}\n + cast(date_format({{second_date}}, 'SSS') as int)\n - cast(date_format({{first_date}}, 'SSS') as int)\n {% endif %}\n \n {% if datepart == 'microsecond' %} \n {% set capture_str = '[0-9]{4}-[0-9]{2}-[0-9]{2}.[0-9]{2}:[0-9]{2}:[0-9]{2}.([0-9]{6})' %}\n -- Spark doesn't really support microseconds, so this is a massive hack!\n -- It will only work if the timestamp-string is of the format\n -- 'yyyy-MM-dd-HH mm.ss.SSSSSS'\n + cast(regexp_extract({{second_date}}, '{{capture_str}}', 1) as int)\n - cast(regexp_extract({{first_date}}, '{{capture_str}}', 1) as int) \n {% endif %}\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro datediff not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.3178089, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp": {"name": "spark__current_timestamp", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp", "macro_sql": "{% macro spark__current_timestamp() %}\n current_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.318006, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp_in_utc": {"name": "spark__current_timestamp_in_utc", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp_in_utc", "macro_sql": "{% macro spark__current_timestamp_in_utc() %}\n unix_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.318092, "supported_languages": null}, "macro.spark_utils.spark__split_part": {"name": "spark__split_part", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/split_part.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/split_part.sql", "unique_id": "macro.spark_utils.spark__split_part", "macro_sql": "{% macro spark__split_part(string_text, delimiter_text, part_number) %}\n\n {% set delimiter_expr %}\n \n -- escape if starts with a special character\n case when regexp_extract({{ delimiter_text }}, '([^A-Za-z0-9])(.*)', 1) != '_'\n then concat('\\\\', {{ delimiter_text }})\n else {{ delimiter_text }} end\n \n {% endset %}\n\n {% set split_part_expr %}\n \n split(\n {{ string_text }},\n {{ delimiter_expr }}\n )[({{ part_number - 1 }})]\n \n {% endset %}\n \n {{ return(split_part_expr) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.3188019, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_pattern": {"name": "spark__get_relations_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_pattern", "macro_sql": "{% macro spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n show table extended in {{ schema_pattern }} like '{{ table_pattern }}'\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=None,\n schema=row[0],\n identifier=row[1],\n type=('view' if 'Type: VIEW' in row[3] else 'table')\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.3204422, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_prefix": {"name": "spark__get_relations_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_prefix", "macro_sql": "{% macro spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {% set table_pattern = table_pattern ~ '*' %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.320778, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_pattern": {"name": "spark__get_tables_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_pattern", "macro_sql": "{% macro spark__get_tables_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.3210502, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_prefix": {"name": "spark__get_tables_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_prefix", "macro_sql": "{% macro spark__get_tables_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.321314, "supported_languages": null}, "macro.spark_utils.assert_not_null": {"name": "assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.assert_not_null", "macro_sql": "{% macro assert_not_null(function, arg) -%}\n {{ return(adapter.dispatch('assert_not_null', 'spark_utils')(function, arg)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.spark_utils.default__assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.321632, "supported_languages": null}, "macro.spark_utils.default__assert_not_null": {"name": "default__assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.default__assert_not_null", "macro_sql": "{% macro default__assert_not_null(function, arg) %}\n\n coalesce({{function}}({{arg}}), nvl2({{function}}({{arg}}), assert_true({{function}}({{arg}}) is not null), null))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.321822, "supported_languages": null}, "macro.spark_utils.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/snowplow/convert_timezone.sql", "original_file_path": "macros/snowplow/convert_timezone.sql", "unique_id": "macro.spark_utils.spark__convert_timezone", "macro_sql": "{% macro spark__convert_timezone(in_tz, out_tz, in_timestamp) %}\n from_utc_timestamp(to_utc_timestamp({{in_timestamp}}, {{in_tz}}), {{out_tz}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.322023, "supported_languages": null}, "macro.amazon_ads.amazon_ads_persist_pass_through_columns": {"name": "amazon_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "amazon_ads", "path": "macros/amazon_ads_persist_pass_through_columns.sql", "original_file_path": "macros/amazon_ads_persist_pass_through_columns.sql", "unique_id": "macro.amazon_ads.amazon_ads_persist_pass_through_columns", "macro_sql": "{% macro amazon_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, exclude_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n {% if field_name not in exclude_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field_name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.323018, "supported_languages": null}, "macro.facebook_ads.facebook_ads_extract_url_parameter": {"name": "facebook_ads_extract_url_parameter", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/facebook_ads_extract_url_parameters.sql", "original_file_path": "macros/facebook_ads_extract_url_parameters.sql", "unique_id": "macro.facebook_ads.facebook_ads_extract_url_parameter", "macro_sql": "{% macro facebook_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('facebook_ads_extract_url_parameter', 'facebook_ads') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.facebook_ads.default__facebook_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.323374, "supported_languages": null}, "macro.facebook_ads.default__facebook_ads_extract_url_parameter": {"name": "default__facebook_ads_extract_url_parameter", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/facebook_ads_extract_url_parameters.sql", "original_file_path": "macros/facebook_ads_extract_url_parameters.sql", "unique_id": "macro.facebook_ads.default__facebook_ads_extract_url_parameter", "macro_sql": "{% macro default__facebook_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.323519, "supported_languages": null}, "macro.facebook_ads.spark__facebook_ads_extract_url_parameter": {"name": "spark__facebook_ads_extract_url_parameter", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/facebook_ads_extract_url_parameters.sql", "original_file_path": "macros/facebook_ads_extract_url_parameters.sql", "unique_id": "macro.facebook_ads.spark__facebook_ads_extract_url_parameter", "macro_sql": "{% macro spark__facebook_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.323712, "supported_languages": null}, "macro.facebook_ads.get_url_tags_query": {"name": "get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.get_url_tags_query", "macro_sql": "{% macro get_url_tags_query() %}\n {{ return(adapter.dispatch('get_url_tags_query') ()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.facebook_ads.bigquery__get_url_tags_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.3249469, "supported_languages": null}, "macro.facebook_ads.bigquery__get_url_tags_query": {"name": "bigquery__get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.bigquery__get_url_tags_query", "macro_sql": "{% macro bigquery__get_url_tags_query() %}\n\n cleaned_json as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n json_extract_array(replace(trim(url_tags, '\"'),'\\\\','')) as cleaned_url_tags\n from required_fields\n ), \n\n unnested as (\n\n select \n source_relation,\n _fivetran_id, \n creative_id, \n url_tag_element\n from cleaned_json\n left join unnest(cleaned_url_tags) as url_tag_element\n where cleaned_url_tags is not null\n ), \n\n fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n json_extract_scalar(url_tag_element, '$.key') as key,\n json_extract_scalar(url_tag_element, '$.value') as value,\n json_extract_scalar(url_tag_element, '$.type') as type\n from unnested\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.325102, "supported_languages": null}, "macro.facebook_ads.postgres__get_url_tags_query": {"name": "postgres__get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.postgres__get_url_tags_query", "macro_sql": "{% macro postgres__get_url_tags_query() %}\n\n cleaned_json as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n replace(trim(url_tags::text, '\"'),'\\\\','')::json as cleaned_url_tags\n from required_fields\n ), \n\n unnested as (\n\n select \n source_relation,\n _fivetran_id, \n creative_id, \n url_tag_element\n from cleaned_json\n left join lateral json_array_elements(cleaned_url_tags) as url_tag_element on True\n where cleaned_url_tags is not null\n ), \n\n fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n url_tag_element->>'key' as key,\n url_tag_element->>'value' as value,\n url_tag_element->>'type' as type\n from unnested\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.3252301, "supported_languages": null}, "macro.facebook_ads.redshift__get_url_tags_query": {"name": "redshift__get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.redshift__get_url_tags_query", "macro_sql": "{% macro redshift__get_url_tags_query() %}\n\n numbers as (\n\n {{ dbt_utils.generate_series(upper_bound=1000) }}\n\n ), \n\n flattened_url_tags as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n json_extract_array_element_text(required_fields.url_tags, numbers.generated_number::int - 1, true) as element\n from required_fields\n inner join numbers\n on json_array_length(required_fields.url_tags) >= numbers.generated_number\n ), \n\n fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n json_extract_path_text(element,'key') as key,\n json_extract_path_text(element,'value') as value,\n json_extract_path_text(element,'type') as type\n from flattened_url_tags\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.3254158, "supported_languages": null}, "macro.facebook_ads.snowflake__get_url_tags_query": {"name": "snowflake__get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.snowflake__get_url_tags_query", "macro_sql": "{% macro snowflake__get_url_tags_query() %}\n\n cleaned_fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n parse_json(url_tags) as url_tags\n from required_fields\n where url_tags is not null\n ), \n\n fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n url_tags.value:key::string as key,\n url_tags.value:value::string as value,\n url_tags.value:type::string as type\n from cleaned_fields,\n lateral flatten( input => url_tags ) as url_tags\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.3256052, "supported_languages": null}, "macro.facebook_ads.spark__get_url_tags_query": {"name": "spark__get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.spark__get_url_tags_query", "macro_sql": "{% macro spark__get_url_tags_query() %}\n\n cleaned_fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n explode(from_json(url_tags, 'array>')) as url_tags\n from required_fields\n where url_tags is not null\n ), \n\n fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n url_tags.key as key,\n url_tags.value as value,\n url_tags.type as type\n from cleaned_fields\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.325829, "supported_languages": null}, "macro.facebook_ads.facebook_ads_persist_pass_through_columns": {"name": "facebook_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/facebook_ads_persist_pass_through_columns.sql", "original_file_path": "macros/facebook_ads_persist_pass_through_columns.sql", "unique_id": "macro.facebook_ads.facebook_ads_persist_pass_through_columns", "macro_sql": "{% macro facebook_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, exclude_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n {% if field_name not in exclude_fields %}\n , {{ transform ~ '(cast(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ' as ' ~ dbt.type_float() ~ '))' }} as {{ field_name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.326899, "supported_languages": null}, "macro.snapchat_ads.snapchat_ads_persist_pass_through_columns": {"name": "snapchat_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "snapchat_ads", "path": "macros/snapchat_ads_persist_pass_through_columns.sql", "original_file_path": "macros/snapchat_ads_persist_pass_through_columns.sql", "unique_id": "macro.snapchat_ads.snapchat_ads_persist_pass_through_columns", "macro_sql": "{% macro snapchat_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, except_variable=none, exclude_fields=[]) %}\n\n{% set except_fields = [] %}\n{% if except_variable is not none %}\n {# Start creating list of fields to exclude #}\n {% for item in var(except_variable) %}\n {% do except_fields.append(item.name) %}\n {% endfor %}\n{% endif %}\n\n{% for field in exclude_fields %}\n {% do except_fields.append(field) %}\n{% endfor %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field|lower %}\n \n {% if field_name not in except_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field_name }}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.3289468, "supported_languages": null}, "macro.snapchat_ads.snapchat_ads_extract_url_parameter": {"name": "snapchat_ads_extract_url_parameter", "resource_type": "macro", "package_name": "snapchat_ads", "path": "macros/snapchat_ads_extract_url_parameters.sql", "original_file_path": "macros/snapchat_ads_extract_url_parameters.sql", "unique_id": "macro.snapchat_ads.snapchat_ads_extract_url_parameter", "macro_sql": "{% macro snapchat_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('snapchat_ads_extract_url_parameter', 'snapchat_ads') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snapchat_ads.default__snapchat_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.329718, "supported_languages": null}, "macro.snapchat_ads.default__snapchat_ads_extract_url_parameter": {"name": "default__snapchat_ads_extract_url_parameter", "resource_type": "macro", "package_name": "snapchat_ads", "path": "macros/snapchat_ads_extract_url_parameters.sql", "original_file_path": "macros/snapchat_ads_extract_url_parameters.sql", "unique_id": "macro.snapchat_ads.default__snapchat_ads_extract_url_parameter", "macro_sql": "{% macro default__snapchat_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.329878, "supported_languages": null}, "macro.snapchat_ads.spark__snapchat_ads_extract_url_parameter": {"name": "spark__snapchat_ads_extract_url_parameter", "resource_type": "macro", "package_name": "snapchat_ads", "path": "macros/snapchat_ads_extract_url_parameters.sql", "original_file_path": "macros/snapchat_ads_extract_url_parameters.sql", "unique_id": "macro.snapchat_ads.spark__snapchat_ads_extract_url_parameter", "macro_sql": "{% macro spark__snapchat_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.3300831, "supported_languages": null}, "macro.dbt_date.get_date_dimension": {"name": "get_date_dimension", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "unique_id": "macro.dbt_date.get_date_dimension", "macro_sql": "{% macro get_date_dimension(start_date, end_date) %}\n {{ adapter.dispatch('get_date_dimension', 'dbt_date') (start_date, end_date) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_date_dimension"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.351817, "supported_languages": null}, "macro.dbt_date.default__get_date_dimension": {"name": "default__get_date_dimension", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "unique_id": "macro.dbt_date.default__get_date_dimension", "macro_sql": "{% macro default__get_date_dimension(start_date, end_date) %}\nwith base_dates as (\n {{ dbt_date.get_base_dates(start_date, end_date) }}\n),\ndates_with_prior_year_dates as (\n\n select\n cast(d.date_day as date) as date_day,\n cast({{ dbt.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt.dateadd('day', -364 , 'd.date_day') }} as date) as prior_year_over_year_date_day\n from\n \tbase_dates d\n\n)\nselect\n d.date_day,\n {{ dbt_date.yesterday('d.date_day') }} as prior_date_day,\n {{ dbt_date.tomorrow('d.date_day') }} as next_date_day,\n d.prior_year_date_day as prior_year_date_day,\n d.prior_year_over_year_date_day,\n {{ dbt_date.day_of_week('d.date_day', isoweek=false) }} as day_of_week,\n {{ dbt_date.day_of_week('d.date_day', isoweek=true) }} as day_of_week_iso,\n {{ dbt_date.day_name('d.date_day', short=false) }} as day_of_week_name,\n {{ dbt_date.day_name('d.date_day', short=true) }} as day_of_week_name_short,\n {{ dbt_date.day_of_month('d.date_day') }} as day_of_month,\n {{ dbt_date.day_of_year('d.date_day') }} as day_of_year,\n\n {{ dbt_date.week_start('d.date_day') }} as week_start_date,\n {{ dbt_date.week_end('d.date_day') }} as week_end_date,\n {{ dbt_date.week_start('d.prior_year_over_year_date_day') }} as prior_year_week_start_date,\n {{ dbt_date.week_end('d.prior_year_over_year_date_day') }} as prior_year_week_end_date,\n {{ dbt_date.week_of_year('d.date_day') }} as week_of_year,\n\n {{ dbt_date.iso_week_start('d.date_day') }} as iso_week_start_date,\n {{ dbt_date.iso_week_end('d.date_day') }} as iso_week_end_date,\n {{ dbt_date.iso_week_start('d.prior_year_over_year_date_day') }} as prior_year_iso_week_start_date,\n {{ dbt_date.iso_week_end('d.prior_year_over_year_date_day') }} as prior_year_iso_week_end_date,\n {{ dbt_date.iso_week_of_year('d.date_day') }} as iso_week_of_year,\n\n {{ dbt_date.week_of_year('d.prior_year_over_year_date_day') }} as prior_year_week_of_year,\n {{ dbt_date.iso_week_of_year('d.prior_year_over_year_date_day') }} as prior_year_iso_week_of_year,\n\n cast({{ dbt_date.date_part('month', 'd.date_day') }} as {{ dbt.type_int() }}) as month_of_year,\n {{ dbt_date.month_name('d.date_day', short=false) }} as month_name,\n {{ dbt_date.month_name('d.date_day', short=true) }} as month_name_short,\n\n cast({{ dbt.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ last_day('d.prior_year_date_day', 'month') }} as date) as prior_year_month_end_date,\n\n cast({{ dbt_date.date_part('quarter', 'd.date_day') }} as {{ dbt.type_int() }}) as quarter_of_year,\n cast({{ dbt.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n cast({{ last_day('d.date_day', 'quarter') }} as date) as quarter_end_date,\n\n cast({{ dbt_date.date_part('year', 'd.date_day') }} as {{ dbt.type_int() }}) as year_number,\n cast({{ dbt.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ last_day('d.date_day', 'year') }} as date) as year_end_date\nfrom\n dates_with_prior_year_dates d\norder by 1\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt.dateadd", "macro.dbt_date.yesterday", "macro.dbt_date.tomorrow", "macro.dbt_date.day_of_week", "macro.dbt_date.day_name", "macro.dbt_date.day_of_month", "macro.dbt_date.day_of_year", "macro.dbt_date.week_start", "macro.dbt_date.week_end", "macro.dbt_date.week_of_year", "macro.dbt_date.iso_week_start", "macro.dbt_date.iso_week_end", "macro.dbt_date.iso_week_of_year", "macro.dbt_date.date_part", "macro.dbt.type_int", "macro.dbt_date.month_name", "macro.dbt.date_trunc", "macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.37409, "supported_languages": null}, "macro.dbt_date.postgres__get_date_dimension": {"name": "postgres__get_date_dimension", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "unique_id": "macro.dbt_date.postgres__get_date_dimension", "macro_sql": "{% macro postgres__get_date_dimension(start_date, end_date) %}\nwith base_dates as (\n {{ dbt_date.get_base_dates(start_date, end_date) }}\n),\ndates_with_prior_year_dates as (\n\n select\n cast(d.date_day as date) as date_day,\n cast({{ dbt.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt.dateadd('day', -364 , 'd.date_day') }} as date) as prior_year_over_year_date_day\n from\n \tbase_dates d\n\n)\nselect\n d.date_day,\n {{ dbt_date.yesterday('d.date_day') }} as prior_date_day,\n {{ dbt_date.tomorrow('d.date_day') }} as next_date_day,\n d.prior_year_date_day as prior_year_date_day,\n d.prior_year_over_year_date_day,\n {{ dbt_date.day_of_week('d.date_day', isoweek=true) }} as day_of_week,\n\n {{ dbt_date.day_name('d.date_day', short=false) }} as day_of_week_name,\n {{ dbt_date.day_name('d.date_day', short=true) }} as day_of_week_name_short,\n {{ dbt_date.day_of_month('d.date_day') }} as day_of_month,\n {{ dbt_date.day_of_year('d.date_day') }} as day_of_year,\n\n {{ dbt_date.week_start('d.date_day') }} as week_start_date,\n {{ dbt_date.week_end('d.date_day') }} as week_end_date,\n {{ dbt_date.week_start('d.prior_year_over_year_date_day') }} as prior_year_week_start_date,\n {{ dbt_date.week_end('d.prior_year_over_year_date_day') }} as prior_year_week_end_date,\n {{ dbt_date.week_of_year('d.date_day') }} as week_of_year,\n\n {{ dbt_date.iso_week_start('d.date_day') }} as iso_week_start_date,\n {{ dbt_date.iso_week_end('d.date_day') }} as iso_week_end_date,\n {{ dbt_date.iso_week_start('d.prior_year_over_year_date_day') }} as prior_year_iso_week_start_date,\n {{ dbt_date.iso_week_end('d.prior_year_over_year_date_day') }} as prior_year_iso_week_end_date,\n {{ dbt_date.iso_week_of_year('d.date_day') }} as iso_week_of_year,\n\n {{ dbt_date.week_of_year('d.prior_year_over_year_date_day') }} as prior_year_week_of_year,\n {{ dbt_date.iso_week_of_year('d.prior_year_over_year_date_day') }} as prior_year_iso_week_of_year,\n\n cast({{ dbt_date.date_part('month', 'd.date_day') }} as {{ dbt.type_int() }}) as month_of_year,\n {{ dbt_date.month_name('d.date_day', short=false) }} as month_name,\n {{ dbt_date.month_name('d.date_day', short=true) }} as month_name_short,\n\n cast({{ dbt.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ last_day('d.prior_year_date_day', 'month') }} as date) as prior_year_month_end_date,\n\n cast({{ dbt_date.date_part('quarter', 'd.date_day') }} as {{ dbt.type_int() }}) as quarter_of_year,\n cast({{ dbt.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n {# last_day does not support quarter because postgresql does not support quarter interval. #}\n cast({{dbt.dateadd('day', '-1', dbt.dateadd('month', '3', dbt.date_trunc('quarter', 'd.date_day')))}} as date) as quarter_end_date,\n\n cast({{ dbt_date.date_part('year', 'd.date_day') }} as {{ dbt.type_int() }}) as year_number,\n cast({{ dbt.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ last_day('d.date_day', 'year') }} as date) as year_end_date\nfrom\n dates_with_prior_year_dates d\norder by 1\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt.dateadd", "macro.dbt_date.yesterday", "macro.dbt_date.tomorrow", "macro.dbt_date.day_of_week", "macro.dbt_date.day_name", "macro.dbt_date.day_of_month", "macro.dbt_date.day_of_year", "macro.dbt_date.week_start", "macro.dbt_date.week_end", "macro.dbt_date.week_of_year", "macro.dbt_date.iso_week_start", "macro.dbt_date.iso_week_end", "macro.dbt_date.iso_week_of_year", "macro.dbt_date.date_part", "macro.dbt.type_int", "macro.dbt_date.month_name", "macro.dbt.date_trunc", "macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.379578, "supported_languages": null}, "macro.dbt_date.get_base_dates": {"name": "get_base_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "unique_id": "macro.dbt_date.get_base_dates", "macro_sql": "{% macro get_base_dates(start_date=None, end_date=None, n_dateparts=None, datepart=\"day\") %}\n {{ adapter.dispatch('get_base_dates', 'dbt_date') (start_date, end_date, n_dateparts, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.bigquery__get_base_dates"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.392141, "supported_languages": null}, "macro.dbt_date.default__get_base_dates": {"name": "default__get_base_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "unique_id": "macro.dbt_date.default__get_base_dates", "macro_sql": "{% macro default__get_base_dates(start_date, end_date, n_dateparts, datepart) %}\n\n{%- if start_date and end_date -%}\n{%- set start_date=\"cast('\" ~ start_date ~ \"' as \" ~ dbt.type_timestamp() ~ \")\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as \" ~ dbt.type_timestamp() ~ \")\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt.dateadd(datepart, -1 * n_dateparts, dbt_date.today()) -%}\n{%- set end_date = dbt_date.tomorrow() -%}\n{%- endif -%}\n\nwith date_spine as\n(\n\n {{ dbt_date.date_spine(\n datepart=datepart,\n start_date=start_date,\n end_date=end_date,\n )\n }}\n\n)\nselect\n cast(d.date_{{ datepart }} as {{ dbt.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.401778, "supported_languages": null}, "macro.dbt_date.bigquery__get_base_dates": {"name": "bigquery__get_base_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "unique_id": "macro.dbt_date.bigquery__get_base_dates", "macro_sql": "{% macro bigquery__get_base_dates(start_date, end_date, n_dateparts, datepart) %}\n\n{%- if start_date and end_date -%}\n{%- set start_date=\"cast('\" ~ start_date ~ \"' as datetime )\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as datetime )\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt.dateadd(datepart, -1 * n_dateparts, dbt_date.today()) -%}\n{%- set end_date = dbt_date.tomorrow() -%}\n{%- endif -%}\n\nwith date_spine as\n(\n\n {{ dbt_date.date_spine(\n datepart=datepart,\n start_date=start_date,\n end_date=end_date,\n )\n }}\n\n)\nselect\n cast(d.date_{{ datepart }} as {{ dbt.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.403332, "supported_languages": null}, "macro.dbt_date.trino__get_base_dates": {"name": "trino__get_base_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "unique_id": "macro.dbt_date.trino__get_base_dates", "macro_sql": "{% macro trino__get_base_dates(start_date, end_date, n_dateparts, datepart) %}\n\n{%- if start_date and end_date -%}\n{%- set start_date=\"cast('\" ~ start_date ~ \"' as \" ~ dbt.type_timestamp() ~ \")\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as \" ~ dbt.type_timestamp() ~ \")\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt.dateadd(datepart, -1 * n_dateparts, dbt_date.now()) -%}\n{%- set end_date = dbt_date.tomorrow() -%}\n{%- endif -%}\n\nwith date_spine as\n(\n\n {{ dbt_date.date_spine(\n datepart=datepart,\n start_date=start_date,\n end_date=end_date,\n )\n }}\n\n)\nselect\n cast(d.date_{{ datepart }} as {{ dbt.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.dateadd", "macro.dbt_date.now", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.406753, "supported_languages": null}, "macro.dbt_date.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_date')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.408718, "supported_languages": null}, "macro.dbt_date.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.409517, "supported_languages": null}, "macro.dbt_date.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_date')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.410326, "supported_languages": null}, "macro.dbt_date.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{\n dbt_date.generate_series(\n dbt_date.get_intervals_between(start_date, end_date, datepart)\n )\n }}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"(row_number() over (order by 1) - 1)\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.generate_series", "macro.dbt_date.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.415621, "supported_languages": null}, "macro.dbt_date.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_date')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.417089, "supported_languages": null}, "macro.dbt_date.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.4190562, "supported_languages": null}, "macro.dbt_date.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_date')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.433593, "supported_languages": null}, "macro.dbt_date.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_date.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.4345999, "supported_languages": null}, "macro.dbt_date.date": {"name": "date", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/modules_datetime.sql", "original_file_path": "macros/_utils/modules_datetime.sql", "unique_id": "macro.dbt_date.date", "macro_sql": "{% macro date(year, month, day) %}\n {{ return(modules.datetime.date(year, month, day)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.4350562, "supported_languages": null}, "macro.dbt_date.datetime": {"name": "datetime", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/modules_datetime.sql", "original_file_path": "macros/_utils/modules_datetime.sql", "unique_id": "macro.dbt_date.datetime", "macro_sql": "{% macro datetime(year, month, day, hour=0, minute=0, second=0, microsecond=0, tz=None) %}\n {% set tz = tz if tz else var(\"dbt_date:time_zone\") %}\n {{ return(\n modules.datetime.datetime(\n year=year, month=month, day=day, hour=hour,\n minute=minute, second=second, microsecond=microsecond,\n tzinfo=modules.pytz.timezone(tz)\n )\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.440607, "supported_languages": null}, "macro.dbt_date.get_fiscal_year_dates": {"name": "get_fiscal_year_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "unique_id": "macro.dbt_date.get_fiscal_year_dates", "macro_sql": "{% macro get_fiscal_year_dates(dates, year_end_month=12, week_start_day=1, shift_year=1) %}\n{{ adapter.dispatch('get_fiscal_year_dates', 'dbt_date') (dates, year_end_month, week_start_day, shift_year) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_fiscal_year_dates"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.452723, "supported_languages": null}, "macro.dbt_date.default__get_fiscal_year_dates": {"name": "default__get_fiscal_year_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "unique_id": "macro.dbt_date.default__get_fiscal_year_dates", "macro_sql": "{% macro default__get_fiscal_year_dates(dates, year_end_month, week_start_day, shift_year) %}\n-- this gets all the dates within a fiscal year\n-- determined by the given year-end-month\n-- ending on the saturday closest to that month's end date\nwith fsc_date_dimension as (\n select * from {{ dates }}\n),\nyear_month_end as (\n\n select\n d.year_number - {{ shift_year }} as fiscal_year_number,\n d.month_end_date\n from\n fsc_date_dimension d\n where\n d.month_of_year = {{ year_end_month }}\n group by 1,2\n\n),\nweeks as (\n\n select\n d.year_number,\n d.month_of_year,\n d.date_day as week_start_date,\n cast({{ dbt.dateadd('day', 6, 'd.date_day') }} as date) as week_end_date\n from\n fsc_date_dimension d\n where\n d.day_of_week = {{ week_start_day }}\n\n),\n-- get all the weeks that start in the month the year ends\nyear_week_ends as (\n\n select\n d.year_number - {{ shift_year }} as fiscal_year_number,\n d.week_end_date\n from\n weeks d\n where\n d.month_of_year = {{ year_end_month }}\n group by\n 1,2\n\n),\n-- then calculate which Saturday is closest to month end\nweeks_at_month_end as (\n\n select\n d.fiscal_year_number,\n d.week_end_date,\n m.month_end_date,\n rank() over\n (partition by d.fiscal_year_number\n order by\n abs({{ dbt.datediff('d.week_end_date', 'm.month_end_date', 'day') }})\n\n ) as closest_to_month_end\n from\n year_week_ends d\n join\n year_month_end m on d.fiscal_year_number = m.fiscal_year_number\n),\nfiscal_year_range as (\n\n select\n w.fiscal_year_number,\n cast(\n {{ dbt.dateadd('day', 1,\n 'lag(w.week_end_date) over(order by w.week_end_date)') }}\n as date) as fiscal_year_start_date,\n w.week_end_date as fiscal_year_end_date\n from\n weeks_at_month_end w\n where\n w.closest_to_month_end = 1\n\n),\nfiscal_year_dates as (\n\n select\n d.date_day,\n m.fiscal_year_number,\n m.fiscal_year_start_date,\n m.fiscal_year_end_date,\n w.week_start_date,\n w.week_end_date,\n -- we reset the weeks of the year starting with the merch year start date\n dense_rank()\n over(\n partition by m.fiscal_year_number\n order by w.week_start_date\n ) as fiscal_week_of_year\n from\n fsc_date_dimension d\n join\n fiscal_year_range m on d.date_day between m.fiscal_year_start_date and m.fiscal_year_end_date\n join\n weeks w on d.date_day between w.week_start_date and w.week_end_date\n\n)\nselect * from fiscal_year_dates order by 1\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.453805, "supported_languages": null}, "macro.dbt_date.get_fiscal_periods": {"name": "get_fiscal_periods", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/fiscal_date/get_fiscal_periods.sql", "original_file_path": "macros/fiscal_date/get_fiscal_periods.sql", "unique_id": "macro.dbt_date.get_fiscal_periods", "macro_sql": "{% macro get_fiscal_periods(dates, year_end_month, week_start_day, shift_year=1) %}\n{#\nThis macro requires you to pass in a ref to a date dimension, created via\ndbt_date.get_date_dimension()s\n#}\nwith fscl_year_dates_for_periods as (\n {{ dbt_date.get_fiscal_year_dates(dates, year_end_month, week_start_day, shift_year) }}\n),\nfscl_year_w13 as (\n\n select\n f.*,\n -- We count the weeks in a 13 week period\n -- and separate the 4-5-4 week sequences\n mod(cast(\n (f.fiscal_week_of_year-1) as {{ dbt.type_int() }}\n ), 13) as w13_number,\n -- Chop weeks into 13 week merch quarters\n cast(\n least(\n floor((f.fiscal_week_of_year-1)/13.0)\n , 3)\n as {{ dbt.type_int() }}) as quarter_number\n from\n fscl_year_dates_for_periods f\n\n),\nfscl_periods as (\n\n select\n f.date_day,\n f.fiscal_year_number,\n f.week_start_date,\n f.week_end_date,\n f.fiscal_week_of_year,\n case\n -- we move week 53 into the 3rd period of the quarter\n when f.fiscal_week_of_year = 53 then 3\n when f.w13_number between 0 and 3 then 1\n when f.w13_number between 4 and 8 then 2\n when f.w13_number between 9 and 12 then 3\n end as period_of_quarter,\n f.quarter_number\n from\n fscl_year_w13 f\n\n),\nfscl_periods_quarters as (\n\n select\n f.*,\n cast((\n (f.quarter_number * 3) + f.period_of_quarter\n ) as {{ dbt.type_int() }}) as fiscal_period_number\n from\n fscl_periods f\n\n)\nselect\n date_day,\n fiscal_year_number,\n week_start_date,\n week_end_date,\n fiscal_week_of_year,\n dense_rank() over(partition by fiscal_period_number order by fiscal_week_of_year) as fiscal_week_of_period,\n fiscal_period_number,\n quarter_number+1 as fiscal_quarter_number,\n period_of_quarter as fiscal_period_of_quarter\nfrom\n fscl_periods_quarters\norder by 1,2\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_fiscal_year_dates", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.4549482, "supported_languages": null}, "macro.dbt_date.tomorrow": {"name": "tomorrow", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/tomorrow.sql", "original_file_path": "macros/calendar_date/tomorrow.sql", "unique_id": "macro.dbt_date.tomorrow", "macro_sql": "{%- macro tomorrow(date=None, tz=None) -%}\n{{ dbt_date.n_days_away(1, date, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.4559412, "supported_languages": null}, "macro.dbt_date.next_week": {"name": "next_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_week.sql", "original_file_path": "macros/calendar_date/next_week.sql", "unique_id": "macro.dbt_date.next_week", "macro_sql": "{%- macro next_week(tz=None) -%}\n{{ dbt_date.n_weeks_away(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_weeks_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.456535, "supported_languages": null}, "macro.dbt_date.next_month_name": {"name": "next_month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_month_name.sql", "original_file_path": "macros/calendar_date/next_month_name.sql", "unique_id": "macro.dbt_date.next_month_name", "macro_sql": "{%- macro next_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.next_month(tz), short=short) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.month_name", "macro.dbt_date.next_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.456979, "supported_languages": null}, "macro.dbt_date.next_month": {"name": "next_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_month.sql", "original_file_path": "macros/calendar_date/next_month.sql", "unique_id": "macro.dbt_date.next_month", "macro_sql": "{%- macro next_month(tz=None) -%}\n{{ dbt_date.n_months_away(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_months_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.457197, "supported_languages": null}, "macro.dbt_date.day_name": {"name": "day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.day_name", "macro_sql": "{%- macro day_name(date, short=True) -%}\n {{ adapter.dispatch('day_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.bigquery__day_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.458165, "supported_languages": null}, "macro.dbt_date.default__day_name": {"name": "default__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.default__day_name", "macro_sql": "\n\n{%- macro default__day_name(date, short) -%}\n{%- set f = 'Dy' if short else 'Day' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.4588768, "supported_languages": null}, "macro.dbt_date.snowflake__day_name": {"name": "snowflake__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.snowflake__day_name", "macro_sql": "\n\n{%- macro snowflake__day_name(date, short) -%}\n {%- if short -%}\n dayname({{ date }})\n {%- else -%}\n -- long version not implemented on Snowflake so we're doing it manually :/\n case dayname({{ date }})\n when 'Mon' then 'Monday'\n when 'Tue' then 'Tuesday'\n when 'Wed' then 'Wednesday'\n when 'Thu' then 'Thursday'\n when 'Fri' then 'Friday'\n when 'Sat' then 'Saturday'\n when 'Sun' then 'Sunday'\n end\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.4591439, "supported_languages": null}, "macro.dbt_date.bigquery__day_name": {"name": "bigquery__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.bigquery__day_name", "macro_sql": "\n\n{%- macro bigquery__day_name(date, short) -%}\n{%- set f = '%a' if short else '%A' -%}\n format_date('{{ f }}', cast({{ date }} as date))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.45947, "supported_languages": null}, "macro.dbt_date.postgres__day_name": {"name": "postgres__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.postgres__day_name", "macro_sql": "\n\n{%- macro postgres__day_name(date, short) -%}\n{# FM = Fill mode, which suppresses padding blanks #}\n{%- set f = 'FMDy' if short else 'FMDay' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.459758, "supported_languages": null}, "macro.dbt_date.duckdb__day_name": {"name": "duckdb__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.duckdb__day_name", "macro_sql": "\n\n{%- macro duckdb__day_name(date, short) -%}\n {%- if short -%}\n substr(dayname({{ date }}), 1, 3)\n {%- else -%}\n dayname({{ date }})\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.4618812, "supported_languages": null}, "macro.dbt_date.spark__day_name": {"name": "spark__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.spark__day_name", "macro_sql": "\n\n{%- macro spark__day_name(date, short) -%}\n{%- set f = 'E' if short else 'EEEE' -%}\n date_format({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.46226, "supported_languages": null}, "macro.dbt_date.trino__day_name": {"name": "trino__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.trino__day_name", "macro_sql": "\n\n{%- macro trino__day_name(date, short) -%}\n{%- set f = 'a' if short else 'W' -%}\n date_format({{ date }}, '%{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.463205, "supported_languages": null}, "macro.dbt_date.to_unixtimestamp": {"name": "to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.to_unixtimestamp", "macro_sql": "{%- macro to_unixtimestamp(timestamp) -%}\n {{ adapter.dispatch('to_unixtimestamp', 'dbt_date') (timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.bigquery__to_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.463991, "supported_languages": null}, "macro.dbt_date.default__to_unixtimestamp": {"name": "default__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.default__to_unixtimestamp", "macro_sql": "\n\n{%- macro default__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch', timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.464274, "supported_languages": null}, "macro.dbt_date.snowflake__to_unixtimestamp": {"name": "snowflake__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.snowflake__to_unixtimestamp", "macro_sql": "\n\n{%- macro snowflake__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch_seconds', timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.464444, "supported_languages": null}, "macro.dbt_date.bigquery__to_unixtimestamp": {"name": "bigquery__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.bigquery__to_unixtimestamp", "macro_sql": "\n\n{%- macro bigquery__to_unixtimestamp(timestamp) -%}\n unix_seconds({{ timestamp }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.464561, "supported_languages": null}, "macro.dbt_date.spark__to_unixtimestamp": {"name": "spark__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.spark__to_unixtimestamp", "macro_sql": "\n\n{%- macro spark__to_unixtimestamp(timestamp) -%}\n unix_timestamp({{ timestamp }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.464677, "supported_languages": null}, "macro.dbt_date.trino__to_unixtimestamp": {"name": "trino__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.trino__to_unixtimestamp", "macro_sql": "\n\n{%- macro trino__to_unixtimestamp(timestamp) -%}\n to_unixtime({{ timestamp }} AT TIME ZONE 'UTC')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.464787, "supported_languages": null}, "macro.dbt_date.n_days_away": {"name": "n_days_away", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_days_away.sql", "original_file_path": "macros/calendar_date/n_days_away.sql", "unique_id": "macro.dbt_date.n_days_away", "macro_sql": "{%- macro n_days_away(n, date=None, tz=None) -%}\n{{ dbt_date.n_days_ago(-1 * n, date, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.465069, "supported_languages": null}, "macro.dbt_date.week_start": {"name": "week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.week_start", "macro_sql": "{%- macro week_start(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_start', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.466452, "supported_languages": null}, "macro.dbt_date.default__week_start": {"name": "default__week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.default__week_start", "macro_sql": "{%- macro default__week_start(date) -%}\ncast({{ dbt.date_trunc('week', date) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.466927, "supported_languages": null}, "macro.dbt_date.snowflake__week_start": {"name": "snowflake__week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.snowflake__week_start", "macro_sql": "\n\n{%- macro snowflake__week_start(date) -%}\n {#\n Get the day of week offset: e.g. if the date is a Sunday,\n dbt_date.day_of_week returns 1, so we subtract 1 to get a 0 offset\n #}\n {% set off_set = dbt_date.day_of_week(date, isoweek=False) ~ \" - 1\" %}\n cast({{ dbt.dateadd(\"day\", \"-1 * (\" ~ off_set ~ \")\", date) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.day_of_week", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.4677582, "supported_languages": null}, "macro.dbt_date.postgres__week_start": {"name": "postgres__week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.postgres__week_start", "macro_sql": "\n\n{%- macro postgres__week_start(date) -%}\n-- Sunday as week start date\ncast({{ dbt.dateadd('day', -1, dbt.date_trunc('week', dbt.dateadd('day', 1, date))) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.468056, "supported_languages": null}, "macro.dbt_date.duckdb__week_start": {"name": "duckdb__week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.duckdb__week_start", "macro_sql": "\n\n{%- macro duckdb__week_start(date) -%}\n{{ return(dbt_date.postgres__week_start(date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.postgres__week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.4682171, "supported_languages": null}, "macro.dbt_date.iso_week_start": {"name": "iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.iso_week_start", "macro_sql": "{%- macro iso_week_start(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_start', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.4693902, "supported_languages": null}, "macro.dbt_date._iso_week_start": {"name": "_iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date._iso_week_start", "macro_sql": "{%- macro _iso_week_start(date, week_type) -%}\ncast({{ dbt.date_trunc(week_type, date) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.530111, "supported_languages": null}, "macro.dbt_date.default__iso_week_start": {"name": "default__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.default__iso_week_start", "macro_sql": "\n\n{%- macro default__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'isoweek') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.530605, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_start": {"name": "snowflake__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.snowflake__iso_week_start", "macro_sql": "\n\n{%- macro snowflake__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.5308, "supported_languages": null}, "macro.dbt_date.postgres__iso_week_start": {"name": "postgres__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.postgres__iso_week_start", "macro_sql": "\n\n{%- macro postgres__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.549066, "supported_languages": null}, "macro.dbt_date.duckdb__iso_week_start": {"name": "duckdb__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.duckdb__iso_week_start", "macro_sql": "\n\n{%- macro duckdb__iso_week_start(date) -%}\n{{ return(dbt_date.postgres__iso_week_start(date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.postgres__iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.5492759, "supported_languages": null}, "macro.dbt_date.spark__iso_week_start": {"name": "spark__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.spark__iso_week_start", "macro_sql": "\n\n{%- macro spark__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.549428, "supported_languages": null}, "macro.dbt_date.trino__iso_week_start": {"name": "trino__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.trino__iso_week_start", "macro_sql": "\n\n{%- macro trino__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.549579, "supported_languages": null}, "macro.dbt_date.n_days_ago": {"name": "n_days_ago", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_days_ago.sql", "original_file_path": "macros/calendar_date/n_days_ago.sql", "unique_id": "macro.dbt_date.n_days_ago", "macro_sql": "{%- macro n_days_ago(n, date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{%- set n = n|int -%}\ncast({{ dbt.dateadd('day', -1 * n, dt) }} as date)\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.5504699, "supported_languages": null}, "macro.dbt_date.last_week": {"name": "last_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_week.sql", "original_file_path": "macros/calendar_date/last_week.sql", "unique_id": "macro.dbt_date.last_week", "macro_sql": "{%- macro last_week(tz=None) -%}\n{{ dbt_date.n_weeks_ago(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_weeks_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.551119, "supported_languages": null}, "macro.dbt_date.now": {"name": "now", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/now.sql", "original_file_path": "macros/calendar_date/now.sql", "unique_id": "macro.dbt_date.now", "macro_sql": "{%- macro now(tz=None) -%}\n{{ dbt_date.convert_timezone(dbt.current_timestamp(), tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.convert_timezone", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.55138, "supported_languages": null}, "macro.dbt_date.periods_since": {"name": "periods_since", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/periods_since.sql", "original_file_path": "macros/calendar_date/periods_since.sql", "unique_id": "macro.dbt_date.periods_since", "macro_sql": "{%- macro periods_since(date_col, period_name='day', tz=None) -%}\n{{ dbt.datediff(date_col, dbt_date.now(tz), period_name) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.560312, "supported_languages": null}, "macro.dbt_date.today": {"name": "today", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/today.sql", "original_file_path": "macros/calendar_date/today.sql", "unique_id": "macro.dbt_date.today", "macro_sql": "{%- macro today(tz=None) -%}\ncast({{ dbt_date.now(tz) }} as date)\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.5606122, "supported_languages": null}, "macro.dbt_date.last_month": {"name": "last_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_month.sql", "original_file_path": "macros/calendar_date/last_month.sql", "unique_id": "macro.dbt_date.last_month", "macro_sql": "{%- macro last_month(tz=None) -%}\n{{ dbt_date.n_months_ago(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_months_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.560828, "supported_languages": null}, "macro.dbt_date.day_of_year": {"name": "day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.day_of_year", "macro_sql": "{%- macro day_of_year(date) -%}\n{{ adapter.dispatch('day_of_year', 'dbt_date') (date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__day_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.561451, "supported_languages": null}, "macro.dbt_date.default__day_of_year": {"name": "default__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.default__day_of_year", "macro_sql": "\n\n{%- macro default__day_of_year(date) -%}\n {{ dbt_date.date_part('dayofyear', date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.561615, "supported_languages": null}, "macro.dbt_date.postgres__day_of_year": {"name": "postgres__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.postgres__day_of_year", "macro_sql": "\n\n{%- macro postgres__day_of_year(date) -%}\n {{ dbt_date.date_part('doy', date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.5622342, "supported_languages": null}, "macro.dbt_date.redshift__day_of_year": {"name": "redshift__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.redshift__day_of_year", "macro_sql": "\n\n{%- macro redshift__day_of_year(date) -%}\n cast({{ dbt_date.date_part('dayofyear', date) }} as {{ dbt.type_bigint() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.562491, "supported_languages": null}, "macro.dbt_date.spark__day_of_year": {"name": "spark__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.spark__day_of_year", "macro_sql": "\n\n{%- macro spark__day_of_year(date) -%}\n dayofyear({{ date }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.5627542, "supported_languages": null}, "macro.dbt_date.trino__day_of_year": {"name": "trino__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.trino__day_of_year", "macro_sql": "\n\n{%- macro trino__day_of_year(date) -%}\n {{ dbt_date.date_part('day_of_year', date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.562913, "supported_languages": null}, "macro.dbt_date.round_timestamp": {"name": "round_timestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/round_timestamp.sql", "original_file_path": "macros/calendar_date/round_timestamp.sql", "unique_id": "macro.dbt_date.round_timestamp", "macro_sql": "{% macro round_timestamp(timestamp) %}\n {{ dbt.date_trunc(\"day\", dbt.dateadd(\"hour\", 12, timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.563194, "supported_languages": null}, "macro.dbt_date.from_unixtimestamp": {"name": "from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.from_unixtimestamp", "macro_sql": "{%- macro from_unixtimestamp(epochs, format=\"seconds\") -%}\n {{ adapter.dispatch('from_unixtimestamp', 'dbt_date') (epochs, format) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.bigquery__from_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.76467, "supported_languages": null}, "macro.dbt_date.default__from_unixtimestamp": {"name": "default__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.default__from_unixtimestamp", "macro_sql": "\n\n{%- macro default__from_unixtimestamp(epochs, format=\"seconds\") -%}\n {%- if format != \"seconds\" -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n to_timestamp({{ epochs }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.765204, "supported_languages": null}, "macro.dbt_date.postgres__from_unixtimestamp": {"name": "postgres__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.postgres__from_unixtimestamp", "macro_sql": "\n\n{%- macro postgres__from_unixtimestamp(epochs, format=\"seconds\") -%}\n {%- if format != \"seconds\" -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n cast(to_timestamp({{ epochs }}) at time zone 'UTC' as timestamp)\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.765495, "supported_languages": null}, "macro.dbt_date.snowflake__from_unixtimestamp": {"name": "snowflake__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.snowflake__from_unixtimestamp", "macro_sql": "\n\n{%- macro snowflake__from_unixtimestamp(epochs, format) -%}\n {%- if format == \"seconds\" -%}\n {%- set scale = 0 -%}\n {%- elif format == \"milliseconds\" -%}\n {%- set scale = 3 -%}\n {%- elif format == \"microseconds\" -%}\n {%- set scale = 6 -%}\n {%- else -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n to_timestamp_ntz({{ epochs }}, {{ scale }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.7660868, "supported_languages": null}, "macro.dbt_date.bigquery__from_unixtimestamp": {"name": "bigquery__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.bigquery__from_unixtimestamp", "macro_sql": "\n\n{%- macro bigquery__from_unixtimestamp(epochs, format) -%}\n {%- if format == \"seconds\" -%}\n timestamp_seconds({{ epochs }})\n {%- elif format == \"milliseconds\" -%}\n timestamp_millis({{ epochs }})\n {%- elif format == \"microseconds\" -%}\n timestamp_micros({{ epochs }})\n {%- else -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.78196, "supported_languages": null}, "macro.dbt_date.trino__from_unixtimestamp": {"name": "trino__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.trino__from_unixtimestamp", "macro_sql": "\n\n{%- macro trino__from_unixtimestamp(epochs, format) -%}\n {%- if format == \"seconds\" -%}\n cast(from_unixtime({{ epochs }}) AT TIME ZONE 'UTC' as {{ dbt.type_timestamp() }})\n {%- elif format == \"milliseconds\" -%}\n cast(from_unixtime_nanos({{ epochs }} * pow(10, 6)) AT TIME ZONE 'UTC' as {{ dbt.type_timestamp() }})\n {%- elif format == \"microseconds\" -%}\n cast(from_unixtime_nanos({{ epochs }} * pow(10, 3)) AT TIME ZONE 'UTC' as {{ dbt.type_timestamp() }})\n {%- elif format == \"nanoseconds\" -%}\n cast(from_unixtime_nanos({{ epochs }}) AT TIME ZONE 'UTC' as {{ dbt.type_timestamp() }})\n {%- else -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.783038, "supported_languages": null}, "macro.dbt_date.duckdb__from_unixtimestamp": {"name": "duckdb__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.duckdb__from_unixtimestamp", "macro_sql": "\n\n\n{%- macro duckdb__from_unixtimestamp(epochs, format=\"seconds\") -%}\n {%- if format != \"seconds\" -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n cast(to_timestamp({{ epochs }}) at time zone 'UTC' as timestamp)\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951591.783444, "supported_languages": null}, "macro.dbt_date.n_months_ago": {"name": "n_months_ago", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_months_ago.sql", "original_file_path": "macros/calendar_date/n_months_ago.sql", "unique_id": "macro.dbt_date.n_months_ago", "macro_sql": "{%- macro n_months_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('month',\n dbt.dateadd('month', -1 * n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.046477, "supported_languages": null}, "macro.dbt_date.date_part": {"name": "date_part", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "unique_id": "macro.dbt_date.date_part", "macro_sql": "{% macro date_part(datepart, date) -%}\n {{ adapter.dispatch('date_part', 'dbt_date') (datepart, date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.bigquery__date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.0472379, "supported_languages": null}, "macro.dbt_date.default__date_part": {"name": "default__date_part", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "unique_id": "macro.dbt_date.default__date_part", "macro_sql": "{% macro default__date_part(datepart, date) -%}\n date_part('{{ datepart }}', {{ date }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.0474088, "supported_languages": null}, "macro.dbt_date.bigquery__date_part": {"name": "bigquery__date_part", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "unique_id": "macro.dbt_date.bigquery__date_part", "macro_sql": "{% macro bigquery__date_part(datepart, date) -%}\n extract({{ datepart }} from {{ date }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.0475578, "supported_languages": null}, "macro.dbt_date.trino__date_part": {"name": "trino__date_part", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "unique_id": "macro.dbt_date.trino__date_part", "macro_sql": "{% macro trino__date_part(datepart, date) -%}\n extract({{ datepart }} from {{ date }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.047702, "supported_languages": null}, "macro.dbt_date.n_weeks_away": {"name": "n_weeks_away", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_weeks_away.sql", "original_file_path": "macros/calendar_date/n_weeks_away.sql", "unique_id": "macro.dbt_date.n_weeks_away", "macro_sql": "{%- macro n_weeks_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('week',\n dbt.dateadd('week', n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.048109, "supported_languages": null}, "macro.dbt_date.day_of_month": {"name": "day_of_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "unique_id": "macro.dbt_date.day_of_month", "macro_sql": "{%- macro day_of_month(date) -%}\n{{ dbt_date.date_part('day', date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.0483499, "supported_languages": null}, "macro.dbt_date.redshift__day_of_month": {"name": "redshift__day_of_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "unique_id": "macro.dbt_date.redshift__day_of_month", "macro_sql": "\n\n{%- macro redshift__day_of_month(date) -%}\ncast({{ dbt_date.date_part('day', date) }} as {{ dbt.type_bigint() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.048556, "supported_languages": null}, "macro.dbt_date.yesterday": {"name": "yesterday", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/yesterday.sql", "original_file_path": "macros/calendar_date/yesterday.sql", "unique_id": "macro.dbt_date.yesterday", "macro_sql": "{%- macro yesterday(date=None, tz=None) -%}\n{{ dbt_date.n_days_ago(1, date, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.048795, "supported_languages": null}, "macro.dbt_date.day_of_week": {"name": "day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.day_of_week", "macro_sql": "{%- macro day_of_week(date, isoweek=true) -%}\n{{ adapter.dispatch('day_of_week', 'dbt_date') (date, isoweek) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.bigquery__day_of_week"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.05272, "supported_languages": null}, "macro.dbt_date.default__day_of_week": {"name": "default__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.default__day_of_week", "macro_sql": "\n\n{%- macro default__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (0) to Monday (1)\n when {{ dow }} = 0 then 7\n else {{ dow }}\n end\n {%- else -%}\n {{ dow }} + 1\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.05307, "supported_languages": null}, "macro.dbt_date.snowflake__day_of_week": {"name": "snowflake__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.snowflake__day_of_week", "macro_sql": "\n\n{%- macro snowflake__day_of_week(date, isoweek) -%}\n\n {%- if isoweek -%}\n {%- set dow_part = 'dayofweekiso' -%}\n {{ dbt_date.date_part(dow_part, date) }}\n {%- else -%}\n {%- set dow_part = 'dayofweek' -%}\n case\n when {{ dbt_date.date_part(dow_part, date) }} = 7 then 1\n else {{ dbt_date.date_part(dow_part, date) }} + 1\n end\n {%- endif -%}\n\n\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.0535092, "supported_languages": null}, "macro.dbt_date.bigquery__day_of_week": {"name": "bigquery__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.bigquery__day_of_week", "macro_sql": "\n\n{%- macro bigquery__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (1) to Monday (2)\n when {{ dow }} = 1 then 7\n else {{ dow }} - 1\n end\n {%- else -%}\n {{ dow }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.0546591, "supported_languages": null}, "macro.dbt_date.postgres__day_of_week": {"name": "postgres__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.postgres__day_of_week", "macro_sql": "\n\n\n{%- macro postgres__day_of_week(date, isoweek) -%}\n\n {%- if isoweek -%}\n {%- set dow_part = 'isodow' -%}\n -- Monday(1) to Sunday (7)\n cast({{ dbt_date.date_part(dow_part, date) }} as {{ dbt.type_int() }})\n {%- else -%}\n {%- set dow_part = 'dow' -%}\n -- Sunday(1) to Saturday (7)\n cast({{ dbt_date.date_part(dow_part, date) }} + 1 as {{ dbt.type_int() }})\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.055254, "supported_languages": null}, "macro.dbt_date.redshift__day_of_week": {"name": "redshift__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.redshift__day_of_week", "macro_sql": "\n\n\n{%- macro redshift__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (0) to Monday (1)\n when {{ dow }} = 0 then 7\n else cast({{ dow }} as {{ dbt.type_bigint() }})\n end\n {%- else -%}\n cast({{ dow }} + 1 as {{ dbt.type_bigint() }})\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.055663, "supported_languages": null}, "macro.dbt_date.duckdb__day_of_week": {"name": "duckdb__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.duckdb__day_of_week", "macro_sql": "\n\n{%- macro duckdb__day_of_week(date, isoweek) -%}\n{{ return(dbt_date.postgres__day_of_week(date, isoweek)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.postgres__day_of_week"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.055855, "supported_languages": null}, "macro.dbt_date.spark__day_of_week": {"name": "spark__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.spark__day_of_week", "macro_sql": "\n\n\n{%- macro spark__day_of_week(date, isoweek) -%}\n\n {%- set dow = \"dayofweek_iso\" if isoweek else \"dayofweek\" -%}\n\n {{ dbt_date.date_part(dow, date) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.0560918, "supported_languages": null}, "macro.dbt_date.trino__day_of_week": {"name": "trino__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.trino__day_of_week", "macro_sql": "\n\n\n{%- macro trino__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('day_of_week', date) -%}\n\n {%- if isoweek -%}\n {{ dow }}\n {%- else -%}\n case\n when {{ dow }} = 7 then 1\n else {{ dow }} + 1\n end\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.0563872, "supported_languages": null}, "macro.dbt_date.iso_week_end": {"name": "iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date.iso_week_end", "macro_sql": "{%- macro iso_week_end(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_end', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.056969, "supported_languages": null}, "macro.dbt_date._iso_week_end": {"name": "_iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date._iso_week_end", "macro_sql": "{%- macro _iso_week_end(date, week_type) -%}\n{%- set dt = dbt_date.iso_week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.iso_week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.05723, "supported_languages": null}, "macro.dbt_date.default__iso_week_end": {"name": "default__iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date.default__iso_week_end", "macro_sql": "\n\n{%- macro default__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'isoweek') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.0573921, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_end": {"name": "snowflake__iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date.snowflake__iso_week_end", "macro_sql": "\n\n{%- macro snowflake__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'weekiso') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.057548, "supported_languages": null}, "macro.dbt_date.n_weeks_ago": {"name": "n_weeks_ago", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_weeks_ago.sql", "original_file_path": "macros/calendar_date/n_weeks_ago.sql", "unique_id": "macro.dbt_date.n_weeks_ago", "macro_sql": "{%- macro n_weeks_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('week',\n dbt.dateadd('week', -1 * n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.057954, "supported_languages": null}, "macro.dbt_date.month_name": {"name": "month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.month_name", "macro_sql": "{%- macro month_name(date, short=True) -%}\n {{ adapter.dispatch('month_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.bigquery__month_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.062198, "supported_languages": null}, "macro.dbt_date.default__month_name": {"name": "default__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.default__month_name", "macro_sql": "\n\n{%- macro default__month_name(date, short) -%}\n{%- set f = 'MON' if short else 'MONTH' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.063977, "supported_languages": null}, "macro.dbt_date.bigquery__month_name": {"name": "bigquery__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.bigquery__month_name", "macro_sql": "\n\n{%- macro bigquery__month_name(date, short) -%}\n{%- set f = '%b' if short else '%B' -%}\n format_date('{{ f }}', cast({{ date }} as date))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.0644321, "supported_languages": null}, "macro.dbt_date.snowflake__month_name": {"name": "snowflake__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.snowflake__month_name", "macro_sql": "\n\n{%- macro snowflake__month_name(date, short) -%}\n{%- set f = 'MON' if short else 'MMMM' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.0649338, "supported_languages": null}, "macro.dbt_date.postgres__month_name": {"name": "postgres__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.postgres__month_name", "macro_sql": "\n\n{%- macro postgres__month_name(date, short) -%}\n{# FM = Fill mode, which suppresses padding blanks #}\n{%- set f = 'FMMon' if short else 'FMMonth' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.065254, "supported_languages": null}, "macro.dbt_date.duckdb__month_name": {"name": "duckdb__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.duckdb__month_name", "macro_sql": "\n\n\n{%- macro duckdb__month_name(date, short) -%}\n {%- if short -%}\n substr(monthname({{ date }}), 1, 3)\n {%- else -%}\n monthname({{ date }})\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.065485, "supported_languages": null}, "macro.dbt_date.spark__month_name": {"name": "spark__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.spark__month_name", "macro_sql": "\n\n{%- macro spark__month_name(date, short) -%}\n{%- set f = 'MMM' if short else 'MMMM' -%}\n date_format({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.065826, "supported_languages": null}, "macro.dbt_date.trino__month_name": {"name": "trino__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.trino__month_name", "macro_sql": "\n\n{%- macro trino__month_name(date, short) -%}\n{%- set f = 'b' if short else 'M' -%}\n date_format({{ date }}, '%{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.066279, "supported_languages": null}, "macro.dbt_date.last_month_name": {"name": "last_month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_month_name.sql", "original_file_path": "macros/calendar_date/last_month_name.sql", "unique_id": "macro.dbt_date.last_month_name", "macro_sql": "{%- macro last_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.last_month(tz), short=short) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.month_name", "macro.dbt_date.last_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.066981, "supported_languages": null}, "macro.dbt_date.week_of_year": {"name": "week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "unique_id": "macro.dbt_date.week_of_year", "macro_sql": "{%- macro week_of_year(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_of_year', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.0720031, "supported_languages": null}, "macro.dbt_date.default__week_of_year": {"name": "default__week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "unique_id": "macro.dbt_date.default__week_of_year", "macro_sql": "{%- macro default__week_of_year(date) -%}\ncast({{ dbt_date.date_part('week', date) }} as {{ dbt.type_int() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.073709, "supported_languages": null}, "macro.dbt_date.postgres__week_of_year": {"name": "postgres__week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "unique_id": "macro.dbt_date.postgres__week_of_year", "macro_sql": "\n\n{%- macro postgres__week_of_year(date) -%}\n{# postgresql 'week' returns isoweek. Use to_char instead.\n WW = the first week starts on the first day of the year #}\ncast(to_char({{ date }}, 'WW') as {{ dbt.type_int() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.075935, "supported_languages": null}, "macro.dbt_date.duckdb__week_of_year": {"name": "duckdb__week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "unique_id": "macro.dbt_date.duckdb__week_of_year", "macro_sql": "\n\n{%- macro duckdb__week_of_year(date) -%}\ncast(ceil(dayofyear({{ date }}) / 7) as int)\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.076409, "supported_languages": null}, "macro.dbt_date.convert_timezone": {"name": "convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.convert_timezone", "macro_sql": "{%- macro convert_timezone(column, target_tz=None, source_tz=None) -%}\n{%- set source_tz = \"UTC\" if not source_tz else source_tz -%}\n{%- set target_tz = var(\"dbt_date:time_zone\") if not target_tz else target_tz -%}\n{{ adapter.dispatch('convert_timezone', 'dbt_date') (column, target_tz, source_tz) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.bigquery__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.0942342, "supported_languages": null}, "macro.dbt_date.default__convert_timezone": {"name": "default__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.default__convert_timezone", "macro_sql": "{% macro default__convert_timezone(column, target_tz, source_tz) -%}\nconvert_timezone('{{ source_tz }}', '{{ target_tz }}',\n cast({{ column }} as {{ dbt.type_timestamp() }})\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.094629, "supported_languages": null}, "macro.dbt_date.bigquery__convert_timezone": {"name": "bigquery__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.bigquery__convert_timezone", "macro_sql": "{%- macro bigquery__convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.0957818, "supported_languages": null}, "macro.dbt_date.postgres__convert_timezone": {"name": "postgres__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.postgres__convert_timezone", "macro_sql": "{% macro postgres__convert_timezone(column, target_tz, source_tz) -%}\ncast(\n cast({{ column }} as {{ dbt.type_timestamp() }})\n at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ dbt.type_timestamp() }}\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.0991092, "supported_languages": null}, "macro.dbt_date.redshift__convert_timezone": {"name": "redshift__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.redshift__convert_timezone", "macro_sql": "{%- macro redshift__convert_timezone(column, target_tz, source_tz) -%}\n{{ return(dbt_date.default__convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.default__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.112211, "supported_languages": null}, "macro.dbt_date.duckdb__convert_timezone": {"name": "duckdb__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.duckdb__convert_timezone", "macro_sql": "{% macro duckdb__convert_timezone(column, target_tz, source_tz) -%}\n{{ return(dbt_date.postgres__convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.postgres__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.113013, "supported_languages": null}, "macro.dbt_date.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.spark__convert_timezone", "macro_sql": "{%- macro spark__convert_timezone(column, target_tz, source_tz) -%}\nfrom_utc_timestamp(\n to_utc_timestamp({{ column }}, '{{ source_tz }}'),\n '{{ target_tz }}'\n )\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.115731, "supported_languages": null}, "macro.dbt_date.trino__convert_timezone": {"name": "trino__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.trino__convert_timezone", "macro_sql": "{%- macro trino__convert_timezone(column, target_tz, source_tz) -%}\n cast((at_timezone(with_timezone(cast({{ column }} as {{ dbt.type_timestamp() }}), '{{ source_tz }}'), '{{ target_tz }}')) as {{ dbt.type_timestamp() }})\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1173918, "supported_languages": null}, "macro.dbt_date.n_months_away": {"name": "n_months_away", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_months_away.sql", "original_file_path": "macros/calendar_date/n_months_away.sql", "unique_id": "macro.dbt_date.n_months_away", "macro_sql": "{%- macro n_months_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('month',\n dbt.dateadd('month', n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.119909, "supported_languages": null}, "macro.dbt_date.iso_week_of_year": {"name": "iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.iso_week_of_year", "macro_sql": "{%- macro iso_week_of_year(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_of_year', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.121331, "supported_languages": null}, "macro.dbt_date._iso_week_of_year": {"name": "_iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date._iso_week_of_year", "macro_sql": "{%- macro _iso_week_of_year(date, week_type) -%}\ncast({{ dbt_date.date_part(week_type, date) }} as {{ dbt.type_int() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.121742, "supported_languages": null}, "macro.dbt_date.default__iso_week_of_year": {"name": "default__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.default__iso_week_of_year", "macro_sql": "\n\n{%- macro default__iso_week_of_year(date) -%}\n{{ dbt_date._iso_week_of_year(date, 'isoweek') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.122, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_of_year": {"name": "snowflake__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.snowflake__iso_week_of_year", "macro_sql": "\n\n{%- macro snowflake__iso_week_of_year(date) -%}\n{{ dbt_date._iso_week_of_year(date, 'weekiso') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1238139, "supported_languages": null}, "macro.dbt_date.postgres__iso_week_of_year": {"name": "postgres__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.postgres__iso_week_of_year", "macro_sql": "\n\n{%- macro postgres__iso_week_of_year(date) -%}\n-- postgresql week is isoweek, the first week of a year containing January 4 of that year.\n{{ dbt_date._iso_week_of_year(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1242502, "supported_languages": null}, "macro.dbt_date.duckdb__iso_week_of_year": {"name": "duckdb__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.duckdb__iso_week_of_year", "macro_sql": "\n\n{%- macro duckdb__iso_week_of_year(date) -%}\n{{ return(dbt_date.postgres__iso_week_of_year(date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.postgres__iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1248388, "supported_languages": null}, "macro.dbt_date.spark__iso_week_of_year": {"name": "spark__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.spark__iso_week_of_year", "macro_sql": "\n\n{%- macro spark__iso_week_of_year(date) -%}\n{{ dbt_date._iso_week_of_year(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1251929, "supported_languages": null}, "macro.dbt_date.trino__iso_week_of_year": {"name": "trino__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.trino__iso_week_of_year", "macro_sql": "\n\n{%- macro trino__iso_week_of_year(date) -%}\n{{ dbt_date._iso_week_of_year(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1285021, "supported_languages": null}, "macro.dbt_date.week_end": {"name": "week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.week_end", "macro_sql": "{%- macro week_end(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_end', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.129768, "supported_languages": null}, "macro.dbt_date.default__week_end": {"name": "default__week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.default__week_end", "macro_sql": "{%- macro default__week_end(date) -%}\n{{ last_day(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.129958, "supported_languages": null}, "macro.dbt_date.snowflake__week_end": {"name": "snowflake__week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.snowflake__week_end", "macro_sql": "\n\n{%- macro snowflake__week_end(date) -%}\n{%- set dt = dbt_date.week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.130187, "supported_languages": null}, "macro.dbt_date.postgres__week_end": {"name": "postgres__week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.postgres__week_end", "macro_sql": "\n\n{%- macro postgres__week_end(date) -%}\n{%- set dt = dbt_date.week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.130404, "supported_languages": null}, "macro.dbt_date.duckdb__week_end": {"name": "duckdb__week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.duckdb__week_end", "macro_sql": "\n\n{%- macro duckdb__week_end(date) -%}\n{{ return(dbt_date.postgres__week_end(date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.postgres__week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.130563, "supported_languages": null}, "macro.dbt_date.next_month_number": {"name": "next_month_number", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_month_number.sql", "original_file_path": "macros/calendar_date/next_month_number.sql", "unique_id": "macro.dbt_date.next_month_number", "macro_sql": "{%- macro next_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.next_month(tz)) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_date.next_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1310568, "supported_languages": null}, "macro.dbt_date.last_month_number": {"name": "last_month_number", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_month_number.sql", "original_file_path": "macros/calendar_date/last_month_number.sql", "unique_id": "macro.dbt_date.last_month_number", "macro_sql": "{%- macro last_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.last_month(tz)) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_date.last_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.131659, "supported_languages": null}, "macro.google_ads_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.google_ads_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_active\", \"datatype\": \"boolean\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.133141, "supported_languages": null}, "macro.google_ads_source.google_ads_add_pass_through_columns": {"name": "google_ads_add_pass_through_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/google_ads_add_pass_through_columns.sql", "original_file_path": "macros/google_ads_add_pass_through_columns.sql", "unique_id": "macro.google_ads_source.google_ads_add_pass_through_columns", "macro_sql": "{% macro google_ads_add_pass_through_columns(base_columns, pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for column in pass_through_fields %}\n\n {% if column is mapping %}\n {% set col_name = column.alias|default(column.name)|lower %}\n \n {% if col_name not in except_fields %}\n {% if column.alias %}\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% else %}\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% else %}\n {% if column|lower not in except_fields %}\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1354141, "supported_languages": null}, "macro.google_ads_source.google_ads_extract_url_parameter": {"name": "google_ads_extract_url_parameter", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/google_ads_extract_url_parameters.sql", "original_file_path": "macros/google_ads_extract_url_parameters.sql", "unique_id": "macro.google_ads_source.google_ads_extract_url_parameter", "macro_sql": "{% macro google_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('google_ads_extract_url_parameter', 'google_ads_source') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.google_ads_source.default__google_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1358888, "supported_languages": null}, "macro.google_ads_source.default__google_ads_extract_url_parameter": {"name": "default__google_ads_extract_url_parameter", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/google_ads_extract_url_parameters.sql", "original_file_path": "macros/google_ads_extract_url_parameters.sql", "unique_id": "macro.google_ads_source.default__google_ads_extract_url_parameter", "macro_sql": "{% macro default__google_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1360571, "supported_languages": null}, "macro.google_ads_source.spark__google_ads_extract_url_parameter": {"name": "spark__google_ads_extract_url_parameter", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/google_ads_extract_url_parameters.sql", "original_file_path": "macros/google_ads_extract_url_parameters.sql", "unique_id": "macro.google_ads_source.spark__google_ads_extract_url_parameter", "macro_sql": "{% macro spark__google_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1362739, "supported_languages": null}, "macro.google_ads_source.get_ad_group_stats_columns": {"name": "get_ad_group_stats_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_ad_group_stats_columns.sql", "original_file_path": "macros/get_ad_group_stats_columns.sql", "unique_id": "macro.google_ads_source.get_ad_group_stats_columns", "macro_sql": "{% macro get_ad_group_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversions\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ google_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('google_ads__ad_group_stats_passthrough_metrics'), except_fields=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.google_ads_source.google_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.138936, "supported_languages": null}, "macro.google_ads_source.google_ads_fill_pass_through_columns": {"name": "google_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/google_ads_fill_pass_through_columns.sql", "original_file_path": "macros/google_ads_fill_pass_through_columns.sql", "unique_id": "macro.google_ads_source.google_ads_fill_pass_through_columns", "macro_sql": "{% macro google_ads_fill_pass_through_columns(pass_through_fields, except=[]) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if (field.alias if field.alias else field.name) not in except %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.140564, "supported_languages": null}, "macro.google_ads_source.get_campaign_stats_columns": {"name": "get_campaign_stats_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_campaign_stats_columns.sql", "original_file_path": "macros/get_campaign_stats_columns.sql", "unique_id": "macro.google_ads_source.get_campaign_stats_columns", "macro_sql": "{% macro get_campaign_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversions\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ google_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('google_ads__campaign_stats_passthrough_metrics'), except_fields=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.google_ads_source.google_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1435971, "supported_languages": null}, "macro.google_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.google_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"advertising_channel_subtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertising_channel_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"end_date\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_date\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_url_template\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_active\", \"datatype\": \"boolean\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.145746, "supported_languages": null}, "macro.google_ads_source.get_ad_stats_columns": {"name": "get_ad_stats_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_ad_stats_columns.sql", "original_file_path": "macros/get_ad_stats_columns.sql", "unique_id": "macro.google_ads_source.get_ad_stats_columns", "macro_sql": "{% macro get_ad_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_ad_group_criterion\", \"datatype\": dbt.type_string()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversions\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ google_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('google_ads__ad_stats_passthrough_metrics'), except_fields=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.google_ads_source.google_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.149492, "supported_languages": null}, "macro.google_ads_source.get_account_history_columns": {"name": "get_account_history_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "unique_id": "macro.google_ads_source.get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"auto_tagging_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"descriptive_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_active\", \"datatype\": \"boolean\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.152574, "supported_languages": null}, "macro.google_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.google_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"display_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"final_urls\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_active\", \"datatype\": \"boolean\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1551082, "supported_languages": null}, "macro.google_ads_source.get_ad_group_criterion_history_columns": {"name": "get_ad_group_criterion_history_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_ad_group_criterion_history_columns.sql", "original_file_path": "macros/get_ad_group_criterion_history_columns.sql", "unique_id": "macro.google_ads_source.get_ad_group_criterion_history_columns", "macro_sql": "{% macro get_ad_group_criterion_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"base_campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_active\", \"datatype\": \"boolean\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.156647, "supported_languages": null}, "macro.google_ads_source.get_keyword_stats_columns": {"name": "get_keyword_stats_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_keyword_stats_columns.sql", "original_file_path": "macros/get_keyword_stats_columns.sql", "unique_id": "macro.google_ads_source.get_keyword_stats_columns", "macro_sql": "{% macro get_keyword_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_criterion_criterion_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversions\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ google_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('google_ads__keyword_stats_passthrough_metrics'), except_fields=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.google_ads_source.google_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.158895, "supported_languages": null}, "macro.google_ads_source.get_account_stats_columns": {"name": "get_account_stats_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_account_stats_columns.sql", "original_file_path": "macros/get_account_stats_columns.sql", "unique_id": "macro.google_ads_source.get_account_stats_columns", "macro_sql": "{% macro get_account_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversions\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ google_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('google_ads__account_stats_passthrough_metrics'), except_fields=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.google_ads_source.google_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.160854, "supported_languages": null}, "macro.apple_search_ads.apple_search_ads_persist_pass_through_columns": {"name": "apple_search_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "apple_search_ads", "path": "macros/apple_search_ads_persist_pass_through_columns.sql", "original_file_path": "macros/apple_search_ads_persist_pass_through_columns.sql", "unique_id": "macro.apple_search_ads.apple_search_ads_persist_pass_through_columns", "macro_sql": "{% macro apple_search_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, exclude_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n {% if field_name not in exclude_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field_name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.162297, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.162785, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1638951, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.164078, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.164256, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.164431, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.164593, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.164767, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.174032, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.175054, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1821692, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.183264, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.190917, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.191464, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.191757, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1922932, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.192971, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1933398, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.193744, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.193863, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.193975, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.1940842, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.194752, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.198084, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.200602, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.201611, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.2027562, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.203449, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.203729, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.2040188, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.204187, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.204512, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.227906, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.22851, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.228993, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.2291908, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.238882, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.248671, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.257386, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.258525, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.2591739, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.2594712, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.259646, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.260163, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.2603478, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.261858, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.263362, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.2652318, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.2673202, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.269666, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.270495, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.279905, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.318733, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.319442, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.33377, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.3437161, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.346536, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.349812, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.350017, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.350198, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.3510358, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.359989, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.360217, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.422744, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.4659772, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.475807, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.476234, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.478858, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.49203, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.492297, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.492595, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.497279, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.4981859, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.498637, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.5231, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.535733, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.53597, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.6364841, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.825269, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.861492, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.86368, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.86415, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.864325, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.864547, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.8651478, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.8653371, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.8661308, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.866343, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.8664849, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.866838, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.866955, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.8670652, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.8676312, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.8680801, "supported_languages": null}, "macro.ad_reporting.is_enabled": {"name": "is_enabled", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/is_enabled.sql", "original_file_path": "macros/is_enabled.sql", "unique_id": "macro.ad_reporting.is_enabled", "macro_sql": "{% macro is_enabled(enabled_packages) %}\n\n{% if enabled_packages != [] %}\n {% set is_enabled = True %}\n{% else %}\n {% set is_enabled = False %}\n{% endif %}\n{{ return(is_enabled) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "This macro takes in a list of packages and determines if there is at least one package, if there is, it returns True, else false.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "enabled_packages", "type": "list", "description": "List of packages enabled where each package name is a string."}], "created_at": 1731951600.34094, "supported_languages": null}, "macro.ad_reporting.get_date_from_timestamp": {"name": "get_date_from_timestamp", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "unique_id": "macro.ad_reporting.get_date_from_timestamp", "macro_sql": "{% macro get_date_from_timestamp(column) %}\n {{ return(adapter.dispatch('get_date_from_timestamp') (column)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.ad_reporting.bigquery__get_date_from_timestamp"]}, "description": "This macro takes a column of type timestamp or forces the column into a timestamp (depending on the data warehouse) and extracts the date in the format of e.g. 2022-01-01.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "column", "type": "string", "description": "Specifies the column of type timestamp to extract the date from."}], "created_at": 1731951600.33835, "supported_languages": null}, "macro.ad_reporting.default__get_date_from_timestamp": {"name": "default__get_date_from_timestamp", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "unique_id": "macro.ad_reporting.default__get_date_from_timestamp", "macro_sql": "{% macro default__get_date_from_timestamp(column) %}\n date({{column}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.869311, "supported_languages": null}, "macro.ad_reporting.bigquery__get_date_from_timestamp": {"name": "bigquery__get_date_from_timestamp", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "unique_id": "macro.ad_reporting.bigquery__get_date_from_timestamp", "macro_sql": "{% macro bigquery__get_date_from_timestamp(column) %}\n\n cast({{column}} as date)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.869531, "supported_languages": null}, "macro.ad_reporting.spark__get_date_from_timestamp": {"name": "spark__get_date_from_timestamp", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "unique_id": "macro.ad_reporting.spark__get_date_from_timestamp", "macro_sql": "{% macro spark__get_date_from_timestamp(column) %}\n\n to_date(to_timestamp({{ column }}),'yyyyMMdd')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.869728, "supported_languages": null}, "macro.ad_reporting.snowflake__get_date_from_timestamp": {"name": "snowflake__get_date_from_timestamp", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "unique_id": "macro.ad_reporting.snowflake__get_date_from_timestamp", "macro_sql": "{% macro snowflake__get_date_from_timestamp(column) %}\n\n to_date(to_timestamp({{ column }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.870121, "supported_languages": null}, "macro.ad_reporting.union_ctes": {"name": "union_ctes", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/union_ctes.sql", "original_file_path": "macros/union_ctes.sql", "unique_id": "macro.ad_reporting.union_ctes", "macro_sql": "{% macro union_ctes(ctes=[]) %}\n\n{% for cte in ctes %}\nselect * from {{ cte }}\n\n{% if not loop.last -%}\n union all\n{% endif -%}\n\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "This macro allows for the unioning (union all) of specified CTEs.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "ctes", "type": "list", "description": "List of strings for CTE names"}], "created_at": 1731951600.341318, "supported_languages": null}, "macro.ad_reporting.get_query": {"name": "get_query", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_query.sql", "original_file_path": "macros/get_query.sql", "unique_id": "macro.ad_reporting.get_query", "macro_sql": "{% macro get_query(platform=None, report_type=None, field_mapping=None, relation=None) %}\n\n{%- set consistent_fields = ['spend', 'impressions', 'clicks', 'conversions', 'conversions_value'] -%}\n{%- set account_fields = ['account_id', 'account_name'] -%}\n{%- set campaign_fields = ['campaign_id', 'campaign_name'] -%}\n{%- set ad_group_fields = ['ad_group_id', 'ad_group_name'] -%}\n{%- set ad_fields = ['ad_id', 'ad_name'] -%}\n{%- set url_fields = ['base_url', 'url_host', 'url_path', 'utm_source', 'utm_medium', 'utm_campaign', 'utm_content', 'utm_term'] -%}\n{%- set keyword_fields = ['keyword_id','keyword_text','keyword_match_type'] -%}\n{%- set search_fields = ['keyword_id', 'keyword_text', 'search_match_type', 'search_query'] -%}\n\n{%- if field_mapping is not none -%}\n{%- set fields = field_mapping.keys() -%}\n{%- endif -%}\n\n{%- set final_fields_superset={} -%}\n\n{#- Add the consistent_fields and account_fields to all reports regardless of type -#}\n{%- if report_type -%}\n {%- for consistent_field in consistent_fields -%}\n {%- do final_fields_superset.update({consistent_field: consistent_field}) -%}\n {%- endfor -%}\n {%- for account_field in account_fields -%}\n {%- do final_fields_superset.update({account_field: account_field}) -%}\n {%- endfor -%}\n{%- endif -%}\n\n{#- For account level reports and lower, add account_fields -#}\n{%- if report_type in ['campaign', 'ad_group', 'ad', 'url', 'keyword', 'search', 'account'] -%}\n {%- for account_field in account_fields -%}\n {#- When campaign_passthrough_metrics are defined, add them too but only to the ad_group report_type -#}\n {%- if report_type == 'account' and var('ad_reporting__account_passthrough_metrics', []) -%}\n {% set account_passthrough_metric_array_of_dicts = var('ad_reporting__account_passthrough_metrics') %}\n {%- for account_passthrough_metric_dict in account_passthrough_metric_array_of_dicts -%}\n {%- for account_passthrough_metric_value in account_passthrough_metric_dict.values() -%}\n\n {#- Add _c suffix if conversions are present in the passthrough metrics -#}\n {%- if account_passthrough_metric_value == 'conversions' or account_passthrough_metric_value == 'conversions_value' -%}\n {%- do final_fields_superset.update({account_passthrough_metric_value ~ '_c': account_passthrough_metric_value}) -%}\n {%- else -%}\n {%- do final_fields_superset.update({account_passthrough_metric_value: account_passthrough_metric_value}) -%}\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n {%- endif -%}\n {%- do final_fields_superset.update({account_field: account_field}) -%}\n {%- endfor -%}\n{%- endif -%}\n\n{#- For campaign level reports and lower, add campaign_fields -#}\n{%- if report_type in ['campaign', 'ad_group', 'ad', 'url', 'keyword', 'search'] -%}\n {%- for campaign_field in campaign_fields -%}\n {#- When campaign_passthrough_metrics are defined, add them too but only to the ad_group report_type -#}\n {%- if report_type == 'campaign' and var('ad_reporting__campaign_passthrough_metrics', []) -%}\n {% set campaign_passthrough_metric_array_of_dicts = var('ad_reporting__campaign_passthrough_metrics') %}\n {%- for campaign_passthrough_metric_dict in campaign_passthrough_metric_array_of_dicts -%}\n {%- for campaign_passthrough_metric_value in campaign_passthrough_metric_dict.values() -%}\n\n {#- Add _c suffix if conversions are present in the passthrough metrics -#}\n {%- if campaign_passthrough_metric_value == 'conversions' or campaign_passthrough_metric_value == 'conversions_value' -%}\n {%- do final_fields_superset.update({campaign_passthrough_metric_value ~ '_c': campaign_passthrough_metric_value}) -%}\n {%- else -%}\n {%- do final_fields_superset.update({campaign_passthrough_metric_value: campaign_passthrough_metric_value}) -%}\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n {%- endif -%}\n {%- do final_fields_superset.update({campaign_field: campaign_field}) -%}\n {%- endfor -%}\n{%- endif -%}\n\n{#- For ad_group level reports, equivalent and lower, add ad_group_fields -#}\n{%- if report_type in ['ad_group', 'ad', 'url', 'keyword', 'search'] -%}\n {%- for ad_group_field in ad_group_fields -%}\n {#- When ad_group_passthrough_metrics are defined, add them too but only to the ad_group report_type -#}\n {%- if report_type == 'ad_group' and var('ad_reporting__ad_group_passthrough_metrics', []) -%}\n {% set ad_group_passthrough_metric_array_of_dicts = var('ad_reporting__ad_group_passthrough_metrics') %}\n {%- for ad_group_passthrough_metric_dict in ad_group_passthrough_metric_array_of_dicts -%}\n {%- for ad_group_passthrough_metric_value in ad_group_passthrough_metric_dict.values() -%}\n\n {#- Add _c suffix if conversions are present in the passthrough metrics -#}\n {%- if ad_group_passthrough_metric_value == 'conversions' or ad_group_passthrough_metric_value == 'conversions_value' -%}\n {%- do final_fields_superset.update({ad_group_passthrough_metric_value ~ '_c': ad_group_passthrough_metric_value}) -%}\n {%- else -%}\n {%- do final_fields_superset.update({ad_group_passthrough_metric_value: ad_group_passthrough_metric_value}) -%}\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n {%- endif -%}\n {%- do final_fields_superset.update({ad_group_field: ad_group_field}) -%}\n {%- endfor -%}\n{%- endif -%}\n\n{#- For ad reports, add ad_fields and ad_passthrough_metrics (if any) -#}\n{%- if report_type == 'ad' -%}\n {%- if var('ad_reporting__ad_passthrough_metrics', []) -%}\n {%- set ad_passthrough_metrics_values = [] -%}\n {%- set ad_passthrough_metrics_array_of_dicts = var('ad_reporting__ad_passthrough_metrics') -%}\n {%- for ad_passthrough_metrics_dict in ad_passthrough_metrics_array_of_dicts -%}\n {%- for _, value in ad_passthrough_metrics_dict.items() -%}\n {%- do ad_passthrough_metrics_values.append(value) -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- set combined_ad_fields = ad_fields + ad_passthrough_metrics_values -%}\n {%- else -%}\n {%- set combined_ad_fields = ad_fields -%}\n {%- endif -%}\n {%- for ad_field in combined_ad_fields -%}\n\n {#- Add _c suffix if conversions are present in the passthrough metrics -#}\n {%- if ad_field == 'conversions' or ad_field == 'conversions_value' -%}\n {%- do final_fields_superset.update({ad_field ~ '_c': ad_field}) -%}\n {%- else -%}\n {%- do final_fields_superset.update({ad_field: ad_field}) -%}\n {%- endif -%}\n\n {%- endfor -%}\n{%- endif -%}\n\n{#- For url level reports, add ad_fields and ad_passthrough_metrics (if any) -#}\n{%- if report_type == 'url' -%}\n {%- if var('ad_reporting__ad_passthrough_metrics', []) -%}\n {%- set ad_passthrough_metrics_values = [] -%}\n {%- set ad_passthrough_metrics_array_of_dicts = var('ad_reporting__ad_passthrough_metrics') -%}\n {%- for ad_passthrough_metrics_dict in ad_passthrough_metrics_array_of_dicts -%}\n {%- for _, value in ad_passthrough_metrics_dict.items() -%}\n {%- do ad_passthrough_metrics_values.append(value) -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- set combined_ad_fields = url_fields + ad_passthrough_metrics_values -%}\n {%- else -%}\n {%- set combined_ad_fields = url_fields -%}\n {%- endif -%}\n {%- for ad_field in combined_ad_fields -%}\n\n {#- Add _c suffix if conversions are present in the passthrough metrics -#}\n {%- if ad_field == 'conversions' or ad_field == 'conversions_value' -%}\n {%- do final_fields_superset.update({ad_field ~ '_c': ad_field}) -%}\n {%- else -%}\n {%- do final_fields_superset.update({ad_field: ad_field}) -%}\n {%- endif -%}\n\n {%- endfor -%}\n{%- endif -%}\n\n{#- For keyword level reports, add keyword_fields and keyword_passthrough_metrics (if any) -#}\n{%- if report_type == 'keyword' -%}\n {%- if var('ad_reporting__keyword_passthrough_metrics', []) -%}\n {%- set keyword_passthrough_metrics_values = [] -%}\n {%- set keyword_passthrough_metrics_array_of_dicts = var('ad_reporting__keyword_passthrough_metrics') -%}\n {%- for keyword_passthrough_metrics_dict in keyword_passthrough_metrics_array_of_dicts -%}\n {%- for _, value in keyword_passthrough_metrics_dict.items() -%}\n {%- do keyword_passthrough_metrics_values.append(value) -%}\n\n {%- endfor -%}\n {%- endfor -%}\n {%- set combined_keyword_fields = keyword_fields + keyword_passthrough_metrics_values -%}\n {%- else -%}\n {%- set combined_keyword_fields = keyword_fields -%}\n {%- endif -%}\n {%- for keyword_field in combined_keyword_fields -%}\n\n {#- Add _c suffix if conversions are present in the passthrough metrics -#}\n {%- if keyword_field == 'conversions' or keyword_field == 'conversions_value' -%}\n {%- do final_fields_superset.update({keyword_field ~ '_c': keyword_field}) -%}\n {%- else -%}\n {%- do final_fields_superset.update({keyword_field: keyword_field}) -%}\n {%- endif -%}\n\n {%- endfor -%}\n{%- endif -%}\n\n{#- For search level reports, add search_fields and search_passthrough_metrics (if any) -#}\n{%- if report_type == 'search' -%}\n {%- if var('ad_reporting__search_passthrough_metrics',[]) -%}\n {%- set search_passthrough_metrics_values = [] -%}\n {%- set search_passthrough_metrics_array_of_dicts = var('ad_reporting__search_passthrough_metrics') -%}\n {%- for search_passthrough_metrics_dict in search_passthrough_metrics_array_of_dicts -%}\n {%- for _, value in search_passthrough_metrics_dict.items() -%}\n {%- do search_passthrough_metrics_values.append(value) -%}\n\n {%- endfor -%}\n {%- endfor -%}\n {%- set combined_search_fields = search_fields + search_passthrough_metrics_values -%}\n {%- else -%}\n {%- set combined_search_fields = search_fields -%}\n {%- endif -%}\n {%- for search_field in combined_search_fields -%}\n\n {#- Add _c suffix if conversions are present in the passthrough metrics -#}\n {%- if search_field == 'conversions' or search_field == 'conversions_value' -%}\n {%- do final_fields_superset.update({search_field ~ '_c': search_field}) -%}\n {%- else -%}\n {%- do final_fields_superset.update({search_field: search_field}) -%}\n {%- endif -%}\n\n {%- endfor -%}\n{%- endif -%}\n\n{%- if field_mapping is not none -%}\n {%- for field in fields -%}\n {%- do final_fields_superset.update({field:field_mapping[field]}) -%}\n {%- endfor -%}\n{%- endif -%}\n\nselect \n source_relation,\n {{ get_date_from_timestamp('date_day') }} as date_day,\n cast( '{{ platform }}' as {{ dbt.type_string() }}) as platform,\n\n {% for field in final_fields_superset.keys()|sort() -%}\n {% if field in consistent_fields and field not in ['spend', 'conversions', 'conversions_value'] -%}\n cast({{ final_fields_superset[field] }} as {{ dbt.type_int() }}) as {{ field }}\n\n {% elif field in ['spend', 'conversions', 'conversions_value'] -%}\n cast({{ final_fields_superset[field] }} as {{ dbt.type_float() }}) as {{ field }}\n\n {% elif '_id' in field or '_name' in field or 'url' in field or 'utm' in field or field in ['keyword_match_type', 'keyword_text', 'search_match_type', 'search_query'] -%}\n cast({{ final_fields_superset[field] }} as {{ dbt.type_string() }}) as {{ field }}\n\n {# This is the case for the rest of fields (passthrough_metrics) #}\n {% else %}\n cast({{ final_fields_superset[field] }} as {{ dbt.type_float() }}) as {{ field }}\n {% endif -%}\n {%- if not loop.last -%},{%- endif -%}\n {%- endfor %}\nfrom {{ relation }}\n{% endmacro %}", "depends_on": {"macros": ["macro.ad_reporting.get_date_from_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "This macro compiles the final query with all aliasing and casting incorporated.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "platform", "type": "string", "description": "Specifies the platform for the CTE; this value should match exactly one value for the `all_packages` variable within `macros/get_enabled_packages.sql`.\n"}, {"name": "report_type", "type": "string", "description": "Specifies the report type and should map to the respective model; could take on one of the following values ['account', 'campaign', 'ad_group', 'ad', 'url', 'keyword', 'search'].\n"}, {"name": "field_mapping", "type": null, "description": "A dictionary that specifies any column name overriding as necessary since standard names in Ad Reporting may map to a different name as it appears natively within each platform. Each key will have exactly one corresponding string value; if a value is NULL then it will map to the string 'null'.\n"}, {"name": "relation", "type": null, "description": "This is a reference to the upstream model that the query will be selecting from; an example argument would look like this: relation=ref('tiktok_ads__advertiser_report').\n"}], "created_at": 1731951600.34054, "supported_languages": null}, "macro.ad_reporting.ad_reporting_persist_pass_through_columns": {"name": "ad_reporting_persist_pass_through_columns", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/ad_reporting_persist_pass_through_columns.sql", "original_file_path": "macros/ad_reporting_persist_pass_through_columns.sql", "unique_id": "macro.ad_reporting.ad_reporting_persist_pass_through_columns", "macro_sql": "{% macro ad_reporting_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, alias_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ('_c' if field_name in alias_fields else '') ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} \n as {{ field_name ~ ('_c' if field_name in alias_fields else '') }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.9597042, "supported_languages": null}, "macro.ad_reporting.get_enabled_packages": {"name": "get_enabled_packages", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_enabled_packages.sql", "original_file_path": "macros/get_enabled_packages.sql", "unique_id": "macro.ad_reporting.get_enabled_packages", "macro_sql": "{% macro get_enabled_packages(exclude=[], include=[]) %}\n\n{%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided `get_enabled_packages` macro. Only one is allowed\") }}\n{%- endif -%}\n\n{% set all_packages = [\n 'amazon_ads',\n 'apple_search_ads', \n 'facebook_ads', \n 'google_ads', \n 'linkedin_ads',\n 'microsoft_ads', \n 'pinterest_ads',\n 'snapchat_ads',\n 'tiktok_ads',\n 'twitter_ads',\n 'reddit_ads'] %}\n\n{% set enabled_packages = [] %}\n\n{% if include != [] %}\n {% for package in include %}\n {% if var('ad_reporting__' ~ package ~ '_enabled', True) %}\n {{ enabled_packages.append(package) }}\n {% endif %}\n {% endfor %}\n\n{% elif exclude != [] %}\n {% for package in all_packages %}\n {% if var('ad_reporting__' ~ package ~ '_enabled', True) and package not in exclude %}\n {{ enabled_packages.append(package) }}\n {% endif %}\n {% endfor %}\n\n{% else %}\n {% for package in all_packages %}\n {% if var('ad_reporting__' ~ package ~ '_enabled', True) %}\n {{ enabled_packages.append(package) }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{{ return(enabled_packages) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "This macro evaluates all `ad_reporting___enabled` variables in the user's `dbt_project.yml` and returns a list of packages that are enabled.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "exclude", "type": "list", "description": "This argument is optional and is the list of platforms to exclude in the enabled package evaluation."}, {"name": "include", "type": "list", "description": "This argument is optional and is the list of platforms to include in the enabled package evaluation."}], "created_at": 1731951600.339502, "supported_languages": null}, "macro.apple_search_ads_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.apple_search_ads_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.966353, "supported_languages": null}, "macro.apple_search_ads_source.get_ad_level_report_columns": {"name": "get_ad_level_report_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_ad_level_report_columns.sql", "original_file_path": "macros/get_ad_level_report_columns.sql", "unique_id": "macro.apple_search_ads_source.get_ad_level_report_columns", "macro_sql": "{% macro get_ad_level_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ apple_search_ads_add_pass_through_columns(\n base_columns=columns,\n pass_through_fields=var('apple_search_ads__ad_passthrough_metrics'),\n except_fields=['conversions']\n ) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.apple_search_ads_source.apple_search_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.9702358, "supported_languages": null}, "macro.apple_search_ads_source.get_search_term_report_columns": {"name": "get_search_term_report_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_search_term_report_columns.sql", "original_file_path": "macros/get_search_term_report_columns.sql", "unique_id": "macro.apple_search_ads_source.get_search_term_report_columns", "macro_sql": "{% macro get_search_term_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_amount_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"bid_amount_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_display_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"search_term_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"search_term_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ apple_search_ads_add_pass_through_columns(\n base_columns=columns,\n pass_through_fields=var('apple_search_ads__search_term_passthrough_metrics'),\n except_fields=['conversions']\n ) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_numeric", "macro.apple_search_ads_source.apple_search_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.976084, "supported_languages": null}, "macro.apple_search_ads_source.apple_search_ads_fill_pass_through_columns": {"name": "apple_search_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/apple_search_ads_fill_passthrough_columns.sql", "original_file_path": "macros/apple_search_ads_fill_passthrough_columns.sql", "unique_id": "macro.apple_search_ads_source.apple_search_ads_fill_pass_through_columns", "macro_sql": "{% macro apple_search_ads_fill_pass_through_columns(pass_through_fields, except=[]) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if (field.alias if field.alias else field.name) not in except %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.978028, "supported_languages": null}, "macro.apple_search_ads_source.get_keyword_report_columns": {"name": "get_keyword_report_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_keyword_report_columns.sql", "original_file_path": "macros/get_keyword_report_columns.sql", "unique_id": "macro.apple_search_ads_source.get_keyword_report_columns", "macro_sql": "{% macro get_keyword_report_columns() %}\n\n{% set columns = [\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ apple_search_ads_add_pass_through_columns(\n base_columns=columns,\n pass_through_fields=var('apple_search_ads__keyword_passthrough_metrics'),\n except_fields=['conversions']\n ) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.apple_search_ads_source.apple_search_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951592.9799528, "supported_languages": null}, "macro.apple_search_ads_source.get_campaign_report_columns": {"name": "get_campaign_report_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "unique_id": "macro.apple_search_ads_source.get_campaign_report_columns", "macro_sql": "{% macro get_campaign_report_columns() %}\n\n{% set columns = [\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ apple_search_ads_add_pass_through_columns(\n base_columns=columns,\n pass_through_fields=var('apple_search_ads__campaign_passthrough_metrics'),\n except_fields=['conversions']\n ) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.apple_search_ads_source.apple_search_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.032227, "supported_languages": null}, "macro.apple_search_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.apple_search_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.03437, "supported_languages": null}, "macro.apple_search_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.apple_search_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creation_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"org_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.037162, "supported_languages": null}, "macro.apple_search_ads_source.get_ad_group_report_columns": {"name": "get_ad_group_report_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_ad_group_report_columns.sql", "original_file_path": "macros/get_ad_group_report_columns.sql", "unique_id": "macro.apple_search_ads_source.get_ad_group_report_columns", "macro_sql": "{% macro get_ad_group_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ apple_search_ads_add_pass_through_columns(\n base_columns=columns,\n pass_through_fields=var('apple_search_ads__ad_group_passthrough_metrics'),\n except_fields=['conversions']\n ) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.apple_search_ads_source.apple_search_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.043829, "supported_languages": null}, "macro.apple_search_ads_source.apple_search_ads_add_pass_through_columns": {"name": "apple_search_ads_add_pass_through_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/apple_search_ads_add_pass_through_columns.sql", "original_file_path": "macros/apple_search_ads_add_pass_through_columns.sql", "unique_id": "macro.apple_search_ads_source.apple_search_ads_add_pass_through_columns", "macro_sql": "{% macro apple_search_ads_add_pass_through_columns(base_columns, pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for column in pass_through_fields %}\n\n {% if column is mapping %}\n {% set col_name = column.alias|default(column.name)|lower %}\n \n {% if col_name not in except_fields %}\n {% if column.alias %}\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% else %}\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% else %}\n {% if column|lower not in except_fields %}\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.046266, "supported_languages": null}, "macro.apple_search_ads_source.get_organization_columns": {"name": "get_organization_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_organization_columns.sql", "original_file_path": "macros/get_organization_columns.sql", "unique_id": "macro.apple_search_ads_source.get_organization_columns", "macro_sql": "{% macro get_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_model\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.060747, "supported_languages": null}, "macro.apple_search_ads_source.get_keyword_history_columns": {"name": "get_keyword_history_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "unique_id": "macro.apple_search_ads_source.get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"bid_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"modification_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"text\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.0642939, "supported_languages": null}, "macro.pinterest_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.pinterest_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"pacing_delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"placement_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary_status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.072633, "supported_languages": null}, "macro.pinterest_source.get_pin_promotion_history_columns": {"name": "get_pin_promotion_history_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_pin_promotion_history_columns.sql", "original_file_path": "macros/get_pin_promotion_history_columns.sql", "unique_id": "macro.pinterest_source.get_pin_promotion_history_columns", "macro_sql": "{% macro get_pin_promotion_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"android_deep_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_tracking_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creative_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"destination_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ios_deep_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_pin_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"is_removable\", \"datatype\": \"boolean\"},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"pin_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"review_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"view_tracking_url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.081182, "supported_languages": null}, "macro.pinterest_source.pinterest_ads_fill_pass_through_columns": {"name": "pinterest_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/pinterest_ads_fill_pass_through_columns.sql", "original_file_path": "macros/pinterest_ads_fill_pass_through_columns.sql", "unique_id": "macro.pinterest_source.pinterest_ads_fill_pass_through_columns", "macro_sql": "{% macro pinterest_ads_fill_pass_through_columns(pass_through_fields, except=[]) %}\t\n\n{% if pass_through_fields %}\t\n {% for field in pass_through_fields %}\t\n {% if (field.alias if field.alias else field.name) not in except %}\t\n {% if field.transform_sql %}\t\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\t\n {% else %}\t\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\t\n {% endif %}\t\n {% endif %}\t\n {% endfor %}\t\n{% endif %}\t\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.083067, "supported_languages": null}, "macro.pinterest_source.pinterest_ads_extract_url_parameter": {"name": "pinterest_ads_extract_url_parameter", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/pinterest_ads_extract_url_parameters.sql", "original_file_path": "macros/pinterest_ads_extract_url_parameters.sql", "unique_id": "macro.pinterest_source.pinterest_ads_extract_url_parameter", "macro_sql": "{% macro pinterest_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('pinterest_ads_extract_url_parameter', 'pinterest_source') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.pinterest_source.default__pinterest_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.084165, "supported_languages": null}, "macro.pinterest_source.default__pinterest_ads_extract_url_parameter": {"name": "default__pinterest_ads_extract_url_parameter", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/pinterest_ads_extract_url_parameters.sql", "original_file_path": "macros/pinterest_ads_extract_url_parameters.sql", "unique_id": "macro.pinterest_source.default__pinterest_ads_extract_url_parameter", "macro_sql": "{% macro default__pinterest_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.085261, "supported_languages": null}, "macro.pinterest_source.spark__pinterest_ads_extract_url_parameter": {"name": "spark__pinterest_ads_extract_url_parameter", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/pinterest_ads_extract_url_parameters.sql", "original_file_path": "macros/pinterest_ads_extract_url_parameters.sql", "unique_id": "macro.pinterest_source.spark__pinterest_ads_extract_url_parameter", "macro_sql": "{% macro spark__pinterest_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.085535, "supported_languages": null}, "macro.pinterest_source.pinterest_ads_add_passthrough_columns": {"name": "pinterest_ads_add_passthrough_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/pinterest_ads_add_passthrough_columns.sql", "original_file_path": "macros/pinterest_ads_add_passthrough_columns.sql", "unique_id": "macro.pinterest_source.pinterest_ads_add_passthrough_columns", "macro_sql": "{% macro pinterest_ads_add_passthrough_columns(base_columns, pass_through_fields, except_fields=[]) %}\t\n\n{% if pass_through_fields %}\t\n {% for column in pass_through_fields %}\t\n\n {% if column is mapping %}\t\n {% set col_name = column.alias|default(column.name)|lower %}\t\n\n {% if col_name not in except_fields %}\t\n {% if column.alias %}\t\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\t\n {% else %}\t\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\t\n {% endif %}\t\n {% endif %}\t\n\n {% else %}\t\n {% if column|lower not in except_fields %}\t\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\t\n {% endif %}\t\n {% endif %}\t\n\n {% endfor %}\t\n{% endif %}\t\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.091157, "supported_languages": null}, "macro.pinterest_source.get_keyword_report_columns": {"name": "get_keyword_report_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_keyword_report_columns.sql", "original_file_path": "macros/get_keyword_report_columns.sql", "unique_id": "macro.pinterest_source.get_keyword_report_columns", "macro_sql": "{% macro get_keyword_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"pin_promotion_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_value_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Make backwards compatible in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ pinterest_ads_add_passthrough_columns(base_columns=columns, pass_through_fields=var('pinterest__keyword_report_passthrough_metrics'), except_fields=['total_conversions', \"total_conversions_quantity\", \"total_conversions_value_in_micro_dollar\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.pinterest_source.pinterest_ads_add_passthrough_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.101675, "supported_languages": null}, "macro.pinterest_source.get_pin_promotion_report_columns": {"name": "get_pin_promotion_report_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_pin_promotion_report_columns.sql", "original_file_path": "macros/get_pin_promotion_report_columns.sql", "unique_id": "macro.pinterest_source.get_pin_promotion_report_columns", "macro_sql": "{% macro get_pin_promotion_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"pin_promotion_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_value_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Make backwards compatible in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ pinterest_ads_add_passthrough_columns(base_columns=columns, pass_through_fields=var('pinterest__pin_promotion_report_passthrough_metrics'), except_fields=['total_conversions', \"total_conversions_quantity\", \"total_conversions_value_in_micro_dollar\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.type_int", "macro.pinterest_source.pinterest_ads_add_passthrough_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.1162298, "supported_languages": null}, "macro.pinterest_source.get_campaign_report_columns": {"name": "get_campaign_report_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "unique_id": "macro.pinterest_source.get_campaign_report_columns", "macro_sql": "{% macro get_campaign_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_value_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Make backwards compatible in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ pinterest_ads_add_passthrough_columns(base_columns=columns, pass_through_fields=var('pinterest__campaign_report_passthrough_metrics'), except_fields=['total_conversions', \"total_conversions_quantity\", \"total_conversions_value_in_micro_dollar\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.pinterest_source.pinterest_ads_add_passthrough_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.125698, "supported_languages": null}, "macro.pinterest_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.pinterest_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"default_ad_group_budget_in_micro_currency\", \"datatype\": dbt.type_int()},\n {\"name\": \"is_automated_campaign\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"is_campaign_budget_optimization\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"is_flexible_daily_budgets\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.13073, "supported_languages": null}, "macro.pinterest_source.get_advertiser_history_columns": {"name": "get_advertiser_history_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_advertiser_history_columns.sql", "original_file_path": "macros/get_advertiser_history_columns.sql", "unique_id": "macro.pinterest_source.get_advertiser_history_columns", "macro_sql": "{% macro get_advertiser_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_username\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"permissions\", \"datatype\": dbt.type_string(), \"quote\": True, \"alias\": \"advertiser_permissions\"},\n {\"name\": \"updated_time\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.141866, "supported_languages": null}, "macro.pinterest_source.get_ad_group_report_columns": {"name": "get_ad_group_report_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_ad_group_report_columns.sql", "original_file_path": "macros/get_ad_group_report_columns.sql", "unique_id": "macro.pinterest_source.get_ad_group_report_columns", "macro_sql": "{% macro get_ad_group_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_value_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Make backwards compatible in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ pinterest_ads_add_passthrough_columns(base_columns=columns, pass_through_fields=var('pinterest__ad_group_report_passthrough_metrics'), except_fields=['total_conversions', \"total_conversions_quantity\", \"total_conversions_value_in_micro_dollar\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.pinterest_source.pinterest_ads_add_passthrough_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.205767, "supported_languages": null}, "macro.pinterest_source.get_keyword_history_columns": {"name": "get_keyword_history_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "unique_id": "macro.pinterest_source.get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"archived\", \"datatype\": \"boolean\"},\n {\"name\": \"bid\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.2420712, "supported_languages": null}, "macro.pinterest_source.get_advertiser_report_columns": {"name": "get_advertiser_report_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_advertiser_report_columns.sql", "original_file_path": "macros/get_advertiser_report_columns.sql", "unique_id": "macro.pinterest_source.get_advertiser_report_columns", "macro_sql": "{% macro get_advertiser_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_value_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Make backwards compatible in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ pinterest_ads_add_passthrough_columns(base_columns=columns, pass_through_fields=var('pinterest__advertiser_report_passthrough_metrics'), except_fields=['total_conversions', \"total_conversions_quantity\", \"total_conversions_value_in_micro_dollar\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.pinterest_source.pinterest_ads_add_passthrough_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.2733572, "supported_languages": null}, "macro.tiktok_ads_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.tiktok_ads_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"action_days\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"adgroup_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"adgroup_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"audience_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"category\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"frequency_schedule\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"interest_category_v_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"action_categories\", \"datatype\": dbt.type_string()},\n {\"name\": \"age\", \"datatype\": dbt.type_string()},\n {\"name\": \"age_groups\", \"datatype\": dbt.type_string()},\n {\"name\": \"languages\", \"datatype\": dbt.type_string()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.2838771, "supported_languages": null}, "macro.tiktok_ads_source.get_ad_group_report_hourly_columns": {"name": "get_ad_group_report_hourly_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_ad_group_report_hourly_columns.sql", "original_file_path": "macros/get_ad_group_report_hourly_columns.sql", "unique_id": "macro.tiktok_ads_source.get_ad_group_report_hourly_columns", "macro_sql": "{% macro get_ad_group_report_hourly_columns() %}\n\n{% set columns = [\n {\"name\": \"adgroup_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"reach\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"real_time_conversion\", \"datatype\": dbt.type_int()},\n {\"name\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"total_purchase_value\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_sales_lead_value\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ tiktok_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('tiktok_ads__ad_group_hourly_passthrough_metrics'), except_fields=[\"real_time_conversion\", \"total_purchase_value\", \"total_sales_lead_value\"]) }}\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.tiktok_ads_source.tiktok_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.301418, "supported_languages": null}, "macro.tiktok_ads_source.tiktok_ads_add_pass_through_columns": {"name": "tiktok_ads_add_pass_through_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/tiktok_ads_add_pass_through_columns.sql", "original_file_path": "macros/tiktok_ads_add_pass_through_columns.sql", "unique_id": "macro.tiktok_ads_source.tiktok_ads_add_pass_through_columns", "macro_sql": "{% macro tiktok_ads_add_pass_through_columns(base_columns, pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for column in pass_through_fields %}\n\n {% if column is mapping %}\n {% set col_name = column.alias|default(column.name)|lower %}\n\n {% if col_name not in except_fields %}\n {% if column.alias %}\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% else %}\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% else %}\n {% if column|lower not in except_fields %}\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.3035882, "supported_languages": null}, "macro.tiktok_ads_source.tiktok_ads_fill_pass_through_columns": {"name": "tiktok_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/tiktok_ads_fill_pass_through_columns.sql", "original_file_path": "macros/tiktok_ads_fill_pass_through_columns.sql", "unique_id": "macro.tiktok_ads_source.tiktok_ads_fill_pass_through_columns", "macro_sql": "{% macro tiktok_ads_fill_pass_through_columns(pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if (field.alias if field.alias else field.name) not in except_fields %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.304692, "supported_languages": null}, "macro.tiktok_ads_source.get_advertiser_columns": {"name": "get_advertiser_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_advertiser_columns.sql", "original_file_path": "macros/get_advertiser_columns.sql", "unique_id": "macro.tiktok_ads_source.get_advertiser_columns", "macro_sql": "{% macro get_advertiser_columns() %}\n\n{% set columns = [\n {\"name\": \"address\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"cellphone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"contacter\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"industry\", \"datatype\": dbt.type_string()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"telephone\", \"datatype\": dbt.type_string()},\n {\"name\": \"telephone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.306995, "supported_languages": null}, "macro.tiktok_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.tiktok_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"campaign_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"split_test_variable\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.3078551, "supported_languages": null}, "macro.tiktok_ads_source.tiktok_ads_extract_url_parameter": {"name": "tiktok_ads_extract_url_parameter", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/tiktok_ads_extract_url_parameters.sql", "original_file_path": "macros/tiktok_ads_extract_url_parameters.sql", "unique_id": "macro.tiktok_ads_source.tiktok_ads_extract_url_parameter", "macro_sql": "{% macro tiktok_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('tiktok_ads_extract_url_parameter', 'tiktok_ads_source') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.tiktok_ads_source.default__tiktok_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.3082361, "supported_languages": null}, "macro.tiktok_ads_source.default__tiktok_ads_extract_url_parameter": {"name": "default__tiktok_ads_extract_url_parameter", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/tiktok_ads_extract_url_parameters.sql", "original_file_path": "macros/tiktok_ads_extract_url_parameters.sql", "unique_id": "macro.tiktok_ads_source.default__tiktok_ads_extract_url_parameter", "macro_sql": "{% macro default__tiktok_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.308406, "supported_languages": null}, "macro.tiktok_ads_source.spark__tiktok_ads_extract_url_parameter": {"name": "spark__tiktok_ads_extract_url_parameter", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/tiktok_ads_extract_url_parameters.sql", "original_file_path": "macros/tiktok_ads_extract_url_parameters.sql", "unique_id": "macro.tiktok_ads_source.spark__tiktok_ads_extract_url_parameter", "macro_sql": "{% macro spark__tiktok_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.3086212, "supported_languages": null}, "macro.tiktok_ads_source.get_campaign_report_hourly_columns": {"name": "get_campaign_report_hourly_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_campaign_report_hourly_columns.sql", "original_file_path": "macros/get_campaign_report_hourly_columns.sql", "unique_id": "macro.tiktok_ads_source.get_campaign_report_hourly_columns", "macro_sql": "{% macro get_campaign_report_hourly_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"reach\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"real_time_conversion\", \"datatype\": dbt.type_int()},\n {\"name\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"total_purchase_value\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_sales_lead_value\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ tiktok_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('tiktok_ads__campaign_hourly_passthrough_metrics'), except_fields=[\"real_time_conversion\", \"total_purchase_value\", \"total_sales_lead_value\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.tiktok_ads_source.tiktok_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.313062, "supported_languages": null}, "macro.tiktok_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.tiktok_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"ad_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"adgroup_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"call_to_action\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"click_tracking_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"impression_tracking_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.314421, "supported_languages": null}, "macro.tiktok_ads_source.get_ad_report_hourly_columns": {"name": "get_ad_report_hourly_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_ad_report_hourly_columns.sql", "original_file_path": "macros/get_ad_report_hourly_columns.sql", "unique_id": "macro.tiktok_ads_source.get_ad_report_hourly_columns", "macro_sql": "{% macro get_ad_report_hourly_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"real_time_conversion\", \"datatype\": dbt.type_int()},\n {\"name\": \"reach\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"total_purchase_value\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_sales_lead_value\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt.type_numeric()}\n] %}\n \n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ tiktok_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('tiktok_ads__ad_hourly_passthrough_metrics'), except_fields=[\"real_time_conversion\", \"total_purchase_value\", \"total_sales_lead_value\"]) }}\n\n{{ return(columns) }} \n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.tiktok_ads_source.tiktok_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.31833, "supported_languages": null}, "macro.facebook_ads_source.get_ad_set_history_columns": {"name": "get_ad_set_history_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_ad_set_history_columns.sql", "original_file_path": "macros/get_ad_set_history_columns.sql", "unique_id": "macro.facebook_ads_source.get_ad_set_history_columns", "macro_sql": "{% macro get_ad_set_history_columns() %}\n\n{% set columns = [\n {\"name\": \"updated_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bid_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"budget_remaining\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"optimization_goal\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.320472, "supported_languages": null}, "macro.facebook_ads_source.get_creative_history_columns": {"name": "get_creative_history_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_creative_history_columns.sql", "original_file_path": "macros/get_creative_history_columns.sql", "unique_id": "macro.facebook_ads_source.get_creative_history_columns", "macro_sql": "{% macro get_creative_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"page_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_page_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_tags\", \"datatype\": dbt.type_string()},\n {\"name\": \"asset_feed_spec_link_urls\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_child_attachments\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_caption\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_message\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_app_link_spec_android\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_app_link_spec_ios\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_app_link_spec_ipad\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_app_link_spec_iphone\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.322669, "supported_languages": null}, "macro.facebook_ads_source.get_basic_ad_actions_columns": {"name": "get_basic_ad_actions_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_basic_ad_actions_columns.sql", "original_file_path": "macros/get_basic_ad_actions_columns.sql", "unique_id": "macro.facebook_ads_source.get_basic_ad_actions_columns", "macro_sql": "{% macro get_basic_ad_actions_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"action_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('facebook_ads__basic_ad_actions_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.323918, "supported_languages": null}, "macro.facebook_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.facebook_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"updated_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"stop_time\", \"datatype\": dbt.type_timestamp()}, \n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"lifetime_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"budget_remaining\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.325834, "supported_languages": null}, "macro.facebook_ads_source.get_basic_ad_columns": {"name": "get_basic_ad_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_basic_ad_columns.sql", "original_file_path": "macros/get_basic_ad_columns.sql", "unique_id": "macro.facebook_ads_source.get_basic_ad_columns", "macro_sql": "{% macro get_basic_ad_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"adset_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"inline_link_clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt.type_float()},\n {\"name\": \"reach\", \"datatype\": dbt.type_int()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_float()}\n] %}\n\n{# \n Reach and Frequency are not included in downstream models by default, though they are included in the staging model.\n The below ensures that users can add Reach and Frequency to downstream models with the `facebook_ads__basic_ad_passthrough_metrics` variable\n while avoiding duplicate column errors.\n #}\n{% set unique_passthrough = [] %}\n{% for field in var('facebook_ads__basic_ad_passthrough_metrics') %}\n {% if (field.alias if field.alias else field.name)|lower not in ('reach', 'frequency') %}\n {% do unique_passthrough.append({\"name\": field.name, \"alias\": field.alias}) %}\n {% endif %}\n{% endfor %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, unique_passthrough) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.328597, "supported_languages": null}, "macro.facebook_ads_source.facebook_ads_fill_pass_through_columns": {"name": "facebook_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/facebook_ads_fill_pass_through_columns.sql", "original_file_path": "macros/facebook_ads_fill_pass_through_columns.sql", "unique_id": "macro.facebook_ads_source.facebook_ads_fill_pass_through_columns", "macro_sql": "{% macro facebook_ads_fill_pass_through_columns(pass_through_fields) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.3295538, "supported_languages": null}, "macro.facebook_ads_source.get_account_history_columns": {"name": "get_account_history_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "unique_id": "macro.facebook_ads_source.get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.330605, "supported_languages": null}, "macro.facebook_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.facebook_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"updated_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_set_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creative_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversion_domain\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.331639, "supported_languages": null}, "macro.facebook_ads_source.get_basic_ad_action_values_columns": {"name": "get_basic_ad_action_values_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_basic_ad_action_values_columns.sql", "original_file_path": "macros/get_basic_ad_action_values_columns.sql", "unique_id": "macro.facebook_ads_source.get_basic_ad_action_values_columns", "macro_sql": "{% macro get_basic_ad_action_values_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"action_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('facebook_ads__basic_ad_action_values_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.3326259, "supported_languages": null}, "macro.snapchat_ads_source.get_campaign_hourly_report_columns": {"name": "get_campaign_hourly_report_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_campaign_hourly_report_columns.sql", "original_file_path": "macros/get_campaign_hourly_report_columns.sql", "unique_id": "macro.snapchat_ads_source.get_campaign_hourly_report_columns", "macro_sql": "{% macro get_campaign_hourly_report_columns() %}\n\n{% set columns = [\n {\"name\": \"attachment_quartile_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_3\", \"datatype\": dbt.type_int()},\n {\"name\": \"saves\", \"datatype\": dbt.type_int()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"shares\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()},\n {\"name\": \"swipes\", \"datatype\": dbt.type_int()},\n {\"name\": \"video_views\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_completion\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversion_purchases_value\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__conversion_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ snapchat_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('snapchat_ads__campaign_hourly_report_passthrough_metrics'), except_fields=(var('snapchat_ads__conversion_fields') + ['conversion_purchases_value'])) }}\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns", "macro.snapchat_ads_source.snapchat_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.337131, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_squad_history_columns": {"name": "get_ad_squad_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_ad_squad_history_columns.sql", "original_file_path": "macros/get_ad_squad_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_ad_squad_history_columns", "macro_sql": "{% macro get_ad_squad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.338061, "supported_languages": null}, "macro.snapchat_ads_source.snapchat_ads_add_pass_through_columns": {"name": "snapchat_ads_add_pass_through_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/snapchat_ads_add_pass_through_columns.sql", "original_file_path": "macros/snapchat_ads_add_pass_through_columns.sql", "unique_id": "macro.snapchat_ads_source.snapchat_ads_add_pass_through_columns", "macro_sql": "{% macro snapchat_ads_add_pass_through_columns(base_columns, pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for column in pass_through_fields %}\n\n {% if column is mapping %}\n {% set col_name = column.alias|default(column.name)|lower %}\n \n {% if col_name not in except_fields %}\n {% if column.alias %}\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% else %}\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% else %}\n {% if column|lower not in except_fields %}\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.340018, "supported_languages": null}, "macro.snapchat_ads_source.get_creative_history_columns": {"name": "get_creative_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_creative_history_columns.sql", "original_file_path": "macros/get_creative_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_creative_history_columns", "macro_sql": "{% macro get_creative_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"web_view_url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.3415759, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_hourly_report_columns": {"name": "get_ad_hourly_report_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_ad_hourly_report_columns.sql", "original_file_path": "macros/get_ad_hourly_report_columns.sql", "unique_id": "macro.snapchat_ads_source.get_ad_hourly_report_columns", "macro_sql": "{% macro get_ad_hourly_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"attachment_quartile_1\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quartile_1\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quartile_2\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quartile_3\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"saves\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"swipes\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"view_completion\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion_purchases_value\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__conversion_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ snapchat_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('snapchat_ads__ad_hourly_passthrough_metrics'), except_fields=(var('snapchat_ads__conversion_fields') + ['conversion_purchases_value'])) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns", "macro.snapchat_ads_source.snapchat_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.347478, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_squad_hourly_report_columns": {"name": "get_ad_squad_hourly_report_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_ad_squad_hourly_report_columns.sql", "original_file_path": "macros/get_ad_squad_hourly_report_columns.sql", "unique_id": "macro.snapchat_ads_source.get_ad_squad_hourly_report_columns", "macro_sql": "{% macro get_ad_squad_hourly_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_squad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"attachment_quartile_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_3\", \"datatype\": dbt.type_int()},\n {\"name\": \"saves\", \"datatype\": dbt.type_int()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"shares\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()},\n {\"name\": \"swipes\", \"datatype\": dbt.type_int()},\n {\"name\": \"video_views\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_completion\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversion_purchases_value\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__conversion_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ snapchat_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('snapchat_ads__ad_squad_hourly_passthrough_metrics'), except_fields=(var('snapchat_ads__conversion_fields') + ['conversion_purchases_value'])) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns", "macro.snapchat_ads_source.snapchat_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.3546681, "supported_languages": null}, "macro.snapchat_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.3557591, "supported_languages": null}, "macro.snapchat_ads_source.get_creative_url_tag_history_columns": {"name": "get_creative_url_tag_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_creative_url_tag_history_columns.sql", "original_file_path": "macros/get_creative_url_tag_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_creative_url_tag_history_columns", "macro_sql": "{% macro get_creative_url_tag_history_columns() %}\n\n{% set columns = [\n {\"name\": \"creative_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.356437, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_squad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creative_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.357405, "supported_languages": null}, "macro.snapchat_ads_source.snapchat_ads_fill_pass_through_columns": {"name": "snapchat_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/snapchat_ads_fill_pass_through_columns.sql", "original_file_path": "macros/snapchat_ads_fill_pass_through_columns.sql", "unique_id": "macro.snapchat_ads_source.snapchat_ads_fill_pass_through_columns", "macro_sql": "{% macro snapchat_ads_fill_pass_through_columns(pass_through_fields, except=[]) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if (field.alias if field.alias else field.name) not in except %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.358454, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_account_history_columns": {"name": "get_ad_account_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_ad_account_history_columns.sql", "original_file_path": "macros/get_ad_account_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_ad_account_history_columns", "macro_sql": "{% macro get_ad_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"advertiser\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.3596292, "supported_languages": null}, "macro.microsoft_ads.microsoft_ads_persist_pass_through_columns": {"name": "microsoft_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "microsoft_ads", "path": "macros/microsoft_ads_persist_pass_through_columns.sql", "original_file_path": "macros/microsoft_ads_persist_pass_through_columns.sql", "unique_id": "macro.microsoft_ads.microsoft_ads_persist_pass_through_columns", "macro_sql": "{% macro microsoft_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, exclude_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n {% set original_name = field.name if field is mapping else field %}\n \n {% if field_name not in exclude_fields and original_name not in exclude_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field_name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.361175, "supported_languages": null}, "macro.microsoft_ads.microsoft_ads_extract_url_parameter": {"name": "microsoft_ads_extract_url_parameter", "resource_type": "macro", "package_name": "microsoft_ads", "path": "macros/microsoft_ads_extract_url_parameters.sql", "original_file_path": "macros/microsoft_ads_extract_url_parameters.sql", "unique_id": "macro.microsoft_ads.microsoft_ads_extract_url_parameter", "macro_sql": "{% macro microsoft_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('microsoft_ads_extract_url_parameter', 'microsoft_ads') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.microsoft_ads.default__microsoft_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.361668, "supported_languages": null}, "macro.microsoft_ads.default__microsoft_ads_extract_url_parameter": {"name": "default__microsoft_ads_extract_url_parameter", "resource_type": "macro", "package_name": "microsoft_ads", "path": "macros/microsoft_ads_extract_url_parameters.sql", "original_file_path": "macros/microsoft_ads_extract_url_parameters.sql", "unique_id": "macro.microsoft_ads.default__microsoft_ads_extract_url_parameter", "macro_sql": "{% macro default__microsoft_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.361838, "supported_languages": null}, "macro.microsoft_ads.spark__microsoft_ads_extract_url_parameter": {"name": "spark__microsoft_ads_extract_url_parameter", "resource_type": "macro", "package_name": "microsoft_ads", "path": "macros/microsoft_ads_extract_url_parameters.sql", "original_file_path": "macros/microsoft_ads_extract_url_parameters.sql", "unique_id": "macro.microsoft_ads.spark__microsoft_ads_extract_url_parameter", "macro_sql": "{% macro spark__microsoft_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.362047, "supported_languages": null}, "macro.twitter_ads_source.get_tweet_columns": {"name": "get_tweet_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/get_tweet_columns.sql", "original_file_path": "macros/get_tweet_columns.sql", "unique_id": "macro.twitter_ads_source.get_tweet_columns", "macro_sql": "{% macro get_tweet_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"lang\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.362787, "supported_languages": null}, "macro.twitter_ads_source.get_line_item_keywords_report_columns": {"name": "get_line_item_keywords_report_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/get_line_item_keywords_report_columns.sql", "original_file_path": "macros/get_line_item_keywords_report_columns.sql", "unique_id": "macro.twitter_ads_source.get_line_item_keywords_report_columns", "macro_sql": "{% macro get_line_item_keywords_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"line_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"segment\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__conversion_fields')) }}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__conversion_sale_amount_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ twitter_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('twitter_ads__line_item_keywords_report_passthrough_metrics'), except_fields=(var('twitter_ads__conversion_fields') + var('twitter_ads__conversion_sale_amount_fields'))) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns", "macro.twitter_ads_source.twitter_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.364633, "supported_languages": null}, "macro.twitter_ads_source.twitter_ads_extract_url_parameter": {"name": "twitter_ads_extract_url_parameter", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/twitter_ads_extract_url_parameters.sql", "original_file_path": "macros/twitter_ads_extract_url_parameters.sql", "unique_id": "macro.twitter_ads_source.twitter_ads_extract_url_parameter", "macro_sql": "{% macro twitter_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('twitter_ads_extract_url_parameter', 'twitter_ads_source') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.twitter_ads_source.default__twitter_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.365315, "supported_languages": null}, "macro.twitter_ads_source.default__twitter_ads_extract_url_parameter": {"name": "default__twitter_ads_extract_url_parameter", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/twitter_ads_extract_url_parameters.sql", "original_file_path": "macros/twitter_ads_extract_url_parameters.sql", "unique_id": "macro.twitter_ads_source.default__twitter_ads_extract_url_parameter", "macro_sql": "{% macro default__twitter_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.365503, "supported_languages": null}, "macro.twitter_ads_source.spark__twitter_ads_extract_url_parameter": {"name": "spark__twitter_ads_extract_url_parameter", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/twitter_ads_extract_url_parameters.sql", "original_file_path": "macros/twitter_ads_extract_url_parameters.sql", "unique_id": "macro.twitter_ads_source.spark__twitter_ads_extract_url_parameter", "macro_sql": "{% macro spark__twitter_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.3657222, "supported_languages": null}, "macro.twitter_ads_source.twitter_ads_fill_pass_through_columns": {"name": "twitter_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/twitter_ads_fill_pass_through_columns.sql", "original_file_path": "macros/twitter_ads_fill_pass_through_columns.sql", "unique_id": "macro.twitter_ads_source.twitter_ads_fill_pass_through_columns", "macro_sql": "{% macro twitter_ads_fill_pass_through_columns(pass_through_fields, except=[]) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if (field.alias if field.alias else field.name) not in except %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.366913, "supported_languages": null}, "macro.twitter_ads_source.get_line_item_report_columns": {"name": "get_line_item_report_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/get_line_item_report_columns.sql", "original_file_path": "macros/get_line_item_report_columns.sql", "unique_id": "macro.twitter_ads_source.get_line_item_report_columns", "macro_sql": "{% macro get_line_item_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"line_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt.type_int()},\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__conversion_fields')) }}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__conversion_sale_amount_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ twitter_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('twitter_ads__line_item_report_passthrough_metrics'), except_fields=(var('twitter_ads__conversion_fields') + var('twitter_ads__conversion_sale_amount_fields'))) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns", "macro.twitter_ads_source.twitter_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.3695319, "supported_languages": null}, "macro.twitter_ads_source.get_campaign_report_columns": {"name": "get_campaign_report_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "unique_id": "macro.twitter_ads_source.get_campaign_report_columns", "macro_sql": "{% macro get_campaign_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__conversion_fields')) }}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__conversion_sale_amount_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ twitter_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('twitter_ads__campaign_report_passthrough_metrics'), except_fields=(var('twitter_ads__conversion_fields') + var('twitter_ads__conversion_sale_amount_fields'))) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns", "macro.twitter_ads_source.twitter_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.3717928, "supported_languages": null}, "macro.twitter_ads_source.get_account_history_columns": {"name": "get_account_history_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"approval_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"industry_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"salt\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_switch_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.377836, "supported_languages": null}, "macro.twitter_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget_amount_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"duration_in_days\", \"datatype\": dbt.type_int()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"entity_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency_cap\", \"datatype\": dbt.type_int()},\n {\"name\": \"funding_instrument_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"servable\", \"datatype\": \"boolean\"},\n {\"name\": \"standard_delivery\", \"datatype\": \"boolean\"},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"total_budget_amount_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.383668, "supported_languages": null}, "macro.twitter_ads_source.get_line_item_history_columns": {"name": "get_line_item_history_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_line_item_history_columns", "macro_sql": "{% macro get_line_item_history_columns() %}\n\n{% set columns = [\n {\"name\": \"advertiser_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_user_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"automatically_select_bid\", \"datatype\": \"boolean\"},\n {\"name\": \"bid_amount_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"charge_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creative_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"entity_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"objective\", \"datatype\": dbt.type_string()},\n {\"name\": \"optimization\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_web_event_tag\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"target_cpa_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_budget_amount_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.402721, "supported_languages": null}, "macro.twitter_ads_source.get_promoted_tweet_history_columns": {"name": "get_promoted_tweet_history_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_promoted_tweet_history_columns", "macro_sql": "{% macro get_promoted_tweet_history_columns() %}\n\n{% set columns = [\n {\"name\": \"approval_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"entity_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tweet_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.404724, "supported_languages": null}, "macro.twitter_ads_source.get_tweet_url_columns": {"name": "get_tweet_url_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_tweet_url_columns", "macro_sql": "{% macro get_tweet_url_columns() %}\n\n{% set columns = [\n {\"name\": \"display_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"expanded_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"indices\", \"datatype\": dbt.type_string()},\n {\"name\": \"tweet_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.40733, "supported_languages": null}, "macro.twitter_ads_source.get_promoted_tweet_report_columns": {"name": "get_promoted_tweet_report_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_promoted_tweet_report_columns", "macro_sql": "{% macro get_promoted_tweet_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"promoted_tweet_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__conversion_fields')) }}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__conversion_sale_amount_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ twitter_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('twitter_ads__promoted_tweet_report_passthrough_metrics'), except_fields=(var('twitter_ads__conversion_fields') + var('twitter_ads__conversion_sale_amount_fields'))) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns", "macro.twitter_ads_source.twitter_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.411205, "supported_languages": null}, "macro.twitter_ads_source.twitter_ads_add_pass_through_columns": {"name": "twitter_ads_add_pass_through_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/twitter_ads_add_pass_through_columns.sql", "original_file_path": "macros/twitter_ads_add_pass_through_columns.sql", "unique_id": "macro.twitter_ads_source.twitter_ads_add_pass_through_columns", "macro_sql": "{% macro twitter_ads_add_pass_through_columns(base_columns, pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for column in pass_through_fields %}\n\n {% if column is mapping %}\n {% set col_name = column.alias|default(column.name)|lower %}\n \n {% if col_name not in except_fields %}\n {% if column.alias %}\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% else %}\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% else %}\n {% if column|lower not in except_fields %}\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.415099, "supported_languages": null}, "macro.linkedin.linkedin_ads_persist_pass_through_columns": {"name": "linkedin_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "linkedin", "path": "macros/linkedin_ads_persist_pass_through_columns.sql", "original_file_path": "macros/linkedin_ads_persist_pass_through_columns.sql", "unique_id": "macro.linkedin.linkedin_ads_persist_pass_through_columns", "macro_sql": "{% macro linkedin_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, except_variable=none, exclude_fields=[]) %}\n\n{% set except_fields = [] %}\n{% if except_variable is not none %}\n {# Start creating list of fields to exclude #}\n {% for item in var(except_variable) %}\n {% do except_fields.append(item.name) %}\n {% endfor %}\n{% endif %}\n\n{% for field in exclude_fields %}\n {% do except_fields.append(field) %}\n{% endfor %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field|lower %}\n \n {% if field_name not in except_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field_name }}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1731951593.419036, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.microsoft_ads_source.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.account_id", "block_contents": "The ID of the account."}, "doc.microsoft_ads_source.account_name": {"name": "account_name", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.account_name", "block_contents": "The name of the account."}, "doc.microsoft_ads_source.account_timezone": {"name": "account_timezone", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.account_timezone", "block_contents": "The time zone associated with this account."}, "doc.microsoft_ads_source.ad_distribution": {"name": "ad_distribution", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_distribution", "block_contents": "The distribution medium associated with this record."}, "doc.microsoft_ads_source.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_id", "block_contents": "The ID of the corresponding ad."}, "doc.microsoft_ads_source.ad_group_status": {"name": "ad_group_status", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_group_status", "block_contents": "The status of this ad group; see the following [documentation](https://help.ads.microsoft.com/apex/index/3/en/53094) for more information on values and definitions."}, "doc.microsoft_ads_source.ad_name": {"name": "ad_name", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_name", "block_contents": "The name of the corresponding ad; `title_part_1` is used as the ad name as a proxy as one is not provided by the data source."}, "doc.microsoft_ads_source.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_group_id", "block_contents": "The ID of the corresponding ad group."}, "doc.microsoft_ads_source.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_group_name", "block_contents": "The name of the corresponding ad group."}, "doc.microsoft_ads_source.ad_status": {"name": "ad_status", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_status", "block_contents": "The status of this ad; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/adstatus?view=bingads-13) for more information on values and definitions."}, "doc.microsoft_ads_source.ad_type": {"name": "ad_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_type", "block_contents": "The ad type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/adtype?view=bingads-13) for more information on values and definitions."}, "doc.microsoft_ads_source.bid_match_type": {"name": "bid_match_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.bid_match_type", "block_contents": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'."}, "doc.microsoft_ads_source.budget_association_status": {"name": "budget_association_status", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.budget_association_status", "block_contents": "Indicates whether or not the campaign is currently spending from the budget mentioned in the BudgetName column. The possible values are `Current` and `Ended`."}, "doc.microsoft_ads_source.budget_name": {"name": "budget_name", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.budget_name", "block_contents": "The name of the budget. This column will be empty for unshared budgets."}, "doc.microsoft_ads_source.budget_status": {"name": "budget_status", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.budget_status", "block_contents": "The budget status. The possible values are `Active` and `Deleted`. This column will be empty for unshared budgets."}, "doc.microsoft_ads_source.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.campaign_id", "block_contents": "The ID of the campaign."}, "doc.microsoft_ads_source.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.campaign_name", "block_contents": "The name of the campaign."}, "doc.microsoft_ads_source.campaign_status": {"name": "campaign_status", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.campaign_status", "block_contents": "The status of this campaign; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaignstatus?view=bingads-13) for more information on values and definitions."}, "doc.microsoft_ads_source.campaign_timezone": {"name": "campaign_timezone", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.campaign_timezone", "block_contents": "The time zone associated with this campaign."}, "doc.microsoft_ads_source.campaign_type": {"name": "campaign_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.campaign_type", "block_contents": "The campaign type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaigntype?view=bingads-13) for more information on values and definitions."}, "doc.microsoft_ads_source.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.clicks", "block_contents": "The number of clicks that occurred by the grain of the report."}, "doc.microsoft_ads_source.conversions_qualified": {"name": "conversions_qualified", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.conversions_qualified", "block_contents": "Number of [conversions](https://learn.microsoft.com/en-us/advertising/reporting-service/conversionperformancereportcolumn?view=bingads-13#conversionsqualified), measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true."}, "doc.microsoft_ads_source.conversions": {"name": "conversions", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.conversions", "block_contents": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null."}, "doc.microsoft_ads_source.conversions_src": {"name": "conversions_src", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.conversions_src", "block_contents": "(Deprecated in 2022 in favor of `conversions_qualified`) Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true."}, "doc.microsoft_ads_source.revenue": {"name": "revenue", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.revenue", "block_contents": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true."}, "doc.microsoft_ads_source.all_conversions": {"name": "all_conversions", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.all_conversions", "block_contents": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null."}, "doc.microsoft_ads_source.all_conversions_qualified": {"name": "all_conversions_qualified", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.all_conversions_qualified", "block_contents": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads."}, "doc.microsoft_ads_source.all_conversions_src": {"name": "all_conversions_src", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.all_conversions_src", "block_contents": "(Deprecated in 2022 in favor of `conversions_qualified`)\nNumber of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads."}, "doc.microsoft_ads_source.all_revenue": {"name": "all_revenue", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.all_revenue", "block_contents": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads."}, "doc.microsoft_ads_source.currency_code": {"name": "currency_code", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.currency_code", "block_contents": "The currency code associated with spend and, if applicable, other metrics associated with currency."}, "doc.microsoft_ads_source.date_day": {"name": "date_day", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.date_day", "block_contents": "The date of the performance report."}, "doc.microsoft_ads_source.delivered_match_type": {"name": "delivered_match_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.delivered_match_type", "block_contents": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'."}, "doc.microsoft_ads_source.device_os": {"name": "device_os", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.device_os", "block_contents": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'."}, "doc.microsoft_ads_source.device_type": {"name": "device_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.device_type", "block_contents": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'."}, "doc.microsoft_ads_source.end_date": {"name": "end_date", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.end_date", "block_contents": "The date in which this ad group will no longer run."}, "doc.microsoft_ads_source.final_url": {"name": "final_url", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.final_url", "block_contents": "The full URL that the ad links to."}, "doc.microsoft_ads_source.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.impressions", "block_contents": "The number of impressions that occurred by the grain of the report."}, "doc.microsoft_ads_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.is_most_recent_record", "block_contents": "Boolean representing whether a record is the most recent version of that record."}, "doc.microsoft_ads_source.keyword_id": {"name": "keyword_id", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.keyword_id", "block_contents": "The ID of the keyword."}, "doc.microsoft_ads_source.keyword_name": {"name": "keyword_name", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.keyword_name", "block_contents": "The keyword(s) associated with this record."}, "doc.microsoft_ads_source.keyword_status": {"name": "keyword_status", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.keyword_status", "block_contents": "The status of this keyword; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/keywordstatus?view=bingads-13) for more information on values and definitions."}, "doc.microsoft_ads_source.language": {"name": "language", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.language", "block_contents": "The language that the associated ad was viewed in."}, "doc.microsoft_ads_source.match_type": {"name": "match_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.match_type", "block_contents": "The match type associated with this record; values contain but may not be limited to 'Broad', 'Exact', 'Phrase'. Please refer to Microsoft Ad's [documentation](https://help.ads.microsoft.com/#apex/ads/en/50822/1)."}, "doc.microsoft_ads_source.modified_at": {"name": "modified_at", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.modified_at", "block_contents": "The time each version of the object was last modified, i.e. when that version of the object was 'created'."}, "doc.microsoft_ads_source.network": {"name": "network", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.network", "block_contents": "The network associated with this record."}, "doc.microsoft_ads_source.search_query": {"name": "search_query", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.search_query", "block_contents": "The search query string associated with this record."}, "doc.microsoft_ads_source.spend": {"name": "spend", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.spend", "block_contents": "The amount of spend that occurred by the grain of the report."}, "doc.microsoft_ads_source.start_date": {"name": "start_date", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.start_date", "block_contents": "The date in which an ad group starts running."}, "doc.microsoft_ads_source.time_zone": {"name": "time_zone", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.time_zone", "block_contents": "The time zone associated with this record."}, "doc.microsoft_ads_source.top_vs_other": {"name": "top_vs_other", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.top_vs_other", "block_contents": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009)."}, "doc.microsoft_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.reddit_ads._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads._fivetran_synced", "block_contents": "Timestamp of when Fivetran synced a record."}, "doc.reddit_ads.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.account_id", "block_contents": "The ID of the account."}, "doc.reddit_ads.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.ad_id", "block_contents": "The ID of the ad."}, "doc.reddit_ads.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.ad_group_id", "block_contents": "The ID of the ad group."}, "doc.reddit_ads.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.campaign_id", "block_contents": "The ID of the campaign."}, "doc.reddit_ads.post_id": {"name": "post_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.post_id", "block_contents": "The ID of the post."}, "doc.reddit_ads.ad_name": {"name": "ad_name", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.ad_name", "block_contents": "Name of ad."}, "doc.reddit_ads.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.ad_group_name", "block_contents": "Name of ad group."}, "doc.reddit_ads.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.campaign_name", "block_contents": "Name of campaign."}, "doc.reddit_ads.created_at": {"name": "created_at", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.created_at", "block_contents": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp."}, "doc.reddit_ads.currency": {"name": "currency", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.currency", "block_contents": "The currency this account uses (ISO-4217)"}, "doc.reddit_ads.status": {"name": "status", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.status", "block_contents": "The current state of the advertiser. \"PENDING_BILLING\", \"VALID\", \"TRUSTED\", \"ADMIN\", \"FAILED_BILLING\", \"SUSPICIOUS\", \"SUSPENDED\", or \"BANNED\""}, "doc.reddit_ads.time_zone_id": {"name": "time_zone_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.time_zone_id", "block_contents": "The time zone id preference for this account"}, "doc.reddit_ads.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.clicks", "block_contents": "The number of clicks detected for this report period"}, "doc.reddit_ads.date_day": {"name": "date_day", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.date_day", "block_contents": "YYYY-MM-DD formatted date"}, "doc.reddit_ads.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.impressions", "block_contents": "The number of impressions served for this report period"}, "doc.reddit_ads.spend": {"name": "spend", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.spend", "block_contents": "The amount (in microcurrency) spent for this report period in Ad Account's currency"}, "doc.reddit_ads.click_url": {"name": "click_url", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.click_url", "block_contents": "The destination url, or the website address, that a visitor goes to when they click on the ad"}, "doc.reddit_ads.post_url": {"name": "post_url", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.post_url", "block_contents": "The URL belonging to the post."}, "doc.reddit_ads.attribution_type": {"name": "attribution_type", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.attribution_type", "block_contents": "Attribution type: \"CLICK_THROUGH_CONVERSION\", \"VIEW_THROUGH_CONVERSION\", or \"ALL_CONVERSION\".\nCLICK_THROUGH_CONVERSION: A user clicked on your ad and then completed the conversion action on your site. \nVIEW_THROUGH_CONVERSION: A user saw your ad and did not click it, but did complete the conversion action on your site.\nALL_CONVERSION: Combination of both."}, "doc.reddit_ads.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.reddit_ads.total_items": {"name": "total_items", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.total_items", "block_contents": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion."}, "doc.reddit_ads.total_value": {"name": "total_value", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.total_value", "block_contents": "The total monetary value associated with a conversion event."}, "doc.reddit_ads.view_through_conversion_attribution_window_month": {"name": "view_through_conversion_attribution_window_month", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.view_through_conversion_attribution_window_month", "block_contents": "The total view-through conversions attributed, for the given month-long window."}, "doc.reddit_ads.click_through_conversion_attribution_window_month": {"name": "click_through_conversion_attribution_window_month", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.click_through_conversion_attribution_window_month", "block_contents": "The total click-through conversions attributed, for the given month-long window."}, "doc.reddit_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source._fivetran_synced", "block_contents": "Timestamp of when Fivetran synced a record."}, "doc.reddit_ads_source.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.account_id", "block_contents": "The ID of the account."}, "doc.reddit_ads_source.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ad_id", "block_contents": "The ID of the ad."}, "doc.reddit_ads_source.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ad_group_id", "block_contents": "The ID of the ad group."}, "doc.reddit_ads_source.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.campaign_id", "block_contents": "The ID of the campaign."}, "doc.reddit_ads_source.post_id": {"name": "post_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.post_id", "block_contents": "The ID of the post."}, "doc.reddit_ads_source.ad_name": {"name": "ad_name", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ad_name", "block_contents": "Name of ad."}, "doc.reddit_ads_source.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ad_group_name", "block_contents": "Name of ad group."}, "doc.reddit_ads_source.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.campaign_name", "block_contents": "Name of campaign."}, "doc.reddit_ads_source.attribution_type": {"name": "attribution_type", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.attribution_type", "block_contents": "Attribution type: \"CLICK_THROUGH_CONVERSION\", \"VIEW_THROUGH_CONVERSION\", or \"ALL_CONVERSION\".\nCLICK_THROUGH_CONVERSION: A user clicked on your ad and then completed the conversion action on your site. \nVIEW_THROUGH_CONVERSION: A user saw your ad and did not click it, but did complete the conversion action on your site.\nALL_CONVERSION: Combination of both."}, "doc.reddit_ads_source.click_attribution_window": {"name": "click_attribution_window", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.click_attribution_window", "block_contents": "Determines how long after clicking on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\""}, "doc.reddit_ads_source.created_at": {"name": "created_at", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.created_at", "block_contents": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp."}, "doc.reddit_ads_source.currency": {"name": "currency", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.currency", "block_contents": "The currency this account uses (ISO-4217)"}, "doc.reddit_ads_source.status": {"name": "status", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.status", "block_contents": "The current state of the advertiser. \"PENDING_BILLING\", \"VALID\", \"TRUSTED\", \"ADMIN\", \"FAILED_BILLING\", \"SUSPICIOUS\", \"SUSPENDED\", or \"BANNED\""}, "doc.reddit_ads_source.time_zone_id": {"name": "time_zone_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.time_zone_id", "block_contents": "The time zone id preference for this account"}, "doc.reddit_ads_source.view_attribution_window": {"name": "view_attribution_window", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.view_attribution_window", "block_contents": "Determines how long after viewing on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\""}, "doc.reddit_ads_source.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.clicks", "block_contents": "The number of clicks detected for this report period"}, "doc.reddit_ads_source.comment_downvotes": {"name": "comment_downvotes", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.comment_downvotes", "block_contents": "The number comment downvotes for this report period"}, "doc.reddit_ads_source.comment_upvotes": {"name": "comment_upvotes", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.comment_upvotes", "block_contents": "The number comment upvotes for this report period"}, "doc.reddit_ads_source.comments_page_views": {"name": "comments_page_views", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.comments_page_views", "block_contents": "The number of times the comments page was viewed for this report period"}, "doc.reddit_ads_source.conversion_roas": {"name": "conversion_roas", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.conversion_roas", "block_contents": "Return on ad spend for purchases for this period"}, "doc.reddit_ads_source.cpc": {"name": "cpc", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.cpc", "block_contents": "The cost-per-click for this period"}, "doc.reddit_ads_source.ctr": {"name": "ctr", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ctr", "block_contents": "The click-through-rate for this period"}, "doc.reddit_ads_source.date": {"name": "date", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.date", "block_contents": "YYYY-MM-DD formatted date"}, "doc.reddit_ads_source.ecpm": {"name": "ecpm", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ecpm", "block_contents": "The effective CPM for this period"}, "doc.reddit_ads_source.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.impressions", "block_contents": "The number of impressions served for this report period"}, "doc.reddit_ads_source.region": {"name": "region", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.region", "block_contents": "The region (US state or UK country) targeted for the reports"}, "doc.reddit_ads_source.spend": {"name": "spend", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.spend", "block_contents": "The amount (in microcurrency) spent for this report period in Ad Account's currency, as defined [here](https://ads-api.reddit.com/docs/#tag/Reporting/paths/~1api~1v2.0~1accounts~1{account_id}~1reports/get)"}, "doc.reddit_ads_source.video_started": {"name": "video_started", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_started", "block_contents": "The number of times the ad was served and the video began playing"}, "doc.reddit_ads_source.video_watched_25_percent": {"name": "video_watched_25_percent", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_watched_25_percent", "block_contents": "The number of times the ad was served and at least 25% of the video has played"}, "doc.reddit_ads_source.video_watched_3_seconds": {"name": "video_watched_3_seconds", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_watched_3_seconds", "block_contents": "The number of times the ad was served and at least 3 seconds of the video has played"}, "doc.reddit_ads_source.video_watched_50_percent": {"name": "video_watched_50_percent", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_watched_50_percent", "block_contents": "The number of times the ad was served and at least 50% of the video has played"}, "doc.reddit_ads_source.video_watched_5_seconds": {"name": "video_watched_5_seconds", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_watched_5_seconds", "block_contents": "The number of times the ad was served and at least 5 seconds of the video has played"}, "doc.reddit_ads_source.video_watched_75_percent": {"name": "video_watched_75_percent", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_watched_75_percent", "block_contents": "The number of times the ad was served and at least 75% of the video has played"}, "doc.reddit_ads_source.viewer_comments": {"name": "viewer_comments", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.viewer_comments", "block_contents": "The number of times a user saw the post, and also commented on it. We count per view + comment combination (similar to a conversion)"}, "doc.reddit_ads_source.click_url": {"name": "click_url", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.click_url", "block_contents": "The destination url, or the website address, that a visitor goes to when they click on the ad"}, "doc.reddit_ads_source.configured_status": {"name": "configured_status", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.configured_status", "block_contents": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\""}, "doc.reddit_ads_source.effective_status": {"name": "effective_status", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.effective_status", "block_contents": "The calculated status determining the real status of this entity."}, "doc.reddit_ads_source.is_processing": {"name": "is_processing", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.is_processing", "block_contents": "Whether or not effective status is processing"}, "doc.reddit_ads_source.post_url": {"name": "post_url", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.post_url", "block_contents": "The URL belonging to the post."}, "doc.reddit_ads_source.rejection_reason": {"name": "rejection_reason", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.rejection_reason", "block_contents": "Reason why entity was rejected."}, "doc.reddit_ads_source.bid_strategy": {"name": "bid_strategy", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.bid_strategy", "block_contents": "The bid strategy for this entity. \"MAXIMIZE_VOLUME\", \"MANUAL_BIDDING\", or \"BIDLESS\""}, "doc.reddit_ads_source.bid_value": {"name": "bid_value", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.bid_value", "block_contents": "The amount to pay in microcurrency per bidding event."}, "doc.reddit_ads_source.end_time": {"name": "end_time", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.end_time", "block_contents": "When the entity will stop delivering."}, "doc.reddit_ads_source.expand_targeting": {"name": "expand_targeting", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.expand_targeting", "block_contents": "Boolean that when selected, allows Reddit to expand your targeting to maximize your results."}, "doc.reddit_ads_source.goal_type": {"name": "goal_type", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.goal_type", "block_contents": "The type of goal for the entity. \"IMPRESSIONS\", \"PERCENTAGE\", \"CLICKS\", \"CONVERSIONS\", \"LIFETIME_SPEND\", \"DAILY_SPEND\", or \"VIDEO_VIEWABLE_IMPRESSIONS\""}, "doc.reddit_ads_source.goal_value": {"name": "goal_value", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.goal_value", "block_contents": "The value used to determine the goal has been met. This is measured in microcurrency for monetary goals types."}, "doc.reddit_ads_source.optimization_strategy_type": {"name": "optimization_strategy_type", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.optimization_strategy_type", "block_contents": "The strategy to use when optimizing the delivery of an ad. \"DOWNSTREAM_CONVERSIONS\" or \"APP_INSTALLS\""}, "doc.reddit_ads_source.start_time": {"name": "start_time", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.start_time", "block_contents": "When the entity will begin to deliver."}, "doc.reddit_ads_source.funding_instrument_id": {"name": "funding_instrument_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.funding_instrument_id", "block_contents": "Campaign level funding instrument id"}, "doc.reddit_ads_source.objective": {"name": "objective", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.objective", "block_contents": "The objective type of a campaign."}, "doc.reddit_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.reddit_ads_source.account_conversions_report": {"name": "account_conversions_report", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.account_conversions_report", "block_contents": "Provides a summary of conversion events at the account level, aggregating key metrics by event and day."}, "doc.reddit_ads_source.stg_reddit_ads__account_conversions_report": {"name": "stg_reddit_ads__account_conversions_report", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.stg_reddit_ads__account_conversions_report", "block_contents": "Provides a summary of conversion events at the account level, aggregating key metrics by event and day such as view-through and click-through conversions."}, "doc.reddit_ads_source.avg_value": {"name": "avg_value", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.avg_value", "block_contents": "The average value of conversions over a given period."}, "doc.reddit_ads_source.click_through_conversion_attribution_window_month": {"name": "click_through_conversion_attribution_window_month", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.click_through_conversion_attribution_window_month", "block_contents": "The total click-through conversions attributed, for the given month-long window."}, "doc.reddit_ads_source.click_through_conversion_attribution_window_day": {"name": "click_through_conversion_attribution_window_day", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.click_through_conversion_attribution_window_day", "block_contents": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default."}, "doc.reddit_ads_source.click_through_conversion_attribution_window_week": {"name": "click_through_conversion_attribution_window_week", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.click_through_conversion_attribution_window_week", "block_contents": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default."}, "doc.reddit_ads_source.event_name": {"name": "event_name", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.event_name", "block_contents": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset."}, "doc.reddit_ads_source.total_items": {"name": "total_items", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.total_items", "block_contents": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion."}, "doc.reddit_ads_source.total_value": {"name": "total_value", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.total_value", "block_contents": "The total monetary value associated with a conversion event."}, "doc.reddit_ads_source.view_through_conversion_attribution_window_month": {"name": "view_through_conversion_attribution_window_month", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.view_through_conversion_attribution_window_month", "block_contents": "The total view-through conversions attributed, for the given month-long window."}, "doc.reddit_ads_source.view_through_conversion_attribution_window_day": {"name": "view_through_conversion_attribution_window_day", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.view_through_conversion_attribution_window_day", "block_contents": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default."}, "doc.reddit_ads_source.view_through_conversion_attribution_window_week": {"name": "view_through_conversion_attribution_window_week", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.view_through_conversion_attribution_window_week", "block_contents": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default."}, "doc.reddit_ads_source.ad_group_conversions_report": {"name": "ad_group_conversions_report", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ad_group_conversions_report", "block_contents": "Provides a summary of conversion events at the ad group level, aggregating key metrics by event and day."}, "doc.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report": {"name": "stg_reddit_ads__ad_group_conversions_report", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report", "block_contents": "Provides a summary of conversion events at the ad group level, aggregating key metrics by event and day such as view-through and click-through conversions."}, "doc.reddit_ads_source.ad_conversions_report": {"name": "ad_conversions_report", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ad_conversions_report", "block_contents": "Provides a summary of conversion events at the individual ad level, aggregating key metrics by event and day."}, "doc.reddit_ads_source.stg_reddit_ads__ad_conversions_report": {"name": "stg_reddit_ads__ad_conversions_report", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.stg_reddit_ads__ad_conversions_report", "block_contents": "Provides a summary of conversion events at the individual ad level, aggregating key metrics by event and day such as view-through and click-through conversions."}, "doc.reddit_ads_source.campaign_conversions_report": {"name": "campaign_conversions_report", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.campaign_conversions_report", "block_contents": "Provides a summary of conversion events at the campaign level, aggregating key metrics by event and day."}, "doc.reddit_ads_source.stg_reddit_ads__campaign_conversions_report": {"name": "stg_reddit_ads__campaign_conversions_report", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.stg_reddit_ads__campaign_conversions_report", "block_contents": "Provides a summary of conversion events at the campaign level, aggregating key metrics by event and day such as view-through and click-through conversions."}, "doc.amazon_ads_source._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source._fivetran_deleted", "block_contents": "Boolean created by Fivetran to indicate whether the record has been deleted."}, "doc.amazon_ads_source._fivetran_id": {"name": "_fivetran_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source._fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "doc.amazon_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source._fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "doc.amazon_ads_source.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.account_id", "block_contents": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces."}, "doc.amazon_ads_source.account_name": {"name": "account_name", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.account_name", "block_contents": "Account Name. Not currently populated for sellers."}, "doc.amazon_ads_source.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.ad_group_id", "block_contents": "The ID of the AdGroup."}, "doc.amazon_ads_source.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.ad_group_name", "block_contents": "The name of the AdGroup."}, "doc.amazon_ads_source.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.ad_id", "block_contents": "The ID of the Ad."}, "doc.amazon_ads_source.ad_keyword_status": {"name": "ad_keyword_status", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.ad_keyword_status", "block_contents": "Current status of a keyword."}, "doc.amazon_ads_source.advertised_asin": {"name": "advertised_asin", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.advertised_asin", "block_contents": "The ASIN associated to an advertised product."}, "doc.amazon_ads_source.advertised_sku": {"name": "advertised_sku", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.advertised_sku", "block_contents": "The SKU being advertised."}, "doc.amazon_ads_source.bid_keyword": {"name": "bid_keyword", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.bid_keyword", "block_contents": "Bid associated with this keyword."}, "doc.amazon_ads_source.campaign_applicable_budget_rule_id": {"name": "campaign_applicable_budget_rule_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_applicable_budget_rule_id", "block_contents": "The ID associated to the active budget rule for a campaign."}, "doc.amazon_ads_source.campaign_applicable_budget_rule_name": {"name": "campaign_applicable_budget_rule_name", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_applicable_budget_rule_name", "block_contents": "The name associated to the active budget rule for a campaign."}, "doc.amazon_ads_source.campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_bidding_strategy", "block_contents": "The bidding strategy associated with a campaign."}, "doc.amazon_ads_source.campaign_budget_amount": {"name": "campaign_budget_amount", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_budget_amount", "block_contents": "Total budget allocated to the campaign."}, "doc.amazon_ads_source.campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_budget_currency_code", "block_contents": "The currency code associated with the campaign."}, "doc.amazon_ads_source.campaign_budget_type": {"name": "campaign_budget_type", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_budget_type", "block_contents": "One of: daily or lifetime."}, "doc.amazon_ads_source.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_id", "block_contents": "The ID of the Campaign."}, "doc.amazon_ads_source.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_name", "block_contents": "The name of the Campaign."}, "doc.amazon_ads_source.campaign_rule_based_budget_amount": {"name": "campaign_rule_based_budget_amount", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_rule_based_budget_amount", "block_contents": "The value of the rule-based budget for a campaign."}, "doc.amazon_ads_source.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.clicks", "block_contents": "Total number of ad clicks."}, "doc.amazon_ads_source.cost": {"name": "cost", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.cost", "block_contents": "Total cost of ad clicks."}, "doc.amazon_ads_source.country_code": {"name": "country_code", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.country_code", "block_contents": "The code for a given country."}, "doc.amazon_ads_source.creation_date": {"name": "creation_date", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.creation_date", "block_contents": "The date of creation of the record."}, "doc.amazon_ads_source.currency_code": {"name": "currency_code", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.currency_code", "block_contents": "The currency used for all monetary values for entities under this profile."}, "doc.amazon_ads_source.default_bid": {"name": "default_bid", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.default_bid", "block_contents": "The date of creation of the record."}, "doc.amazon_ads_source.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.impressions", "block_contents": "Total number of ad impressions."}, "doc.amazon_ads_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.is_most_recent_record", "block_contents": "Boolean indicating whether record was the most recent instance."}, "doc.amazon_ads_source.keyword_bid": {"name": "keyword_bid", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.keyword_bid", "block_contents": "Bid associated with a keyword or targeting expression."}, "doc.amazon_ads_source.keyword_id": {"name": "keyword_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.keyword_id", "block_contents": "The ID of the keyword."}, "doc.amazon_ads_source.keyword_match_type": {"name": "keyword_match_type", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.keyword_match_type", "block_contents": "One of (broad, exact, or phrase.)"}, "doc.amazon_ads_source.keyword_type": {"name": "keyword_type", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.keyword_type", "block_contents": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT."}, "doc.amazon_ads_source.last_updated_date": {"name": "last_updated_date", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.last_updated_date", "block_contents": "Date of last update to record."}, "doc.amazon_ads_source.match_type": {"name": "match_type", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.match_type", "block_contents": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT."}, "doc.amazon_ads_source.negative_keyword_id": {"name": "negative_keyword_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.negative_keyword_id", "block_contents": "The ID of the negative keyword."}, "doc.amazon_ads_source.portfolio_id": {"name": "portfolio_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.portfolio_id", "block_contents": "The ID of the Portfolio."}, "doc.amazon_ads_source.portfolio_name": {"name": "portfolio_name", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.portfolio_name", "block_contents": "The name of the Portfolio."}, "doc.amazon_ads_source.profile_id": {"name": "profile_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.profile_id", "block_contents": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace."}, "doc.amazon_ads_source.report_date": {"name": "report_date", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.report_date", "block_contents": "The date of the report."}, "doc.amazon_ads_source.search_term": {"name": "search_term", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.search_term", "block_contents": "The search term used by the customer."}, "doc.amazon_ads_source.serving_status": {"name": "serving_status", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.serving_status", "block_contents": "The current serving status of the record."}, "doc.amazon_ads_source.state": {"name": "state", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.state", "block_contents": "The state of the record (enabled, paused, or archived)."}, "doc.amazon_ads_source.targeting": {"name": "targeting", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.targeting", "block_contents": "A string representation of the expression object used in the targeting clause."}, "doc.amazon_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.amazon_ads_source.purchases_30_d": {"name": "purchases_30_d", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.purchases_30_d", "block_contents": "Number of attributed conversion events occurring within 30 days of an ad click."}, "doc.amazon_ads_source.sales_30_d": {"name": "sales_30_d", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.sales_30_d", "block_contents": "Total value of sales occurring within 30 days of an ad click."}, "doc.linkedin_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "linkedin_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.linkedin_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.amazon_ads._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads._fivetran_deleted", "block_contents": "Boolean created by Fivetran to indicate whether the record has been deleted."}, "doc.amazon_ads._fivetran_id": {"name": "_fivetran_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads._fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "doc.amazon_ads._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads._fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "doc.amazon_ads.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.account_id", "block_contents": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces."}, "doc.amazon_ads.account_name": {"name": "account_name", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.account_name", "block_contents": "Account Name. Not currently populated for sellers."}, "doc.amazon_ads.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.ad_group_id", "block_contents": "The ID of the AdGroup."}, "doc.amazon_ads.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.ad_group_name", "block_contents": "The name of the AdGroup."}, "doc.amazon_ads.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.ad_id", "block_contents": "The ID of the Ad."}, "doc.amazon_ads.ad_keyword_status": {"name": "ad_keyword_status", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.ad_keyword_status", "block_contents": "Current status of a keyword."}, "doc.amazon_ads.advertised_asin": {"name": "advertised_asin", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.advertised_asin", "block_contents": "The ASIN associated to an advertised product."}, "doc.amazon_ads.advertised_sku": {"name": "advertised_sku", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.advertised_sku", "block_contents": "The SKU being advertised."}, "doc.amazon_ads.bid_keyword": {"name": "bid_keyword", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.bid_keyword", "block_contents": "Bid associated with this keyword."}, "doc.amazon_ads.campaign_applicable_budget_rule_id": {"name": "campaign_applicable_budget_rule_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_applicable_budget_rule_id", "block_contents": "The ID associated to the active budget rule for a campaign."}, "doc.amazon_ads.campaign_applicable_budget_rule_name": {"name": "campaign_applicable_budget_rule_name", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_applicable_budget_rule_name", "block_contents": "The name associated to the active budget rule for a campaign."}, "doc.amazon_ads.campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_bidding_strategy", "block_contents": "The bidding strategy associated with a campaign."}, "doc.amazon_ads.campaign_budget_amount": {"name": "campaign_budget_amount", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_budget_amount", "block_contents": "Total budget allocated to the campaign."}, "doc.amazon_ads.campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_budget_currency_code", "block_contents": "The currency code associated with the campaign."}, "doc.amazon_ads.campaign_budget_type": {"name": "campaign_budget_type", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_budget_type", "block_contents": "One of: daily or lifetime."}, "doc.amazon_ads.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_id", "block_contents": "The ID of the Campaign."}, "doc.amazon_ads.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_name", "block_contents": "The name of the Campaign."}, "doc.amazon_ads.campaign_rule_based_budget_amount": {"name": "campaign_rule_based_budget_amount", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_rule_based_budget_amount", "block_contents": "The value of the rule-based budget for a campaign."}, "doc.amazon_ads.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.clicks", "block_contents": "Total number of ad clicks."}, "doc.amazon_ads.cost": {"name": "cost", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.cost", "block_contents": "Total cost of ad clicks."}, "doc.amazon_ads.country_code": {"name": "country_code", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.country_code", "block_contents": "The code for a given country."}, "doc.amazon_ads.creation_date": {"name": "creation_date", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.creation_date", "block_contents": "The date of creation of the record."}, "doc.amazon_ads.currency_code": {"name": "currency_code", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.currency_code", "block_contents": "The currency used for all monetary values for entities under this profile."}, "doc.amazon_ads.default_bid": {"name": "default_bid", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.default_bid", "block_contents": "The date of creation of the record."}, "doc.amazon_ads.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.impressions", "block_contents": "Total number of ad impressions."}, "doc.amazon_ads.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.is_most_recent_record", "block_contents": "Boolean indicating whether record was the most recent instance."}, "doc.amazon_ads.keyword_bid": {"name": "keyword_bid", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.keyword_bid", "block_contents": "Bid associated with a keyword or targeting expression."}, "doc.amazon_ads.keyword_id": {"name": "keyword_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.keyword_id", "block_contents": "The ID of the keyword."}, "doc.amazon_ads.keyword_match_type": {"name": "keyword_match_type", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.keyword_match_type", "block_contents": "One of (broad, exact, or phrase.)"}, "doc.amazon_ads.keyword_text": {"name": "keyword_text", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.keyword_text", "block_contents": "The exact text for the keyword."}, "doc.amazon_ads.keyword_type": {"name": "keyword_type", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.keyword_type", "block_contents": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT."}, "doc.amazon_ads.last_updated_date": {"name": "last_updated_date", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.last_updated_date", "block_contents": "Date of last update to record."}, "doc.amazon_ads.match_type": {"name": "match_type", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.match_type", "block_contents": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT."}, "doc.amazon_ads.negative_keyword_id": {"name": "negative_keyword_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.negative_keyword_id", "block_contents": "The ID of the negative keyword."}, "doc.amazon_ads.portfolio_id": {"name": "portfolio_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.portfolio_id", "block_contents": "The ID of the Portfolio."}, "doc.amazon_ads.portfolio_name": {"name": "portfolio_name", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.portfolio_name", "block_contents": "The name of the Portfolio."}, "doc.amazon_ads.profile_id": {"name": "profile_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.profile_id", "block_contents": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace."}, "doc.amazon_ads.report_date": {"name": "report_date", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.report_date", "block_contents": "The date of the report."}, "doc.amazon_ads.search_term": {"name": "search_term", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.search_term", "block_contents": "The search term used by the customer."}, "doc.amazon_ads.serving_status": {"name": "serving_status", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.serving_status", "block_contents": "The current serving status of the record."}, "doc.amazon_ads.state": {"name": "state", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.state", "block_contents": "The state of the record (enabled, paused, or archived)."}, "doc.amazon_ads.targeting": {"name": "targeting", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.targeting", "block_contents": "A string representation of the expression object used in the targeting clause."}, "doc.amazon_ads.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.amazon_ads.purchases_30_d": {"name": "purchases_30_d", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.purchases_30_d", "block_contents": "Number of attributed conversion events occurring within 30 days of an ad click."}, "doc.amazon_ads.sales_30_d": {"name": "sales_30_d", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.sales_30_d", "block_contents": "Total value of sales occurring within 30 days of an ad click."}, "doc.google_ads_source._fivetran_id": {"name": "_fivetran_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source._fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "doc.google_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source._fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "doc.google_ads_source.account_descriptive_name": {"name": "account_descriptive_name", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.account_descriptive_name", "block_contents": "The descriptive name of the Customer account."}, "doc.google_ads_source.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_group_id", "block_contents": "The ID of the AdGroup."}, "doc.google_ads_source.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_group_name", "block_contents": "The name of the AdGroup."}, "doc.google_ads_source.ad_group_status": {"name": "ad_group_status", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_group_status", "block_contents": "Status of the ad group."}, "doc.google_ads_source.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.campaign_id", "block_contents": "The ID of the Campaign."}, "doc.google_ads_source.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_id", "block_contents": "The ID of the Ad."}, "doc.google_ads_source.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.account_id", "block_contents": "The ID of the Account."}, "doc.google_ads_source.ad_status": {"name": "ad_status", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_status", "block_contents": "Status of the Ad."}, "doc.google_ads_source.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.campaign_name", "block_contents": "The name of the Campaign."}, "doc.google_ads_source.campaign_status": {"name": "campaign_status", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.campaign_status", "block_contents": "Status of the Campaign."}, "doc.google_ads_source.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.clicks", "block_contents": "The number of clicks."}, "doc.google_ads_source.conversions": {"name": "conversions", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.conversions", "block_contents": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business."}, "doc.google_ads_source.conversions_value": {"name": "conversions_value", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.conversions_value", "block_contents": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful."}, "doc.google_ads_source.view_through_conversions": {"name": "view_through_conversions", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.view_through_conversions", "block_contents": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column."}, "doc.google_ads_source.cost": {"name": "cost", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.cost", "block_contents": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period."}, "doc.google_ads_source.date": {"name": "date", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.date", "block_contents": "The date being reported on."}, "doc.google_ads_source.effective_final_url": {"name": "effective_final_url", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.effective_final_url", "block_contents": "Effective final URL of the impressions."}, "doc.google_ads_source.external_customer_id": {"name": "external_customer_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.external_customer_id", "block_contents": "The Customer ID."}, "doc.google_ads_source.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.impressions", "block_contents": "Count of how often your ad has appeared on a search results page or website on the Google Network."}, "doc.google_ads_source.criteria_id": {"name": "criteria_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.criteria_id", "block_contents": "The Criterion ID."}, "doc.google_ads_source.gcl_id": {"name": "gcl_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.gcl_id", "block_contents": "The Google Click ID."}, "doc.google_ads_source.criteria": {"name": "criteria", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.criteria", "block_contents": "Descriptive string for the Criterion."}, "doc.google_ads_source.criteria_destination_url": {"name": "criteria_destination_url", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.criteria_destination_url", "block_contents": "Destination URL of the criterion that triggered ads."}, "doc.google_ads_source.criteria_type": {"name": "criteria_type", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.criteria_type", "block_contents": "The type of the Criterion."}, "doc.google_ads_source.base_url": {"name": "base_url", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.base_url", "block_contents": "The base URL of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.url_host": {"name": "url_host", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.url_host", "block_contents": "The URL host of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.url_path": {"name": "url_path", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.url_path", "block_contents": "The URL path of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.utm_source": {"name": "utm_source", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.utm_source", "block_contents": "The utm_source parameter of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.utm_medium": {"name": "utm_medium", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.utm_medium", "block_contents": "The utm_medium parameter of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.utm_campaign": {"name": "utm_campaign", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.utm_campaign", "block_contents": "The utm_campaign parameter of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.utm_content": {"name": "utm_content", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.utm_content", "block_contents": "The utm_content parameter of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.utm_term": {"name": "utm_term", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.utm_term", "block_contents": "The utm_term parameter of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.updated_at": {"name": "updated_at", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.updated_at", "block_contents": "Timestamp of when the record was last updated in Google Ads."}, "doc.google_ads_source.ad_type": {"name": "ad_type", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_type", "block_contents": "The type of the ad in Google Ads."}, "doc.google_ads_source.ad_group_type": {"name": "ad_group_type", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_group_type", "block_contents": "The type of the ad group in Google Ads."}, "doc.google_ads_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.is_most_recent_record", "block_contents": "Boolean representing whether the record is the most recent version of the object."}, "doc.google_ads_source.ad_network_type": {"name": "ad_network_type", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_network_type", "block_contents": "The Google Ad network type used across the account."}, "doc.google_ads_source.device": {"name": "device", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.device", "block_contents": "Account ad performance per unique device where the ads were served."}, "doc.google_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.ad_reporting.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.account_id", "block_contents": "The ID representing the account."}, "doc.ad_reporting.account_name": {"name": "account_name", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.account_name", "block_contents": "The name of the account, if present in the source data."}, "doc.ad_reporting.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.ad_group_id", "block_contents": "The ID representing the ad group, if present in the source data."}, "doc.ad_reporting.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.ad_group_name", "block_contents": "The name of the ad group, if present in the source data."}, "doc.ad_reporting.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.ad_id", "block_contents": "The ID representing the ad, if present in the source data."}, "doc.ad_reporting.ad_name": {"name": "ad_name", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.ad_name", "block_contents": "The name of the ad, if present in the source data."}, "doc.ad_reporting.base_url": {"name": "base_url", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.base_url", "block_contents": "The base url of the ad."}, "doc.ad_reporting.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.campaign_id", "block_contents": "The ID representing the campaign, if present in the source data."}, "doc.ad_reporting.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.campaign_name", "block_contents": "The name of the campaign, if present in the source data."}, "doc.ad_reporting.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.clicks", "block_contents": "The count of clicks."}, "doc.ad_reporting.conversions": {"name": "conversions", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.conversions", "block_contents": "The count of attributed conversion events."}, "doc.ad_reporting.conversions_value": {"name": "conversions_value", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.conversions_value", "block_contents": "The monetary value of attributed conversion events."}, "doc.ad_reporting.date_day": {"name": "date_day", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.date_day", "block_contents": "The date of the report."}, "doc.ad_reporting.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.impressions", "block_contents": "The count of impressions."}, "doc.ad_reporting.keyword_id": {"name": "keyword_id", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.keyword_id", "block_contents": "The ID representing the keyword, if present in the source data."}, "doc.ad_reporting.keyword_match_type": {"name": "keyword_match_type", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.keyword_match_type", "block_contents": "The keyword match type associated with this record."}, "doc.ad_reporting.keyword_text": {"name": "keyword_text", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.keyword_text", "block_contents": "The keyword text."}, "doc.ad_reporting.platform": {"name": "platform", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.platform", "block_contents": "The ad platform associated with this record."}, "doc.ad_reporting.search_match_type": {"name": "search_match_type", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.search_match_type", "block_contents": "The search match type associated with this record."}, "doc.ad_reporting.search_query": {"name": "search_query", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.search_query", "block_contents": "The search query text."}, "doc.ad_reporting.spend": {"name": "spend", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.spend", "block_contents": "The cost of the ads."}, "doc.ad_reporting.url_host": {"name": "url_host", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.url_host", "block_contents": "The URL host of the ad."}, "doc.ad_reporting.url_path": {"name": "url_path", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.url_path", "block_contents": "The URL path of the ad."}, "doc.ad_reporting.utm_campaign": {"name": "utm_campaign", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.utm_campaign", "block_contents": "The utm_campaign parameter of the ad."}, "doc.ad_reporting.utm_content": {"name": "utm_content", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.utm_content", "block_contents": "The utm_content parameter of the ad."}, "doc.ad_reporting.utm_medium": {"name": "utm_medium", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.utm_medium", "block_contents": "The utm_medium parameter of the ad."}, "doc.ad_reporting.utm_source": {"name": "utm_source", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.utm_source", "block_contents": "The utm_source parameter of the ad."}, "doc.ad_reporting.utm_term": {"name": "utm_term", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.utm_term", "block_contents": "The utm_term parameter of the ad."}, "doc.ad_reporting.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.apple_search_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "apple_search_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.apple_search_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.pinterest_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source._fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "doc.pinterest_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.is_most_recent_record", "block_contents": "Boolean representing whether the record is the most recent version of the object."}, "doc.pinterest_source.date_day": {"name": "date_day", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.date_day", "block_contents": "The performance date of the record."}, "doc.pinterest_source.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.ad_group_id", "block_contents": "The ID of the related Ad group."}, "doc.pinterest_source.pin_promotion_id": {"name": "pin_promotion_id", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.pin_promotion_id", "block_contents": "The ID of the related Pin promotion."}, "doc.pinterest_source.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.campaign_id", "block_contents": "The ID of the related Campaign."}, "doc.pinterest_source.ad_account_id": {"name": "ad_account_id", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.ad_account_id", "block_contents": "The ID of the related Advertiser."}, "doc.pinterest_source.advertiser_id": {"name": "advertiser_id", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.advertiser_id", "block_contents": "The ID of the related Advertiser."}, "doc.pinterest_source.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.impressions", "block_contents": "The number of paid and earned impressions that occurred on the day of the record."}, "doc.pinterest_source.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.clicks", "block_contents": "The number of paid and earned clicks that occurred on the day of the record."}, "doc.pinterest_source.spend": {"name": "spend", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.spend", "block_contents": "The amount of spend that occurred on the day of the record."}, "doc.pinterest_source.updated_at": {"name": "updated_at", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.updated_at", "block_contents": "Timestamp of when a record was last updated."}, "doc.pinterest_source.created_at": {"name": "created_at", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.created_at", "block_contents": "Timestamp of when a record was created."}, "doc.pinterest_source.spend_in_micro_dollar": {"name": "spend_in_micro_dollar", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.spend_in_micro_dollar", "block_contents": "The amount of spend in micro dollars that occurred on the day of the record."}, "doc.pinterest_source.clickthrough_1": {"name": "clickthrough_1", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.clickthrough_1", "block_contents": "The number of paid pin clicks that occurred on the day of the record."}, "doc.pinterest_source.clickthrough_2": {"name": "clickthrough_2", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.clickthrough_2", "block_contents": "The number of earned outbound clicks that occurred on the day of the record."}, "doc.pinterest_source.impression_1": {"name": "impression_1", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.impression_1", "block_contents": "The number of paid pin impressions that occurred on the day of the record."}, "doc.pinterest_source.impression_2": {"name": "impression_2", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.impression_2", "block_contents": "The number of earned pin impressions that occurred on the day of the record."}, "doc.pinterest_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.pinterest_source.total_conversions": {"name": "total_conversions", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.total_conversions", "block_contents": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions."}, "doc.pinterest_source.total_conversions_quantity": {"name": "total_conversions_quantity", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.total_conversions_quantity", "block_contents": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion."}, "doc.pinterest_source.total_conversions_value_in_micro_dollar": {"name": "total_conversions_value_in_micro_dollar", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.total_conversions_value_in_micro_dollar", "block_contents": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. The value is expressed in microdollars, where one microdollar is one-millionth of a US dollar. Example: If the total order value from conversions is $50,000, this would be represented as 50,000,000,000 microdollars."}, "doc.pinterest_source.total_conversions_value": {"name": "total_conversions_value", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.total_conversions_value", "block_contents": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field."}, "doc.tiktok_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "tiktok_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.tiktok_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.facebook_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "facebook_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.facebook_ads_source._fivetran_synced", "block_contents": "When the record was last synced by Fivetran."}, "doc.facebook_ads_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "facebook_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.facebook_ads_source.is_most_recent_record", "block_contents": "Boolean representing whether a record is the most recent version of that record. All records should have this value set to True given we filter on it."}, "doc.facebook_ads_source.updated_time": {"name": "updated_time", "resource_type": "doc", "package_name": "facebook_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.facebook_ads_source.updated_time", "block_contents": "The timestamp of the last update of a record."}, "doc.facebook_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "facebook_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.facebook_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.snapchat_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "snapchat_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.snapchat_ads_source._fivetran_synced", "block_contents": "When the record was last synced by Fivetran."}, "doc.snapchat_ads_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "snapchat_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.snapchat_ads_source.is_most_recent_record", "block_contents": "Boolean representing whether a record is the most recent version of that record."}, "doc.snapchat_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "snapchat_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.snapchat_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.twitter_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.twitter_ads_source._fivetran_synced", "block_contents": "When the record was last synced by Fivetran."}, "doc.twitter_ads_source.created_at": {"name": "created_at", "resource_type": "doc", "package_name": "twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.twitter_ads_source.created_at", "block_contents": "The timestamp the account was created."}, "doc.twitter_ads_source.updated_at": {"name": "updated_at", "resource_type": "doc", "package_name": "twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.twitter_ads_source.updated_at", "block_contents": "The timestamp the account was last updated."}, "doc.twitter_ads_source.deleted": {"name": "deleted", "resource_type": "doc", "package_name": "twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.twitter_ads_source.deleted", "block_contents": "Whether the record has been deleted or not."}, "doc.twitter_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.twitter_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}}, "exposures": {}, "metrics": {"metric.ad_reporting.active_ads": {"name": "active_ads", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.active_ads", "fqn": ["ad_reporting", "metrics", "active_ads"], "description": "Count of ads witth spend > 0.", "label": "Active Ads (Fivetran)", "type": "simple", "type_params": {"measure": {"name": "active_ads", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, "input_measures": [{"name": "active_ads", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": null, "window": null, "grain_to_date": null, "metrics": [], "conversion_type_params": null}, "filter": {"where_filters": [{"where_sql_template": "{{Dimension('ad__spend')}} > 0\n"}]}, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["semantic_model.ad_reporting.ad_report"]}, "refs": [], "metrics": [], "created_at": 1731951600.4196439, "group": null}, "metric.ad_reporting.avg_spend_nonzero": {"name": "avg_spend_nonzero", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.avg_spend_nonzero", "fqn": ["ad_reporting", "metrics", "avg_spend_nonzero"], "description": "Average ad spend, ignores zero-spend days.", "label": "Avg Spend Non-Zero (Fivetran)", "type": "simple", "type_params": {"measure": {"name": "avg_spend_nonzero", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, "input_measures": [{"name": "avg_spend_nonzero", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": null, "window": null, "grain_to_date": null, "metrics": [], "conversion_type_params": null}, "filter": {"where_filters": [{"where_sql_template": "{{Dimension('ad__spend')}} > 0\n"}]}, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["semantic_model.ad_reporting.ad_report"]}, "refs": [], "metrics": [], "created_at": 1731951600.420495, "group": null}, "metric.ad_reporting.avg_spend": {"name": "avg_spend", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.avg_spend", "fqn": ["ad_reporting", "metrics", "avg_spend"], "description": "Average ad spend, does not ignore zero-spend days.", "label": "Avg Spend (Fivetran)", "type": "simple", "type_params": {"measure": {"name": "avg_spend", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, "input_measures": [{"name": "avg_spend", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": null, "window": null, "grain_to_date": null, "metrics": [], "conversion_type_params": null}, "filter": null, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["semantic_model.ad_reporting.ad_report"]}, "refs": [], "metrics": [], "created_at": 1731951600.4211771, "group": null}, "metric.ad_reporting.clicks": {"name": "clicks", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.clicks", "fqn": ["ad_reporting", "metrics", "clicks"], "description": "Total clicks", "label": "Ad Clicks (Fivetran)", "type": "simple", "type_params": {"measure": {"name": "clicks", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, "input_measures": [{"name": "clicks", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": null, "window": null, "grain_to_date": null, "metrics": [], "conversion_type_params": null}, "filter": null, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["semantic_model.ad_reporting.ad_report"]}, "refs": [], "metrics": [], "created_at": 1731951600.421623, "group": null}, "metric.ad_reporting.impressions": {"name": "impressions", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.impressions", "fqn": ["ad_reporting", "metrics", "impressions"], "description": "Total impressions", "label": "Ad Impressions (Fivetran)", "type": "simple", "type_params": {"measure": {"name": "impressions", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, "input_measures": [{"name": "impressions", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": null, "window": null, "grain_to_date": null, "metrics": [], "conversion_type_params": null}, "filter": null, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["semantic_model.ad_reporting.ad_report"]}, "refs": [], "metrics": [], "created_at": 1731951600.421986, "group": null}, "metric.ad_reporting.spend": {"name": "spend", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.spend", "fqn": ["ad_reporting", "metrics", "spend"], "description": "Total spend (in currency of individual platforms)", "label": "Ad Spend (Fivetran)", "type": "simple", "type_params": {"measure": {"name": "ad_spend", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, "input_measures": [{"name": "ad_spend", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": null, "window": null, "grain_to_date": null, "metrics": [], "conversion_type_params": null}, "filter": null, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["semantic_model.ad_reporting.ad_report"]}, "refs": [], "metrics": [], "created_at": 1731951600.422682, "group": null}, "metric.ad_reporting.clickthrough_rate": {"name": "clickthrough_rate", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.clickthrough_rate", "fqn": ["ad_reporting", "metrics", "clickthrough_rate"], "description": "Percentage of impressions that did convert into clicks.", "label": "Ad Clickthrough Rate (Fivetran)", "type": "derived", "type_params": {"measure": null, "input_measures": [{"name": "clicks", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, {"name": "impressions", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": "clicks/impressions", "window": null, "grain_to_date": null, "metrics": [{"name": "clicks", "filter": null, "alias": null, "offset_window": null, "offset_to_grain": null}, {"name": "impressions", "filter": null, "alias": null, "offset_window": null, "offset_to_grain": null}], "conversion_type_params": null}, "filter": null, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["metric.ad_reporting.clicks", "metric.ad_reporting.impressions"]}, "refs": [], "metrics": [], "created_at": 1731951600.424813, "group": null}, "metric.ad_reporting.cost_per_click": {"name": "cost_per_click", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.cost_per_click", "fqn": ["ad_reporting", "metrics", "cost_per_click"], "description": "The ratio of spend to clicks", "label": "Average Ad Cost Per Click (Fivetran)", "type": "derived", "type_params": {"measure": null, "input_measures": [{"name": "clicks", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, {"name": "ad_spend", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": "spend/clicks", "window": null, "grain_to_date": null, "metrics": [{"name": "clicks", "filter": null, "alias": null, "offset_window": null, "offset_to_grain": null}, {"name": "spend", "filter": null, "alias": null, "offset_window": null, "offset_to_grain": null}], "conversion_type_params": null}, "filter": null, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["metric.ad_reporting.clicks", "metric.ad_reporting.spend"]}, "refs": [], "metrics": [], "created_at": 1731951600.425526, "group": null}, "metric.ad_reporting.bounce_rate": {"name": "bounce_rate", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.bounce_rate", "fqn": ["ad_reporting", "metrics", "bounce_rate"], "description": "Percentage of impressions that did not convert into clicks.", "label": "Average Ad Bounce Rate (Fivetran)", "type": "derived", "type_params": {"measure": null, "input_measures": [{"name": "impressions", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, {"name": "clicks", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": "impressions - clicks/impressions", "window": null, "grain_to_date": null, "metrics": [{"name": "impressions", "filter": null, "alias": null, "offset_window": null, "offset_to_grain": null}, {"name": "clicks", "filter": null, "alias": null, "offset_window": null, "offset_to_grain": null}], "conversion_type_params": null}, "filter": null, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["metric.ad_reporting.impressions", "metric.ad_reporting.clicks"]}, "refs": [], "metrics": [], "created_at": 1731951600.426205, "group": null}}, "groups": {}, "selectors": {}, "disabled": {"test.ad_reporting_integration_tests.consistency_url_report": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "consistency_url_report", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "consistency/consistency_url_report.sql", "original_file_path": "tests/consistency/consistency_url_report.sql", "unique_id": "test.ad_reporting_integration_tests.consistency_url_report", "fqn": ["ad_reporting_integration_tests", "consistency", "consistency_url_report"], "alias": "consistency_url_report", "checksum": {"name": "sha256", "checksum": "782ae7441db775a05e1c635432c276e9f9291a70166444bbbed184fc656e876f"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1731951594.618455, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n base_url,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_prod.ad_reporting__url_report\n group by 1\n),\n\ndev as (\n select\n base_url,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__url_report\n group by 1\n),\n\nfinal as (\n select \n prod.base_url,\n prod.clicks as prod_clicks,\n dev.clicks as dev_clicks,\n prod.impressions as prod_impressions,\n dev.impressions as dev_impressions,\n prod.spend as prod_spend,\n dev.spend as dev_spend\n {# prod.conversions as prod_conversions,\n dev.conversions as dev_conversions,\n prod.conversions_value as prod_conversions_value,\n dev.conversions_value as dev_conversions_value #}\n from prod\n full outer join dev \n on dev.base_url = prod.base_url\n)\n\nselect *\nfrom final\nwhere\n abs(prod_clicks - dev_clicks) >= .01\n or abs(prod_impressions - dev_impressions) >= .01\n or abs(prod_spend - dev_spend) >= .01\n {# or abs(prod_conversions - dev_conversions) >= .01\n or abs(prod_conversions_value - dev_conversions_value) >= .01 #}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.consistency_keyword_report": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "consistency_keyword_report", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "consistency/consistency_keyword_report.sql", "original_file_path": "tests/consistency/consistency_keyword_report.sql", "unique_id": "test.ad_reporting_integration_tests.consistency_keyword_report", "fqn": ["ad_reporting_integration_tests", "consistency", "consistency_keyword_report"], "alias": "consistency_keyword_report", "checksum": {"name": "sha256", "checksum": "336460ac653a3b3c7bc62707818ab1ee08cbb44d140002f3642f20ab4cb0fc6f"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1731951594.640529, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n keyword_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_prod.ad_reporting__keyword_report\n group by 1\n),\n\ndev as (\n select\n keyword_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__keyword_report\n group by 1\n),\n\nfinal as (\n select \n prod.keyword_id,\n prod.clicks as prod_clicks,\n dev.clicks as dev_clicks,\n prod.impressions as prod_impressions,\n dev.impressions as dev_impressions,\n prod.spend as prod_spend,\n dev.spend as dev_spend\n {# prod.conversions as prod_conversions,\n dev.conversions as dev_conversions,\n prod.conversions_value as prod_conversions_value,\n dev.conversions_value as dev_conversions_value #}\n from prod\n full outer join dev \n on dev.keyword_id = prod.keyword_id\n)\n\nselect *\nfrom final\nwhere\n abs(prod_clicks - dev_clicks) >= .01\n or abs(prod_impressions - dev_impressions) >= .01\n or abs(prod_spend - dev_spend) >= .01\n {# or abs(prod_conversions - dev_conversions) >= .01\n or abs(prod_conversions_value - dev_conversions_value) >= .01 #}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.consistency_ad_group_report": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "consistency_ad_group_report", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "consistency/consistency_ad_group_report.sql", "original_file_path": "tests/consistency/consistency_ad_group_report.sql", "unique_id": "test.ad_reporting_integration_tests.consistency_ad_group_report", "fqn": ["ad_reporting_integration_tests", "consistency", "consistency_ad_group_report"], "alias": "consistency_ad_group_report", "checksum": {"name": "sha256", "checksum": "bde04468e727f69013d1bf5ee8140e38a54cf0d9d1223bb9185ba757846cd787"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1731951594.646654, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n ad_group_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_prod.ad_reporting__ad_group_report\n group by 1\n),\n\ndev as (\n select\n ad_group_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__ad_group_report\n group by 1\n),\n\nfinal as (\n select \n prod.ad_group_id,\n prod.clicks as prod_clicks,\n dev.clicks as dev_clicks,\n prod.impressions as prod_impressions,\n dev.impressions as dev_impressions,\n prod.spend as prod_spend,\n dev.spend as dev_spend\n {# prod.conversions as prod_conversions,\n dev.conversions as dev_conversions,\n prod.conversions_value as prod_conversions_value,\n dev.conversions_value as dev_conversions_value #}\n from prod\n full outer join dev \n on dev.ad_group_id = prod.ad_group_id\n)\n\nselect *\nfrom final\nwhere\n abs(prod_clicks - dev_clicks) >= .01\n or abs(prod_impressions - dev_impressions) >= .01\n or abs(prod_spend - dev_spend) >= .01\n {# or abs(prod_conversions - dev_conversions) >= .01\n or abs(prod_conversions_value - dev_conversions_value) >= .01 #}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.consistency_campaign_report": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "consistency_campaign_report", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "consistency/consistency_campaign_report.sql", "original_file_path": "tests/consistency/consistency_campaign_report.sql", "unique_id": "test.ad_reporting_integration_tests.consistency_campaign_report", "fqn": ["ad_reporting_integration_tests", "consistency", "consistency_campaign_report"], "alias": "consistency_campaign_report", "checksum": {"name": "sha256", "checksum": "69c91b8bbe9d9cbcc02fe0ff288ed9c2c99e25cb99ee4e81e0b4c2de33a7c721"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1731951594.6508448, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n campaign_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_prod.ad_reporting__campaign_report\n group by 1\n),\n\ndev as (\n select\n campaign_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__campaign_report\n group by 1\n),\n\nfinal as (\n select \n prod.campaign_id,\n prod.clicks as prod_clicks,\n dev.clicks as dev_clicks,\n prod.impressions as prod_impressions,\n dev.impressions as dev_impressions,\n prod.spend as prod_spend,\n dev.spend as dev_spend\n {# prod.conversions as prod_conversions,\n dev.conversions as dev_conversions,\n prod.conversions_value as prod_conversions_value,\n dev.conversions_value as dev_conversions_value #}\n from prod\n full outer join dev \n on dev.campaign_id = prod.campaign_id\n)\n\nselect *\nfrom final\nwhere\n abs(prod_clicks - dev_clicks) >= .01\n or abs(prod_impressions - dev_impressions) >= .01\n or abs(prod_spend - dev_spend) >= .01\n {# or abs(prod_conversions - dev_conversions) >= .01\n or abs(prod_conversions_value - dev_conversions_value) >= .01 #}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.consistency_ad_report": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "consistency_ad_report", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "consistency/consistency_ad_report.sql", "original_file_path": "tests/consistency/consistency_ad_report.sql", "unique_id": "test.ad_reporting_integration_tests.consistency_ad_report", "fqn": ["ad_reporting_integration_tests", "consistency", "consistency_ad_report"], "alias": "consistency_ad_report", "checksum": {"name": "sha256", "checksum": "e6100a8a3a650833ffc34a0156992eedbdebd7103c39d1e50df31e4912321c5e"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1731951594.656696, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n ad_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_prod.ad_reporting__ad_report\n group by 1\n),\n\ndev as (\n select\n ad_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__ad_report\n group by 1\n),\n\nfinal as (\n select \n prod.ad_id,\n prod.clicks as prod_clicks,\n dev.clicks as dev_clicks,\n prod.impressions as prod_impressions,\n dev.impressions as dev_impressions,\n prod.spend as prod_spend,\n dev.spend as dev_spend\n {# prod.conversions as prod_conversions,\n dev.conversions as dev_conversions,\n prod.conversions_value as prod_conversions_value,\n dev.conversions_value as dev_conversions_value #}\n from prod\n full outer join dev \n on dev.ad_id = prod.ad_id\n)\n\nselect *\nfrom final\nwhere\n abs(prod_clicks - dev_clicks) >= .01\n or abs(prod_impressions - dev_impressions) >= .01\n or abs(prod_spend - dev_spend) >= .01\n {# or abs(prod_conversions - dev_conversions) >= .01\n or abs(prod_conversions_value - dev_conversions_value) >= .01 #}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.consistency_account_report": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "consistency_account_report", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "consistency/consistency_account_report.sql", "original_file_path": "tests/consistency/consistency_account_report.sql", "unique_id": "test.ad_reporting_integration_tests.consistency_account_report", "fqn": ["ad_reporting_integration_tests", "consistency", "consistency_account_report"], "alias": "consistency_account_report", "checksum": {"name": "sha256", "checksum": "05edafc1147a3bf4173f40f05c386a2edbb6946f084e116ea8a4fe6034103738"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1731951594.661574, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n account_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_prod.ad_reporting__account_report\n group by 1\n),\n\ndev as (\n select\n account_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__account_report\n group by 1\n),\n\nfinal as (\n select \n prod.account_id,\n prod.clicks as prod_clicks,\n dev.clicks as dev_clicks,\n prod.impressions as prod_impressions,\n dev.impressions as dev_impressions,\n prod.spend as prod_spend,\n dev.spend as dev_spend\n {# prod.conversions as prod_conversions,\n dev.conversions as dev_conversions,\n prod.conversions_value as prod_conversions_value,\n dev.conversions_value as dev_conversions_value #}\n from prod\n full outer join dev \n on dev.account_id = prod.account_id\n)\n\nselect *\nfrom final\nwhere\n abs(prod_clicks - dev_clicks) >= .01\n or abs(prod_impressions - dev_impressions) >= .01\n or abs(prod_spend - dev_spend) >= .01\n {# or abs(prod_conversions - dev_conversions) >= .01\n or abs(prod_conversions_value - dev_conversions_value) >= .01 #}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.consistency_search_report": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "consistency_search_report", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "consistency/consistency_search_report.sql", "original_file_path": "tests/consistency/consistency_search_report.sql", "unique_id": "test.ad_reporting_integration_tests.consistency_search_report", "fqn": ["ad_reporting_integration_tests", "consistency", "consistency_search_report"], "alias": "consistency_search_report", "checksum": {"name": "sha256", "checksum": "482173c9f3ad21d25c03d52e2eb1f8a818db6b7312970b44ad917ee91b1547df"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1731951594.666492, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n search_query,\n keyword_id,\n sum(clicks) as clicks, \n sum(impressions) as impressions,\n sum(spend) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_prod.ad_reporting__search_report\n group by 1,2\n),\n\ndev as (\n select\n search_query,\n keyword_id,\n sum(clicks) as clicks, \n sum(impressions) as impressions,\n sum(spend) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__search_report\n group by 1,2\n),\n\nfinal as (\n select \n prod.search_query,\n prod.keyword_id,\n prod.clicks as prod_clicks,\n dev.clicks as dev_clicks,\n prod.impressions as prod_impressions,\n dev.impressions as dev_impressions,\n prod.spend as prod_spend,\n dev.spend as dev_spend\n {# prod.conversions as prod_conversions,\n dev.conversions as dev_conversions,\n prod.conversions_value as prod_conversions_value,\n dev.conversions_value as dev_conversions_value #}\n from prod\n full outer join dev \n on dev.search_query = prod.search_query\n and dev.keyword_id = prod.keyword_id\n\n)\n\nselect *\nfrom final\nwhere\n abs(prod_clicks - dev_clicks) >= .01\n or abs(prod_impressions - dev_impressions) >= .01\n or abs(prod_spend - dev_spend) >= .01\n {# or abs(prod_conversions - dev_conversions) >= .01\n or abs(prod_conversions_value - dev_conversions_value) >= .01 #}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.vertical_keyword_conversion_comparison": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "vertical_keyword_conversion_comparison", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "integrity/vertical_keyword_conversion_comparison.sql", "original_file_path": "tests/integrity/vertical_keyword_conversion_comparison.sql", "unique_id": "test.ad_reporting_integration_tests.vertical_keyword_conversion_comparison", "fqn": ["ad_reporting_integration_tests", "integrity", "vertical_keyword_conversion_comparison"], "alias": "vertical_keyword_conversion_comparison", "checksum": {"name": "sha256", "checksum": "bc0ff953564ed7cb181759c8a353c52373643912ececc8bfe4617a1375418f98"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1731951594.670627, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith keyword_report as (\n\n select \n platform,\n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__keyword_report\n group by 1\n),\n\namazon_ads as (\n\n select \n sum(coalesce(purchases_30_d,0)) as conversions,\n sum(coalesce(sales_30_d,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.amazon_ads__keyword_report\n),\n\napple_search_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(0) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.apple_search_ads__keyword_report\n),\n\npinterest_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.pinterest_ads__keyword_report\n),\n\n{% if var('twitter_ads__using_keywords', true ) %}\ntwitter_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_sale_amount,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.twitter_ads__keyword_report\n),\n{% endif %}\n\ngoogle_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.google_ads__keyword_report\n),\n\nmicrosoft_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.microsoft_ads__keyword_report\n)\n\nselect \n 'amazon_ads' as platform\nfrom keyword_report\njoin amazon_ads\n on keyword_report.platform = 'amazon_ads'\nwhere abs(amazon_ads.conversions - keyword_report.conversions) >= .01\n or abs(amazon_ads.conversions_value - keyword_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'apple_search_ads' as platform\nfrom keyword_report\njoin apple_search_ads\n on keyword_report.platform = 'apple_search_ads'\nwhere abs(apple_search_ads.conversions - keyword_report.conversions) >= .01\n or abs(apple_search_ads.conversions_value - keyword_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'pinterest_ads' as platform\nfrom keyword_report\njoin pinterest_ads\n on keyword_report.platform = 'pinterest_ads'\nwhere abs(pinterest_ads.conversions - keyword_report.conversions) >= .01\n or abs(pinterest_ads.conversions_value - keyword_report.conversions_value) >= .01\n\nunion all \n\n{% if var('twitter_ads__using_keywords', true ) %}\nselect \n 'twitter_ads' as platform\nfrom keyword_report\njoin twitter_ads\n on keyword_report.platform = 'twitter_ads'\nwhere abs(twitter_ads.conversions - keyword_report.conversions) >= .01\n or abs(twitter_ads.conversions_value - keyword_report.conversions_value) >= .01\n\nunion all \n{% endif %}\n\nselect \n 'google_ads' as platform\nfrom keyword_report\njoin google_ads\n on keyword_report.platform = 'google_ads'\nwhere abs(google_ads.conversions - keyword_report.conversions) >= .01\n or abs(google_ads.conversions_value - keyword_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'microsoft_ads' as platform\nfrom keyword_report\njoin microsoft_ads\n on keyword_report.platform = 'microsoft_ads'\nwhere abs(microsoft_ads.conversions - keyword_report.conversions) >= .01\n or abs(microsoft_ads.conversions_value - keyword_report.conversions_value) >= .01", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.vertical_account_conversion_comparison": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "vertical_account_conversion_comparison", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "integrity/vertical_account_conversion_comparison.sql", "original_file_path": "tests/integrity/vertical_account_conversion_comparison.sql", "unique_id": "test.ad_reporting_integration_tests.vertical_account_conversion_comparison", "fqn": ["ad_reporting_integration_tests", "integrity", "vertical_account_conversion_comparison"], "alias": "vertical_account_conversion_comparison", "checksum": {"name": "sha256", "checksum": "57b9bb083ae74c65396e514010d4ff7b4b7d3dfda42f201745c084ac4a471ff5"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1731951594.675255, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith account_report as (\n\n select \n platform,\n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__account_report\n group by 1\n),\n\namazon_ads as (\n\n select \n sum(coalesce(purchases_30_d,0)) as conversions,\n sum(coalesce(sales_30_d,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.amazon_ads__account_report\n),\n\napple_search_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(0) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.apple_search_ads__organization_report\n),\n\nlinkedin_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_value_in_local_currency,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.linkedin_ads__account_report\n),\n\npinterest_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.pinterest_ads__advertiser_report\n),\n\nsnapchat_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_purchases_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.snapchat_ads__account_report\n),\n\ntiktok_ads as (\n\n select \n sum(coalesce(conversion,0)) as conversions,\n sum(coalesce(total_conversion_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.tiktok_ads__advertiser_report\n),\n\ntwitter_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_sale_amount,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.twitter_ads__account_report\n),\n\ngoogle_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.google_ads__account_report\n),\n\nfacebook_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.facebook_ads__account_report\n),\n\nmicrosoft_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.microsoft_ads__account_report\n),\n\nreddit_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(total_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.reddit_ads__account_report\n)\n\nselect \n 'amazon_ads' as platform\nfrom account_report\njoin amazon_ads\n on account_report.platform = 'amazon_ads'\nwhere abs(amazon_ads.conversions - account_report.conversions) >= .01\n or abs(amazon_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'apple_search_ads' as platform\nfrom account_report\njoin apple_search_ads\n on account_report.platform = 'apple_search_ads'\nwhere abs(apple_search_ads.conversions - account_report.conversions) >= .01\n or abs(apple_search_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'linkedin_ads' as platform\nfrom account_report\njoin linkedin_ads\n on account_report.platform = 'linkedin_ads'\nwhere abs(linkedin_ads.conversions - account_report.conversions) >= .01\n or abs(linkedin_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'pinterest_ads' as platform\nfrom account_report\njoin pinterest_ads\n on account_report.platform = 'pinterest_ads'\nwhere abs(pinterest_ads.conversions - account_report.conversions) >= .01\n or abs(pinterest_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'snapchat_ads' as platform\nfrom account_report\njoin snapchat_ads\n on account_report.platform = 'snapchat_ads'\nwhere abs(snapchat_ads.conversions - account_report.conversions) >= .01\n or abs(snapchat_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'tiktok_ads' as platform\nfrom account_report\njoin tiktok_ads\n on account_report.platform = 'tiktok_ads'\nwhere abs(tiktok_ads.conversions - account_report.conversions) >= .01\n or abs(tiktok_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'twitter_ads' as platform\nfrom account_report\njoin twitter_ads\n on account_report.platform = 'twitter_ads'\nwhere abs(twitter_ads.conversions - account_report.conversions) >= .01\n or abs(twitter_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'google_ads' as platform\nfrom account_report\njoin google_ads\n on account_report.platform = 'google_ads'\nwhere abs(google_ads.conversions - account_report.conversions) >= .01\n or abs(google_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'facebook_ads' as platform\nfrom account_report\njoin facebook_ads\n on account_report.platform = 'facebook_ads'\nwhere abs(facebook_ads.conversions - account_report.conversions) >= .01\n or abs(facebook_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'microsoft_ads' as platform\nfrom account_report\njoin microsoft_ads\n on account_report.platform = 'microsoft_ads'\nwhere abs(microsoft_ads.conversions - account_report.conversions) >= .01\n or abs(microsoft_ads.conversions_value - account_report.conversions_value) >= .01\nunion all \n\nselect \n 'reddit_ads' as platform\nfrom account_report\njoin reddit_ads\n on account_report.platform = 'reddit_ads'\nwhere abs(reddit_ads.conversions - account_report.conversions) >= .01\n or abs(reddit_ads.conversions_value - account_report.conversions_value) >= .01", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.vertical_ad_group_conversion_comparison": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "vertical_ad_group_conversion_comparison", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "integrity/vertical_ad_group_conversion_comparison.sql", "original_file_path": "tests/integrity/vertical_ad_group_conversion_comparison.sql", "unique_id": "test.ad_reporting_integration_tests.vertical_ad_group_conversion_comparison", "fqn": ["ad_reporting_integration_tests", "integrity", "vertical_ad_group_conversion_comparison"], "alias": "vertical_ad_group_conversion_comparison", "checksum": {"name": "sha256", "checksum": "2c9ebd9e3c28fa0b98399ce898ccb4f5ac5075e45607a882f1d08e037a7458e4"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1731951594.681111, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith ad_group_report as (\n\n select \n platform,\n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__ad_group_report\n group by 1\n),\n\namazon_ads as (\n\n select \n sum(coalesce(purchases_30_d,0)) as conversions,\n sum(coalesce(sales_30_d,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.amazon_ads__ad_group_report\n),\n\napple_search_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(0) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.apple_search_ads__ad_group_report\n),\n\nlinkedin_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_value_in_local_currency,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.linkedin_ads__campaign_report\n),\n\npinterest_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.pinterest_ads__ad_group_report\n),\n\nsnapchat_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_purchases_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.snapchat_ads__ad_squad_report\n),\n\ntiktok_ads as (\n\n select \n sum(coalesce(conversion,0)) as conversions,\n sum(coalesce(total_conversion_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.tiktok_ads__ad_group_report\n),\n\ntwitter_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_sale_amount,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.twitter_ads__line_item_report\n),\n\ngoogle_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.google_ads__ad_group_report\n),\n\nfacebook_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.facebook_ads__ad_set_report\n),\n\nmicrosoft_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.microsoft_ads__ad_group_report\n),\n\nreddit_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(total_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.reddit_ads__ad_group_report\n)\n\nselect \n 'amazon_ads' as platform\nfrom ad_group_report\njoin amazon_ads\n on ad_group_report.platform = 'amazon_ads'\nwhere abs(amazon_ads.conversions - ad_group_report.conversions) >= .01\n or abs(amazon_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'apple_search_ads' as platform\nfrom ad_group_report\njoin apple_search_ads\n on ad_group_report.platform = 'apple_search_ads'\nwhere abs(apple_search_ads.conversions - ad_group_report.conversions) >= .01\n or abs(apple_search_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'linkedin_ads' as platform\nfrom ad_group_report\njoin linkedin_ads\n on ad_group_report.platform = 'linkedin_ads'\nwhere abs(linkedin_ads.conversions - ad_group_report.conversions) >= .01\n or abs(linkedin_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'pinterest_ads' as platform\nfrom ad_group_report\njoin pinterest_ads\n on ad_group_report.platform = 'pinterest_ads'\nwhere abs(pinterest_ads.conversions - ad_group_report.conversions) >= .01\n or abs(pinterest_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'snapchat_ads' as platform\nfrom ad_group_report\njoin snapchat_ads\n on ad_group_report.platform = 'snapchat_ads'\nwhere abs(snapchat_ads.conversions - ad_group_report.conversions) >= .01\n or abs(snapchat_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'tiktok_ads' as platform\nfrom ad_group_report\njoin tiktok_ads\n on ad_group_report.platform = 'tiktok_ads'\nwhere abs(tiktok_ads.conversions - ad_group_report.conversions) >= .01\n or abs(tiktok_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'twitter_ads' as platform\nfrom ad_group_report\njoin twitter_ads\n on ad_group_report.platform = 'twitter_ads'\nwhere abs(twitter_ads.conversions - ad_group_report.conversions) >= .01\n or abs(twitter_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'google_ads' as platform\nfrom ad_group_report\njoin google_ads\n on ad_group_report.platform = 'google_ads'\nwhere abs(google_ads.conversions - ad_group_report.conversions) >= .01\n or abs(google_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'facebook_ads' as platform\nfrom ad_group_report\njoin facebook_ads\n on ad_group_report.platform = 'facebook_ads'\nwhere abs(facebook_ads.conversions - ad_group_report.conversions) >= .01\n or abs(facebook_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'microsoft_ads' as platform\nfrom ad_group_report\njoin microsoft_ads\n on ad_group_report.platform = 'microsoft_ads'\nwhere abs(microsoft_ads.conversions - ad_group_report.conversions) >= .01\n or abs(microsoft_ads.conversions_value - ad_group_report.conversions_value) >= .01\nunion all \n\nselect \n 'reddit_ads' as platform\nfrom ad_group_report\njoin reddit_ads\n on ad_group_report.platform = 'reddit_ads'\nwhere abs(reddit_ads.conversions - ad_group_report.conversions) >= .01\n or abs(reddit_ads.conversions_value - ad_group_report.conversions_value) >= .01", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.vertical_search_conversion_comparison": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "vertical_search_conversion_comparison", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "integrity/vertical_search_conversion_comparison.sql", "original_file_path": "tests/integrity/vertical_search_conversion_comparison.sql", "unique_id": "test.ad_reporting_integration_tests.vertical_search_conversion_comparison", "fqn": ["ad_reporting_integration_tests", "integrity", "vertical_search_conversion_comparison"], "alias": "vertical_search_conversion_comparison", "checksum": {"name": "sha256", "checksum": "b7caeaa664b63b20bbdc1cb2a36dcfe968f2b491abd702714026ce2524aab63f"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1731951594.685854, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith search_report as (\n\n select \n platform,\n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__search_report\n group by 1\n),\n\namazon_ads as (\n\n select \n sum(coalesce(purchases_30_d,0)) as conversions,\n sum(coalesce(sales_30_d,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.amazon_ads__search_report\n),\n\n{% if var('apple_search_ads__using_search_terms', true ) %}\napple_search_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(0) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.apple_search_ads__search_term_report\n),\n{% endif %}\n\nmicrosoft_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.microsoft_ads__search_report\n)\n\nselect \n 'amazon_ads' as platform\nfrom search_report\njoin amazon_ads\n on search_report.platform = 'amazon_ads'\nwhere abs(amazon_ads.conversions - search_report.conversions) >= .01\n or abs(amazon_ads.conversions_value - search_report.conversions_value) >= .01\n\nunion all \n\n{% if var('apple_search_ads__using_search_terms', true ) %}\nselect \n 'apple_search_ads' as platform\nfrom search_report\njoin apple_search_ads\n on search_report.platform = 'apple_search_ads'\nwhere abs(apple_search_ads.conversions - search_report.conversions) >= .01\n or abs(apple_search_ads.conversions_value - search_report.conversions_value) >= .01\n\nunion all \n{% endif %}\n\nselect \n 'microsoft_ads' as platform\nfrom search_report\njoin microsoft_ads\n on search_report.platform = 'microsoft_ads'\nwhere abs(microsoft_ads.conversions - search_report.conversions) >= .01\n or abs(microsoft_ads.conversions_value - search_report.conversions_value) >= .01", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.vertical_campaign_conversion_comparison": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "vertical_campaign_conversion_comparison", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "integrity/vertical_campaign_conversion_comparison.sql", "original_file_path": "tests/integrity/vertical_campaign_conversion_comparison.sql", "unique_id": "test.ad_reporting_integration_tests.vertical_campaign_conversion_comparison", "fqn": ["ad_reporting_integration_tests", "integrity", "vertical_campaign_conversion_comparison"], "alias": "vertical_campaign_conversion_comparison", "checksum": {"name": "sha256", "checksum": "bf3ee3807ad294a3727806fd3ae81194d3ddb74a5c7f42e7917343179c0ef9a0"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1731951594.6909251, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith campaign_report as (\n\n select \n platform,\n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__campaign_report\n group by 1\n),\n\namazon_ads as (\n\n select \n sum(coalesce(purchases_30_d,0)) as conversions,\n sum(coalesce(sales_30_d,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.amazon_ads__campaign_report\n),\n\napple_search_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(0) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.apple_search_ads__campaign_report\n),\n\nlinkedin_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_value_in_local_currency,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.linkedin_ads__campaign_group_report\n),\n\npinterest_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.pinterest_ads__advertiser_report\n),\n\nsnapchat_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_purchases_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.snapchat_ads__campaign_report\n),\n\ntiktok_ads as (\n\n select \n sum(coalesce(conversion,0)) as conversions,\n sum(coalesce(total_conversion_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.tiktok_ads__campaign_report\n),\n\ntwitter_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_sale_amount,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.twitter_ads__campaign_report\n),\n\ngoogle_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.google_ads__campaign_report\n),\n\nfacebook_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.facebook_ads__campaign_report\n),\n\nmicrosoft_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.microsoft_ads__campaign_report\n),\n\nreddit_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(total_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.reddit_ads__campaign_report\n)\n\nselect \n 'amazon_ads' as platform\nfrom campaign_report\njoin amazon_ads\n on campaign_report.platform = 'amazon_ads'\nwhere abs(amazon_ads.conversions - campaign_report.conversions) >= .01\n or abs(amazon_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'apple_search_ads' as platform\nfrom campaign_report\njoin apple_search_ads\n on campaign_report.platform = 'apple_search_ads'\nwhere abs(apple_search_ads.conversions - campaign_report.conversions) >= .01\n or abs(apple_search_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'linkedin_ads' as platform\nfrom campaign_report\njoin linkedin_ads\n on campaign_report.platform = 'linkedin_ads'\nwhere abs(linkedin_ads.conversions - campaign_report.conversions) >= .01\n or abs(linkedin_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'pinterest_ads' as platform\nfrom campaign_report\njoin pinterest_ads\n on campaign_report.platform = 'pinterest_ads'\nwhere abs(pinterest_ads.conversions - campaign_report.conversions) >= .01\n or abs(pinterest_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'snapchat_ads' as platform\nfrom campaign_report\njoin snapchat_ads\n on campaign_report.platform = 'snapchat_ads'\nwhere abs(snapchat_ads.conversions - campaign_report.conversions) >= .01\n or abs(snapchat_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'tiktok_ads' as platform\nfrom campaign_report\njoin tiktok_ads\n on campaign_report.platform = 'tiktok_ads'\nwhere abs(tiktok_ads.conversions - campaign_report.conversions) >= .01\n or abs(tiktok_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'twitter_ads' as platform\nfrom campaign_report\njoin twitter_ads\n on campaign_report.platform = 'twitter_ads'\nwhere abs(twitter_ads.conversions - campaign_report.conversions) >= .01\n or abs(twitter_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'google_ads' as platform\nfrom campaign_report\njoin google_ads\n on campaign_report.platform = 'google_ads'\nwhere abs(google_ads.conversions - campaign_report.conversions) >= .01\n or abs(google_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'facebook_ads' as platform\nfrom campaign_report\njoin facebook_ads\n on campaign_report.platform = 'facebook_ads'\nwhere abs(facebook_ads.conversions - campaign_report.conversions) >= .01\n or abs(facebook_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'microsoft_ads' as platform\nfrom campaign_report\njoin microsoft_ads\n on campaign_report.platform = 'microsoft_ads'\nwhere abs(microsoft_ads.conversions - campaign_report.conversions) >= .01\n or abs(microsoft_ads.conversions_value - campaign_report.conversions_value) >= .01\nunion all \n\nselect \n 'reddit_ads' as platform\nfrom campaign_report\njoin reddit_ads\n on campaign_report.platform = 'reddit_ads'\nwhere abs(reddit_ads.conversions - campaign_report.conversions) >= .01\n or abs(reddit_ads.conversions_value - campaign_report.conversions_value) >= .01", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.vertical_ad_conversion_comparison": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "vertical_ad_conversion_comparison", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "integrity/vertical_ad_conversion_comparison.sql", "original_file_path": "tests/integrity/vertical_ad_conversion_comparison.sql", "unique_id": "test.ad_reporting_integration_tests.vertical_ad_conversion_comparison", "fqn": ["ad_reporting_integration_tests", "integrity", "vertical_ad_conversion_comparison"], "alias": "vertical_ad_conversion_comparison", "checksum": {"name": "sha256", "checksum": "7f8fd97c6322443922e9cb51443d95326effdcdbb4a8e7e479eb80154b6ec9d8"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1731951594.696491, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith ad_report as (\n\n select \n platform,\n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__ad_report\n group by 1\n),\n\namazon_ads as (\n\n select \n sum(coalesce(purchases_30_d,0)) as conversions,\n sum(coalesce(sales_30_d,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.amazon_ads__ad_report\n),\n\napple_search_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(0) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.apple_search_ads__ad_report\n),\n\nlinkedin_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_value_in_local_currency,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.linkedin_ads__creative_report\n),\n\npinterest_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.pinterest_ads__pin_promotion_report\n),\n\nsnapchat_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_purchases_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.snapchat_ads__ad_report\n),\n\ntiktok_ads as (\n\n select \n sum(coalesce(conversion,0)) as conversions,\n sum(coalesce(total_conversion_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.tiktok_ads__ad_report\n),\n\ntwitter_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_sale_amount,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.twitter_ads__promoted_tweet_report\n),\n\ngoogle_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.google_ads__ad_report\n),\n\nfacebook_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.facebook_ads__ad_report\n),\n\nmicrosoft_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.microsoft_ads__ad_report\n),\n\nreddit_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(total_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.reddit_ads__ad_report\n)\n\nselect \n 'amazon_ads' as platform\nfrom ad_report\njoin amazon_ads\n on ad_report.platform = 'amazon_ads'\nwhere abs(amazon_ads.conversions - ad_report.conversions) >= .01\n or abs(amazon_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'apple_search_ads' as platform\nfrom ad_report\njoin apple_search_ads\n on ad_report.platform = 'apple_search_ads'\nwhere abs(apple_search_ads.conversions - ad_report.conversions) >= .01\n or abs(apple_search_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'linkedin_ads' as platform\nfrom ad_report\njoin linkedin_ads\n on ad_report.platform = 'linkedin_ads'\nwhere abs(linkedin_ads.conversions - ad_report.conversions) >= .01\n or abs(linkedin_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'pinterest_ads' as platform\nfrom ad_report\njoin pinterest_ads\n on ad_report.platform = 'pinterest_ads'\nwhere abs(pinterest_ads.conversions - ad_report.conversions) >= .01\n or abs(pinterest_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'snapchat_ads' as platform\nfrom ad_report\njoin snapchat_ads\n on ad_report.platform = 'snapchat_ads'\nwhere abs(snapchat_ads.conversions - ad_report.conversions) >= .01\n or abs(snapchat_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'tiktok_ads' as platform\nfrom ad_report\njoin tiktok_ads\n on ad_report.platform = 'tiktok_ads'\nwhere abs(tiktok_ads.conversions - ad_report.conversions) >= .01\n or abs(tiktok_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'twitter_ads' as platform\nfrom ad_report\njoin twitter_ads\n on ad_report.platform = 'twitter_ads'\nwhere abs(twitter_ads.conversions - ad_report.conversions) >= .01\n or abs(twitter_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'google_ads' as platform\nfrom ad_report\njoin google_ads\n on ad_report.platform = 'google_ads'\nwhere abs(google_ads.conversions - ad_report.conversions) >= .01\n or abs(google_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'facebook_ads' as platform\nfrom ad_report\njoin facebook_ads\n on ad_report.platform = 'facebook_ads'\nwhere abs(facebook_ads.conversions - ad_report.conversions) >= .01\n or abs(facebook_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'microsoft_ads' as platform\nfrom ad_report\njoin microsoft_ads\n on ad_report.platform = 'microsoft_ads'\nwhere abs(microsoft_ads.conversions - ad_report.conversions) >= .01\n or abs(microsoft_ads.conversions_value - ad_report.conversions_value) >= .01\nunion all \n\nselect \n 'reddit_ads' as platform\nfrom ad_report\njoin reddit_ads\n on ad_report.platform = 'reddit_ads'\nwhere abs(reddit_ads.conversions - ad_report.conversions) >= .01\n or abs(reddit_ads.conversions_value - ad_report.conversions_value) >= .01", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.vertical_url_conversion_comparison": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests_dbt_test__audit", "name": "vertical_url_conversion_comparison", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "integrity/vertical_url_conversion_comparison.sql", "original_file_path": "tests/integrity/vertical_url_conversion_comparison.sql", "unique_id": "test.ad_reporting_integration_tests.vertical_url_conversion_comparison", "fqn": ["ad_reporting_integration_tests", "integrity", "vertical_url_conversion_comparison"], "alias": "vertical_url_conversion_comparison", "checksum": {"name": "sha256", "checksum": "8e983eccee223b9bc9f4e614398ef59e6316834b962e35b4b3be07191d744655"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1731951594.7996612, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith url_report as (\n\n select \n platform,\n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__url_report\n group by 1\n),\n\nlinkedin_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_value_in_local_currency,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.linkedin_ads__url_report\n),\n\npinterest_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.pinterest_ads__url_report\n),\n\nsnapchat_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_purchases_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.snapchat_ads__url_report\n),\n\ntiktok_ads as (\n\n select \n sum(coalesce(conversion,0)) as conversions,\n sum(coalesce(total_conversion_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.tiktok_ads__url_report\n),\n\ntwitter_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_sale_amount,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.twitter_ads__url_report\n),\n\ngoogle_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.google_ads__url_report\n),\n\nfacebook_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.facebook_ads__url_report\n),\n\nmicrosoft_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.microsoft_ads__url_report\n),\n\nreddit_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(total_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.reddit_ads__url_report\n)\n\nselect \n 'linkedin_ads' as platform\nfrom url_report\njoin linkedin_ads\n on url_report.platform = 'linkedin_ads'\nwhere abs(linkedin_ads.conversions - url_report.conversions) >= .01\n or abs(linkedin_ads.conversions_value - url_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'pinterest_ads' as platform\nfrom url_report\njoin pinterest_ads\n on url_report.platform = 'pinterest_ads'\nwhere abs(pinterest_ads.conversions - url_report.conversions) >= .01\n or abs(pinterest_ads.conversions_value - url_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'snapchat_ads' as platform\nfrom url_report\njoin snapchat_ads\n on url_report.platform = 'snapchat_ads'\nwhere abs(snapchat_ads.conversions - url_report.conversions) >= .01\n or abs(snapchat_ads.conversions_value - url_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'tiktok_ads' as platform\nfrom url_report\njoin tiktok_ads\n on url_report.platform = 'tiktok_ads'\nwhere abs(tiktok_ads.conversions - url_report.conversions) >= .01\n or abs(tiktok_ads.conversions_value - url_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'twitter_ads' as platform\nfrom url_report\njoin twitter_ads\n on url_report.platform = 'twitter_ads'\nwhere abs(twitter_ads.conversions - url_report.conversions) >= .01\n or abs(twitter_ads.conversions_value - url_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'google_ads' as platform\nfrom url_report\njoin google_ads\n on url_report.platform = 'google_ads'\nwhere abs(google_ads.conversions - url_report.conversions) >= .01\n or abs(google_ads.conversions_value - url_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'facebook_ads' as platform\nfrom url_report\njoin facebook_ads\n on url_report.platform = 'facebook_ads'\nwhere abs(facebook_ads.conversions - url_report.conversions) >= .01\n or abs(facebook_ads.conversions_value - url_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'microsoft_ads' as platform\nfrom url_report\njoin microsoft_ads\n on url_report.platform = 'microsoft_ads'\nwhere abs(microsoft_ads.conversions - url_report.conversions) >= .01\n or abs(microsoft_ads.conversions_value - url_report.conversions_value) >= .01\nunion all \n\nselect \n 'reddit_ads' as platform\nfrom url_report\njoin reddit_ads\n on url_report.platform = 'reddit_ads'\nwhere abs(reddit_ads.conversions - url_report.conversions) >= .01\n or abs(reddit_ads.conversions_value - url_report.conversions_value) >= .01", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "model.twitter_ads.twitter_ads__keyword_report": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "twitter_ads__keyword_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__keyword_report.sql", "original_file_path": "models/twitter_ads__keyword_report.sql", "unique_id": "model.twitter_ads.twitter_ads__keyword_report", "fqn": ["twitter_ads", "twitter_ads__keyword_report"], "alias": "twitter_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "dc701f5ab6598bce7bfdf873a85c7da7ad65240be7affc222d05daeeb73b147a"}, "config": {"enabled": false, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account, campaign, line item (ad group), and keyword level, within a placement in Twitter.\n", "columns": {"source_relation": {"name": "source_relation", "description": "{{ doc('source_relation') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend for the line item + keyword on that day, in micros and in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the line item + keyword on that day in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the line item + keyword on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the line item + keyword on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item (ad group).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item + keyword on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword": {"name": "keyword", "description": "The keyword whose performance is being tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique key of the table built from the combination of 'account_id', 'line_item_id', 'segment', and 'placement' fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the associated account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_name": {"name": "line_item_name", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "Sum of all fields included in `twitter_ads__conversion_fields` variable (default = conversion_purchases_metric + conversion_custom_metric).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_sale_amount": {"name": "total_conversions_sale_amount", "description": "Sum of all fields included in `twitter_ads__conversion_sale_amount_fields` variable (default = conversion_purchases_sale_amount + conversion_custom_sale_amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": false}, "created_at": 1731951599.3345878, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`twitter_ads__keyword_report`", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__twitter_ads_enabled','twitter_ads__using_keywords'])) }}\n\nwith report as (\n\n select \n *,\n {# Let's sum up conversions into general fields for ease of use #}\n {{ var('twitter_ads__conversion_fields') | join(' + ') if var('twitter_ads__conversion_fields') else 0 }} as total_conversions,\n {{ var('twitter_ads__conversion_sale_amount_fields') | join(' + ') if var('twitter_ads__conversion_sale_amount_fields') else 0 }} as total_conversions_sale_amount\n\n from {{ var('line_item_keywords_report') }}\n),\n\nline_items as (\n\n select *\n from {{ var('line_item_history') }}\n where is_latest_version\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n report.account_id,\n accounts.name as account_name,\n line_items.campaign_id,\n campaigns.campaign_name,\n report.line_item_id,\n line_items.name as line_item_name,\n report.keyword_id,\n report.keyword,\n line_items.currency,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__line_item_keywords_report_passthrough_metrics') }}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_sale_amount_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__line_item_keywords_report_passthrough_metrics') }}\n {{ fivetran_utils.persist_pass_through_columns('twitter_ads__line_item_keywords_report_passthrough_metrics', transform='sum')}}\n\n from report \n left join line_items\n on report.line_item_id = line_items.line_item_id\n and report.source_relation = line_items.source_relation\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n and line_items.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_keywords_report", "package": null, "version": null}, {"name": "stg_twitter_ads__line_item_history", "package": null, "version": null}, {"name": "stg_twitter_ads__campaign_history", "package": null, "version": null}, {"name": "stg_twitter_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.twitter_ads.twitter_ads_persist_pass_through_columns", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}], "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__line_item_keywords_report", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__line_item_keywords_report.sql", "original_file_path": "models/stg_twitter_ads__line_item_keywords_report.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report", "fqn": ["twitter_ads_source", "stg_twitter_ads__line_item_keywords_report"], "alias": "stg_twitter_ads__line_item_keywords_report", "checksum": {"name": "sha256", "checksum": "5f8d6ba198bbbf3cdd762092909736b75ffd723ad235c91862ca7e693ccfcb1f"}, "config": {"enabled": false, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the performance of a line item (ad group) and keyword combination on a given day, for its placement in Twitter.", "columns": {"source_relation": {"name": "source_relation", "description": "{{ doc('source_relation') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique key of the table built from the combination of 'account_id', 'line_item_id','segment', and 'placement' fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend for the line item + keyword on that day, in micros and in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the line item + keyword on that day in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the line item + keyword on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the line item + keyword on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item + keyword on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword": {"name": "keyword", "description": "The keyword whose performance is being tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": false}, "created_at": 1731951601.290538, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_keywords_report`", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__twitter_ads_enabled','twitter_ads__using_keywords'])) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_twitter_ads__line_item_keywords_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__line_item_keywords_report_tmp')),\n staging_columns=get_line_item_keywords_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n {{ dbt.date_trunc('day', 'date') }} as date_day,\n {{ dbt_utils.generate_surrogate_key(['account_id', 'line_item_id','segment','placement']) }} as keyword_id,\n account_id,\n line_item_id,\n segment as keyword,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n {% for conversion in var('twitter_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {% for conversion_value in var('twitter_ads__conversion_sale_amount_fields', []) %}\n , coalesce(cast({{ conversion_value }} as {{ dbt.type_float() }}), 0) as {{ conversion_value }}\n {% endfor %}\n\n {{ twitter_ads_fill_pass_through_columns(pass_through_fields=var('twitter_ads__line_item_keywords_report_passthrough_metrics'), except=(var('twitter_ads__conversion_fields') + var('twitter_ads__conversion_sale_amount_fields'))) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_keywords_report_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__line_item_keywords_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.twitter_ads_source.get_line_item_keywords_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_bigint", "macro.dbt.type_float", "macro.twitter_ads_source.twitter_ads_fill_pass_through_columns"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}], "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests_ad_reporting_dev", "name": "stg_twitter_ads__line_item_keywords_report_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__line_item_keywords_report_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__line_item_keywords_report_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__line_item_keywords_report_tmp"], "alias": "stg_twitter_ads__line_item_keywords_report_tmp", "checksum": {"name": "sha256", "checksum": "ce070a872d9a55d22f19622fe5b373bb0ed9256912943481fae8dc13f62fc6cb"}, "config": {"enabled": false, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": false}, "created_at": 1731951598.8071308, "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`stg_twitter_ads__line_item_keywords_report_tmp`", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__twitter_ads_enabled','twitter_ads__using_keywords'])) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='line_item_keywords_report', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='line_item_keywords_report',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "line_item_keywords_report"], ["twitter_ads", "line_item_keywords_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.union_data"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}], "source.twitter_ads_source.twitter_ads.line_item_keywords_report": [{"database": "dbt-package-testing", "schema": "ad_reporting_tests", "name": "line_item_keywords_report", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_keywords_report", "fqn": ["twitter_ads_source", "twitter_ads", "line_item_keywords_report"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_line_item_keywords_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the performance of a line item (ad group) and keyword combination on a given day.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "{{ doc('_fivetran_synced') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "billed_charge_local_micro": {"name": "billed_charge_local_micro", "description": "The spend for the line item + keyword on that day, in micros and in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the line item + keyword on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the line item + keyword on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item + keyword on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "segment": {"name": "segment", "description": "The keyword whose performance is being tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_assisted": {"name": "mobile_conversion_payment_info_additions_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_post_engagement": {"name": "mobile_conversion_payment_info_additions_post_engagement", "description": "Number of **post-engagement** mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_post_view": {"name": "mobile_conversion_payment_info_additions_post_view", "description": "Number of **post-view** mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_assisted": {"name": "mobile_conversion_add_to_wishlists_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_post_engagement": {"name": "mobile_conversion_add_to_wishlists_post_engagement", "description": "Number of **post-engagement** mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_post_view": {"name": "mobile_conversion_add_to_wishlists_post_view", "description": "Number of **post-view** mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_assisted": {"name": "mobile_conversion_add_to_carts_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_post_engagement": {"name": "mobile_conversion_add_to_carts_post_engagement", "description": "Number of **post-engagement** mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_post_view": {"name": "mobile_conversion_add_to_carts_post_view", "description": "Number of **post-view** mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups_metric": {"name": "conversion_sign_ups_metric", "description": "Total number of sign ups. This is the same as the sum of post views, post engagements and assisted sign ups. This is also the sum of website and mobile app sign ups", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_assisted": {"name": "mobile_conversion_checkouts_initiated_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_post_engagement": {"name": "mobile_conversion_checkouts_initiated_post_engagement", "description": "Number of **post-engagement** mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_post_view": {"name": "mobile_conversion_checkouts_initiated_post_view", "description": "Number of **post-view** mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_assisted": {"name": "mobile_conversion_searches_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_post_engagement": {"name": "mobile_conversion_searches_post_engagement", "description": "Number of **post-engagement** mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_post_view": {"name": "mobile_conversion_searches_post_view", "description": "Number of **post-view** mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_assisted": {"name": "mobile_conversion_content_views_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_post_engagement": {"name": "mobile_conversion_content_views_post_engagement", "description": "Number of **post-engagement** mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_post_view": {"name": "mobile_conversion_content_views_post_view", "description": "Number of **post-view** mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_sale_amount": {"name": "mobile_conversion_payment_info_additions_sale_amount", "description": "The sale amount corresponding to mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_sale_amount": {"name": "mobile_conversion_add_to_wishlists_sale_amount", "description": "The sale amount corresponding to mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_sale_amount": {"name": "mobile_conversion_add_to_carts_sale_amount", "description": "The sale amount corresponding to mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups_sale_amount": {"name": "conversion_sign_ups_sale_amount", "description": "The sale amount corresponding to sign ups.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_sale_amount": {"name": "mobile_conversion_checkouts_initiated_sale_amount", "description": "The sale amount corresponding to mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_sale_amount": {"name": "mobile_conversion_searches_sale_amount", "description": "The sale amount corresponding to mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_sale_amount": {"name": "mobile_conversion_content_views_sale_amount", "description": "The sale amount corresponding to mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": false}, "patch_path": null, "unrendered_config": {"enabled": false}, "relation_name": "`dbt-package-testing`.`ad_reporting_tests`.`twitter_line_item_keywords_report_data`", "created_at": 1731951601.418185}]}, "parent_map": {"seed.ad_reporting_integration_tests.twitter_line_item_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data": [], "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": [], "seed.ad_reporting_integration_tests.pinterest_keyword_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_account_report_data": [], "seed.ad_reporting_integration_tests.twitter_line_item_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_conversions": [], "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data": [], "seed.ad_reporting_integration_tests.pinterest_ad_group_report_data": [], "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_campaign_conversions": [], "seed.ad_reporting_integration_tests.twitter_account_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_campaign_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data": [], "seed.ad_reporting_integration_tests.twitter_campaign_history_data": [], "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_action_values_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data": [], "seed.ad_reporting_integration_tests.pinterest_advertiser_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data": [], "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.tiktok_ad_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data": [], "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data": [], "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data": [], "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_group_conversions": [], "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data": [], "seed.ad_reporting_integration_tests.apple_search_organization_data": [], "seed.ad_reporting_integration_tests.tiktok_campaign_history_data": [], "seed.ad_reporting_integration_tests.tiktok_advertiser_data": [], "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_stats_data": [], "seed.ad_reporting_integration_tests.twitter_campaign_report_data": [], "seed.ad_reporting_integration_tests.google_ads_account_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_profile_data": [], "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.pinterest_campaign_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data": [], "seed.ad_reporting_integration_tests.twitter_tweet_url_data": [], "seed.ad_reporting_integration_tests.apple_search_keyword_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_group_data": [], "seed.ad_reporting_integration_tests.pinterest_pin_promotion_history_data": [], "seed.ad_reporting_integration_tests.pinterest_campaign_history_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.google_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_account_history_data": [], "seed.ad_reporting_integration_tests.apple_search_campaign_report_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.pinterest_ad_group_history_data": [], "seed.ad_reporting_integration_tests.snapchat_campaign_history_data": [], "seed.ad_reporting_integration_tests.pinterest_keyword_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data": [], "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.apple_search_search_term_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_account_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_group_report_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data": [], "seed.ad_reporting_integration_tests.twitter_account_history_data": [], "seed.ad_reporting_integration_tests.snapchat_creative_history_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data": [], "seed.ad_reporting_integration_tests.apple_search_keyword_report_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.twitter_tweet_data": [], "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_actions_data": [], "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data": [], "seed.ad_reporting_integration_tests.apple_search_ad_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_campaign_report_data": [], "seed.ad_reporting_integration_tests.google_ads_account_stats_data": [], "seed.ad_reporting_integration_tests.pinterest_advertiser_history_data": [], "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data": [], "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_report_data": [], "seed.ad_reporting_integration_tests.pinterest_pin_promotion_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_account_conversions": [], "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.apple_search_ad_history_data": [], "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data": [], "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__keyword_history": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__ad_history": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__account_history": ["model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__campaign_history": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp": ["source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp": ["source.microsoft_ads_source.microsoft_ads.ad_group_history"], "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp": ["source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp": ["source.microsoft_ads_source.microsoft_ads.ad_history"], "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp": ["source.microsoft_ads_source.microsoft_ads.account_history"], "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp": ["source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp": ["source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp": ["source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp": ["source.microsoft_ads_source.microsoft_ads.keyword_history"], "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp": ["source.microsoft_ads_source.microsoft_ads.campaign_history"], "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp": ["source.microsoft_ads_source.microsoft_ads.account_performance_daily_report"], "model.tiktok_ads.tiktok_ads__ad_group_report": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"], "model.tiktok_ads.tiktok_ads__url_report": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"], "model.tiktok_ads.tiktok_ads__campaign_report": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history", "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"], "model.tiktok_ads.tiktok_ads__ad_report": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"], "model.tiktok_ads.tiktok_ads__advertiser_report": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__advertiser"], "model.twitter_ads.twitter_ads__account_report": ["model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"], "model.twitter_ads.twitter_ads__campaign_report": ["model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__campaign_report"], "model.twitter_ads.twitter_ads__url_report": ["model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "model.twitter_ads_source.stg_twitter_ads__tweet", "model.twitter_ads_source.stg_twitter_ads__tweet_url"], "model.twitter_ads.twitter_ads__promoted_tweet_report": ["model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "model.twitter_ads_source.stg_twitter_ads__tweet"], "model.twitter_ads.twitter_ads__line_item_report": ["model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__line_item_report"], "model.reddit_ads.reddit_ads__campaign_report": ["model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__campaign", "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report", "model.reddit_ads_source.stg_reddit_ads__campaign_report"], "model.reddit_ads.reddit_ads__url_report": ["model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__ad", "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__ad_report", "model.reddit_ads_source.stg_reddit_ads__campaign"], "model.reddit_ads.reddit_ads__account_report": ["model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__account_conversions_report", "model.reddit_ads_source.stg_reddit_ads__account_report"], "model.reddit_ads.reddit_ads__ad_report": ["model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__ad", "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__ad_report", "model.reddit_ads_source.stg_reddit_ads__campaign"], "model.reddit_ads.reddit_ads__ad_group_report": ["model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report", "model.reddit_ads_source.stg_reddit_ads__ad_group_report", "model.reddit_ads_source.stg_reddit_ads__campaign"], "model.pinterest.pinterest_ads__url_report": ["model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "model.pinterest_source.stg_pinterest_ads__pin_promotion_report"], "model.pinterest.pinterest_ads__campaign_report": ["model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__campaign_report"], "model.pinterest.pinterest_ads__keyword_report": ["model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__keyword_history", "model.pinterest_source.stg_pinterest_ads__keyword_report"], "model.pinterest.pinterest_ads__advertiser_report": ["model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__advertiser_report"], "model.pinterest.pinterest_ads__pin_promotion_report": ["model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "model.pinterest_source.stg_pinterest_ads__pin_promotion_report"], "model.pinterest.pinterest_ads__ad_group_report": ["model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__ad_group_report", "model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history"], "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report": ["model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report": ["model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__account_conversions_report": ["model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__ad_group": ["model.reddit_ads_source.stg_reddit_ads__ad_group_tmp"], "model.reddit_ads_source.stg_reddit_ads__ad": ["model.reddit_ads_source.stg_reddit_ads__ad_tmp"], "model.reddit_ads_source.stg_reddit_ads__campaign_report": ["model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__account": ["model.reddit_ads_source.stg_reddit_ads__account_tmp"], "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report": ["model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__account_report": ["model.reddit_ads_source.stg_reddit_ads__account_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__ad_report": ["model.reddit_ads_source.stg_reddit_ads__ad_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__campaign": ["model.reddit_ads_source.stg_reddit_ads__campaign_tmp"], "model.reddit_ads_source.stg_reddit_ads__ad_group_report": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp": ["source.reddit_ads_source.reddit_ads.campaign_conversions_report"], "model.reddit_ads_source.stg_reddit_ads__campaign_tmp": ["source.reddit_ads_source.reddit_ads.campaign"], "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp": ["source.reddit_ads_source.reddit_ads.ad_group_report"], "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp": ["source.reddit_ads_source.reddit_ads.ad_group_conversions_report"], "model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp": ["source.reddit_ads_source.reddit_ads.account_conversions_report"], "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp": ["source.reddit_ads_source.reddit_ads.campaign_report"], "model.reddit_ads_source.stg_reddit_ads__account_report_tmp": ["source.reddit_ads_source.reddit_ads.account_report"], "model.reddit_ads_source.stg_reddit_ads__account_tmp": ["source.reddit_ads_source.reddit_ads.account"], "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp": ["source.reddit_ads_source.reddit_ads.ad_conversions_report"], "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp": ["source.reddit_ads_source.reddit_ads.ad_group"], "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp": ["source.reddit_ads_source.reddit_ads.ad_report"], "model.reddit_ads_source.stg_reddit_ads__ad_tmp": ["source.reddit_ads_source.reddit_ads.ad"], "model.google_ads.google_ads__keyword_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__ad_group_criterion_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__campaign_history", "model.google_ads_source.stg_google_ads__keyword_stats"], "model.google_ads.google_ads__campaign_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__campaign_history", "model.google_ads_source.stg_google_ads__campaign_stats"], "model.google_ads.google_ads__url_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__ad_history", "model.google_ads_source.stg_google_ads__ad_stats", "model.google_ads_source.stg_google_ads__campaign_history"], "model.google_ads.google_ads__ad_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__ad_history", "model.google_ads_source.stg_google_ads__ad_stats", "model.google_ads_source.stg_google_ads__campaign_history"], "model.google_ads.google_ads__ad_group_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__ad_group_stats", "model.google_ads_source.stg_google_ads__campaign_history"], "model.google_ads.google_ads__account_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__account_stats"], "model.amazon_ads_source.stg_amazon_ads__campaign_level_report": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__advertised_product_report": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__portfolio_history": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__campaign_history": ["model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__product_ad_history": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__profile": ["model.amazon_ads_source.stg_amazon_ads__profile_tmp"], "model.amazon_ads_source.stg_amazon_ads__keyword_history": ["model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__ad_group_history": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp": ["source.amazon_ads_source.amazon_ads.keyword_history"], "model.amazon_ads_source.stg_amazon_ads__profile_tmp": ["source.amazon_ads_source.amazon_ads.profile"], "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp": ["source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report"], "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp": ["source.amazon_ads_source.amazon_ads.product_ad_history"], "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp": ["source.amazon_ads_source.amazon_ads.ad_group_history"], "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp": ["source.amazon_ads_source.amazon_ads.campaign_level_report"], "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp": ["source.amazon_ads_source.amazon_ads.targeting_keyword_report"], "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp": ["source.amazon_ads_source.amazon_ads.portfolio_history"], "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp": ["source.amazon_ads_source.amazon_ads.campaign_history"], "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp": ["source.amazon_ads_source.amazon_ads.ad_group_level_report"], "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp": ["source.amazon_ads_source.amazon_ads.advertised_product_report"], "model.linkedin_source.stg_linkedin_ads__creative_history": ["model.linkedin_source.stg_linkedin_ads__creative_history_tmp"], "model.linkedin_source.stg_linkedin_ads__campaign_history": ["model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp"], "model.linkedin_source.stg_linkedin_ads__campaign_group_history": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"], "model.linkedin_source.stg_linkedin_ads__account_history": ["model.linkedin_source.stg_linkedin_ads__account_history_tmp"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp": ["source.linkedin_source.linkedin_ads.ad_analytics_by_creative"], "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp": ["source.linkedin_source.linkedin_ads.campaign_history"], "model.linkedin_source.stg_linkedin_ads__account_history_tmp": ["source.linkedin_source.linkedin_ads.account_history"], "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp": ["source.linkedin_source.linkedin_ads.campaign_group_history"], "model.linkedin_source.stg_linkedin_ads__creative_history_tmp": ["source.linkedin_source.linkedin_ads.creative_history"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp": ["source.linkedin_source.linkedin_ads.ad_analytics_by_campaign"], "model.amazon_ads.amazon_ads__portfolio_report": ["model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.amazon_ads__search_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"], "model.amazon_ads.amazon_ads__ad_group_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.amazon_ads__keyword_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"], "model.amazon_ads.amazon_ads__campaign_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.amazon_ads__account_report": ["model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.amazon_ads__ad_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__product_ad_history", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.int_amazon_ads__portfolio_history": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"], "model.facebook_ads.facebook_ads__url_report": ["model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads.int_facebook_ads__creative_history", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads.facebook_ads__url_tags": ["model.facebook_ads_source.stg_facebook_ads__creative_history"], "model.facebook_ads.facebook_ads__campaign_report": ["model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads.facebook_ads__account_report": ["model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad"], "model.facebook_ads.facebook_ads__ad_report": ["model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads.facebook_ads__ad_set_report": ["model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads.int_facebook_ads__creative_history": ["model.facebook_ads.facebook_ads__url_tags", "model.facebook_ads_source.stg_facebook_ads__creative_history"], "model.facebook_ads.int_facebook_ads__conversions": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values", "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions"], "model.snapchat_ads.snapchat_ads__ad_report": ["model.snapchat_ads.snapchat_ads__creative_history_prep", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"], "model.snapchat_ads.snapchat_ads__url_report": ["model.snapchat_ads.snapchat_ads__creative_history_prep", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "model.snapchat_ads.snapchat_ads__account_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "model.snapchat_ads.snapchat_ads__ad_squad_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "model.snapchat_ads.snapchat_ads__campaign_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"], "model.snapchat_ads.snapchat_ads__creative_history_prep": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history", "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"], "model.google_ads_source.stg_google_ads__ad_group_stats": ["model.google_ads_source.stg_google_ads__ad_group_stats_tmp"], "model.google_ads_source.stg_google_ads__account_stats": ["model.google_ads_source.stg_google_ads__account_stats_tmp"], "model.google_ads_source.stg_google_ads__ad_group_history": ["model.google_ads_source.stg_google_ads__ad_group_history_tmp"], "model.google_ads_source.stg_google_ads__ad_history": ["model.google_ads_source.stg_google_ads__ad_history_tmp"], "model.google_ads_source.stg_google_ads__keyword_stats": ["model.google_ads_source.stg_google_ads__keyword_stats_tmp"], "model.google_ads_source.stg_google_ads__ad_stats": ["model.google_ads_source.stg_google_ads__ad_stats_tmp"], "model.google_ads_source.stg_google_ads__ad_group_criterion_history": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp"], "model.google_ads_source.stg_google_ads__campaign_stats": ["model.google_ads_source.stg_google_ads__campaign_stats_tmp"], "model.google_ads_source.stg_google_ads__campaign_history": ["model.google_ads_source.stg_google_ads__campaign_history_tmp"], "model.google_ads_source.stg_google_ads__account_history": ["model.google_ads_source.stg_google_ads__account_history_tmp"], "model.google_ads_source.stg_google_ads__account_stats_tmp": ["source.google_ads_source.google_ads.account_stats"], "model.google_ads_source.stg_google_ads__ad_group_history_tmp": ["source.google_ads_source.google_ads.ad_group_history"], "model.google_ads_source.stg_google_ads__campaign_stats_tmp": ["source.google_ads_source.google_ads.campaign_stats"], "model.google_ads_source.stg_google_ads__ad_stats_tmp": ["source.google_ads_source.google_ads.ad_stats"], "model.google_ads_source.stg_google_ads__campaign_history_tmp": ["source.google_ads_source.google_ads.campaign_history"], "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp": ["source.google_ads_source.google_ads.ad_group_criterion_history"], "model.google_ads_source.stg_google_ads__ad_group_stats_tmp": ["source.google_ads_source.google_ads.ad_group_stats"], "model.google_ads_source.stg_google_ads__keyword_stats_tmp": ["source.google_ads_source.google_ads.keyword_stats"], "model.google_ads_source.stg_google_ads__ad_history_tmp": ["source.google_ads_source.google_ads.ad_history"], "model.google_ads_source.stg_google_ads__account_history_tmp": ["source.google_ads_source.google_ads.account_history"], "model.apple_search_ads.apple_search_ads__ad_report": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "model.apple_search_ads_source.stg_apple_search_ads__ad_history", "model.apple_search_ads_source.stg_apple_search_ads__ad_report", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"], "model.apple_search_ads.apple_search_ads__ad_group_report": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"], "model.apple_search_ads.apple_search_ads__keyword_report": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__keyword_history", "model.apple_search_ads_source.stg_apple_search_ads__keyword_report", "model.apple_search_ads_source.stg_apple_search_ads__organization"], "model.apple_search_ads.apple_search_ads__search_term_report": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization", "model.apple_search_ads_source.stg_apple_search_ads__search_term_report"], "model.apple_search_ads.apple_search_ads__campaign_report": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "model.apple_search_ads_source.stg_apple_search_ads__organization"], "model.apple_search_ads.apple_search_ads__organization_report": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "model.apple_search_ads_source.stg_apple_search_ads__organization"], "model.ad_reporting.ad_reporting__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report"], "model.ad_reporting.ad_reporting__account_report": ["model.ad_reporting.int_ad_reporting__account_report"], "model.ad_reporting.ad_reporting__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report"], "model.ad_reporting.ad_reporting__search_report": ["model.ad_reporting.int_ad_reporting__search_report"], "model.ad_reporting.ad_reporting__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report"], "model.ad_reporting.ad_reporting__url_report": ["model.ad_reporting.int_ad_reporting__url_report"], "model.ad_reporting.ad_reporting__keyword_report": ["model.ad_reporting.int_ad_reporting__keyword_report"], "model.ad_reporting.metricflow_time_spine": [], "model.ad_reporting.int_ad_reporting__campaign_report": ["model.amazon_ads.amazon_ads__campaign_report", "model.apple_search_ads.apple_search_ads__campaign_report", "model.facebook_ads.facebook_ads__campaign_report", "model.google_ads.google_ads__campaign_report", "model.linkedin.linkedin_ads__campaign_group_report", "model.microsoft_ads.microsoft_ads__campaign_report", "model.pinterest.pinterest_ads__campaign_report", "model.reddit_ads.reddit_ads__campaign_report", "model.snapchat_ads.snapchat_ads__campaign_report", "model.tiktok_ads.tiktok_ads__campaign_report", "model.twitter_ads.twitter_ads__campaign_report"], "model.ad_reporting.int_ad_reporting__keyword_report": ["model.amazon_ads.amazon_ads__keyword_report", "model.apple_search_ads.apple_search_ads__keyword_report", "model.google_ads.google_ads__keyword_report", "model.microsoft_ads.microsoft_ads__keyword_report", "model.pinterest.pinterest_ads__keyword_report"], "model.ad_reporting.int_ad_reporting__ad_report": ["model.amazon_ads.amazon_ads__ad_report", "model.apple_search_ads.apple_search_ads__ad_report", "model.facebook_ads.facebook_ads__ad_report", "model.google_ads.google_ads__ad_report", "model.linkedin.linkedin_ads__creative_report", "model.microsoft_ads.microsoft_ads__ad_report", "model.pinterest.pinterest_ads__pin_promotion_report", "model.reddit_ads.reddit_ads__ad_report", "model.snapchat_ads.snapchat_ads__ad_report", "model.tiktok_ads.tiktok_ads__ad_report", "model.twitter_ads.twitter_ads__promoted_tweet_report"], "model.ad_reporting.int_ad_reporting__account_report": ["model.amazon_ads.amazon_ads__account_report", "model.apple_search_ads.apple_search_ads__organization_report", "model.facebook_ads.facebook_ads__account_report", "model.google_ads.google_ads__account_report", "model.linkedin.linkedin_ads__account_report", "model.microsoft_ads.microsoft_ads__account_report", "model.pinterest.pinterest_ads__advertiser_report", "model.reddit_ads.reddit_ads__account_report", "model.snapchat_ads.snapchat_ads__account_report", "model.tiktok_ads.tiktok_ads__advertiser_report", "model.twitter_ads.twitter_ads__account_report"], "model.ad_reporting.int_ad_reporting__url_report": ["model.facebook_ads.facebook_ads__url_report", "model.google_ads.google_ads__url_report", "model.linkedin.linkedin_ads__url_report", "model.microsoft_ads.microsoft_ads__url_report", "model.pinterest.pinterest_ads__url_report", "model.reddit_ads.reddit_ads__url_report", "model.snapchat_ads.snapchat_ads__url_report", "model.tiktok_ads.tiktok_ads__url_report", "model.twitter_ads.twitter_ads__url_report"], "model.ad_reporting.int_ad_reporting__search_report": ["model.amazon_ads.amazon_ads__search_report", "model.apple_search_ads.apple_search_ads__search_term_report", "model.microsoft_ads.microsoft_ads__search_report"], "model.ad_reporting.int_ad_reporting__ad_group_report": ["model.amazon_ads.amazon_ads__ad_group_report", "model.apple_search_ads.apple_search_ads__ad_group_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.google_ads.google_ads__ad_group_report", "model.linkedin.linkedin_ads__campaign_report", "model.microsoft_ads.microsoft_ads__ad_group_report", "model.pinterest.pinterest_ads__ad_group_report", "model.reddit_ads.reddit_ads__ad_group_report", "model.snapchat_ads.snapchat_ads__ad_squad_report", "model.tiktok_ads.tiktok_ads__ad_group_report", "model.twitter_ads.twitter_ads__line_item_report"], "model.apple_search_ads_source.stg_apple_search_ads__campaign_history": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__ad_report": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__campaign_report": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__organization": ["model.apple_search_ads_source.stg_apple_search_ads__organization_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__keyword_report": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__keyword_history": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__search_term_report": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__ad_history": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp": ["source.apple_search_ads_source.apple_search_ads.search_term_report"], "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp": ["source.apple_search_ads_source.apple_search_ads.campaign_history"], "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp": ["source.apple_search_ads_source.apple_search_ads.keyword_history"], "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp": ["source.apple_search_ads_source.apple_search_ads.ad_group_history"], "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp": ["source.apple_search_ads_source.apple_search_ads.ad_group_report"], "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp": ["source.apple_search_ads_source.apple_search_ads.ad_history"], "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp": ["source.apple_search_ads_source.apple_search_ads.campaign_report"], "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp": ["source.apple_search_ads_source.apple_search_ads.organization"], "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp": ["source.apple_search_ads_source.apple_search_ads.keyword_report"], "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp": ["source.apple_search_ads_source.apple_search_ads.ad_level_report"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_history": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp"], "model.pinterest_source.stg_pinterest_ads__keyword_report": ["model.pinterest_source.stg_pinterest_ads__keyword_report_tmp"], "model.pinterest_source.stg_pinterest_ads__ad_group_report": ["model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp"], "model.pinterest_source.stg_pinterest_ads__campaign_history": ["model.pinterest_source.stg_pinterest_ads__campaign_history_tmp"], "model.pinterest_source.stg_pinterest_ads__advertiser_report": ["model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp"], "model.pinterest_source.stg_pinterest_ads__advertiser_history": ["model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp"], "model.pinterest_source.stg_pinterest_ads__campaign_report": ["model.pinterest_source.stg_pinterest_ads__campaign_report_tmp"], "model.pinterest_source.stg_pinterest_ads__keyword_history": ["model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_report": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp"], "model.pinterest_source.stg_pinterest_ads__ad_group_history": ["model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp"], "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp": ["source.pinterest_source.pinterest_ads.advertiser_history"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp": ["source.pinterest_source.pinterest_ads.pin_promotion_report"], "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp": ["source.pinterest_source.pinterest_ads.campaign_report"], "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp": ["source.pinterest_source.pinterest_ads.advertiser_report"], "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp": ["source.pinterest_source.pinterest_ads.keyword_report"], "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp": ["source.pinterest_source.pinterest_ads.ad_group_report"], "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp": ["source.pinterest_source.pinterest_ads.keyword_history"], "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp": ["source.pinterest_source.pinterest_ads.campaign_history"], "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp": ["source.pinterest_source.pinterest_ads.ad_group_history"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp": ["source.pinterest_source.pinterest_ads.pin_promotion_history"], "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp"], "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp"], "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp"], "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp"], "model.tiktok_ads_source.stg_tiktok_ads__advertiser": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp"], "model.tiktok_ads_source.stg_tiktok_ads__ad_history": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp"], "model.tiktok_ads_source.stg_tiktok_ads__campaign_history": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp"], "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp": ["source.tiktok_ads_source.tiktok_ads.ad_report_hourly"], "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp": ["source.tiktok_ads_source.tiktok_ads.ad_history"], "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp": ["source.tiktok_ads_source.tiktok_ads.adgroup_history"], "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp": ["source.tiktok_ads_source.tiktok_ads.campaign_report_hourly"], "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp": ["source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly"], "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp": ["source.tiktok_ads_source.tiktok_ads.campaign_history"], "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp": ["source.tiktok_ads_source.tiktok_ads.advertiser"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp"], "model.facebook_ads_source.stg_facebook_ads__basic_ad": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp"], "model.facebook_ads_source.stg_facebook_ads__creative_history": ["model.facebook_ads_source.stg_facebook_ads__creative_history_tmp"], "model.facebook_ads_source.stg_facebook_ads__campaign_history": ["model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp"], "model.facebook_ads_source.stg_facebook_ads__account_history": ["model.facebook_ads_source.stg_facebook_ads__account_history_tmp"], "model.facebook_ads_source.stg_facebook_ads__ad_history": ["model.facebook_ads_source.stg_facebook_ads__ad_history_tmp"], "model.facebook_ads_source.stg_facebook_ads__ad_set_history": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp"], "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp": ["source.facebook_ads_source.facebook_ads.ad_set_history"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp": ["source.facebook_ads_source.facebook_ads.basic_ad"], "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp": ["source.facebook_ads_source.facebook_ads.ad_history"], "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp": ["source.facebook_ads_source.facebook_ads.campaign_history"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp": ["source.facebook_ads_source.facebook_ads.basic_ad_actions"], "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp": ["source.facebook_ads_source.facebook_ads.creative_history"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp": ["source.facebook_ads_source.facebook_ads.basic_ad_action_values"], "model.facebook_ads_source.stg_facebook_ads__account_history_tmp": ["source.facebook_ads_source.facebook_ads.account_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__ad_history": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__creative_history": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__campaign_history": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp": ["source.snapchat_ads_source.snapchat_ads.creative_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp": ["source.snapchat_ads_source.snapchat_ads.ad_account_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp": ["source.snapchat_ads_source.snapchat_ads.ad_hourly_report"], "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp": ["source.snapchat_ads_source.snapchat_ads.creative_url_tag_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp": ["source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report"], "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp": ["source.snapchat_ads_source.snapchat_ads.campaign_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp": ["source.snapchat_ads_source.snapchat_ads.ad_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp": ["source.snapchat_ads_source.snapchat_ads.ad_squad_history"], "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp": ["source.snapchat_ads_source.snapchat_ads.campaign_hourly_report"], "model.microsoft_ads.microsoft_ads__ad_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history"], "model.microsoft_ads.microsoft_ads__ad_group_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history"], "model.microsoft_ads.microsoft_ads__keyword_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__keyword_history"], "model.microsoft_ads.microsoft_ads__url_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history"], "model.microsoft_ads.microsoft_ads__account_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__account_history"], "model.microsoft_ads.microsoft_ads__search_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__keyword_history", "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"], "model.microsoft_ads.microsoft_ads__campaign_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history"], "model.twitter_ads_source.stg_twitter_ads__campaign_report": ["model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp"], "model.twitter_ads_source.stg_twitter_ads__line_item_history": ["model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp"], "model.twitter_ads_source.stg_twitter_ads__line_item_report": ["model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp"], "model.twitter_ads_source.stg_twitter_ads__campaign_history": ["model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp"], "model.twitter_ads_source.stg_twitter_ads__tweet": ["model.twitter_ads_source.stg_twitter_ads__tweet_tmp"], "model.twitter_ads_source.stg_twitter_ads__account_history": ["model.twitter_ads_source.stg_twitter_ads__account_history_tmp"], "model.twitter_ads_source.stg_twitter_ads__tweet_url": ["model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp"], "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp": ["source.twitter_ads_source.twitter_ads.tweet_url"], "model.twitter_ads_source.stg_twitter_ads__tweet_tmp": ["source.twitter_ads_source.twitter_ads.tweet"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp": ["source.twitter_ads_source.twitter_ads.promoted_tweet_report"], "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp": ["source.twitter_ads_source.twitter_ads.line_item_history"], "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp": ["source.twitter_ads_source.twitter_ads.campaign_report"], "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp": ["source.twitter_ads_source.twitter_ads.campaign_history"], "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp": ["source.twitter_ads_source.twitter_ads.line_item_report"], "model.twitter_ads_source.stg_twitter_ads__account_history_tmp": ["source.twitter_ads_source.twitter_ads.account_history"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp": ["source.twitter_ads_source.twitter_ads.promoted_tweet_history"], "model.linkedin.linkedin_ads__campaign_group_report": ["model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__campaign_history"], "model.linkedin.linkedin_ads__creative_report": ["model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__campaign_history", "model.linkedin_source.stg_linkedin_ads__creative_history"], "model.linkedin.linkedin_ads__campaign_report": ["model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__campaign_history"], "model.linkedin.linkedin_ads__account_report": ["model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "model.linkedin_source.stg_linkedin_ads__campaign_history"], "model.linkedin.linkedin_ads__url_report": ["model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__campaign_history", "model.linkedin_source.stg_linkedin_ads__creative_history"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e": ["model.microsoft_ads_source.stg_microsoft_ads__account_history"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_source_relation__account_id__modified_at.c32440cfcf": ["model.microsoft_ads_source.stg_microsoft_ads__account_history"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.38a7aa3e12": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_source_relation__ad_group_id__modified_at.f2ed2b82b0": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.3e03e6eff7": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.3825c46fa1": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_source_relation__ad_id__modified_at.2eb6255160": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.b6f971641a": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_source_relation__campaign_id__modified_at.56da51b12d": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other__budget_association_status__budget_name__budget_status.f7a5fd8430": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_source_relation__keyword_id__modified_at.5b0ba5f522": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.e55a075940": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__language__bid_match_type__delivered_match_type__top_vs_other.97d894068e": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"], "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99": ["model.tiktok_ads.tiktok_ads__advertiser_report"], "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce": ["model.tiktok_ads.tiktok_ads__advertiser_report"], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_source_relation__advertiser_id__date_day.1797053b3d": ["model.tiktok_ads.tiktok_ads__advertiser_report"], "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed": ["model.tiktok_ads.tiktok_ads__ad_report"], "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707": ["model.tiktok_ads.tiktok_ads__ad_report"], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.c260f4392a": ["model.tiktok_ads.tiktok_ads__ad_report"], "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e": ["model.tiktok_ads.tiktok_ads__ad_group_report"], "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4": ["model.tiktok_ads.tiktok_ads__ad_group_report"], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_source_relation__ad_group_id__campaign_id__advertiser_id__date_day.e3850c1634": ["model.tiktok_ads.tiktok_ads__ad_group_report"], "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836": ["model.tiktok_ads.tiktok_ads__campaign_report"], "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8": ["model.tiktok_ads.tiktok_ads__campaign_report"], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.98200e9b0f": ["model.tiktok_ads.tiktok_ads__campaign_report"], "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff": ["model.tiktok_ads.tiktok_ads__url_report"], "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0": ["model.tiktok_ads.tiktok_ads__url_report"], "test.tiktok_ads.not_null_tiktok_ads__url_report_base_url.37afef2e1b": ["model.tiktok_ads.tiktok_ads__url_report"], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.98153764a3": ["model.tiktok_ads.tiktok_ads__url_report"], "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8": ["model.twitter_ads.twitter_ads__campaign_report"], "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0": ["model.twitter_ads.twitter_ads__campaign_report"], "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82": ["model.twitter_ads.twitter_ads__campaign_report"], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement__account_id.f449ef6d6e": ["model.twitter_ads.twitter_ads__campaign_report"], "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce": ["model.twitter_ads.twitter_ads__line_item_report"], "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211": ["model.twitter_ads.twitter_ads__line_item_report"], "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312": ["model.twitter_ads.twitter_ads__line_item_report"], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement__campaign_id__account_id.f8d7069cba": ["model.twitter_ads.twitter_ads__line_item_report"], "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846": ["model.twitter_ads.twitter_ads__account_report"], "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194": ["model.twitter_ads.twitter_ads__account_report"], "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908": ["model.twitter_ads.twitter_ads__account_report"], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_source_relation__date_day__account_id__placement.e6a884489c": ["model.twitter_ads.twitter_ads__account_report"], "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec": [], "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword_id.91efa0a538": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_source_relation__date_day__keyword_id__campaign_id.c51ddef475": [], "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5": ["model.twitter_ads.twitter_ads__promoted_tweet_report"], "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e": ["model.twitter_ads.twitter_ads__promoted_tweet_report"], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f6814a1cc6": ["model.twitter_ads.twitter_ads__promoted_tweet_report"], "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b": ["model.twitter_ads.twitter_ads__url_report"], "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e": ["model.twitter_ads.twitter_ads__url_report"], "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143": ["model.twitter_ads.twitter_ads__url_report"], "test.twitter_ads.not_null_twitter_ads__url_report_base_url.dfd7ab549e": ["model.twitter_ads.twitter_ads__url_report"], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f44851c31f": ["model.twitter_ads.twitter_ads__url_report"], "test.reddit_ads.not_null_reddit_ads__account_report_date_day.7b43e6cb90": ["model.reddit_ads.reddit_ads__account_report"], "test.reddit_ads.not_null_reddit_ads__account_report_account_id.16f11188c5": ["model.reddit_ads.reddit_ads__account_report"], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__account_report_source_relation__date_day__account_id__attribution_type__currency__status__time_zone_id.7260e1923b": ["model.reddit_ads.reddit_ads__account_report"], "test.reddit_ads.not_null_reddit_ads__ad_group_report_date_day.6463e6f6f7": ["model.reddit_ads.reddit_ads__ad_group_report"], "test.reddit_ads.not_null_reddit_ads__ad_group_report_ad_group_id.057bd60604": ["model.reddit_ads.reddit_ads__ad_group_report"], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_source_relation__date_day__account_id__ad_group_id__campaign_id__currency.bd33f1f46d": ["model.reddit_ads.reddit_ads__ad_group_report"], "test.reddit_ads.not_null_reddit_ads__ad_report_date_day.608b21c69a": ["model.reddit_ads.reddit_ads__ad_report"], "test.reddit_ads.not_null_reddit_ads__ad_report_ad_id.1da054a14e": ["model.reddit_ads.reddit_ads__ad_report"], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_source_relation__date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency.8735416c38": ["model.reddit_ads.reddit_ads__ad_report"], "test.reddit_ads.not_null_reddit_ads__campaign_report_date_day.f79cca4131": ["model.reddit_ads.reddit_ads__campaign_report"], "test.reddit_ads.not_null_reddit_ads__campaign_report_campaign_id.f5491a0b49": ["model.reddit_ads.reddit_ads__campaign_report"], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_source_relation__date_day__account_id__campaign_id__currency.6e74c22669": ["model.reddit_ads.reddit_ads__campaign_report"], "test.reddit_ads.not_null_reddit_ads__url_report_date_day.4b0f6363da": ["model.reddit_ads.reddit_ads__url_report"], "test.reddit_ads.not_null_reddit_ads__url_report_ad_id.8ff83da2b0": ["model.reddit_ads.reddit_ads__url_report"], "test.reddit_ads.not_null_reddit_ads__url_report_base_url.2f585bebcb": ["model.reddit_ads.reddit_ads__url_report"], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__url_report_source_relation__date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency.a85ab9beee": ["model.reddit_ads.reddit_ads__url_report"], "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e": ["model.pinterest.pinterest_ads__url_report"], "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502": ["model.pinterest.pinterest_ads__url_report"], "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a": ["model.pinterest.pinterest_ads__url_report"], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.688d8bd291": ["model.pinterest.pinterest_ads__url_report"], "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7": ["model.pinterest.pinterest_ads__ad_group_report"], "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2": ["model.pinterest.pinterest_ads__ad_group_report"], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_source_relation__ad_group_id__advertiser_id__campaign_id__date_day.1fb5fb3f2f": ["model.pinterest.pinterest_ads__ad_group_report"], "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf": ["model.pinterest.pinterest_ads__campaign_report"], "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2": ["model.pinterest.pinterest_ads__campaign_report"], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.4da70e098b": ["model.pinterest.pinterest_ads__campaign_report"], "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca": ["model.pinterest.pinterest_ads__advertiser_report"], "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672": ["model.pinterest.pinterest_ads__advertiser_report"], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_source_relation__advertiser_id__date_day.f9cd6d6ce2": ["model.pinterest.pinterest_ads__advertiser_report"], "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba": ["model.pinterest.pinterest_ads__keyword_report"], "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198": ["model.pinterest.pinterest_ads__keyword_report"], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_source_relation__keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.a9ce89d1db": ["model.pinterest.pinterest_ads__keyword_report"], "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd": ["model.pinterest.pinterest_ads__pin_promotion_report"], "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561": ["model.pinterest.pinterest_ads__pin_promotion_report"], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.9d2f1ea810": ["model.pinterest.pinterest_ads__pin_promotion_report"], "test.reddit_ads_source.not_null_stg_reddit_ads__account_account_id.512f0b8078": ["model.reddit_ads_source.stg_reddit_ads__account"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_source_relation__account_id.49d95e2890": ["model.reddit_ads_source.stg_reddit_ads__account"], "test.reddit_ads_source.not_null_stg_reddit_ads__account_report_account_id.1f2a0195de": ["model.reddit_ads_source.stg_reddit_ads__account_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_source_relation__account_id__date_day.580653f488": ["model.reddit_ads_source.stg_reddit_ads__account_report"], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_ad_id.40188b63dd": ["model.reddit_ads_source.stg_reddit_ads__ad"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_source_relation__ad_id.fc4d1b788b": ["model.reddit_ads_source.stg_reddit_ads__ad"], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_report_ad_id.c4af84b857": ["model.reddit_ads_source.stg_reddit_ads__ad_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_source_relation__ad_id__date_day.395db62865": ["model.reddit_ads_source.stg_reddit_ads__ad_report"], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_ad_group_id.65795d8dc2": ["model.reddit_ads_source.stg_reddit_ads__ad_group"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_source_relation__ad_group_id.942cb72fcc": ["model.reddit_ads_source.stg_reddit_ads__ad_group"], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_report_ad_group_id.9836cd084d": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_source_relation__ad_group_id__date_day.4aa1f776b5": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report"], "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_campaign_id.f3f24e4682": ["model.reddit_ads_source.stg_reddit_ads__campaign"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_source_relation__campaign_id.066d3b93f4": ["model.reddit_ads_source.stg_reddit_ads__campaign"], "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_report_campaign_id.c717612b4f": ["model.reddit_ads_source.stg_reddit_ads__campaign_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_source_relation__campaign_id__date_day.5e87d9d722": ["model.reddit_ads_source.stg_reddit_ads__campaign_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_conversions_report_source_relation__account_id__date_day__event_name.bc323b3bbb": ["model.reddit_ads_source.stg_reddit_ads__account_conversions_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_conversions_report_source_relation__ad_group_id__date_day__event_name.acd1ea8c2b": ["model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_conversions_report_source_relation__ad_id__date_day__event_name.49a6eee2ad": ["model.reddit_ads_source.stg_reddit_ads__ad_conversions_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_conversions_report_source_relation__campaign_id__date_day__event_name.2ed971ff1b": ["model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report"], "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72": ["model.google_ads.google_ads__url_report"], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_source_relation__ad_id__ad_group_id__date_day.e11b928273": ["model.google_ads.google_ads__url_report"], "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422": ["model.google_ads.google_ads__account_report"], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_source_relation__account_id__date_day.8480aa9317": ["model.google_ads.google_ads__account_report"], "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c": ["model.google_ads.google_ads__ad_group_report"], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_source_relation__ad_group_id__date_day.41d73a32f3": ["model.google_ads.google_ads__ad_group_report"], "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad": ["model.google_ads.google_ads__ad_report"], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_report_source_relation__ad_id__ad_group_id__date_day.0e82f7e99a": ["model.google_ads.google_ads__ad_report"], "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e": ["model.google_ads.google_ads__campaign_report"], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__campaign_report_source_relation__campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.29077cbd5e": ["model.google_ads.google_ads__campaign_report"], "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055": ["model.google_ads.google_ads__keyword_report"], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_source_relation__ad_group_id__criterion_id__date_day.82605f3acd": ["model.google_ads.google_ads__keyword_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_source_relation__ad_group_id__last_updated_date.5873194717": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_source_relation__ad_group_id__date_day.180ec0225e": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_source_relation__ad_id__date_day.e170148d6c": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c": ["model.amazon_ads_source.stg_amazon_ads__campaign_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_source_relation__campaign_id__last_updated_date.f58b6293d6": ["model.amazon_ads_source.stg_amazon_ads__campaign_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_source_relation__campaign_id__date_day.f6bb472aa5": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e": ["model.amazon_ads_source.stg_amazon_ads__keyword_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_source_relation__keyword_id__last_updated_date.611a8411e0": ["model.amazon_ads_source.stg_amazon_ads__keyword_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_source_relation__portfolio_id__last_updated_date.e0bb6ee3e0": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_source_relation__ad_id__last_updated_date.90fb8d59e6": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b": ["model.amazon_ads_source.stg_amazon_ads__profile"], "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_source_relation__keyword_id__date_day.4190f2a661": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_source_relation__search_term__keyword_id__date_day.00ccbc3eda": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_source_relation__date_day__creative_id.7b7d839d38": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_source_relation__date_day__campaign_id.41aa0d6322": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"], "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474": ["model.linkedin_source.stg_linkedin_ads__creative_history"], "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2": ["model.linkedin_source.stg_linkedin_ads__campaign_history"], "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469": ["model.linkedin_source.stg_linkedin_ads__campaign_history"], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_source_relation__version_tag__campaign_id.65ed9cedae": ["model.linkedin_source.stg_linkedin_ads__campaign_history"], "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"], "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_source_relation__last_modified_at__campaign_group_id.4c9f328639": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"], "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0": ["model.linkedin_source.stg_linkedin_ads__account_history"], "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81": ["model.linkedin_source.stg_linkedin_ads__account_history"], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_source_relation__account_id__version_tag.c7a0383d8c": ["model.linkedin_source.stg_linkedin_ads__account_history"], "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66": ["model.amazon_ads.amazon_ads__account_report"], "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061": ["model.amazon_ads.amazon_ads__account_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_source_relation__date_day__profile_id.5ff488055c": ["model.amazon_ads.amazon_ads__account_report"], "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a": ["model.amazon_ads.amazon_ads__ad_group_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_source_relation__date_day__ad_group_id.9f5387d4e0": ["model.amazon_ads.amazon_ads__ad_group_report"], "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3": ["model.amazon_ads.amazon_ads__ad_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_source_relation__date_day__ad_id.5c0ccedb91": ["model.amazon_ads.amazon_ads__ad_report"], "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c": ["model.amazon_ads.amazon_ads__campaign_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_source_relation__date_day__campaign_id.0fcead4f41": ["model.amazon_ads.amazon_ads__campaign_report"], "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6": ["model.amazon_ads.amazon_ads__portfolio_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_source_relation__date_day__portfolio_id.b3bfe4fce4": ["model.amazon_ads.amazon_ads__portfolio_report"], "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a": ["model.amazon_ads.amazon_ads__keyword_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_source_relation__date_day__keyword_id.34f042afc1": ["model.amazon_ads.amazon_ads__keyword_report"], "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a": ["model.amazon_ads.amazon_ads__search_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_source_relation__date_day__search_term__keyword_id.21a027f105": ["model.amazon_ads.amazon_ads__search_report"], "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be": ["model.facebook_ads.facebook_ads__url_report"], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.ef8d3469d4": ["model.facebook_ads.facebook_ads__url_report"], "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238": ["model.facebook_ads.facebook_ads__ad_report"], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.c866a344f6": ["model.facebook_ads.facebook_ads__ad_report"], "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4": ["model.facebook_ads.facebook_ads__ad_set_report"], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_source_relation__date_day__account_id__campaign_id__ad_set_id.8707f6bd30": ["model.facebook_ads.facebook_ads__ad_set_report"], "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21": ["model.facebook_ads.facebook_ads__campaign_report"], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_source_relation__date_day__account_id__campaign_id.f97e1afff3": ["model.facebook_ads.facebook_ads__campaign_report"], "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024": ["model.facebook_ads.facebook_ads__account_report"], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_source_relation__date_day__account_id.bf8a017de1": ["model.facebook_ads.facebook_ads__account_report"], "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3": ["model.facebook_ads.facebook_ads__url_tags"], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags_source_relation___fivetran_id__key__type.c65de59dec": ["model.facebook_ads.facebook_ads__url_tags"], "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260": ["model.snapchat_ads.snapchat_ads__account_report"], "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b": ["model.snapchat_ads.snapchat_ads__account_report"], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_source_relation__ad_account_id__date_day.654a687cf1": ["model.snapchat_ads.snapchat_ads__account_report"], "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe": ["model.snapchat_ads.snapchat_ads__ad_report"], "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744": ["model.snapchat_ads.snapchat_ads__ad_report"], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_source_relation__ad_id__date_day.9116e93fba": ["model.snapchat_ads.snapchat_ads__ad_report"], "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b": ["model.snapchat_ads.snapchat_ads__campaign_report"], "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac": ["model.snapchat_ads.snapchat_ads__campaign_report"], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_source_relation__campaign_id__date_day.557487ad6a": ["model.snapchat_ads.snapchat_ads__campaign_report"], "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639": ["model.snapchat_ads.snapchat_ads__ad_squad_report"], "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe": ["model.snapchat_ads.snapchat_ads__ad_squad_report"], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_source_relation__ad_squad_id__date_day.b1a26a5bb4": ["model.snapchat_ads.snapchat_ads__ad_squad_report"], "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6": ["model.snapchat_ads.snapchat_ads__url_report"], "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78": ["model.snapchat_ads.snapchat_ads__url_report"], "test.snapchat_ads.not_null_snapchat_ads__url_report_base_url.15676dc1de": ["model.snapchat_ads.snapchat_ads__url_report"], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_source_relation__ad_id__date_day.86e3504c07": ["model.snapchat_ads.snapchat_ads__url_report"], "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f": ["model.google_ads_source.stg_google_ads__account_history"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_source_relation__account_id__updated_at.0a4d931c44": ["model.google_ads_source.stg_google_ads__account_history"], "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be": ["model.google_ads_source.stg_google_ads__ad_group_history"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_source_relation__ad_group_id__updated_at.94eb3f93a4": ["model.google_ads_source.stg_google_ads__ad_group_history"], "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248": ["model.google_ads_source.stg_google_ads__ad_history"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_source_relation__ad_id__ad_group_id__updated_at.edca86664e": ["model.google_ads_source.stg_google_ads__ad_history"], "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4": ["model.google_ads_source.stg_google_ads__ad_stats"], "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8": ["model.google_ads_source.stg_google_ads__ad_stats"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_source_relation__ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.222a7d9413": ["model.google_ads_source.stg_google_ads__ad_stats"], "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75": ["model.google_ads_source.stg_google_ads__campaign_history"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_source_relation__campaign_id__updated_at.008fea6b77": ["model.google_ads_source.stg_google_ads__campaign_history"], "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_source_relation__criterion_id__ad_group_id__updated_at.8d37dd2fa0": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history"], "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786": ["model.google_ads_source.stg_google_ads__ad_group_stats"], "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077": ["model.google_ads_source.stg_google_ads__ad_group_stats"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_source_relation__ad_group_id__device__ad_network_type__date_day.0755df524f": ["model.google_ads_source.stg_google_ads__ad_group_stats"], "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b": ["model.google_ads_source.stg_google_ads__campaign_stats"], "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f": ["model.google_ads_source.stg_google_ads__campaign_stats"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_source_relation__campaign_id__ad_network_type__device__date_day.fea3ecfe6f": ["model.google_ads_source.stg_google_ads__campaign_stats"], "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d": ["model.google_ads_source.stg_google_ads__keyword_stats"], "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0": ["model.google_ads_source.stg_google_ads__keyword_stats"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_source_relation__keyword_id__date_day.4ecf84a32f": ["model.google_ads_source.stg_google_ads__keyword_stats"], "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b": ["model.google_ads_source.stg_google_ads__account_stats"], "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5": ["model.google_ads_source.stg_google_ads__account_stats"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_source_relation__account_id__device__ad_network_type__date_day.7d4d5e9ce2": ["model.google_ads_source.stg_google_ads__account_stats"], "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5": ["model.apple_search_ads.apple_search_ads__ad_group_report"], "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c": ["model.apple_search_ads.apple_search_ads__ad_group_report"], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_source_relation__organization_id__campaign_id__ad_group_id__date_day.3c4191e648": ["model.apple_search_ads.apple_search_ads__ad_group_report"], "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c": ["model.apple_search_ads.apple_search_ads__ad_report"], "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17": ["model.apple_search_ads.apple_search_ads__ad_report"], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_source_relation__organization_id__campaign_id__ad_group_id__ad_id__date_day.6d5d406b55": ["model.apple_search_ads.apple_search_ads__ad_report"], "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146": ["model.apple_search_ads.apple_search_ads__campaign_report"], "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a": ["model.apple_search_ads.apple_search_ads__campaign_report"], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_source_relation__organization_id__campaign_id__date_day.0fdb29354b": ["model.apple_search_ads.apple_search_ads__campaign_report"], "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db": ["model.apple_search_ads.apple_search_ads__keyword_report"], "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82": ["model.apple_search_ads.apple_search_ads__keyword_report"], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_source_relation__organization_id__campaign_id__ad_group_id__keyword_id__date_day.974556d271": ["model.apple_search_ads.apple_search_ads__keyword_report"], "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8": ["model.apple_search_ads.apple_search_ads__organization_report"], "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523": ["model.apple_search_ads.apple_search_ads__organization_report"], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_source_relation__organization_id__date_day.8a9d834203": ["model.apple_search_ads.apple_search_ads__organization_report"], "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c": ["model.apple_search_ads.apple_search_ads__search_term_report"], "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7": ["model.apple_search_ads.apple_search_ads__search_term_report"], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_source_relation__search_term_text__match_type__date_day__keyword_id__ad_group_id__campaign_id__organization_id.82f7464f67": ["model.apple_search_ads.apple_search_ads__search_term_report"], "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022": ["model.ad_reporting.ad_reporting__account_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_source_relation__platform__date_day__account_id.4cb64b5631": ["model.ad_reporting.ad_reporting__account_report"], "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842": ["model.ad_reporting.ad_reporting__ad_group_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id.629300a679": ["model.ad_reporting.ad_reporting__ad_group_report"], "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152": ["model.ad_reporting.ad_reporting__ad_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_source_relation__platform__date_day__ad_id__ad_group_id__campaign_id__account_id.2e26485f58": ["model.ad_reporting.ad_reporting__ad_report"], "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b": ["model.ad_reporting.ad_reporting__campaign_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_source_relation__platform__date_day__campaign_id__account_id.0cad44418b": ["model.ad_reporting.ad_reporting__campaign_report"], "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334": ["model.ad_reporting.ad_reporting__keyword_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_source_relation__platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id.62e073f236": ["model.ad_reporting.ad_reporting__keyword_report"], "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb": ["model.ad_reporting.ad_reporting__search_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__search_report_source_relation__platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.ee233ddb9e": ["model.ad_reporting.ad_reporting__search_report"], "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6": ["model.ad_reporting.ad_reporting__url_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__url_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id__base_url__url_host__url_path__utm_campaign__utm_content__utm_medium__utm_source__utm_term.2e59004ca0": ["model.ad_reporting.ad_reporting__url_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_modified_at.e5d65fa28f": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_ad_group_id.dc128eecb7": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_source_relation__ad_group_id__modified_at.a6db663569": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_ad_group_id.a115f9cfc1": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_date_day.4dfd46a43b": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_source_relation__ad_group_id__date_day.dc4ccb902d": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_source_relation__ad_id__modified_at.45dfca7ca5": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_group_id.a397755e9f": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_source_relation__ad_id__date_day__ad_group_id.f9bc5ff292": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_source_relation__campaign_id__modified_at.2e9f11582c": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_source_relation__campaign_id__date_day.87b6206f82": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_source_relation__keyword_id__modified_at.635c0ce086": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_source_relation__keyword_id__date_day.855ae5524a": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb": ["model.apple_search_ads_source.stg_apple_search_ads__organization"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_source_relation__organization_id.b5c488cb77": ["model.apple_search_ads_source.stg_apple_search_ads__organization"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report__fivetran_id.aa430d1dad": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report_date_day.fd93df3302": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report_source_relation___fivetran_id__date_day.ef07562d98": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report"], "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be": ["model.pinterest_source.stg_pinterest_ads__ad_group_history"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_source_relation__ad_group_id___fivetran_synced.ef2b22b2ca": ["model.pinterest_source.stg_pinterest_ads__ad_group_history"], "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341": ["model.pinterest_source.stg_pinterest_ads__campaign_history"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_source_relation__campaign_id___fivetran_synced.84df0386bc": ["model.pinterest_source.stg_pinterest_ads__campaign_history"], "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history_source_relation___fivetran_synced__pin_promotion_id.8064d48c11": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history"], "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"], "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_source_relation__date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.8b358e3946": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"], "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"], "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_source_relation__date_day__ad_group_id__campaign_id__advertiser_id.83246fd43c": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"], "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb": ["model.pinterest_source.stg_pinterest_ads__advertiser_history"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_source_relation__updated_at__advertiser_id.8308a26e9f": ["model.pinterest_source.stg_pinterest_ads__advertiser_history"], "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"], "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_source_relation__date_day__advertiser_id.cadbd5fae2": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"], "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238": ["model.pinterest_source.stg_pinterest_ads__campaign_report"], "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc": ["model.pinterest_source.stg_pinterest_ads__campaign_report"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_source_relation__date_day__campaign_id__advertiser_id.6dd9b7bce6": ["model.pinterest_source.stg_pinterest_ads__campaign_report"], "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a": ["model.pinterest_source.stg_pinterest_ads__keyword_history"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_source_relation__keyword_id__ad_group_id___fivetran_synced.2cd3b85ca9": ["model.pinterest_source.stg_pinterest_ads__keyword_history"], "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300": ["model.pinterest_source.stg_pinterest_ads__keyword_report"], "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48": ["model.pinterest_source.stg_pinterest_ads__keyword_report"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_source_relation__date_day__keyword_id__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.f43dda0239": ["model.pinterest_source.stg_pinterest_ads__keyword_report"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__advertiser_source_relation__advertiser_id.4b39eb0db8": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_source_relation__ad_group_id__updated_at.94fc2240d4": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history"], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_source_relation__ad_id__updated_at.64ebc5aea6": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history"], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_source_relation__campaign_id__updated_at.52babc6036": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_source_relation__ad_id__stat_time_hour.1f7d670427": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.8da17119f1": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.ca4b495127": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_source_relation__ad_group_id__stat_time_hour.f0681f097c": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_source_relation__campaign_id__stat_time_hour.91b84f3ede": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"], "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f": ["model.facebook_ads_source.stg_facebook_ads__account_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f": ["model.facebook_ads_source.stg_facebook_ads__account_history"], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_source_relation__account_id___fivetran_synced.f81aca1247": ["model.facebook_ads_source.stg_facebook_ads__account_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064": ["model.facebook_ads_source.stg_facebook_ads__ad_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4": ["model.facebook_ads_source.stg_facebook_ads__ad_history"], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_source_relation__ad_id__updated_at.664b870e6c": ["model.facebook_ads_source.stg_facebook_ads__ad_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_source_relation__ad_set_id__updated_at.ff1d43114a": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_source_relation__campaign_id__updated_at.82c4f9a2a1": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f": ["model.facebook_ads_source.stg_facebook_ads__creative_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261": ["model.facebook_ads_source.stg_facebook_ads__creative_history"], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_source_relation___fivetran_id.2466dae947": ["model.facebook_ads_source.stg_facebook_ads__creative_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"], "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_source_relation__date_day__ad_id__account_id.9c647961f0": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_actions_source_relation__date_day__ad_id__action_type.3f1bea13d9": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_actions"], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_action_values_source_relation__date_day__ad_id__action_type.3c32585825": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_source_relation__ad_account_id___fivetran_synced.b8a4da92d1": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_source_relation__ad_id___fivetran_synced.630e3ffee4": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_source_relation__ad_id__date_hour.f2d4b9252f": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_source_relation__ad_squad_id___fivetran_synced.5d97ae5ee3": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.ab16aa72c9": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_source_relation__ad_squad_id__date_hour.25afb4f9ae": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_source_relation__campaign_id___fivetran_synced.e003c1a660": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_source_relation__campaign_id__date_hour.3998b6bf9d": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_source_relation__creative_id___fivetran_synced.1d4efdd418": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_source_relation__creative_id__param_key__updated_at.6ed98c175a": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"], "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e": ["model.microsoft_ads.microsoft_ads__account_report"], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code.42178a7c9b": ["model.microsoft_ads.microsoft_ads__account_report"], "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9": ["model.microsoft_ads.microsoft_ads__ad_group_report"], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.da08ee00a5": ["model.microsoft_ads.microsoft_ads__ad_group_report"], "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125": ["model.microsoft_ads.microsoft_ads__ad_report"], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.e13fd60438": ["model.microsoft_ads.microsoft_ads__ad_report"], "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8": ["model.microsoft_ads.microsoft_ads__campaign_report"], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code.00fc594532": ["model.microsoft_ads.microsoft_ads__campaign_report"], "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b": ["model.microsoft_ads.microsoft_ads__keyword_report"], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.e4af52a80b": ["model.microsoft_ads.microsoft_ads__keyword_report"], "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d": ["model.microsoft_ads.microsoft_ads__search_report"], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__match_type.6753357660": ["model.microsoft_ads.microsoft_ads__search_report"], "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a": ["model.microsoft_ads.microsoft_ads__url_report"], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.0ea4732dff": ["model.microsoft_ads.microsoft_ads__url_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2": ["model.twitter_ads_source.stg_twitter_ads__account_history"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_source_relation__account_id__updated_timestamp.3492933c38": ["model.twitter_ads_source.stg_twitter_ads__account_history"], "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce": ["model.twitter_ads_source.stg_twitter_ads__campaign_history"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_source_relation__campaign_id__updated_timestamp.9b0c16487d": ["model.twitter_ads_source.stg_twitter_ads__campaign_history"], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809": ["model.twitter_ads_source.stg_twitter_ads__line_item_history"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_source_relation__line_item_id__updated_timestamp.646fa5270f": ["model.twitter_ads_source.stg_twitter_ads__line_item_history"], "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_source_relation__promoted_tweet_id__updated_timestamp.7016099e0a": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"], "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement.9d96bf07d3": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"], "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_source_relation__index__tweet_id.ce1a2b4a87": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"], "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement.9d5717ee54": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement.6c8686e61c": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.e5f015e9ec": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_source_relation__date_day__keyword_id.579bdc1f1c": [], "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd": ["model.twitter_ads_source.stg_twitter_ads__tweet"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_source_relation__tweet_id.70de7f05f5": ["model.twitter_ads_source.stg_twitter_ads__tweet"], "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842": ["model.linkedin.linkedin_ads__account_report"], "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53": ["model.linkedin.linkedin_ads__account_report"], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_source_relation__date_day__account_id.da7ea6faeb": ["model.linkedin.linkedin_ads__account_report"], "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1": ["model.linkedin.linkedin_ads__campaign_report"], "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15": ["model.linkedin.linkedin_ads__campaign_report"], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_source_relation__date_day__campaign_id__account_id__campaign_group_id.89a0d4ba0b": ["model.linkedin.linkedin_ads__campaign_report"], "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b": ["model.linkedin.linkedin_ads__campaign_group_report"], "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf": ["model.linkedin.linkedin_ads__campaign_group_report"], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_source_relation__date_day__campaign_group_id__account_id.36e7743abc": ["model.linkedin.linkedin_ads__campaign_group_report"], "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020": ["model.linkedin.linkedin_ads__creative_report"], "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889": ["model.linkedin.linkedin_ads__creative_report"], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.f9e5f8f610": ["model.linkedin.linkedin_ads__creative_report"], "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315": ["model.linkedin.linkedin_ads__url_report"], "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2": ["model.linkedin.linkedin_ads__url_report"], "test.linkedin.not_null_linkedin_ads__url_report_click_uri.81534087cb": ["model.linkedin.linkedin_ads__url_report"], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.0ff865de89": ["model.linkedin.linkedin_ads__url_report"], "source.microsoft_ads_source.microsoft_ads.account_history": [], "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report": [], "source.microsoft_ads_source.microsoft_ads.ad_group_history": [], "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": [], "source.microsoft_ads_source.microsoft_ads.ad_history": [], "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report": [], "source.microsoft_ads_source.microsoft_ads.campaign_history": [], "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": [], "source.microsoft_ads_source.microsoft_ads.keyword_history": [], "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": [], "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": [], "source.reddit_ads_source.reddit_ads.account": [], "source.reddit_ads_source.reddit_ads.account_report": [], "source.reddit_ads_source.reddit_ads.ad": [], "source.reddit_ads_source.reddit_ads.ad_report": [], "source.reddit_ads_source.reddit_ads.ad_group": [], "source.reddit_ads_source.reddit_ads.ad_group_report": [], "source.reddit_ads_source.reddit_ads.campaign": [], "source.reddit_ads_source.reddit_ads.campaign_report": [], "source.reddit_ads_source.reddit_ads.account_conversions_report": [], "source.reddit_ads_source.reddit_ads.ad_group_conversions_report": [], "source.reddit_ads_source.reddit_ads.ad_conversions_report": [], "source.reddit_ads_source.reddit_ads.campaign_conversions_report": [], "source.amazon_ads_source.amazon_ads.ad_group_history": [], "source.amazon_ads_source.amazon_ads.ad_group_level_report": [], "source.amazon_ads_source.amazon_ads.advertised_product_report": [], "source.amazon_ads_source.amazon_ads.campaign_history": [], "source.amazon_ads_source.amazon_ads.campaign_level_report": [], "source.amazon_ads_source.amazon_ads.keyword_history": [], "source.amazon_ads_source.amazon_ads.portfolio_history": [], "source.amazon_ads_source.amazon_ads.product_ad_history": [], "source.amazon_ads_source.amazon_ads.profile": [], "source.amazon_ads_source.amazon_ads.targeting_keyword_report": [], "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report": [], "source.linkedin_source.linkedin_ads.ad_analytics_by_creative": [], "source.linkedin_source.linkedin_ads.creative_history": [], "source.linkedin_source.linkedin_ads.campaign_history": [], "source.linkedin_source.linkedin_ads.campaign_group_history": [], "source.linkedin_source.linkedin_ads.account_history": [], "source.linkedin_source.linkedin_ads.ad_analytics_by_campaign": [], "source.google_ads_source.google_ads.ad_stats": [], "source.google_ads_source.google_ads.ad_history": [], "source.google_ads_source.google_ads.ad_group_history": [], "source.google_ads_source.google_ads.campaign_history": [], "source.google_ads_source.google_ads.account_history": [], "source.google_ads_source.google_ads.ad_group_criterion_history": [], "source.google_ads_source.google_ads.ad_group_stats": [], "source.google_ads_source.google_ads.campaign_stats": [], "source.google_ads_source.google_ads.keyword_stats": [], "source.google_ads_source.google_ads.account_stats": [], "source.apple_search_ads_source.apple_search_ads.ad_group_history": [], "source.apple_search_ads_source.apple_search_ads.ad_group_report": [], "source.apple_search_ads_source.apple_search_ads.ad_history": [], "source.apple_search_ads_source.apple_search_ads.ad_level_report": [], "source.apple_search_ads_source.apple_search_ads.campaign_history": [], "source.apple_search_ads_source.apple_search_ads.campaign_report": [], "source.apple_search_ads_source.apple_search_ads.keyword_history": [], "source.apple_search_ads_source.apple_search_ads.keyword_report": [], "source.apple_search_ads_source.apple_search_ads.organization": [], "source.apple_search_ads_source.apple_search_ads.search_term_report": [], "source.pinterest_source.pinterest_ads.pin_promotion_report": [], "source.pinterest_source.pinterest_ads.pin_promotion_history": [], "source.pinterest_source.pinterest_ads.campaign_history": [], "source.pinterest_source.pinterest_ads.ad_group_history": [], "source.pinterest_source.pinterest_ads.ad_group_report": [], "source.pinterest_source.pinterest_ads.advertiser_history": [], "source.pinterest_source.pinterest_ads.advertiser_report": [], "source.pinterest_source.pinterest_ads.campaign_report": [], "source.pinterest_source.pinterest_ads.keyword_history": [], "source.pinterest_source.pinterest_ads.keyword_report": [], "source.tiktok_ads_source.tiktok_ads.advertiser": [], "source.tiktok_ads_source.tiktok_ads.campaign_history": [], "source.tiktok_ads_source.tiktok_ads.adgroup_history": [], "source.tiktok_ads_source.tiktok_ads.ad_history": [], "source.tiktok_ads_source.tiktok_ads.ad_report_hourly": [], "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly": [], "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": [], "source.facebook_ads_source.facebook_ads.account_history": [], "source.facebook_ads_source.facebook_ads.ad_history": [], "source.facebook_ads_source.facebook_ads.ad_set_history": [], "source.facebook_ads_source.facebook_ads.basic_ad": [], "source.facebook_ads_source.facebook_ads.basic_ad_actions": [], "source.facebook_ads_source.facebook_ads.basic_ad_action_values": [], "source.facebook_ads_source.facebook_ads.campaign_history": [], "source.facebook_ads_source.facebook_ads.creative_history": [], "source.snapchat_ads_source.snapchat_ads.ad_account_history": [], "source.snapchat_ads_source.snapchat_ads.ad_history": [], "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": [], "source.snapchat_ads_source.snapchat_ads.ad_squad_history": [], "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": [], "source.snapchat_ads_source.snapchat_ads.campaign_history": [], "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": [], "source.snapchat_ads_source.snapchat_ads.creative_history": [], "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": [], "source.twitter_ads_source.twitter_ads.account_history": [], "source.twitter_ads_source.twitter_ads.campaign_history": [], "source.twitter_ads_source.twitter_ads.line_item_history": [], "source.twitter_ads_source.twitter_ads.promoted_tweet_history": [], "source.twitter_ads_source.twitter_ads.tweet_url": [], "source.twitter_ads_source.twitter_ads.promoted_tweet_report": [], "source.twitter_ads_source.twitter_ads.tweet": [], "source.twitter_ads_source.twitter_ads.campaign_report": [], "source.twitter_ads_source.twitter_ads.line_item_report": [], "metric.ad_reporting.active_ads": ["semantic_model.ad_reporting.ad_report"], "metric.ad_reporting.avg_spend_nonzero": ["semantic_model.ad_reporting.ad_report"], "metric.ad_reporting.avg_spend": ["semantic_model.ad_reporting.ad_report"], "metric.ad_reporting.clicks": ["semantic_model.ad_reporting.ad_report"], "metric.ad_reporting.impressions": ["semantic_model.ad_reporting.ad_report"], "metric.ad_reporting.spend": ["semantic_model.ad_reporting.ad_report"], "metric.ad_reporting.clickthrough_rate": ["metric.ad_reporting.clicks", "metric.ad_reporting.impressions"], "metric.ad_reporting.cost_per_click": ["metric.ad_reporting.clicks", "metric.ad_reporting.spend"], "metric.ad_reporting.bounce_rate": ["metric.ad_reporting.clicks", "metric.ad_reporting.impressions"], "semantic_model.ad_reporting.ad_report": ["model.ad_reporting.ad_reporting__ad_report"]}, "child_map": {"seed.ad_reporting_integration_tests.twitter_line_item_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data": [], "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": [], "seed.ad_reporting_integration_tests.pinterest_keyword_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_account_report_data": [], "seed.ad_reporting_integration_tests.twitter_line_item_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_conversions": [], "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data": [], "seed.ad_reporting_integration_tests.pinterest_ad_group_report_data": [], "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_campaign_conversions": [], "seed.ad_reporting_integration_tests.twitter_account_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_campaign_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data": [], "seed.ad_reporting_integration_tests.twitter_campaign_history_data": [], "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_action_values_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data": [], "seed.ad_reporting_integration_tests.pinterest_advertiser_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data": [], "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.tiktok_ad_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data": [], "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data": [], "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data": [], "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_group_conversions": [], "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data": [], "seed.ad_reporting_integration_tests.apple_search_organization_data": [], "seed.ad_reporting_integration_tests.tiktok_campaign_history_data": [], "seed.ad_reporting_integration_tests.tiktok_advertiser_data": [], "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_stats_data": [], "seed.ad_reporting_integration_tests.twitter_campaign_report_data": [], "seed.ad_reporting_integration_tests.google_ads_account_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_profile_data": [], "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.pinterest_campaign_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data": [], "seed.ad_reporting_integration_tests.twitter_tweet_url_data": [], "seed.ad_reporting_integration_tests.apple_search_keyword_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_group_data": [], "seed.ad_reporting_integration_tests.pinterest_pin_promotion_history_data": [], "seed.ad_reporting_integration_tests.pinterest_campaign_history_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.google_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_account_history_data": [], "seed.ad_reporting_integration_tests.apple_search_campaign_report_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.pinterest_ad_group_history_data": [], "seed.ad_reporting_integration_tests.snapchat_campaign_history_data": [], "seed.ad_reporting_integration_tests.pinterest_keyword_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data": [], "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.apple_search_search_term_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_account_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_group_report_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data": [], "seed.ad_reporting_integration_tests.twitter_account_history_data": [], "seed.ad_reporting_integration_tests.snapchat_creative_history_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data": [], "seed.ad_reporting_integration_tests.apple_search_keyword_report_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.twitter_tweet_data": [], "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_actions_data": [], "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data": [], "seed.ad_reporting_integration_tests.apple_search_ad_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_campaign_report_data": [], "seed.ad_reporting_integration_tests.google_ads_account_stats_data": [], "seed.ad_reporting_integration_tests.pinterest_advertiser_history_data": [], "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data": [], "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_report_data": [], "seed.ad_reporting_integration_tests.pinterest_pin_promotion_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_account_conversions": [], "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.apple_search_ad_history_data": [], "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data": [], "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report": ["model.microsoft_ads.microsoft_ads__account_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.38a7aa3e12", "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79"], "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report": ["model.microsoft_ads.microsoft_ads__search_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__language__bid_match_type__delivered_match_type__top_vs_other.97d894068e", "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc"], "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report": ["model.microsoft_ads.microsoft_ads__keyword_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.e55a075940", "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047"], "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report": ["model.microsoft_ads.microsoft_ads__campaign_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other__budget_association_status__budget_name__budget_status.f7a5fd8430", "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84"], "model.microsoft_ads_source.stg_microsoft_ads__keyword_history": ["model.microsoft_ads.microsoft_ads__keyword_report", "model.microsoft_ads.microsoft_ads__search_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_source_relation__keyword_id__modified_at.5b0ba5f522", "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209"], "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report": ["model.microsoft_ads.microsoft_ads__ad_group_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.3825c46fa1", "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.3e03e6eff7"], "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history": ["model.microsoft_ads.microsoft_ads__ad_group_report", "model.microsoft_ads.microsoft_ads__ad_report", "model.microsoft_ads.microsoft_ads__keyword_report", "model.microsoft_ads.microsoft_ads__search_report", "model.microsoft_ads.microsoft_ads__url_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_source_relation__ad_group_id__modified_at.f2ed2b82b0", "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7"], "model.microsoft_ads_source.stg_microsoft_ads__ad_history": ["model.microsoft_ads.microsoft_ads__ad_report", "model.microsoft_ads.microsoft_ads__keyword_report", "model.microsoft_ads.microsoft_ads__search_report", "model.microsoft_ads.microsoft_ads__url_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_source_relation__ad_id__modified_at.2eb6255160", "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574"], "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report": ["model.microsoft_ads.microsoft_ads__ad_report", "model.microsoft_ads.microsoft_ads__url_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.b6f971641a", "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8"], "model.microsoft_ads_source.stg_microsoft_ads__account_history": ["model.microsoft_ads.microsoft_ads__account_report", "model.microsoft_ads.microsoft_ads__ad_group_report", "model.microsoft_ads.microsoft_ads__ad_report", "model.microsoft_ads.microsoft_ads__campaign_report", "model.microsoft_ads.microsoft_ads__keyword_report", "model.microsoft_ads.microsoft_ads__search_report", "model.microsoft_ads.microsoft_ads__url_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_source_relation__account_id__modified_at.c32440cfcf", "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e"], "model.microsoft_ads_source.stg_microsoft_ads__campaign_history": ["model.microsoft_ads.microsoft_ads__ad_group_report", "model.microsoft_ads.microsoft_ads__ad_report", "model.microsoft_ads.microsoft_ads__campaign_report", "model.microsoft_ads.microsoft_ads__keyword_report", "model.microsoft_ads.microsoft_ads__search_report", "model.microsoft_ads.microsoft_ads__url_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_source_relation__campaign_id__modified_at.56da51b12d", "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122"], "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"], "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history"], "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__account_history"], "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history"], "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history"], "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"], "model.tiktok_ads.tiktok_ads__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_source_relation__ad_group_id__campaign_id__advertiser_id__date_day.e3850c1634", "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4", "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e"], "model.tiktok_ads.tiktok_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.98153764a3", "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0", "test.tiktok_ads.not_null_tiktok_ads__url_report_base_url.37afef2e1b", "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff"], "model.tiktok_ads.tiktok_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.98200e9b0f", "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8", "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836"], "model.tiktok_ads.tiktok_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.c260f4392a", "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707", "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed"], "model.tiktok_ads.tiktok_ads__advertiser_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_source_relation__advertiser_id__date_day.1797053b3d", "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce", "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99"], "model.twitter_ads.twitter_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_source_relation__date_day__account_id__placement.e6a884489c", "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908", "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846", "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194"], "model.twitter_ads.twitter_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement__account_id.f449ef6d6e", "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8", "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0", "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82"], "model.twitter_ads.twitter_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f44851c31f", "test.twitter_ads.not_null_twitter_ads__url_report_base_url.dfd7ab549e", "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b", "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e", "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143"], "model.twitter_ads.twitter_ads__promoted_tweet_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f6814a1cc6", "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5", "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e"], "model.twitter_ads.twitter_ads__line_item_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement__campaign_id__account_id.f8d7069cba", "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce", "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211", "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312"], "model.reddit_ads.reddit_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_source_relation__date_day__account_id__campaign_id__currency.6e74c22669", "test.reddit_ads.not_null_reddit_ads__campaign_report_campaign_id.f5491a0b49", "test.reddit_ads.not_null_reddit_ads__campaign_report_date_day.f79cca4131"], "model.reddit_ads.reddit_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__url_report_source_relation__date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency.a85ab9beee", "test.reddit_ads.not_null_reddit_ads__url_report_ad_id.8ff83da2b0", "test.reddit_ads.not_null_reddit_ads__url_report_base_url.2f585bebcb", "test.reddit_ads.not_null_reddit_ads__url_report_date_day.4b0f6363da"], "model.reddit_ads.reddit_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__account_report_source_relation__date_day__account_id__attribution_type__currency__status__time_zone_id.7260e1923b", "test.reddit_ads.not_null_reddit_ads__account_report_account_id.16f11188c5", "test.reddit_ads.not_null_reddit_ads__account_report_date_day.7b43e6cb90"], "model.reddit_ads.reddit_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_source_relation__date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency.8735416c38", "test.reddit_ads.not_null_reddit_ads__ad_report_ad_id.1da054a14e", "test.reddit_ads.not_null_reddit_ads__ad_report_date_day.608b21c69a"], "model.reddit_ads.reddit_ads__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_source_relation__date_day__account_id__ad_group_id__campaign_id__currency.bd33f1f46d", "test.reddit_ads.not_null_reddit_ads__ad_group_report_ad_group_id.057bd60604", "test.reddit_ads.not_null_reddit_ads__ad_group_report_date_day.6463e6f6f7"], "model.pinterest.pinterest_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.688d8bd291", "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e", "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502", "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a"], "model.pinterest.pinterest_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.4da70e098b", "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2", "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf"], "model.pinterest.pinterest_ads__keyword_report": ["model.ad_reporting.int_ad_reporting__keyword_report", "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_source_relation__keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.a9ce89d1db", "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba", "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198"], "model.pinterest.pinterest_ads__advertiser_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_source_relation__advertiser_id__date_day.f9cd6d6ce2", "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672", "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca"], "model.pinterest.pinterest_ads__pin_promotion_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.9d2f1ea810", "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd", "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561"], "model.pinterest.pinterest_ads__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_source_relation__ad_group_id__advertiser_id__campaign_id__date_day.1fb5fb3f2f", "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2", "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7"], "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report": ["model.reddit_ads.reddit_ads__ad_report", "model.reddit_ads.reddit_ads__url_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_conversions_report_source_relation__ad_id__date_day__event_name.49a6eee2ad"], "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report": ["model.reddit_ads.reddit_ads__ad_group_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_conversions_report_source_relation__ad_group_id__date_day__event_name.acd1ea8c2b"], "model.reddit_ads_source.stg_reddit_ads__account_conversions_report": ["model.reddit_ads.reddit_ads__account_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_conversions_report_source_relation__account_id__date_day__event_name.bc323b3bbb"], "model.reddit_ads_source.stg_reddit_ads__ad_group": ["model.reddit_ads.reddit_ads__ad_group_report", "model.reddit_ads.reddit_ads__ad_report", "model.reddit_ads.reddit_ads__url_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_source_relation__ad_group_id.942cb72fcc", "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_ad_group_id.65795d8dc2"], "model.reddit_ads_source.stg_reddit_ads__ad": ["model.reddit_ads.reddit_ads__ad_report", "model.reddit_ads.reddit_ads__url_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_source_relation__ad_id.fc4d1b788b", "test.reddit_ads_source.not_null_stg_reddit_ads__ad_ad_id.40188b63dd"], "model.reddit_ads_source.stg_reddit_ads__campaign_report": ["model.reddit_ads.reddit_ads__campaign_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_source_relation__campaign_id__date_day.5e87d9d722", "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_report_campaign_id.c717612b4f"], "model.reddit_ads_source.stg_reddit_ads__account": ["model.reddit_ads.reddit_ads__account_report", "model.reddit_ads.reddit_ads__ad_group_report", "model.reddit_ads.reddit_ads__ad_report", "model.reddit_ads.reddit_ads__campaign_report", "model.reddit_ads.reddit_ads__url_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_source_relation__account_id.49d95e2890", "test.reddit_ads_source.not_null_stg_reddit_ads__account_account_id.512f0b8078"], "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report": ["model.reddit_ads.reddit_ads__campaign_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_conversions_report_source_relation__campaign_id__date_day__event_name.2ed971ff1b"], "model.reddit_ads_source.stg_reddit_ads__account_report": ["model.reddit_ads.reddit_ads__account_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_source_relation__account_id__date_day.580653f488", "test.reddit_ads_source.not_null_stg_reddit_ads__account_report_account_id.1f2a0195de"], "model.reddit_ads_source.stg_reddit_ads__ad_report": ["model.reddit_ads.reddit_ads__ad_report", "model.reddit_ads.reddit_ads__url_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_source_relation__ad_id__date_day.395db62865", "test.reddit_ads_source.not_null_stg_reddit_ads__ad_report_ad_id.c4af84b857"], "model.reddit_ads_source.stg_reddit_ads__campaign": ["model.reddit_ads.reddit_ads__ad_group_report", "model.reddit_ads.reddit_ads__ad_report", "model.reddit_ads.reddit_ads__campaign_report", "model.reddit_ads.reddit_ads__url_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_source_relation__campaign_id.066d3b93f4", "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_campaign_id.f3f24e4682"], "model.reddit_ads_source.stg_reddit_ads__ad_group_report": ["model.reddit_ads.reddit_ads__ad_group_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_source_relation__ad_group_id__date_day.4aa1f776b5", "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_report_ad_group_id.9836cd084d"], "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report"], "model.reddit_ads_source.stg_reddit_ads__campaign_tmp": ["model.reddit_ads_source.stg_reddit_ads__campaign"], "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report"], "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report"], "model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__account_conversions_report"], "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__campaign_report"], "model.reddit_ads_source.stg_reddit_ads__account_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__account_report"], "model.reddit_ads_source.stg_reddit_ads__account_tmp": ["model.reddit_ads_source.stg_reddit_ads__account"], "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__ad_conversions_report"], "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp": ["model.reddit_ads_source.stg_reddit_ads__ad_group"], "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__ad_report"], "model.reddit_ads_source.stg_reddit_ads__ad_tmp": ["model.reddit_ads_source.stg_reddit_ads__ad"], "model.google_ads.google_ads__keyword_report": ["model.ad_reporting.int_ad_reporting__keyword_report", "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_source_relation__ad_group_id__criterion_id__date_day.82605f3acd", "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055"], "model.google_ads.google_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__campaign_report_source_relation__campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.29077cbd5e", "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e"], "model.google_ads.google_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_source_relation__ad_id__ad_group_id__date_day.e11b928273", "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72"], "model.google_ads.google_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_report_source_relation__ad_id__ad_group_id__date_day.0e82f7e99a", "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad"], "model.google_ads.google_ads__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_source_relation__ad_group_id__date_day.41d73a32f3", "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c"], "model.google_ads.google_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_source_relation__account_id__date_day.8480aa9317", "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422"], "model.amazon_ads_source.stg_amazon_ads__campaign_level_report": ["model.amazon_ads.amazon_ads__account_report", "model.amazon_ads.amazon_ads__campaign_report", "model.amazon_ads.amazon_ads__portfolio_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_source_relation__campaign_id__date_day.f6bb472aa5", "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194"], "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report": ["model.amazon_ads.amazon_ads__ad_group_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_source_relation__ad_group_id__date_day.180ec0225e", "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3"], "model.amazon_ads_source.stg_amazon_ads__advertised_product_report": ["model.amazon_ads.amazon_ads__ad_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_source_relation__ad_id__date_day.e170148d6c", "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4"], "model.amazon_ads_source.stg_amazon_ads__portfolio_history": ["model.amazon_ads.amazon_ads__portfolio_report", "model.amazon_ads.int_amazon_ads__portfolio_history", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_source_relation__portfolio_id__last_updated_date.e0bb6ee3e0", "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02"], "model.amazon_ads_source.stg_amazon_ads__campaign_history": ["model.amazon_ads.amazon_ads__account_report", "model.amazon_ads.amazon_ads__ad_group_report", "model.amazon_ads.amazon_ads__ad_report", "model.amazon_ads.amazon_ads__campaign_report", "model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__portfolio_report", "model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_source_relation__campaign_id__last_updated_date.f58b6293d6", "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c"], "model.amazon_ads_source.stg_amazon_ads__product_ad_history": ["model.amazon_ads.amazon_ads__ad_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_source_relation__ad_id__last_updated_date.90fb8d59e6", "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8"], "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report": ["model.amazon_ads.amazon_ads__keyword_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_source_relation__keyword_id__date_day.4190f2a661", "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7"], "model.amazon_ads_source.stg_amazon_ads__profile": ["model.amazon_ads.amazon_ads__account_report", "model.amazon_ads.amazon_ads__ad_group_report", "model.amazon_ads.amazon_ads__ad_report", "model.amazon_ads.amazon_ads__campaign_report", "model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__portfolio_report", "model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b"], "model.amazon_ads_source.stg_amazon_ads__keyword_history": ["model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_source_relation__keyword_id__last_updated_date.611a8411e0", "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e"], "model.amazon_ads_source.stg_amazon_ads__ad_group_history": ["model.amazon_ads.amazon_ads__ad_group_report", "model.amazon_ads.amazon_ads__ad_report", "model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_source_relation__ad_group_id__last_updated_date.5873194717", "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b"], "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report": ["model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_source_relation__search_term__keyword_id__date_day.00ccbc3eda", "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06"], "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__keyword_history"], "model.amazon_ads_source.stg_amazon_ads__profile_tmp": ["model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"], "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history"], "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history"], "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report"], "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"], "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"], "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__campaign_history"], "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"], "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report"], "model.linkedin_source.stg_linkedin_ads__creative_history": ["model.linkedin.linkedin_ads__creative_report", "model.linkedin.linkedin_ads__url_report", "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474"], "model.linkedin_source.stg_linkedin_ads__campaign_history": ["model.linkedin.linkedin_ads__account_report", "model.linkedin.linkedin_ads__campaign_group_report", "model.linkedin.linkedin_ads__campaign_report", "model.linkedin.linkedin_ads__creative_report", "model.linkedin.linkedin_ads__url_report", "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_source_relation__version_tag__campaign_id.65ed9cedae", "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2", "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign": ["model.linkedin.linkedin_ads__account_report", "model.linkedin.linkedin_ads__campaign_group_report", "model.linkedin.linkedin_ads__campaign_report", "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_source_relation__date_day__campaign_id.41aa0d6322", "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a", "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766"], "model.linkedin_source.stg_linkedin_ads__campaign_group_history": ["model.linkedin.linkedin_ads__campaign_group_report", "model.linkedin.linkedin_ads__campaign_report", "model.linkedin.linkedin_ads__creative_report", "model.linkedin.linkedin_ads__url_report", "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_source_relation__last_modified_at__campaign_group_id.4c9f328639", "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d", "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea"], "model.linkedin_source.stg_linkedin_ads__account_history": ["model.linkedin.linkedin_ads__account_report", "model.linkedin.linkedin_ads__campaign_group_report", "model.linkedin.linkedin_ads__campaign_report", "model.linkedin.linkedin_ads__creative_report", "model.linkedin.linkedin_ads__url_report", "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_source_relation__account_id__version_tag.c7a0383d8c", "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0", "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative": ["model.linkedin.linkedin_ads__creative_report", "model.linkedin.linkedin_ads__url_report", "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_source_relation__date_day__creative_id.7b7d839d38", "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b", "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"], "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp": ["model.linkedin_source.stg_linkedin_ads__campaign_history"], "model.linkedin_source.stg_linkedin_ads__account_history_tmp": ["model.linkedin_source.stg_linkedin_ads__account_history"], "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"], "model.linkedin_source.stg_linkedin_ads__creative_history_tmp": ["model.linkedin_source.stg_linkedin_ads__creative_history"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"], "model.amazon_ads.amazon_ads__portfolio_report": ["test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_source_relation__date_day__portfolio_id.b3bfe4fce4", "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6"], "model.amazon_ads.amazon_ads__search_report": ["model.ad_reporting.int_ad_reporting__search_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_source_relation__date_day__search_term__keyword_id.21a027f105", "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a"], "model.amazon_ads.amazon_ads__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_source_relation__date_day__ad_group_id.9f5387d4e0", "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a"], "model.amazon_ads.amazon_ads__keyword_report": ["model.ad_reporting.int_ad_reporting__keyword_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_source_relation__date_day__keyword_id.34f042afc1", "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a"], "model.amazon_ads.amazon_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_source_relation__date_day__campaign_id.0fcead4f41", "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c"], "model.amazon_ads.amazon_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_source_relation__date_day__profile_id.5ff488055c", "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061", "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66"], "model.amazon_ads.amazon_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_source_relation__date_day__ad_id.5c0ccedb91", "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3"], "model.amazon_ads.int_amazon_ads__portfolio_history": ["model.amazon_ads.amazon_ads__ad_group_report", "model.amazon_ads.amazon_ads__ad_report", "model.amazon_ads.amazon_ads__campaign_report", "model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__search_report"], "model.facebook_ads.facebook_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.ef8d3469d4", "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be"], "model.facebook_ads.facebook_ads__url_tags": ["model.facebook_ads.int_facebook_ads__creative_history", "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags_source_relation___fivetran_id__key__type.c65de59dec", "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3"], "model.facebook_ads.facebook_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_source_relation__date_day__account_id__campaign_id.f97e1afff3", "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21"], "model.facebook_ads.facebook_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_source_relation__date_day__account_id.bf8a017de1", "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024"], "model.facebook_ads.facebook_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.c866a344f6", "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238"], "model.facebook_ads.facebook_ads__ad_set_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_source_relation__date_day__account_id__campaign_id__ad_set_id.8707f6bd30", "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4"], "model.facebook_ads.int_facebook_ads__creative_history": ["model.facebook_ads.facebook_ads__url_report"], "model.facebook_ads.int_facebook_ads__conversions": ["model.facebook_ads.facebook_ads__account_report", "model.facebook_ads.facebook_ads__ad_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.facebook_ads.facebook_ads__campaign_report", "model.facebook_ads.facebook_ads__url_report"], "model.snapchat_ads.snapchat_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_source_relation__ad_id__date_day.9116e93fba", "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744", "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe"], "model.snapchat_ads.snapchat_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_source_relation__ad_id__date_day.86e3504c07", "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78", "test.snapchat_ads.not_null_snapchat_ads__url_report_base_url.15676dc1de", "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6"], "model.snapchat_ads.snapchat_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_source_relation__ad_account_id__date_day.654a687cf1", "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b", "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260"], "model.snapchat_ads.snapchat_ads__ad_squad_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_source_relation__ad_squad_id__date_day.b1a26a5bb4", "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe", "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639"], "model.snapchat_ads.snapchat_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_source_relation__campaign_id__date_day.557487ad6a", "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac", "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b"], "model.snapchat_ads.snapchat_ads__creative_history_prep": ["model.snapchat_ads.snapchat_ads__ad_report", "model.snapchat_ads.snapchat_ads__url_report"], "model.google_ads_source.stg_google_ads__ad_group_stats": ["model.google_ads.google_ads__ad_group_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_source_relation__ad_group_id__device__ad_network_type__date_day.0755df524f", "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077", "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786"], "model.google_ads_source.stg_google_ads__account_stats": ["model.google_ads.google_ads__account_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_source_relation__account_id__device__ad_network_type__date_day.7d4d5e9ce2", "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b", "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5"], "model.google_ads_source.stg_google_ads__ad_group_history": ["model.google_ads.google_ads__ad_group_report", "model.google_ads.google_ads__ad_report", "model.google_ads.google_ads__keyword_report", "model.google_ads.google_ads__url_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_source_relation__ad_group_id__updated_at.94eb3f93a4", "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be"], "model.google_ads_source.stg_google_ads__ad_history": ["model.google_ads.google_ads__ad_report", "model.google_ads.google_ads__url_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_source_relation__ad_id__ad_group_id__updated_at.edca86664e", "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248"], "model.google_ads_source.stg_google_ads__keyword_stats": ["model.google_ads.google_ads__keyword_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_source_relation__keyword_id__date_day.4ecf84a32f", "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d", "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0"], "model.google_ads_source.stg_google_ads__ad_stats": ["model.google_ads.google_ads__ad_report", "model.google_ads.google_ads__url_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_source_relation__ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.222a7d9413", "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8", "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4"], "model.google_ads_source.stg_google_ads__ad_group_criterion_history": ["model.google_ads.google_ads__keyword_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_source_relation__criterion_id__ad_group_id__updated_at.8d37dd2fa0", "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476"], "model.google_ads_source.stg_google_ads__campaign_stats": ["model.google_ads.google_ads__campaign_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_source_relation__campaign_id__ad_network_type__device__date_day.fea3ecfe6f", "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f", "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b"], "model.google_ads_source.stg_google_ads__campaign_history": ["model.google_ads.google_ads__ad_group_report", "model.google_ads.google_ads__ad_report", "model.google_ads.google_ads__campaign_report", "model.google_ads.google_ads__keyword_report", "model.google_ads.google_ads__url_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_source_relation__campaign_id__updated_at.008fea6b77", "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75"], "model.google_ads_source.stg_google_ads__account_history": ["model.google_ads.google_ads__account_report", "model.google_ads.google_ads__ad_group_report", "model.google_ads.google_ads__ad_report", "model.google_ads.google_ads__campaign_report", "model.google_ads.google_ads__keyword_report", "model.google_ads.google_ads__url_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_source_relation__account_id__updated_at.0a4d931c44", "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f"], "model.google_ads_source.stg_google_ads__account_stats_tmp": ["model.google_ads_source.stg_google_ads__account_stats"], "model.google_ads_source.stg_google_ads__ad_group_history_tmp": ["model.google_ads_source.stg_google_ads__ad_group_history"], "model.google_ads_source.stg_google_ads__campaign_stats_tmp": ["model.google_ads_source.stg_google_ads__campaign_stats"], "model.google_ads_source.stg_google_ads__ad_stats_tmp": ["model.google_ads_source.stg_google_ads__ad_stats"], "model.google_ads_source.stg_google_ads__campaign_history_tmp": ["model.google_ads_source.stg_google_ads__campaign_history"], "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history"], "model.google_ads_source.stg_google_ads__ad_group_stats_tmp": ["model.google_ads_source.stg_google_ads__ad_group_stats"], "model.google_ads_source.stg_google_ads__keyword_stats_tmp": ["model.google_ads_source.stg_google_ads__keyword_stats"], "model.google_ads_source.stg_google_ads__ad_history_tmp": ["model.google_ads_source.stg_google_ads__ad_history"], "model.google_ads_source.stg_google_ads__account_history_tmp": ["model.google_ads_source.stg_google_ads__account_history"], "model.apple_search_ads.apple_search_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_source_relation__organization_id__campaign_id__ad_group_id__ad_id__date_day.6d5d406b55", "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c", "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17"], "model.apple_search_ads.apple_search_ads__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_source_relation__organization_id__campaign_id__ad_group_id__date_day.3c4191e648", "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5", "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c"], "model.apple_search_ads.apple_search_ads__keyword_report": ["model.ad_reporting.int_ad_reporting__keyword_report", "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_source_relation__organization_id__campaign_id__ad_group_id__keyword_id__date_day.974556d271", "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82", "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db"], "model.apple_search_ads.apple_search_ads__search_term_report": ["model.ad_reporting.int_ad_reporting__search_report", "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_source_relation__search_term_text__match_type__date_day__keyword_id__ad_group_id__campaign_id__organization_id.82f7464f67", "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c", "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7"], "model.apple_search_ads.apple_search_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_source_relation__organization_id__campaign_id__date_day.0fdb29354b", "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146", "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a"], "model.apple_search_ads.apple_search_ads__organization_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_source_relation__organization_id__date_day.8a9d834203", "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523", "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8"], "model.ad_reporting.ad_reporting__campaign_report": ["test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_source_relation__platform__date_day__campaign_id__account_id.0cad44418b", "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b"], "model.ad_reporting.ad_reporting__account_report": ["test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_source_relation__platform__date_day__account_id.4cb64b5631", "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022"], "model.ad_reporting.ad_reporting__ad_group_report": ["test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id.629300a679", "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842"], "model.ad_reporting.ad_reporting__search_report": ["test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__search_report_source_relation__platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.ee233ddb9e", "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb"], "model.ad_reporting.ad_reporting__ad_report": ["semantic_model.ad_reporting.ad_report", "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_source_relation__platform__date_day__ad_id__ad_group_id__campaign_id__account_id.2e26485f58", "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152"], "model.ad_reporting.ad_reporting__url_report": ["test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__url_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id__base_url__url_host__url_path__utm_campaign__utm_content__utm_medium__utm_source__utm_term.2e59004ca0", "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6"], "model.ad_reporting.ad_reporting__keyword_report": ["test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_source_relation__platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id.62e073f236", "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334"], "model.ad_reporting.metricflow_time_spine": [], "model.ad_reporting.int_ad_reporting__campaign_report": ["model.ad_reporting.ad_reporting__campaign_report"], "model.ad_reporting.int_ad_reporting__keyword_report": ["model.ad_reporting.ad_reporting__keyword_report"], "model.ad_reporting.int_ad_reporting__ad_report": ["model.ad_reporting.ad_reporting__ad_report"], "model.ad_reporting.int_ad_reporting__account_report": ["model.ad_reporting.ad_reporting__account_report"], "model.ad_reporting.int_ad_reporting__url_report": ["model.ad_reporting.ad_reporting__url_report"], "model.ad_reporting.int_ad_reporting__search_report": ["model.ad_reporting.ad_reporting__search_report"], "model.ad_reporting.int_ad_reporting__ad_group_report": ["model.ad_reporting.ad_reporting__ad_group_report"], "model.apple_search_ads_source.stg_apple_search_ads__campaign_history": ["model.apple_search_ads.apple_search_ads__ad_group_report", "model.apple_search_ads.apple_search_ads__ad_report", "model.apple_search_ads.apple_search_ads__campaign_report", "model.apple_search_ads.apple_search_ads__keyword_report", "model.apple_search_ads.apple_search_ads__organization_report", "model.apple_search_ads.apple_search_ads__search_term_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_source_relation__campaign_id__modified_at.2e9f11582c", "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8", "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9"], "model.apple_search_ads_source.stg_apple_search_ads__ad_report": ["model.apple_search_ads.apple_search_ads__ad_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_source_relation__ad_id__date_day__ad_group_id.f9bc5ff292", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_group_id.a397755e9f", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8"], "model.apple_search_ads_source.stg_apple_search_ads__campaign_report": ["model.apple_search_ads.apple_search_ads__campaign_report", "model.apple_search_ads.apple_search_ads__organization_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_source_relation__campaign_id__date_day.87b6206f82", "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728", "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3"], "model.apple_search_ads_source.stg_apple_search_ads__organization": ["model.apple_search_ads.apple_search_ads__ad_group_report", "model.apple_search_ads.apple_search_ads__ad_report", "model.apple_search_ads.apple_search_ads__campaign_report", "model.apple_search_ads.apple_search_ads__keyword_report", "model.apple_search_ads.apple_search_ads__organization_report", "model.apple_search_ads.apple_search_ads__search_term_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_source_relation__organization_id.b5c488cb77", "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb"], "model.apple_search_ads_source.stg_apple_search_ads__keyword_report": ["model.apple_search_ads.apple_search_ads__keyword_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_source_relation__keyword_id__date_day.855ae5524a", "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928", "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e"], "model.apple_search_ads_source.stg_apple_search_ads__keyword_history": ["model.apple_search_ads.apple_search_ads__keyword_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_source_relation__keyword_id__modified_at.635c0ce086", "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2", "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287"], "model.apple_search_ads_source.stg_apple_search_ads__search_term_report": ["model.apple_search_ads.apple_search_ads__search_term_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report_source_relation___fivetran_id__date_day.ef07562d98", "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report__fivetran_id.aa430d1dad", "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report_date_day.fd93df3302"], "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history": ["model.apple_search_ads.apple_search_ads__ad_group_report", "model.apple_search_ads.apple_search_ads__ad_report", "model.apple_search_ads.apple_search_ads__keyword_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_source_relation__ad_group_id__modified_at.a6db663569", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_ad_group_id.dc128eecb7", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_modified_at.e5d65fa28f"], "model.apple_search_ads_source.stg_apple_search_ads__ad_history": ["model.apple_search_ads.apple_search_ads__ad_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_source_relation__ad_id__modified_at.45dfca7ca5", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d"], "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report": ["model.apple_search_ads.apple_search_ads__ad_group_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_source_relation__ad_group_id__date_day.dc4ccb902d", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_ad_group_id.a115f9cfc1", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_date_day.4dfd46a43b"], "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report"], "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history"], "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history"], "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"], "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"], "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history"], "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report"], "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__organization"], "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report"], "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_history": ["model.pinterest.pinterest_ads__pin_promotion_report", "model.pinterest.pinterest_ads__url_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history_source_relation___fivetran_synced__pin_promotion_id.8064d48c11", "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34"], "model.pinterest_source.stg_pinterest_ads__keyword_report": ["model.pinterest.pinterest_ads__keyword_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_source_relation__date_day__keyword_id__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.f43dda0239", "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300", "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48"], "model.pinterest_source.stg_pinterest_ads__ad_group_report": ["model.pinterest.pinterest_ads__ad_group_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_source_relation__date_day__ad_group_id__campaign_id__advertiser_id.83246fd43c", "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471", "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c"], "model.pinterest_source.stg_pinterest_ads__campaign_history": ["model.pinterest.pinterest_ads__ad_group_report", "model.pinterest.pinterest_ads__campaign_report", "model.pinterest.pinterest_ads__keyword_report", "model.pinterest.pinterest_ads__pin_promotion_report", "model.pinterest.pinterest_ads__url_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_source_relation__campaign_id___fivetran_synced.84df0386bc", "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341"], "model.pinterest_source.stg_pinterest_ads__advertiser_report": ["model.pinterest.pinterest_ads__advertiser_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_source_relation__date_day__advertiser_id.cadbd5fae2", "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff", "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95"], "model.pinterest_source.stg_pinterest_ads__advertiser_history": ["model.pinterest.pinterest_ads__ad_group_report", "model.pinterest.pinterest_ads__advertiser_report", "model.pinterest.pinterest_ads__campaign_report", "model.pinterest.pinterest_ads__keyword_report", "model.pinterest.pinterest_ads__pin_promotion_report", "model.pinterest.pinterest_ads__url_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_source_relation__updated_at__advertiser_id.8308a26e9f", "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb"], "model.pinterest_source.stg_pinterest_ads__campaign_report": ["model.pinterest.pinterest_ads__campaign_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_source_relation__date_day__campaign_id__advertiser_id.6dd9b7bce6", "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc", "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238"], "model.pinterest_source.stg_pinterest_ads__keyword_history": ["model.pinterest.pinterest_ads__keyword_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_source_relation__keyword_id__ad_group_id___fivetran_synced.2cd3b85ca9", "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_report": ["model.pinterest.pinterest_ads__pin_promotion_report", "model.pinterest.pinterest_ads__url_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_source_relation__date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.8b358e3946", "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1", "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab"], "model.pinterest_source.stg_pinterest_ads__ad_group_history": ["model.pinterest.pinterest_ads__ad_group_report", "model.pinterest.pinterest_ads__keyword_report", "model.pinterest.pinterest_ads__pin_promotion_report", "model.pinterest.pinterest_ads__url_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_source_relation__ad_group_id___fivetran_synced.ef2b22b2ca", "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be"], "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp": ["model.pinterest_source.stg_pinterest_ads__advertiser_history"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"], "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp": ["model.pinterest_source.stg_pinterest_ads__campaign_report"], "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"], "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp": ["model.pinterest_source.stg_pinterest_ads__keyword_report"], "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"], "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp": ["model.pinterest_source.stg_pinterest_ads__keyword_history"], "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp": ["model.pinterest_source.stg_pinterest_ads__campaign_history"], "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp": ["model.pinterest_source.stg_pinterest_ads__ad_group_history"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history"], "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly": ["model.tiktok_ads.tiktok_ads__campaign_report", "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_source_relation__campaign_id__stat_time_hour.91b84f3ede", "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb", "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c"], "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly": ["model.tiktok_ads.tiktok_ads__ad_group_report", "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_source_relation__ad_group_id__stat_time_hour.f0681f097c", "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.8da17119f1", "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.ca4b495127"], "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history": ["model.tiktok_ads.tiktok_ads__ad_group_report", "model.tiktok_ads.tiktok_ads__ad_report", "model.tiktok_ads.tiktok_ads__url_report", "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_source_relation__ad_group_id__updated_at.94fc2240d4", "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad"], "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly": ["model.tiktok_ads.tiktok_ads__ad_report", "model.tiktok_ads.tiktok_ads__advertiser_report", "model.tiktok_ads.tiktok_ads__url_report", "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_source_relation__ad_id__stat_time_hour.1f7d670427", "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed", "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81"], "model.tiktok_ads_source.stg_tiktok_ads__advertiser": ["model.tiktok_ads.tiktok_ads__ad_group_report", "model.tiktok_ads.tiktok_ads__ad_report", "model.tiktok_ads.tiktok_ads__advertiser_report", "model.tiktok_ads.tiktok_ads__campaign_report", "model.tiktok_ads.tiktok_ads__url_report", "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__advertiser_source_relation__advertiser_id.4b39eb0db8", "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def"], "model.tiktok_ads_source.stg_tiktok_ads__ad_history": ["model.tiktok_ads.tiktok_ads__ad_report", "model.tiktok_ads.tiktok_ads__advertiser_report", "model.tiktok_ads.tiktok_ads__url_report", "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_source_relation__ad_id__updated_at.64ebc5aea6", "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a"], "model.tiktok_ads_source.stg_tiktok_ads__campaign_history": ["model.tiktok_ads.tiktok_ads__ad_group_report", "model.tiktok_ads.tiktok_ads__ad_report", "model.tiktok_ads.tiktok_ads__campaign_report", "model.tiktok_ads.tiktok_ads__url_report", "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_source_relation__campaign_id__updated_at.52babc6036", "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1"], "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"], "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history"], "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"], "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"], "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"], "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history"], "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions": ["model.facebook_ads.int_facebook_ads__conversions", "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_actions_source_relation__date_day__ad_id__action_type.3f1bea13d9"], "model.facebook_ads_source.stg_facebook_ads__basic_ad": ["model.facebook_ads.facebook_ads__account_report", "model.facebook_ads.facebook_ads__ad_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.facebook_ads.facebook_ads__campaign_report", "model.facebook_ads.facebook_ads__url_report", "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_source_relation__date_day__ad_id__account_id.9c647961f0", "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b", "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values": ["model.facebook_ads.int_facebook_ads__conversions", "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_action_values_source_relation__date_day__ad_id__action_type.3c32585825"], "model.facebook_ads_source.stg_facebook_ads__creative_history": ["model.facebook_ads.facebook_ads__url_tags", "model.facebook_ads.int_facebook_ads__creative_history", "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_source_relation___fivetran_id.2466dae947", "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f", "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261"], "model.facebook_ads_source.stg_facebook_ads__campaign_history": ["model.facebook_ads.facebook_ads__ad_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.facebook_ads.facebook_ads__campaign_report", "model.facebook_ads.facebook_ads__url_report", "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_source_relation__campaign_id__updated_at.82c4f9a2a1", "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852", "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270"], "model.facebook_ads_source.stg_facebook_ads__account_history": ["model.facebook_ads.facebook_ads__account_report", "model.facebook_ads.facebook_ads__ad_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.facebook_ads.facebook_ads__campaign_report", "model.facebook_ads.facebook_ads__url_report", "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_source_relation__account_id___fivetran_synced.f81aca1247", "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f", "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f"], "model.facebook_ads_source.stg_facebook_ads__ad_history": ["model.facebook_ads.facebook_ads__ad_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.facebook_ads.facebook_ads__campaign_report", "model.facebook_ads.facebook_ads__url_report", "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_source_relation__ad_id__updated_at.664b870e6c", "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064", "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4"], "model.facebook_ads_source.stg_facebook_ads__ad_set_history": ["model.facebook_ads.facebook_ads__ad_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.facebook_ads.facebook_ads__url_report", "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_source_relation__ad_set_id__updated_at.ff1d43114a", "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb", "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa"], "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"], "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp": ["model.facebook_ads_source.stg_facebook_ads__ad_history"], "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_actions"], "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp": ["model.facebook_ads_source.stg_facebook_ads__creative_history"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values"], "model.facebook_ads_source.stg_facebook_ads__account_history_tmp": ["model.facebook_ads_source.stg_facebook_ads__account_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report": ["model.snapchat_ads.snapchat_ads__ad_squad_report", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_source_relation__ad_squad_id__date_hour.25afb4f9ae", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.ab16aa72c9", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb"], "model.snapchat_ads_source.stg_snapchat_ads__ad_history": ["model.snapchat_ads.snapchat_ads__account_report", "model.snapchat_ads.snapchat_ads__ad_report", "model.snapchat_ads.snapchat_ads__url_report", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_source_relation__ad_id___fivetran_synced.630e3ffee4", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15"], "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history": ["model.snapchat_ads.snapchat_ads__account_report", "model.snapchat_ads.snapchat_ads__ad_squad_report", "model.snapchat_ads.snapchat_ads__url_report", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_source_relation__ad_squad_id___fivetran_synced.5d97ae5ee3", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278"], "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report": ["model.snapchat_ads.snapchat_ads__account_report", "model.snapchat_ads.snapchat_ads__ad_report", "model.snapchat_ads.snapchat_ads__url_report", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_source_relation__ad_id__date_hour.f2d4b9252f", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7"], "model.snapchat_ads_source.stg_snapchat_ads__creative_history": ["model.snapchat_ads.snapchat_ads__creative_history_prep", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_source_relation__creative_id___fivetran_synced.1d4efdd418", "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380", "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4"], "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history": ["model.snapchat_ads.snapchat_ads__creative_history_prep", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_source_relation__creative_id__param_key__updated_at.6ed98c175a", "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b"], "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history": ["model.snapchat_ads.snapchat_ads__account_report", "model.snapchat_ads.snapchat_ads__ad_report", "model.snapchat_ads.snapchat_ads__ad_squad_report", "model.snapchat_ads.snapchat_ads__campaign_report", "model.snapchat_ads.snapchat_ads__url_report", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_source_relation__ad_account_id___fivetran_synced.b8a4da92d1", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605"], "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report": ["model.snapchat_ads.snapchat_ads__campaign_report", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_source_relation__campaign_id__date_hour.3998b6bf9d", "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e", "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8"], "model.snapchat_ads_source.stg_snapchat_ads__campaign_history": ["model.snapchat_ads.snapchat_ads__account_report", "model.snapchat_ads.snapchat_ads__ad_squad_report", "model.snapchat_ads.snapchat_ads__campaign_report", "model.snapchat_ads.snapchat_ads__url_report", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_source_relation__campaign_id___fivetran_synced.e003c1a660", "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec", "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0"], "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"], "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"], "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"], "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"], "model.microsoft_ads.microsoft_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.e13fd60438", "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125"], "model.microsoft_ads.microsoft_ads__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.da08ee00a5", "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9"], "model.microsoft_ads.microsoft_ads__keyword_report": ["model.ad_reporting.int_ad_reporting__keyword_report", "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.e4af52a80b", "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b"], "model.microsoft_ads.microsoft_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.0ea4732dff", "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a"], "model.microsoft_ads.microsoft_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code.42178a7c9b", "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e"], "model.microsoft_ads.microsoft_ads__search_report": ["model.ad_reporting.int_ad_reporting__search_report", "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__match_type.6753357660", "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d"], "model.microsoft_ads.microsoft_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code.00fc594532", "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8"], "model.twitter_ads_source.stg_twitter_ads__campaign_report": ["model.twitter_ads.twitter_ads__campaign_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement.9d5717ee54", "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f", "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c", "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4"], "model.twitter_ads_source.stg_twitter_ads__line_item_history": ["model.twitter_ads.twitter_ads__line_item_report", "model.twitter_ads.twitter_ads__promoted_tweet_report", "model.twitter_ads.twitter_ads__url_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_source_relation__line_item_id__updated_timestamp.646fa5270f", "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809"], "model.twitter_ads_source.stg_twitter_ads__line_item_report": ["model.twitter_ads.twitter_ads__line_item_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement.6c8686e61c", "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe", "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7", "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb"], "model.twitter_ads_source.stg_twitter_ads__campaign_history": ["model.twitter_ads.twitter_ads__campaign_report", "model.twitter_ads.twitter_ads__line_item_report", "model.twitter_ads.twitter_ads__promoted_tweet_report", "model.twitter_ads.twitter_ads__url_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_source_relation__campaign_id__updated_timestamp.9b0c16487d", "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report": ["model.twitter_ads.twitter_ads__account_report", "model.twitter_ads.twitter_ads__promoted_tweet_report", "model.twitter_ads.twitter_ads__url_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement.9d96bf07d3", "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894", "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3", "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598"], "model.twitter_ads_source.stg_twitter_ads__tweet": ["model.twitter_ads.twitter_ads__promoted_tweet_report", "model.twitter_ads.twitter_ads__url_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_source_relation__tweet_id.70de7f05f5", "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd"], "model.twitter_ads_source.stg_twitter_ads__account_history": ["model.twitter_ads.twitter_ads__account_report", "model.twitter_ads.twitter_ads__campaign_report", "model.twitter_ads.twitter_ads__line_item_report", "model.twitter_ads.twitter_ads__promoted_tweet_report", "model.twitter_ads.twitter_ads__url_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_source_relation__account_id__updated_timestamp.3492933c38", "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2"], "model.twitter_ads_source.stg_twitter_ads__tweet_url": ["model.twitter_ads.twitter_ads__url_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_source_relation__index__tweet_id.ce1a2b4a87", "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be", "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history": ["model.twitter_ads.twitter_ads__promoted_tweet_report", "model.twitter_ads.twitter_ads__url_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_source_relation__promoted_tweet_id__updated_timestamp.7016099e0a", "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09"], "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"], "model.twitter_ads_source.stg_twitter_ads__tweet_tmp": ["model.twitter_ads_source.stg_twitter_ads__tweet"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"], "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp": ["model.twitter_ads_source.stg_twitter_ads__line_item_history"], "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"], "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp": ["model.twitter_ads_source.stg_twitter_ads__campaign_history"], "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"], "model.twitter_ads_source.stg_twitter_ads__account_history_tmp": ["model.twitter_ads_source.stg_twitter_ads__account_history"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"], "model.linkedin.linkedin_ads__campaign_group_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_source_relation__date_day__campaign_group_id__account_id.36e7743abc", "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf", "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b"], "model.linkedin.linkedin_ads__creative_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.f9e5f8f610", "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889", "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020"], "model.linkedin.linkedin_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_source_relation__date_day__campaign_id__account_id__campaign_group_id.89a0d4ba0b", "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15", "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1"], "model.linkedin.linkedin_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_source_relation__date_day__account_id.da7ea6faeb", "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842", "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53"], "model.linkedin.linkedin_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.0ff865de89", "test.linkedin.not_null_linkedin_ads__url_report_click_uri.81534087cb", "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2", "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_source_relation__account_id__modified_at.c32440cfcf": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.38a7aa3e12": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_source_relation__ad_group_id__modified_at.f2ed2b82b0": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.3e03e6eff7": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.3825c46fa1": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_source_relation__ad_id__modified_at.2eb6255160": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.b6f971641a": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_source_relation__campaign_id__modified_at.56da51b12d": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other__budget_association_status__budget_name__budget_status.f7a5fd8430": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_source_relation__keyword_id__modified_at.5b0ba5f522": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.e55a075940": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__language__bid_match_type__delivered_match_type__top_vs_other.97d894068e": [], "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99": [], "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce": [], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_source_relation__advertiser_id__date_day.1797053b3d": [], "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed": [], "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707": [], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.c260f4392a": [], "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e": [], "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4": [], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_source_relation__ad_group_id__campaign_id__advertiser_id__date_day.e3850c1634": [], "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836": [], "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8": [], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.98200e9b0f": [], "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff": [], "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0": [], "test.tiktok_ads.not_null_tiktok_ads__url_report_base_url.37afef2e1b": [], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.98153764a3": [], "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8": [], "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0": [], "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement__account_id.f449ef6d6e": [], "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce": [], "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211": [], "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement__campaign_id__account_id.f8d7069cba": [], "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846": [], "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194": [], "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_source_relation__date_day__account_id__placement.e6a884489c": [], "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec": [], "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword_id.91efa0a538": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_source_relation__date_day__keyword_id__campaign_id.c51ddef475": [], "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5": [], "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f6814a1cc6": [], "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b": [], "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e": [], "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143": [], "test.twitter_ads.not_null_twitter_ads__url_report_base_url.dfd7ab549e": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f44851c31f": [], "test.reddit_ads.not_null_reddit_ads__account_report_date_day.7b43e6cb90": [], "test.reddit_ads.not_null_reddit_ads__account_report_account_id.16f11188c5": [], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__account_report_source_relation__date_day__account_id__attribution_type__currency__status__time_zone_id.7260e1923b": [], "test.reddit_ads.not_null_reddit_ads__ad_group_report_date_day.6463e6f6f7": [], "test.reddit_ads.not_null_reddit_ads__ad_group_report_ad_group_id.057bd60604": [], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_source_relation__date_day__account_id__ad_group_id__campaign_id__currency.bd33f1f46d": [], "test.reddit_ads.not_null_reddit_ads__ad_report_date_day.608b21c69a": [], "test.reddit_ads.not_null_reddit_ads__ad_report_ad_id.1da054a14e": [], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_source_relation__date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency.8735416c38": [], "test.reddit_ads.not_null_reddit_ads__campaign_report_date_day.f79cca4131": [], "test.reddit_ads.not_null_reddit_ads__campaign_report_campaign_id.f5491a0b49": [], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_source_relation__date_day__account_id__campaign_id__currency.6e74c22669": [], "test.reddit_ads.not_null_reddit_ads__url_report_date_day.4b0f6363da": [], "test.reddit_ads.not_null_reddit_ads__url_report_ad_id.8ff83da2b0": [], "test.reddit_ads.not_null_reddit_ads__url_report_base_url.2f585bebcb": [], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__url_report_source_relation__date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency.a85ab9beee": [], "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e": [], "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502": [], "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a": [], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.688d8bd291": [], "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7": [], "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2": [], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_source_relation__ad_group_id__advertiser_id__campaign_id__date_day.1fb5fb3f2f": [], "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf": [], "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2": [], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.4da70e098b": [], "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca": [], "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672": [], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_source_relation__advertiser_id__date_day.f9cd6d6ce2": [], "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba": [], "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198": [], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_source_relation__keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.a9ce89d1db": [], "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd": [], "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561": [], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.9d2f1ea810": [], "test.reddit_ads_source.not_null_stg_reddit_ads__account_account_id.512f0b8078": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_source_relation__account_id.49d95e2890": [], "test.reddit_ads_source.not_null_stg_reddit_ads__account_report_account_id.1f2a0195de": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_source_relation__account_id__date_day.580653f488": [], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_ad_id.40188b63dd": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_source_relation__ad_id.fc4d1b788b": [], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_report_ad_id.c4af84b857": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_source_relation__ad_id__date_day.395db62865": [], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_ad_group_id.65795d8dc2": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_source_relation__ad_group_id.942cb72fcc": [], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_report_ad_group_id.9836cd084d": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_source_relation__ad_group_id__date_day.4aa1f776b5": [], "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_campaign_id.f3f24e4682": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_source_relation__campaign_id.066d3b93f4": [], "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_report_campaign_id.c717612b4f": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_source_relation__campaign_id__date_day.5e87d9d722": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_conversions_report_source_relation__account_id__date_day__event_name.bc323b3bbb": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_conversions_report_source_relation__ad_group_id__date_day__event_name.acd1ea8c2b": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_conversions_report_source_relation__ad_id__date_day__event_name.49a6eee2ad": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_conversions_report_source_relation__campaign_id__date_day__event_name.2ed971ff1b": [], "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72": [], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_source_relation__ad_id__ad_group_id__date_day.e11b928273": [], "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422": [], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_source_relation__account_id__date_day.8480aa9317": [], "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c": [], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_source_relation__ad_group_id__date_day.41d73a32f3": [], "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad": [], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_report_source_relation__ad_id__ad_group_id__date_day.0e82f7e99a": [], "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e": [], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__campaign_report_source_relation__campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.29077cbd5e": [], "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055": [], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_source_relation__ad_group_id__criterion_id__date_day.82605f3acd": [], "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_source_relation__ad_group_id__last_updated_date.5873194717": [], "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_source_relation__ad_group_id__date_day.180ec0225e": [], "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_source_relation__ad_id__date_day.e170148d6c": [], "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_source_relation__campaign_id__last_updated_date.f58b6293d6": [], "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_source_relation__campaign_id__date_day.f6bb472aa5": [], "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_source_relation__keyword_id__last_updated_date.611a8411e0": [], "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_source_relation__portfolio_id__last_updated_date.e0bb6ee3e0": [], "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_source_relation__ad_id__last_updated_date.90fb8d59e6": [], "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b": [], "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_source_relation__keyword_id__date_day.4190f2a661": [], "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_source_relation__search_term__keyword_id__date_day.00ccbc3eda": [], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b": [], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766": [], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_source_relation__date_day__creative_id.7b7d839d38": [], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a": [], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766": [], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_source_relation__date_day__campaign_id.41aa0d6322": [], "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474": [], "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2": [], "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469": [], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_source_relation__version_tag__campaign_id.65ed9cedae": [], "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d": [], "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea": [], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_source_relation__last_modified_at__campaign_group_id.4c9f328639": [], "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0": [], "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81": [], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_source_relation__account_id__version_tag.c7a0383d8c": [], "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66": [], "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_source_relation__date_day__profile_id.5ff488055c": [], "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_source_relation__date_day__ad_group_id.9f5387d4e0": [], "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_source_relation__date_day__ad_id.5c0ccedb91": [], "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_source_relation__date_day__campaign_id.0fcead4f41": [], "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_source_relation__date_day__portfolio_id.b3bfe4fce4": [], "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_source_relation__date_day__keyword_id.34f042afc1": [], "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_source_relation__date_day__search_term__keyword_id.21a027f105": [], "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be": [], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.ef8d3469d4": [], "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238": [], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.c866a344f6": [], "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4": [], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_source_relation__date_day__account_id__campaign_id__ad_set_id.8707f6bd30": [], "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21": [], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_source_relation__date_day__account_id__campaign_id.f97e1afff3": [], "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024": [], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_source_relation__date_day__account_id.bf8a017de1": [], "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3": [], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags_source_relation___fivetran_id__key__type.c65de59dec": [], "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260": [], "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b": [], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_source_relation__ad_account_id__date_day.654a687cf1": [], "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe": [], "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744": [], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_source_relation__ad_id__date_day.9116e93fba": [], "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b": [], "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac": [], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_source_relation__campaign_id__date_day.557487ad6a": [], "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639": [], "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe": [], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_source_relation__ad_squad_id__date_day.b1a26a5bb4": [], "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6": [], "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78": [], "test.snapchat_ads.not_null_snapchat_ads__url_report_base_url.15676dc1de": [], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_source_relation__ad_id__date_day.86e3504c07": [], "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_source_relation__account_id__updated_at.0a4d931c44": [], "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_source_relation__ad_group_id__updated_at.94eb3f93a4": [], "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_source_relation__ad_id__ad_group_id__updated_at.edca86664e": [], "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4": [], "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_source_relation__ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.222a7d9413": [], "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_source_relation__campaign_id__updated_at.008fea6b77": [], "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_source_relation__criterion_id__ad_group_id__updated_at.8d37dd2fa0": [], "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786": [], "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_source_relation__ad_group_id__device__ad_network_type__date_day.0755df524f": [], "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b": [], "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_source_relation__campaign_id__ad_network_type__device__date_day.fea3ecfe6f": [], "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d": [], "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_source_relation__keyword_id__date_day.4ecf84a32f": [], "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b": [], "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_source_relation__account_id__device__ad_network_type__date_day.7d4d5e9ce2": [], "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5": [], "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c": [], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_source_relation__organization_id__campaign_id__ad_group_id__date_day.3c4191e648": [], "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c": [], "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17": [], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_source_relation__organization_id__campaign_id__ad_group_id__ad_id__date_day.6d5d406b55": [], "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146": [], "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a": [], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_source_relation__organization_id__campaign_id__date_day.0fdb29354b": [], "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db": [], "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82": [], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_source_relation__organization_id__campaign_id__ad_group_id__keyword_id__date_day.974556d271": [], "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8": [], "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523": [], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_source_relation__organization_id__date_day.8a9d834203": [], "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c": [], "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7": [], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_source_relation__search_term_text__match_type__date_day__keyword_id__ad_group_id__campaign_id__organization_id.82f7464f67": [], "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_source_relation__platform__date_day__account_id.4cb64b5631": [], "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id.629300a679": [], "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_source_relation__platform__date_day__ad_id__ad_group_id__campaign_id__account_id.2e26485f58": [], "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_source_relation__platform__date_day__campaign_id__account_id.0cad44418b": [], "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_source_relation__platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id.62e073f236": [], "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__search_report_source_relation__platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.ee233ddb9e": [], "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__url_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id__base_url__url_host__url_path__utm_campaign__utm_content__utm_medium__utm_source__utm_term.2e59004ca0": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_modified_at.e5d65fa28f": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_ad_group_id.dc128eecb7": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_source_relation__ad_group_id__modified_at.a6db663569": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_ad_group_id.a115f9cfc1": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_date_day.4dfd46a43b": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_source_relation__ad_group_id__date_day.dc4ccb902d": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_source_relation__ad_id__modified_at.45dfca7ca5": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_group_id.a397755e9f": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_source_relation__ad_id__date_day__ad_group_id.f9bc5ff292": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_source_relation__campaign_id__modified_at.2e9f11582c": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_source_relation__campaign_id__date_day.87b6206f82": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_source_relation__keyword_id__modified_at.635c0ce086": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_source_relation__keyword_id__date_day.855ae5524a": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_source_relation__organization_id.b5c488cb77": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report__fivetran_id.aa430d1dad": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report_date_day.fd93df3302": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report_source_relation___fivetran_id__date_day.ef07562d98": [], "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_source_relation__ad_group_id___fivetran_synced.ef2b22b2ca": [], "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_source_relation__campaign_id___fivetran_synced.84df0386bc": [], "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history_source_relation___fivetran_synced__pin_promotion_id.8064d48c11": [], "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1": [], "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_source_relation__date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.8b358e3946": [], "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c": [], "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_source_relation__date_day__ad_group_id__campaign_id__advertiser_id.83246fd43c": [], "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_source_relation__updated_at__advertiser_id.8308a26e9f": [], "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95": [], "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_source_relation__date_day__advertiser_id.cadbd5fae2": [], "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238": [], "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_source_relation__date_day__campaign_id__advertiser_id.6dd9b7bce6": [], "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_source_relation__keyword_id__ad_group_id___fivetran_synced.2cd3b85ca9": [], "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300": [], "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_source_relation__date_day__keyword_id__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.f43dda0239": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def": [], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__advertiser_source_relation__advertiser_id.4b39eb0db8": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad": [], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_source_relation__ad_group_id__updated_at.94fc2240d4": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a": [], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_source_relation__ad_id__updated_at.64ebc5aea6": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1": [], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_source_relation__campaign_id__updated_at.52babc6036": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81": [], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_source_relation__ad_id__stat_time_hour.1f7d670427": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.8da17119f1": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.ca4b495127": [], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_source_relation__ad_group_id__stat_time_hour.f0681f097c": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c": [], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_source_relation__campaign_id__stat_time_hour.91b84f3ede": [], "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f": [], "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f": [], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_source_relation__account_id___fivetran_synced.f81aca1247": [], "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064": [], "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4": [], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_source_relation__ad_id__updated_at.664b870e6c": [], "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb": [], "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa": [], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_source_relation__ad_set_id__updated_at.ff1d43114a": [], "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852": [], "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270": [], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_source_relation__campaign_id__updated_at.82c4f9a2a1": [], "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f": [], "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261": [], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_source_relation___fivetran_id.2466dae947": [], "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc": [], "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b": [], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_source_relation__date_day__ad_id__account_id.9c647961f0": [], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_actions_source_relation__date_day__ad_id__action_type.3f1bea13d9": [], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_action_values_source_relation__date_day__ad_id__action_type.3c32585825": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_source_relation__ad_account_id___fivetran_synced.b8a4da92d1": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_source_relation__ad_id___fivetran_synced.630e3ffee4": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_source_relation__ad_id__date_hour.f2d4b9252f": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_source_relation__ad_squad_id___fivetran_synced.5d97ae5ee3": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.ab16aa72c9": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_source_relation__ad_squad_id__date_hour.25afb4f9ae": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_source_relation__campaign_id___fivetran_synced.e003c1a660": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_source_relation__campaign_id__date_hour.3998b6bf9d": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_source_relation__creative_id___fivetran_synced.1d4efdd418": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_source_relation__creative_id__param_key__updated_at.6ed98c175a": [], "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e": [], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code.42178a7c9b": [], "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9": [], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.da08ee00a5": [], "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125": [], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.e13fd60438": [], "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8": [], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code.00fc594532": [], "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b": [], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.e4af52a80b": [], "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d": [], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__match_type.6753357660": [], "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a": [], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.0ea4732dff": [], "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_source_relation__account_id__updated_timestamp.3492933c38": [], "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_source_relation__campaign_id__updated_timestamp.9b0c16487d": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_source_relation__line_item_id__updated_timestamp.646fa5270f": [], "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_source_relation__promoted_tweet_id__updated_timestamp.7016099e0a": [], "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894": [], "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598": [], "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement.9d96bf07d3": [], "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be": [], "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_source_relation__index__tweet_id.ce1a2b4a87": [], "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c": [], "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f": [], "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement.9d5717ee54": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement.6c8686e61c": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.e5f015e9ec": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_source_relation__date_day__keyword_id.579bdc1f1c": [], "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_source_relation__tweet_id.70de7f05f5": [], "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842": [], "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53": [], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_source_relation__date_day__account_id.da7ea6faeb": [], "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1": [], "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15": [], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_source_relation__date_day__campaign_id__account_id__campaign_group_id.89a0d4ba0b": [], "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b": [], "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf": [], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_source_relation__date_day__campaign_group_id__account_id.36e7743abc": [], "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020": [], "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889": [], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.f9e5f8f610": [], "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315": [], "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2": [], "test.linkedin.not_null_linkedin_ads__url_report_click_uri.81534087cb": [], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.0ff865de89": [], "source.microsoft_ads_source.microsoft_ads.account_history": ["model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp"], "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp"], "source.microsoft_ads_source.microsoft_ads.ad_group_history": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp"], "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp"], "source.microsoft_ads_source.microsoft_ads.ad_history": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp"], "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp"], "source.microsoft_ads_source.microsoft_ads.campaign_history": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp"], "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp"], "source.microsoft_ads_source.microsoft_ads.keyword_history": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp"], "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp"], "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp"], "source.reddit_ads_source.reddit_ads.account": ["model.reddit_ads_source.stg_reddit_ads__account_tmp"], "source.reddit_ads_source.reddit_ads.account_report": ["model.reddit_ads_source.stg_reddit_ads__account_report_tmp"], "source.reddit_ads_source.reddit_ads.ad": ["model.reddit_ads_source.stg_reddit_ads__ad_tmp"], "source.reddit_ads_source.reddit_ads.ad_report": ["model.reddit_ads_source.stg_reddit_ads__ad_report_tmp"], "source.reddit_ads_source.reddit_ads.ad_group": ["model.reddit_ads_source.stg_reddit_ads__ad_group_tmp"], "source.reddit_ads_source.reddit_ads.ad_group_report": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp"], "source.reddit_ads_source.reddit_ads.campaign": ["model.reddit_ads_source.stg_reddit_ads__campaign_tmp"], "source.reddit_ads_source.reddit_ads.campaign_report": ["model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp"], "source.reddit_ads_source.reddit_ads.account_conversions_report": ["model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp"], "source.reddit_ads_source.reddit_ads.ad_group_conversions_report": ["model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp"], "source.reddit_ads_source.reddit_ads.ad_conversions_report": ["model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp"], "source.reddit_ads_source.reddit_ads.campaign_conversions_report": ["model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp"], "source.amazon_ads_source.amazon_ads.ad_group_history": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp"], "source.amazon_ads_source.amazon_ads.ad_group_level_report": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp"], "source.amazon_ads_source.amazon_ads.advertised_product_report": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp"], "source.amazon_ads_source.amazon_ads.campaign_history": ["model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp"], "source.amazon_ads_source.amazon_ads.campaign_level_report": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp"], "source.amazon_ads_source.amazon_ads.keyword_history": ["model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp"], "source.amazon_ads_source.amazon_ads.portfolio_history": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp"], "source.amazon_ads_source.amazon_ads.product_ad_history": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp"], "source.amazon_ads_source.amazon_ads.profile": ["model.amazon_ads_source.stg_amazon_ads__profile_tmp"], "source.amazon_ads_source.amazon_ads.targeting_keyword_report": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp"], "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp"], "source.linkedin_source.linkedin_ads.ad_analytics_by_creative": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp"], "source.linkedin_source.linkedin_ads.creative_history": ["model.linkedin_source.stg_linkedin_ads__creative_history_tmp"], "source.linkedin_source.linkedin_ads.campaign_history": ["model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"], "source.linkedin_source.linkedin_ads.campaign_group_history": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"], "source.linkedin_source.linkedin_ads.account_history": ["model.linkedin_source.stg_linkedin_ads__account_history_tmp"], "source.linkedin_source.linkedin_ads.ad_analytics_by_campaign": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp"], "source.google_ads_source.google_ads.ad_stats": ["model.google_ads_source.stg_google_ads__ad_stats_tmp"], "source.google_ads_source.google_ads.ad_history": ["model.google_ads_source.stg_google_ads__ad_history_tmp"], "source.google_ads_source.google_ads.ad_group_history": ["model.google_ads_source.stg_google_ads__ad_group_history_tmp"], "source.google_ads_source.google_ads.campaign_history": ["model.google_ads_source.stg_google_ads__campaign_history_tmp"], "source.google_ads_source.google_ads.account_history": ["model.google_ads_source.stg_google_ads__account_history_tmp"], "source.google_ads_source.google_ads.ad_group_criterion_history": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp"], "source.google_ads_source.google_ads.ad_group_stats": ["model.google_ads_source.stg_google_ads__ad_group_stats_tmp"], "source.google_ads_source.google_ads.campaign_stats": ["model.google_ads_source.stg_google_ads__campaign_stats_tmp"], "source.google_ads_source.google_ads.keyword_stats": ["model.google_ads_source.stg_google_ads__keyword_stats_tmp"], "source.google_ads_source.google_ads.account_stats": ["model.google_ads_source.stg_google_ads__account_stats_tmp"], "source.apple_search_ads_source.apple_search_ads.ad_group_history": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp"], "source.apple_search_ads_source.apple_search_ads.ad_group_report": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp"], "source.apple_search_ads_source.apple_search_ads.ad_history": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp"], "source.apple_search_ads_source.apple_search_ads.ad_level_report": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp"], "source.apple_search_ads_source.apple_search_ads.campaign_history": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp"], "source.apple_search_ads_source.apple_search_ads.campaign_report": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp"], "source.apple_search_ads_source.apple_search_ads.keyword_history": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp"], "source.apple_search_ads_source.apple_search_ads.keyword_report": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp"], "source.apple_search_ads_source.apple_search_ads.organization": ["model.apple_search_ads_source.stg_apple_search_ads__organization_tmp"], "source.apple_search_ads_source.apple_search_ads.search_term_report": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp"], "source.pinterest_source.pinterest_ads.pin_promotion_report": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp"], "source.pinterest_source.pinterest_ads.pin_promotion_history": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp"], "source.pinterest_source.pinterest_ads.campaign_history": ["model.pinterest_source.stg_pinterest_ads__campaign_history_tmp"], "source.pinterest_source.pinterest_ads.ad_group_history": ["model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp"], "source.pinterest_source.pinterest_ads.ad_group_report": ["model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp"], "source.pinterest_source.pinterest_ads.advertiser_history": ["model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp"], "source.pinterest_source.pinterest_ads.advertiser_report": ["model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp"], "source.pinterest_source.pinterest_ads.campaign_report": ["model.pinterest_source.stg_pinterest_ads__campaign_report_tmp"], "source.pinterest_source.pinterest_ads.keyword_history": ["model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"], "source.pinterest_source.pinterest_ads.keyword_report": ["model.pinterest_source.stg_pinterest_ads__keyword_report_tmp"], "source.tiktok_ads_source.tiktok_ads.advertiser": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp"], "source.tiktok_ads_source.tiktok_ads.campaign_history": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp"], "source.tiktok_ads_source.tiktok_ads.adgroup_history": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp"], "source.tiktok_ads_source.tiktok_ads.ad_history": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp"], "source.tiktok_ads_source.tiktok_ads.ad_report_hourly": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp"], "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp"], "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp"], "source.facebook_ads_source.facebook_ads.account_history": ["model.facebook_ads_source.stg_facebook_ads__account_history_tmp"], "source.facebook_ads_source.facebook_ads.ad_history": ["model.facebook_ads_source.stg_facebook_ads__ad_history_tmp"], "source.facebook_ads_source.facebook_ads.ad_set_history": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp"], "source.facebook_ads_source.facebook_ads.basic_ad": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp"], "source.facebook_ads_source.facebook_ads.basic_ad_actions": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp"], "source.facebook_ads_source.facebook_ads.basic_ad_action_values": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp"], "source.facebook_ads_source.facebook_ads.campaign_history": ["model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp"], "source.facebook_ads_source.facebook_ads.creative_history": ["model.facebook_ads_source.stg_facebook_ads__creative_history_tmp"], "source.snapchat_ads_source.snapchat_ads.ad_account_history": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp"], "source.snapchat_ads_source.snapchat_ads.ad_history": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp"], "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp"], "source.snapchat_ads_source.snapchat_ads.ad_squad_history": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp"], "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp"], "source.snapchat_ads_source.snapchat_ads.campaign_history": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp"], "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp"], "source.snapchat_ads_source.snapchat_ads.creative_history": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp"], "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp"], "source.twitter_ads_source.twitter_ads.account_history": ["model.twitter_ads_source.stg_twitter_ads__account_history_tmp"], "source.twitter_ads_source.twitter_ads.campaign_history": ["model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp"], "source.twitter_ads_source.twitter_ads.line_item_history": ["model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp"], "source.twitter_ads_source.twitter_ads.promoted_tweet_history": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp"], "source.twitter_ads_source.twitter_ads.tweet_url": ["model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp"], "source.twitter_ads_source.twitter_ads.promoted_tweet_report": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp"], "source.twitter_ads_source.twitter_ads.tweet": ["model.twitter_ads_source.stg_twitter_ads__tweet_tmp"], "source.twitter_ads_source.twitter_ads.campaign_report": ["model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp"], "source.twitter_ads_source.twitter_ads.line_item_report": ["model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp"], "metric.ad_reporting.active_ads": [], "metric.ad_reporting.avg_spend_nonzero": [], "metric.ad_reporting.avg_spend": [], "metric.ad_reporting.clicks": ["metric.ad_reporting.bounce_rate", "metric.ad_reporting.clickthrough_rate", "metric.ad_reporting.cost_per_click"], "metric.ad_reporting.impressions": ["metric.ad_reporting.bounce_rate", "metric.ad_reporting.clickthrough_rate"], "metric.ad_reporting.spend": ["metric.ad_reporting.cost_per_click"], "metric.ad_reporting.clickthrough_rate": [], "metric.ad_reporting.cost_per_click": [], "metric.ad_reporting.bounce_rate": [], "semantic_model.ad_reporting.ad_report": ["metric.ad_reporting.active_ads", "metric.ad_reporting.avg_spend", "metric.ad_reporting.avg_spend_nonzero", "metric.ad_reporting.clicks", "metric.ad_reporting.impressions", "metric.ad_reporting.spend"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {"semantic_model.ad_reporting.ad_report": {"name": "ad_report", "resource_type": "semantic_model", "package_name": "ad_reporting", "path": "semantic_models/ad_reporting__ad_report.yml", "original_file_path": "models/semantic_models/ad_reporting__ad_report.yml", "unique_id": "semantic_model.ad_reporting.ad_report", "fqn": ["ad_reporting", "semantic_models", "ad_report"], "model": "ref('ad_reporting__ad_report')", "node_relation": {"alias": "ad_reporting__ad_report", "schema_name": "ad_reporting_tests_ad_reporting_dev", "database": "dbt-package-testing", "relation_name": "`dbt-package-testing`.`ad_reporting_tests_ad_reporting_dev`.`ad_reporting__ad_report`"}, "description": "Each record represents daily metrics by ad, ad group, campaign and account.", "label": null, "defaults": null, "entities": [], "measures": [{"name": "ad_spend", "agg": "sum", "description": null, "label": null, "create_metric": false, "expr": "spend", "agg_params": null, "non_additive_dimension": null, "agg_time_dimension": "date_day"}, {"name": "impressions", "agg": "sum", "description": null, "label": null, "create_metric": false, "expr": "impressions", "agg_params": null, "non_additive_dimension": null, "agg_time_dimension": "date_day"}, {"name": "avg_spend", "agg": "average", "description": null, "label": null, "create_metric": false, "expr": "spend", "agg_params": null, "non_additive_dimension": null, "agg_time_dimension": "date_day"}, {"name": "clicks", "agg": "sum", "description": null, "label": null, "create_metric": false, "expr": "clicks", "agg_params": null, "non_additive_dimension": null, "agg_time_dimension": "date_day"}, {"name": "active_ads", "agg": "count_distinct", "description": null, "label": null, "create_metric": false, "expr": "ad_id", "agg_params": null, "non_additive_dimension": null, "agg_time_dimension": "date_day"}, {"name": "avg_spend_nonzero", "agg": "average", "description": null, "label": null, "create_metric": false, "expr": "spend", "agg_params": null, "non_additive_dimension": null, "agg_time_dimension": "date_day"}], "dimensions": [{"name": "spend", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "account_name", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "ad_name", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "date_day", "type": "time", "description": null, "label": null, "is_partition": false, "type_params": {"time_granularity": "day", "validity_params": null}, "expr": null, "metadata": null}, {"name": "campaign_name", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "campaign_id", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "account_id", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "ad_id", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "platform", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "ad_group_id", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "ad_group_name", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}], "metadata": null, "depends_on": {"macros": [], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "refs": [{"name": "ad_reporting__ad_report", "package": null, "version": null}], "created_at": 1731951600.456971, "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "primary_entity": "ad", "group": null}}, "unit_tests": {}}
\ No newline at end of file
+{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v12.json", "dbt_version": "1.8.8", "generated_at": "2024-12-17T19:03:41.680081Z", "invocation_id": "c493fc99-5634-4fd2-8d12-e56e7830ca01", "env": {}, "project_name": "ad_reporting_integration_tests", "project_id": "9bf57d857f8bb3abf75f1b334ad30f3c", "user_id": "8268eefe-e8f7-472e-ab2a-a92f0135d76d", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.ad_reporting_integration_tests.twitter_line_item_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "twitter_line_item_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_line_item_history_data.csv", "original_file_path": "seeds/twitter_line_item_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_history_data", "fqn": ["ad_reporting_integration_tests", "twitter_line_item_history_data"], "alias": "twitter_line_item_history_data", "checksum": {"name": "sha256", "checksum": "e7c5ac79c6915f530670f98c6f7cd9ad80be52a5b2c5bd810ad3fff6c7041bd2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.8144069, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_line_item_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "amazon_ads_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_campaign_history_data.csv", "original_file_path": "seeds/amazon_ads_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_campaign_history_data"], "alias": "amazon_ads_campaign_history_data", "checksum": {"name": "sha256", "checksum": "0f20a7204beca4248a325978992ffd60e0fe986c633790b2bd032754d77c5184"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.825235, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_campaign_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "amazon_ads_ad_group_level_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_ad_group_level_report_data.csv", "original_file_path": "seeds/amazon_ads_ad_group_level_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_ad_group_level_report_data"], "alias": "amazon_ads_ad_group_level_report_data", "checksum": {"name": "sha256", "checksum": "b8d7399c22df2187d6518c6db0d9125b6c93172cf23200a8cbc365d43532d2ba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.8299909, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_ad_group_level_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "google_ads_keyword_stats_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_keyword_stats_data.csv", "original_file_path": "seeds/google_ads_keyword_stats_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data", "fqn": ["ad_reporting_integration_tests", "google_ads_keyword_stats_data"], "alias": "google_ads_keyword_stats_data", "checksum": {"name": "sha256", "checksum": "e4745703dd19dabf77a7df047ced6c1c56966ad8552d2f67676bcfd4ff36c94f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "bigint", "ad_id": "bigint", "campaign_id": "bigint", "id": "bigint", "base_campaign_id": "bigint", "base_ad_group_id": "bigint", "ad_group_id": "bigint", "ad_group_criterion_criterion_id": "bigint", "base_adgroup_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"customer_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_criterion_criterion_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_adgroup_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.831949, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_keyword_stats_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "linkedin_ad_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "linkedin_ad_campaign_history_data.csv", "original_file_path": "seeds/linkedin_ad_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_campaign_history_data"], "alias": "linkedin_ad_campaign_history_data", "checksum": {"name": "sha256", "checksum": "6d9dc155f63100a6555d22bf221ef2d037492984e4206518b68e17e0acb3b00a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "account_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.851885, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"linkedin_ad_campaign_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_keyword_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "pinterest_keyword_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_keyword_report_data.csv", "original_file_path": "seeds/pinterest_keyword_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_keyword_report_data", "fqn": ["ad_reporting_integration_tests", "pinterest_keyword_report_data"], "alias": "pinterest_keyword_report_data", "checksum": {"name": "sha256", "checksum": "51ad505e0c3419b86759141226d3a5cc8b18aa07d35cb0212c2fbfbfadb17a31"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "ad_account_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.864579, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_keyword_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_account_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "reddit_ads_account_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_account_report_data.csv", "original_file_path": "seeds/reddit_ads_account_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_account_report_data", "fqn": ["ad_reporting_integration_tests", "reddit_ads_account_report_data"], "alias": "reddit_ads_account_report_data", "checksum": {"name": "sha256", "checksum": "82b98a76c07069e7752621a8ce85c1a613bcbcbb4be084c7f3b6d25fbf10a6c6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"account_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.874895, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_account_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_line_item_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "twitter_line_item_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_line_item_report_data.csv", "original_file_path": "seeds/twitter_line_item_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_report_data", "fqn": ["ad_reporting_integration_tests", "twitter_line_item_report_data"], "alias": "twitter_line_item_report_data", "checksum": {"name": "sha256", "checksum": "4cef1efaf56e236366e68ccc814c5da3ddf3d2504ab3f156d5f4da1918c0bed6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.876462, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_line_item_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "microsoft_ads_keyword_performance_daily_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_keyword_performance_daily_report_data.csv", "original_file_path": "seeds/microsoft_ads_keyword_performance_daily_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_keyword_performance_daily_report_data"], "alias": "microsoft_ads_keyword_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "480b49ad514d8c5d9021bce2cfcef259a8ee3d9123b12314e1a63c670cc37688"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "account_id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "ad_id": "bigint", "keyword_id": "bigint", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}}, "created_at": 1734462181.879273, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_keyword_performance_daily_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "amazon_ads_ad_group_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_ad_group_history_data.csv", "original_file_path": "seeds/amazon_ads_ad_group_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_ad_group_history_data"], "alias": "amazon_ads_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "45753ff9cf086544b805b76303478c515ead8870e4ad9ae3988de8cae6befdde"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.884547, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_ad_group_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "facebook_ads_ad_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "facebook_ads_ad_history_data.csv", "original_file_path": "seeds/facebook_ads_ad_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data", "fqn": ["ad_reporting_integration_tests", "facebook_ads_ad_history_data"], "alias": "facebook_ads_ad_history_data", "checksum": {"name": "sha256", "checksum": "95c960d78745b1652034ba4da5cc2a7d5b923e816a81c90360f1b28588b7befd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "account_id": "bigint", "ad_set_id": "bigint", "campaign_id": "bigint", "creative_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_set_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "creative_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.888295, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"facebook_ads_ad_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_ad_conversions": {"database": "postgres", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_conversions", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_ad_conversions.csv", "original_file_path": "seeds/reddit_ads_ad_conversions.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_conversions", "fqn": ["ad_reporting_integration_tests", "reddit_ads_ad_conversions"], "alias": "reddit_ads_ad_conversions", "checksum": {"name": "sha256", "checksum": "f8dc29b5b9935791c50d28c5e986c6a02a96e518997a32f49cf6eac4cdac1131"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.889848, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_conversions\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "amazon_ads_campaign_level_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_campaign_level_report_data.csv", "original_file_path": "seeds/amazon_ads_campaign_level_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_campaign_level_report_data"], "alias": "amazon_ads_campaign_level_report_data", "checksum": {"name": "sha256", "checksum": "12c4efc842123e0085f28a11922eba7cb83bd04770a5657c839a8a7b048a9616"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float"}}, "created_at": 1734462181.8936949, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_campaign_level_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_ad_group_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "pinterest_ad_group_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_ad_group_report_data.csv", "original_file_path": "seeds/pinterest_ad_group_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_ad_group_report_data", "fqn": ["ad_reporting_integration_tests", "pinterest_ad_group_report_data"], "alias": "pinterest_ad_group_report_data", "checksum": {"name": "sha256", "checksum": "ca2133d8c675b7b10abe2ba021f5dced5769f7469bc9ed910929ed564f9e33d3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "ad_account_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.895277, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_ad_group_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "apple_search_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_campaign_history_data.csv", "original_file_path": "seeds/apple_search_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "apple_search_campaign_history_data"], "alias": "apple_search_campaign_history_data", "checksum": {"name": "sha256", "checksum": "42cca2a87492b1c40a102fd9f9941a0894cdb254d7027a88dc9dedfeca1bb67c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"modification_time": "timestamp", "start_time": "timestamp", "end_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"modification_time": "timestamp", "start_time": "timestamp", "end_time": "timestamp"}}, "created_at": 1734462181.899284, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_campaign_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_campaign_conversions": {"database": "postgres", "schema": "zz_ad_reporting", "name": "reddit_ads_campaign_conversions", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_campaign_conversions.csv", "original_file_path": "seeds/reddit_ads_campaign_conversions.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_campaign_conversions", "fqn": ["ad_reporting_integration_tests", "reddit_ads_campaign_conversions"], "alias": "reddit_ads_campaign_conversions", "checksum": {"name": "sha256", "checksum": "ca700b6314c329f81da024b4c8c262a7c22a17ea3660ba8094c1686871ee5091"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.90084, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_campaign_conversions\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_account_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "twitter_account_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_account_report_data.csv", "original_file_path": "seeds/twitter_account_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_account_report_data", "fqn": ["ad_reporting_integration_tests", "twitter_account_report_data"], "alias": "twitter_account_report_data", "checksum": {"name": "sha256", "checksum": "d1364362cbe48a00e05e628fac71d48e151ee2c5394b44c6000765ea069fa154"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.909896, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_account_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_campaign_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "reddit_ads_campaign_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_campaign_data.csv", "original_file_path": "seeds/reddit_ads_campaign_data.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_campaign_data", "fqn": ["ad_reporting_integration_tests", "reddit_ads_campaign_data"], "alias": "reddit_ads_campaign_data", "checksum": {"name": "sha256", "checksum": "726c8b03bd81f57203df064ff66dd74bbdae559b8d7e1175c214ec06da819881"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "account_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.911653, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_campaign_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "linkedin_ad_creative_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "linkedin_ad_creative_history_data.csv", "original_file_path": "seeds/linkedin_ad_creative_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_creative_history_data"], "alias": "linkedin_ad_creative_history_data", "checksum": {"name": "sha256", "checksum": "f505b76fba655f34214388f03f53ccfb83225b27d502874865d4daef6954fde8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "status": "varchar", "intended_status": "varchar", "last_modified_at": "timestamp", "created_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "status": "{{ 'string' if target.type in ['bigquery','spark','databricks'] else 'varchar' }}", "intended_status": "{{ 'string' if target.type in ['bigquery','spark','databricks'] else 'varchar' }}", "last_modified_at": "timestamp", "created_at": "timestamp"}}, "created_at": 1734462181.914691, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"linkedin_ad_creative_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "snapchat_ad_squad_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_ad_squad_history_data.csv", "original_file_path": "seeds/snapchat_ad_squad_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_squad_history_data"], "alias": "snapchat_ad_squad_history_data", "checksum": {"name": "sha256", "checksum": "0e83ca691f2153480e7b63173f1c7ed8c38c0dc247d41a6f2fd46afc1e5963b1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.9198, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_ad_squad_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_campaign_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "twitter_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_campaign_history_data.csv", "original_file_path": "seeds/twitter_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "twitter_campaign_history_data"], "alias": "twitter_campaign_history_data", "checksum": {"name": "sha256", "checksum": "3d5c2b36e3c3bbbefb4a60469db1471ae01fe82c65d167bd062fb947d617b247"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.921456, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_campaign_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "apple_search_ad_group_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_ad_group_history_data.csv", "original_file_path": "seeds/apple_search_ad_group_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data", "fqn": ["ad_reporting_integration_tests", "apple_search_ad_group_history_data"], "alias": "apple_search_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "6940c04c90cc94b46d8a36bf1b3701cbd64d75b298222e26819aaf6460ddf984"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"modification_time": "timestamp", "start_time": "timestamp", "end_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"modification_time": "timestamp", "start_time": "timestamp", "end_time": "timestamp"}}, "created_at": 1734462181.9231129, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_ad_group_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_action_values_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "facebook_ads_basic_ad_action_values_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "facebook_ads_basic_ad_action_values_data.csv", "original_file_path": "seeds/facebook_ads_basic_ad_action_values_data.csv", "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_action_values_data", "fqn": ["ad_reporting_integration_tests", "facebook_ads_basic_ad_action_values_data"], "alias": "facebook_ads_basic_ad_action_values_data", "checksum": {"name": "sha256", "checksum": "77e70b5d122d72d83aa7bfa30799d4164dadcbbed0d2e514c55afacb1a968aa4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.925235, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"facebook_ads_basic_ad_action_values_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "linkedin_ad_campaign_group_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "linkedin_ad_campaign_group_history_data.csv", "original_file_path": "seeds/linkedin_ad_campaign_group_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_campaign_group_history_data"], "alias": "linkedin_ad_campaign_group_history_data", "checksum": {"name": "sha256", "checksum": "48aeff219340dccafbdb2de6c0086e94cca22a741c15ad8ce23f1e207fa15fd2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "account_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.930203, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"linkedin_ad_campaign_group_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_advertiser_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "pinterest_advertiser_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_advertiser_report_data.csv", "original_file_path": "seeds/pinterest_advertiser_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_advertiser_report_data", "fqn": ["ad_reporting_integration_tests", "pinterest_advertiser_report_data"], "alias": "pinterest_advertiser_report_data", "checksum": {"name": "sha256", "checksum": "a99af28ad8c13e82c3a8693cdf7dbda30af34de7c8ddaabe887e0944c22776fa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "ad_account_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.934412, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_advertiser_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "amazon_ads_product_ad_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_product_ad_history_data.csv", "original_file_path": "seeds/amazon_ads_product_ad_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_product_ad_history_data"], "alias": "amazon_ads_product_ad_history_data", "checksum": {"name": "sha256", "checksum": "7efed04b5599f1f2a4e8db33b56eb1f43c6ed27a77a504c7f8b7d628aac37749"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.936057, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_product_ad_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "google_ads_campaign_stats_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_campaign_stats_data.csv", "original_file_path": "seeds/google_ads_campaign_stats_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data", "fqn": ["ad_reporting_integration_tests", "google_ads_campaign_stats_data"], "alias": "google_ads_campaign_stats_data", "checksum": {"name": "sha256", "checksum": "f8ffb40c33a31cdd4185ed5e956cfdaff9736054806ef3f9da5cf6f036ef7d0d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "bigint", "ad_id": "bigint", "campaign_id": "bigint", "id": "bigint", "base_campaign_id": "bigint", "base_ad_group_id": "bigint", "ad_group_id": "bigint", "ad_group_criterion_criterion_id": "bigint", "base_adgroup_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"customer_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_criterion_criterion_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_adgroup_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.9377642, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_campaign_stats_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_ad_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_ad_data.csv", "original_file_path": "seeds/reddit_ads_ad_data.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_data", "fqn": ["ad_reporting_integration_tests", "reddit_ads_ad_data"], "alias": "reddit_ads_ad_data", "checksum": {"name": "sha256", "checksum": "3c60814303d77bfb7b387e026b59ea6f6db7ae316bcb3a8c5b84b50e706d9d59"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.939268, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "microsoft_ads_account_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_account_history_data.csv", "original_file_path": "seeds/microsoft_ads_account_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_account_history_data"], "alias": "microsoft_ads_account_history_data", "checksum": {"name": "sha256", "checksum": "282800342d5306132bdc208ee361599831ae8566b4639cd5c3bea492062e4b78"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"name": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"name": "{{ 'string' if target.type in ['bigquery','spark', 'databricks'] else 'varchar' }}"}}, "created_at": 1734462181.940714, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_account_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "microsoft_ads_account_performance_daily_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_account_performance_daily_report_data.csv", "original_file_path": "seeds/microsoft_ads_account_performance_daily_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_account_performance_daily_report_data"], "alias": "microsoft_ads_account_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "407268e863d1ec81e7450ec40910c1be3f6c3e898b3c5878f407f26b55429240"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "account_id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "ad_id": "bigint", "keyword_id": "bigint", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}}, "created_at": 1734462181.94227, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_account_performance_daily_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_ad_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "tiktok_ad_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "tiktok_ad_history_data.csv", "original_file_path": "seeds/tiktok_ad_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_history_data", "fqn": ["ad_reporting_integration_tests", "tiktok_ad_history_data"], "alias": "tiktok_ad_history_data", "checksum": {"name": "sha256", "checksum": "a5977d1a4315d2bffbdb7be9c73345ce724324c20407af4cab3afae24f0fca34"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.943867, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"tiktok_ad_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "amazon_ads_advertised_product_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_advertised_product_report_data.csv", "original_file_path": "seeds/amazon_ads_advertised_product_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_advertised_product_report_data"], "alias": "amazon_ads_advertised_product_report_data", "checksum": {"name": "sha256", "checksum": "009fa251b9195cc87bbb5e05587165c4121ba87433d392792a42f8d11fe992b5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float"}}, "created_at": 1734462181.945266, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_advertised_product_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "facebook_ads_creative_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "facebook_ads_creative_history_data.csv", "original_file_path": "seeds/facebook_ads_creative_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data", "fqn": ["ad_reporting_integration_tests", "facebook_ads_creative_history_data"], "alias": "facebook_ads_creative_history_data", "checksum": {"name": "path", "checksum": "seeds/facebook_ads_creative_history_data.csv"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"page_link": "varchar", "template_page_link": "varchar", "id": "bigint", "account_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"page_link": "{{ 'string' if target.type in ['bigquery','spark', 'databricks'] else 'varchar' }}", "template_page_link": "{{ 'string' if target.type in ['bigquery','spark', 'databricks'] else 'varchar' }}", "id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.9467268, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"facebook_ads_creative_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "tiktok_adgroup_report_hourly_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "tiktok_adgroup_report_hourly_data.csv", "original_file_path": "seeds/tiktok_adgroup_report_hourly_data.csv", "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data", "fqn": ["ad_reporting_integration_tests", "tiktok_adgroup_report_hourly_data"], "alias": "tiktok_adgroup_report_hourly_data", "checksum": {"name": "sha256", "checksum": "9e9f4b9de90d7e273bda99da9cbc4a50f2d6a3f5a5d127060a9752ba726b5c2f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.9480839, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"tiktok_adgroup_report_hourly_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "twitter_promoted_tweet_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_promoted_tweet_history_data.csv", "original_file_path": "seeds/twitter_promoted_tweet_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data", "fqn": ["ad_reporting_integration_tests", "twitter_promoted_tweet_history_data"], "alias": "twitter_promoted_tweet_history_data", "checksum": {"name": "sha256", "checksum": "ec5e3be3c75b17b07893e9e7c21a4e0b8d5a820a73d3306fd94ec59935714690"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"tweet_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"tweet_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.949433, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_promoted_tweet_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_ad_group_conversions": {"database": "postgres", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_group_conversions", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_ad_group_conversions.csv", "original_file_path": "seeds/reddit_ads_ad_group_conversions.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_group_conversions", "fqn": ["ad_reporting_integration_tests", "reddit_ads_ad_group_conversions"], "alias": "reddit_ads_ad_group_conversions", "checksum": {"name": "sha256", "checksum": "4289f878ef2942b8ddba332bc3b8a830dc22af6f0fa480fbedb78ec7f9549ac3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.951137, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_group_conversions\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "amazon_ads_search_term_ad_keyword_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_search_term_ad_keyword_report_data.csv", "original_file_path": "seeds/amazon_ads_search_term_ad_keyword_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_search_term_ad_keyword_report_data"], "alias": "amazon_ads_search_term_ad_keyword_report_data", "checksum": {"name": "sha256", "checksum": "72e0151237f3fc67bea3d517f7ef50c94ce494d2c0017fced4e1287623639722"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "keyword_bid": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "keyword_bid": "float"}}, "created_at": 1734462181.952553, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_search_term_ad_keyword_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_organization_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "apple_search_organization_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_organization_data.csv", "original_file_path": "seeds/apple_search_organization_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_organization_data", "fqn": ["ad_reporting_integration_tests", "apple_search_organization_data"], "alias": "apple_search_organization_data", "checksum": {"name": "sha256", "checksum": "bbb5878ab9c07bd1f391181a8321ea50476f37d25f36fd1d66e58d513336699c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.954085, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_organization_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_campaign_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "tiktok_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "tiktok_campaign_history_data.csv", "original_file_path": "seeds/tiktok_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "tiktok_campaign_history_data"], "alias": "tiktok_campaign_history_data", "checksum": {"name": "sha256", "checksum": "a5977d1a4315d2bffbdb7be9c73345ce724324c20407af4cab3afae24f0fca34"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.9555898, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"tiktok_campaign_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_advertiser_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "tiktok_advertiser_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "tiktok_advertiser_data.csv", "original_file_path": "seeds/tiktok_advertiser_data.csv", "unique_id": "seed.ad_reporting_integration_tests.tiktok_advertiser_data", "fqn": ["ad_reporting_integration_tests", "tiktok_advertiser_data"], "alias": "tiktok_advertiser_data", "checksum": {"name": "sha256", "checksum": "d85541c61ba67dc5ec46124b93d9484b43554ca4aa6e7582e52cbdb04fd5287b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.957201, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"tiktok_advertiser_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "twitter_promoted_tweet_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_promoted_tweet_report_data.csv", "original_file_path": "seeds/twitter_promoted_tweet_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data", "fqn": ["ad_reporting_integration_tests", "twitter_promoted_tweet_report_data"], "alias": "twitter_promoted_tweet_report_data", "checksum": {"name": "sha256", "checksum": "481c6351831987ef3e159d6ae4f98a7f8d9a231125e99178fd01d1fbc906f0e5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.9587462, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_promoted_tweet_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "google_ads_ad_group_stats_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_ad_group_stats_data.csv", "original_file_path": "seeds/google_ads_ad_group_stats_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_group_stats_data"], "alias": "google_ads_ad_group_stats_data", "checksum": {"name": "sha256", "checksum": "d3ac6d88466ebf8fca7753e60be01dfa615a8e9b654da4d91fab8ee59c6c7cf0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "bigint", "ad_id": "bigint", "campaign_id": "bigint", "id": "bigint", "base_campaign_id": "bigint", "base_ad_group_id": "bigint", "ad_group_id": "bigint", "ad_group_criterion_criterion_id": "bigint", "base_adgroup_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"customer_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_criterion_criterion_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_adgroup_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.960546, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_ad_group_stats_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_ad_stats_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "google_ads_ad_stats_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_ad_stats_data.csv", "original_file_path": "seeds/google_ads_ad_stats_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_stats_data", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_stats_data"], "alias": "google_ads_ad_stats_data", "checksum": {"name": "sha256", "checksum": "417738f961255266f49a15548d2e7b278713c32c28c766b10b9d038613cf35fb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "bigint", "ad_id": "bigint", "campaign_id": "bigint", "id": "bigint", "base_campaign_id": "bigint", "base_ad_group_id": "bigint", "ad_group_id": "bigint", "ad_group_criterion_criterion_id": "bigint", "base_adgroup_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"customer_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_criterion_criterion_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_adgroup_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.962473, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_ad_stats_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_campaign_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "twitter_campaign_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_campaign_report_data.csv", "original_file_path": "seeds/twitter_campaign_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_report_data", "fqn": ["ad_reporting_integration_tests", "twitter_campaign_report_data"], "alias": "twitter_campaign_report_data", "checksum": {"name": "sha256", "checksum": "bb3bdaea68e1bc903cb5b3a3e507926b43009e0f52ec2f867a97e7276cef81bb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.9640691, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_campaign_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_account_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "google_ads_account_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_account_history_data.csv", "original_file_path": "seeds/google_ads_account_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_history_data", "fqn": ["ad_reporting_integration_tests", "google_ads_account_history_data"], "alias": "google_ads_account_history_data", "checksum": {"name": "sha256", "checksum": "bf0559a512f089514aa67964b7ae5aef0fee8deb6e0874c01e853ed78dd7883d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.965605, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_account_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_profile_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "amazon_ads_profile_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_profile_data.csv", "original_file_path": "seeds/amazon_ads_profile_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_profile_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_profile_data"], "alias": "amazon_ads_profile_data", "checksum": {"name": "sha256", "checksum": "bf98315483844e348320dc4d774059cb5229ef48b495aebace17dd04520d160b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462181.9670532, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_profile_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "facebook_ads_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "facebook_ads_campaign_history_data.csv", "original_file_path": "seeds/facebook_ads_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "facebook_ads_campaign_history_data"], "alias": "facebook_ads_campaign_history_data", "checksum": {"name": "sha256", "checksum": "1dfd8244efe7c32be5fb93c8417575d79670225092a28cab9da03d0ad7773432"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "account_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.9685361, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"facebook_ads_campaign_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_campaign_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "pinterest_campaign_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_campaign_report_data.csv", "original_file_path": "seeds/pinterest_campaign_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_campaign_report_data", "fqn": ["ad_reporting_integration_tests", "pinterest_campaign_report_data"], "alias": "pinterest_campaign_report_data", "checksum": {"name": "sha256", "checksum": "047f3d50be337f92c4385d27515012017b627cdf9834cecf020fa0b29ce2935d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "ad_account_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.970324, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_campaign_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "microsoft_ads_keyword_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_keyword_history_data.csv", "original_file_path": "seeds/microsoft_ads_keyword_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_keyword_history_data"], "alias": "microsoft_ads_keyword_history_data", "checksum": {"name": "sha256", "checksum": "e736b54737adad8174d44a89eab9a6b720326744bff802fda870f585c86e7511"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "account_id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "ad_id": "bigint", "keyword_id": "bigint", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}}, "created_at": 1734462181.972586, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_keyword_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_tweet_url_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "twitter_tweet_url_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_tweet_url_data.csv", "original_file_path": "seeds/twitter_tweet_url_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_url_data", "fqn": ["ad_reporting_integration_tests", "twitter_tweet_url_data"], "alias": "twitter_tweet_url_data", "checksum": {"name": "sha256", "checksum": "b8d1d342fc9dbfa624f40d04facabf144039ecdb099b6a8d6b4232c980b80896"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"tweet_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"tweet_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.974129, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_tweet_url_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_keyword_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "apple_search_keyword_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_keyword_history_data.csv", "original_file_path": "seeds/apple_search_keyword_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_history_data", "fqn": ["ad_reporting_integration_tests", "apple_search_keyword_history_data"], "alias": "apple_search_keyword_history_data", "checksum": {"name": "sha256", "checksum": "a6d53cd4951594b21214e60bf51503907ee364eac04c7d24a19dc490cc7d818c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"modification_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"modification_time": "timestamp"}}, "created_at": 1734462181.9755871, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_keyword_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_ad_group_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_group_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_ad_group_data.csv", "original_file_path": "seeds/reddit_ads_ad_group_data.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_group_data", "fqn": ["ad_reporting_integration_tests", "reddit_ads_ad_group_data"], "alias": "reddit_ads_ad_group_data", "checksum": {"name": "sha256", "checksum": "854e1b14702e4e7d1d455e8d47bb6356e3970c7baac2b1a2e1aafbb129233a62"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "campaign_id": "bigint", "ad_id": "bigint", "ad_group_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.97706, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_group_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_pin_promotion_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "pinterest_pin_promotion_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_pin_promotion_history_data.csv", "original_file_path": "seeds/pinterest_pin_promotion_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_pin_promotion_history_data", "fqn": ["ad_reporting_integration_tests", "pinterest_pin_promotion_history_data"], "alias": "pinterest_pin_promotion_history_data", "checksum": {"name": "sha256", "checksum": "ac9ca6b81cebffa2e22e24f03afe41f6e31dd683b1532df5a40fcb7700a2d854"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "ad_account_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462181.9786031, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_pin_promotion_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_campaign_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "pinterest_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_campaign_history_data.csv", "original_file_path": "seeds/pinterest_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "pinterest_campaign_history_data"], "alias": "pinterest_campaign_history_data", "checksum": {"name": "sha256", "checksum": "6ffcb6b6cd42022cfd0189ef3d54920158b7b45db1dffdf47463731ad14c4ec0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "ad_account_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.0149372, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_campaign_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "microsoft_ads_search_performance_daily_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_search_performance_daily_report_data.csv", "original_file_path": "seeds/microsoft_ads_search_performance_daily_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_search_performance_daily_report_data"], "alias": "microsoft_ads_search_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "cfca4231aed334aed35468aa7062db63e1c93cf514a26311ab1dd4b68991c32c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "account_id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "ad_id": "bigint", "keyword_id": "bigint", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}}, "created_at": 1734462182.016392, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_search_performance_daily_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_campaign_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "google_ads_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_campaign_history_data.csv", "original_file_path": "seeds/google_ads_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "google_ads_campaign_history_data"], "alias": "google_ads_campaign_history_data", "checksum": {"name": "sha256", "checksum": "54db8f4f5a51eae1af9391b9b74c4b847485e82c382a25ebc1b4a727640825e5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "bigint", "ad_id": "bigint", "campaign_id": "bigint", "id": "bigint", "base_campaign_id": "bigint", "base_ad_group_id": "bigint", "ad_group_id": "bigint", "ad_group_criterion_criterion_id": "bigint", "base_adgroup_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"customer_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_criterion_criterion_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_adgroup_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.017826, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_campaign_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "linkedin_ad_analytics_by_creative_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "linkedin_ad_analytics_by_creative_data.csv", "original_file_path": "seeds/linkedin_ad_analytics_by_creative_data.csv", "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_analytics_by_creative_data"], "alias": "linkedin_ad_analytics_by_creative_data", "checksum": {"name": "sha256", "checksum": "b5958b032b3396d36be3b8e4e7664029927e507034d9a7e5f2e7045e8366cc24"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"day": "timestamp", "external_website_conversions": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"day": "timestamp", "external_website_conversions": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.019254, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"linkedin_ad_analytics_by_creative_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_ad_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "snapchat_ad_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_ad_history_data.csv", "original_file_path": "seeds/snapchat_ad_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_history_data", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_history_data"], "alias": "snapchat_ad_history_data", "checksum": {"name": "sha256", "checksum": "839c0910ff6ff3cff2580bd9144223132dd1d87f003aeea329e47ba858a2dc23"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.020545, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_ad_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_account_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "facebook_ads_account_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "facebook_ads_account_history_data.csv", "original_file_path": "seeds/facebook_ads_account_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_account_history_data", "fqn": ["ad_reporting_integration_tests", "facebook_ads_account_history_data"], "alias": "facebook_ads_account_history_data", "checksum": {"name": "sha256", "checksum": "92f318955a317f351b928ce94de43eae07f29dc3cadbd0f1a26e62fdba1dc4b1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "name": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "name": "{{ 'string' if target.type in ['bigquery','spark', 'databricks'] else 'varchar' }}"}}, "created_at": 1734462182.021833, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"facebook_ads_account_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_campaign_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "apple_search_campaign_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_campaign_report_data.csv", "original_file_path": "seeds/apple_search_campaign_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_report_data", "fqn": ["ad_reporting_integration_tests", "apple_search_campaign_report_data"], "alias": "apple_search_campaign_report_data", "checksum": {"name": "sha256", "checksum": "a4a374475156eb8d9ddc40c43cadbcc843efcf7a55180346d2d4b875c2791ab1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.023146, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_campaign_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "google_ads_ad_group_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_ad_group_history_data.csv", "original_file_path": "seeds/google_ads_ad_group_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_group_history_data"], "alias": "google_ads_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "82518353626bed4214f1dea514b77c97c96da2e4c7253734c3268e55111e67ce"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "bigint", "ad_id": "bigint", "campaign_id": "bigint", "id": "bigint", "base_campaign_id": "bigint", "base_ad_group_id": "bigint", "ad_group_id": "bigint", "ad_group_criterion_criterion_id": "bigint", "base_adgroup_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"customer_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_criterion_criterion_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_adgroup_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.024539, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_ad_group_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_ad_group_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "pinterest_ad_group_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_ad_group_history_data.csv", "original_file_path": "seeds/pinterest_ad_group_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_ad_group_history_data", "fqn": ["ad_reporting_integration_tests", "pinterest_ad_group_history_data"], "alias": "pinterest_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "1dd6628bd824b4b3626bff8bd0a8f7c5eadfbadfa0319f24e2dffa7f16ca9d0c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "ad_account_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.026067, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_ad_group_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_campaign_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "snapchat_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_campaign_history_data.csv", "original_file_path": "seeds/snapchat_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "snapchat_campaign_history_data"], "alias": "snapchat_campaign_history_data", "checksum": {"name": "sha256", "checksum": "640eb2ec082938ad70c430a6b3441711f6fed19eb6e28d7622f03294e92e5b70"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.027423, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_campaign_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_keyword_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "pinterest_keyword_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_keyword_history_data.csv", "original_file_path": "seeds/pinterest_keyword_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_keyword_history_data", "fqn": ["ad_reporting_integration_tests", "pinterest_keyword_history_data"], "alias": "pinterest_keyword_history_data", "checksum": {"name": "sha256", "checksum": "c2bee861548c505642cb588c90a9e97ce95b77d8246448031bb9225bc5e2db84"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "ad_account_id": "bigint", "advertiser_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.028783, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_keyword_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "facebook_ads_basic_ad_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "facebook_ads_basic_ad_data.csv", "original_file_path": "seeds/facebook_ads_basic_ad_data.csv", "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data", "fqn": ["ad_reporting_integration_tests", "facebook_ads_basic_ad_data"], "alias": "facebook_ads_basic_ad_data", "checksum": {"name": "sha256", "checksum": "66b31e24edd0ba75d3fee6ad4c1522fd9b43417943aac398f1c92f5076ba7ac0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"ad_id": "bigint", "account_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"ad_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.030139, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"facebook_ads_basic_ad_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "tiktok_ad_report_hourly_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "tiktok_ad_report_hourly_data.csv", "original_file_path": "seeds/tiktok_ad_report_hourly_data.csv", "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data", "fqn": ["ad_reporting_integration_tests", "tiktok_ad_report_hourly_data"], "alias": "tiktok_ad_report_hourly_data", "checksum": {"name": "sha256", "checksum": "9b3d7ee7492caed77e6bceb93384649b6221ff0d6cd4c582dcbc2e60e690cda8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.0314932, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"tiktok_ad_report_hourly_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "microsoft_ads_ad_group_performance_daily_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_ad_group_performance_daily_report_data.csv", "original_file_path": "seeds/microsoft_ads_ad_group_performance_daily_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_ad_group_performance_daily_report_data"], "alias": "microsoft_ads_ad_group_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "d61e016b59c5195471adaeb79fccfad355d611af16f7f301f4754dc14d4e7aad"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "account_id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "ad_id": "bigint", "keyword_id": "bigint", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}}, "created_at": 1734462182.03284, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_ad_group_performance_daily_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_search_term_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "apple_search_search_term_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_search_term_report_data.csv", "original_file_path": "seeds/apple_search_search_term_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_search_term_report_data", "fqn": ["ad_reporting_integration_tests", "apple_search_search_term_report_data"], "alias": "apple_search_search_term_report_data", "checksum": {"name": "sha256", "checksum": "6add75b68a0f9a6f153a9fb83a682387a76a5b89d6dcd14fdbbcb5b418bb3b5a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.034163, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_search_term_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_account_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "reddit_ads_account_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_account_data.csv", "original_file_path": "seeds/reddit_ads_account_data.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_account_data", "fqn": ["ad_reporting_integration_tests", "reddit_ads_account_data"], "alias": "reddit_ads_account_data", "checksum": {"name": "sha256", "checksum": "4d672f0080db8e51bd896c8fe9a56a0f2e6cb4fe175ae3a55713449532cd6a67"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.035455, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_account_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "snapchat_ad_squad_hourly_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_ad_squad_hourly_report_data.csv", "original_file_path": "seeds/snapchat_ad_squad_hourly_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_squad_hourly_report_data"], "alias": "snapchat_ad_squad_hourly_report_data", "checksum": {"name": "sha256", "checksum": "4bcd58c89168843edd94874f95222804c28b5b3571d66dbb194a498a0f8f85b7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.036781, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_ad_squad_hourly_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_ad_group_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_group_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_ad_group_report_data.csv", "original_file_path": "seeds/reddit_ads_ad_group_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_group_report_data", "fqn": ["ad_reporting_integration_tests", "reddit_ads_ad_group_report_data"], "alias": "reddit_ads_ad_group_report_data", "checksum": {"name": "sha256", "checksum": "18a4e6c21b4b4c6248b681cc49bad5d0d12171a2d0a699ca99af864737d40817"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"account_id": "bigint", "ad_group_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.038081, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_group_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "linkedin_ad_account_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "linkedin_ad_account_history_data.csv", "original_file_path": "seeds/linkedin_ad_account_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_account_history_data"], "alias": "linkedin_ad_account_history_data", "checksum": {"name": "sha256", "checksum": "f57fbb5e5a881a56457ed9b37150ec111e83e2e43deff5cc82891125ef61bc1d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp"}}, "created_at": 1734462182.039413, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"linkedin_ad_account_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_account_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "twitter_account_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_account_history_data.csv", "original_file_path": "seeds/twitter_account_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_account_history_data", "fqn": ["ad_reporting_integration_tests", "twitter_account_history_data"], "alias": "twitter_account_history_data", "checksum": {"name": "sha256", "checksum": "e880da5ea30536301dbb19627aa818f454eceae2b8bd10e40cada659e4585d64"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"name": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"name": "{{ 'string' if target.type in ['bigquery','spark', 'databricks'] else 'varchar' }}"}}, "created_at": 1734462182.0407329, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_account_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_creative_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "snapchat_creative_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_creative_history_data.csv", "original_file_path": "seeds/snapchat_creative_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_history_data", "fqn": ["ad_reporting_integration_tests", "snapchat_creative_history_data"], "alias": "snapchat_creative_history_data", "checksum": {"name": "sha256", "checksum": "40505e1e47b59c850371007584560a03172120f078da2c81c6712aea77d868a8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.042003, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_creative_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "linkedin_ad_analytics_by_campaign_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "linkedin_ad_analytics_by_campaign_data.csv", "original_file_path": "seeds/linkedin_ad_analytics_by_campaign_data.csv", "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data", "fqn": ["ad_reporting_integration_tests", "linkedin_ad_analytics_by_campaign_data"], "alias": "linkedin_ad_analytics_by_campaign_data", "checksum": {"name": "sha256", "checksum": "a6b72fcf11043561ec04bae0035659363e992cd11f8ed5376f056b7f4e5b5b32"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"day": "timestamp", "external_website_conversions": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"day": "timestamp", "external_website_conversions": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.043325, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"linkedin_ad_analytics_by_campaign_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_ad_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "google_ads_ad_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_ad_history_data.csv", "original_file_path": "seeds/google_ads_ad_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_history_data", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_history_data"], "alias": "google_ads_ad_history_data", "checksum": {"name": "sha256", "checksum": "d75e5e99b2a5e2c3cecf248666c708c739a75cdee2cd66068fc893d9fe7ad635"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "bigint", "ad_id": "bigint", "campaign_id": "bigint", "id": "bigint", "base_campaign_id": "bigint", "base_ad_group_id": "bigint", "ad_group_id": "bigint", "ad_group_criterion_criterion_id": "bigint", "base_adgroup_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"customer_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_criterion_criterion_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_adgroup_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.044694, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_ad_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "facebook_ads_ad_set_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "facebook_ads_ad_set_history_data.csv", "original_file_path": "seeds/facebook_ads_ad_set_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data", "fqn": ["ad_reporting_integration_tests", "facebook_ads_ad_set_history_data"], "alias": "facebook_ads_ad_set_history_data", "checksum": {"name": "sha256", "checksum": "da4e6b48f3feaa4bd2c3783b125909a14c5317b3c1484b4f6af5d7c1d88f5bd7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "account_id": "bigint", "campaign_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.0460548, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"facebook_ads_ad_set_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_keyword_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "apple_search_keyword_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_keyword_report_data.csv", "original_file_path": "seeds/apple_search_keyword_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_report_data", "fqn": ["ad_reporting_integration_tests", "apple_search_keyword_report_data"], "alias": "apple_search_keyword_report_data", "checksum": {"name": "sha256", "checksum": "6aafe7098ea6f18764856a6631b190de106462f83f8bb1d3c8fb91e2d3cfffee"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.0473359, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_keyword_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "snapchat_ad_hourly_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_ad_hourly_report_data.csv", "original_file_path": "seeds/snapchat_ad_hourly_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_hourly_report_data"], "alias": "snapchat_ad_hourly_report_data", "checksum": {"name": "sha256", "checksum": "44942448ec2f5fdab1d102948af6724bc9d10970c6d760cd5b9eb778a16aa12b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"date": "timestamp"}}, "created_at": 1734462182.0486479, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_ad_hourly_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "amazon_ads_targeting_keyword_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_targeting_keyword_report_data.csv", "original_file_path": "seeds/amazon_ads_targeting_keyword_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_targeting_keyword_report_data"], "alias": "amazon_ads_targeting_keyword_report_data", "checksum": {"name": "sha256", "checksum": "465149df01ea42da88e6faab29bc91faaed75d50c2e04cece5c7a4a442e31994"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float", "keyword_bid": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float", "keyword_bid": "float"}}, "created_at": 1734462182.049974, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_targeting_keyword_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "microsoft_ads_ad_performance_daily_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_ad_performance_daily_report_data.csv", "original_file_path": "seeds/microsoft_ads_ad_performance_daily_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_ad_performance_daily_report_data"], "alias": "microsoft_ads_ad_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "2604c0155fbc98a0fba96b1c3805547be469d6b740f9f9b0763bdc55b7b01443"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"account_id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "ad_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.051311, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_ad_performance_daily_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_tweet_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "twitter_tweet_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_tweet_data.csv", "original_file_path": "seeds/twitter_tweet_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_data", "fqn": ["ad_reporting_integration_tests", "twitter_tweet_data"], "alias": "twitter_tweet_data", "checksum": {"name": "sha256", "checksum": "7e28de3484a806b3428f4898e035364e2a282ef5819cfe895f8c94f6455e726f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.052611, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_tweet_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "snapchat_campaign_hourly_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_campaign_hourly_report_data.csv", "original_file_path": "seeds/snapchat_campaign_hourly_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data", "fqn": ["ad_reporting_integration_tests", "snapchat_campaign_hourly_report_data"], "alias": "snapchat_campaign_hourly_report_data", "checksum": {"name": "sha256", "checksum": "90145700bcd091f7cfe9fa88155e2473a36b674778ec51ed934c6876ec23e91f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.053845, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_campaign_hourly_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "microsoft_ads_ad_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_ad_history_data.csv", "original_file_path": "seeds/microsoft_ads_ad_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_ad_history_data"], "alias": "microsoft_ads_ad_history_data", "checksum": {"name": "sha256", "checksum": "68d19aa9efd8111d82af64fb5ceadb9d124fe1f2d1ec9d87fb6a87e96b4e6eba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "account_id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "ad_id": "bigint", "keyword_id": "bigint", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}}, "created_at": 1734462182.055212, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_ad_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_actions_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "facebook_ads_basic_ad_actions_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "facebook_ads_basic_ad_actions_data.csv", "original_file_path": "seeds/facebook_ads_basic_ad_actions_data.csv", "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_actions_data", "fqn": ["ad_reporting_integration_tests", "facebook_ads_basic_ad_actions_data"], "alias": "facebook_ads_basic_ad_actions_data", "checksum": {"name": "sha256", "checksum": "ed0977ee47305aeb99778125280a699f5a7f0d6d36f7f115ff53c737b6c929ca"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"value": "float", "inline": "float", "_1_d_view": "float", "_7_d_click": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"value": "float", "inline": "float", "_1_d_view": "float", "_7_d_click": "float"}}, "created_at": 1734462182.056582, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"facebook_ads_basic_ad_actions_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "twitter_line_item_keywords_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "twitter_line_item_keywords_report_data.csv", "original_file_path": "seeds/twitter_line_item_keywords_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data", "fqn": ["ad_reporting_integration_tests", "twitter_line_item_keywords_report_data"], "alias": "twitter_line_item_keywords_report_data", "checksum": {"name": "sha256", "checksum": "80107d8a67ce63a986c2e1a4d7af8d1e6572053a11e20e7df98f5d42e0da690e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.057873, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_line_item_keywords_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "snapchat_ad_account_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_ad_account_history_data.csv", "original_file_path": "seeds/snapchat_ad_account_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data", "fqn": ["ad_reporting_integration_tests", "snapchat_ad_account_history_data"], "alias": "snapchat_ad_account_history_data", "checksum": {"name": "sha256", "checksum": "0e1f3a58ee6a4863bb59fbd30c286606f0de77040fbb2903ab312e5d248454cb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.0591202, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_ad_account_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "microsoft_ads_campaign_performance_daily_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_campaign_performance_daily_report_data.csv", "original_file_path": "seeds/microsoft_ads_campaign_performance_daily_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_campaign_performance_daily_report_data"], "alias": "microsoft_ads_campaign_performance_daily_report_data", "checksum": {"name": "sha256", "checksum": "d8dd92f23ecc97f6845e6b06977edfa44f0cc2a255aec5849b19449b6f294b57"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "account_id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "ad_id": "bigint", "keyword_id": "bigint", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}}, "created_at": 1734462182.060491, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_campaign_performance_daily_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "google_ads_ad_group_criterion_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_ad_group_criterion_history_data.csv", "original_file_path": "seeds/google_ads_ad_group_criterion_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data", "fqn": ["ad_reporting_integration_tests", "google_ads_ad_group_criterion_history_data"], "alias": "google_ads_ad_group_criterion_history_data", "checksum": {"name": "sha256", "checksum": "ba922f14e5ead32ec131a2d000bede63d45f504b6c27fc84534b4bf56fc019f2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "bigint", "ad_id": "bigint", "campaign_id": "bigint", "id": "bigint", "base_campaign_id": "bigint", "base_ad_group_id": "bigint", "ad_group_id": "bigint", "ad_group_criterion_criterion_id": "bigint", "base_adgroup_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"customer_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_criterion_criterion_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "base_adgroup_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.0618792, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_ad_group_criterion_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "amazon_ads_portfolio_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_portfolio_history_data.csv", "original_file_path": "seeds/amazon_ads_portfolio_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_portfolio_history_data"], "alias": "amazon_ads_portfolio_history_data", "checksum": {"name": "sha256", "checksum": "f35ce3ea8cd6309e50535134b9375861995eb6cda4e215efc0b170cae03a3eee"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.063188, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_portfolio_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_ad_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "apple_search_ad_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_ad_report_data.csv", "original_file_path": "seeds/apple_search_ad_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_report_data", "fqn": ["ad_reporting_integration_tests", "apple_search_ad_report_data"], "alias": "apple_search_ad_report_data", "checksum": {"name": "sha256", "checksum": "cec2ecc4c7e91cf19165a1e29734c42255fd997ade35f03a22609aac5fa8e5f3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.064415, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_ad_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "amazon_ads_keyword_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "amazon_ads_keyword_history_data.csv", "original_file_path": "seeds/amazon_ads_keyword_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data", "fqn": ["ad_reporting_integration_tests", "amazon_ads_keyword_history_data"], "alias": "amazon_ads_keyword_history_data", "checksum": {"name": "sha256", "checksum": "a76f88aeb6ebf78cec10fe06d07479eace29a79b9afa52b3278e32f65964dc33"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.065643, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_keyword_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_campaign_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "reddit_ads_campaign_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_campaign_report_data.csv", "original_file_path": "seeds/reddit_ads_campaign_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_campaign_report_data", "fqn": ["ad_reporting_integration_tests", "reddit_ads_campaign_report_data"], "alias": "reddit_ads_campaign_report_data", "checksum": {"name": "sha256", "checksum": "73d181faba6c8451dcb1b7cc04f028642990fd68fbd13c2e84f952f0fa1b424e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"account_id": "bigint", "campaign_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.066955, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_campaign_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_account_stats_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "google_ads_account_stats_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "google_ads_account_stats_data.csv", "original_file_path": "seeds/google_ads_account_stats_data.csv", "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_stats_data", "fqn": ["ad_reporting_integration_tests", "google_ads_account_stats_data"], "alias": "google_ads_account_stats_data", "checksum": {"name": "sha256", "checksum": "d6b21f0858465ed0937e45a56e864fa023280d4e9a343e3e8442764386717ff7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.068228, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_account_stats_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_advertiser_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "pinterest_advertiser_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_advertiser_history_data.csv", "original_file_path": "seeds/pinterest_advertiser_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_advertiser_history_data", "fqn": ["ad_reporting_integration_tests", "pinterest_advertiser_history_data"], "alias": "pinterest_advertiser_history_data", "checksum": {"name": "sha256", "checksum": "d301cef7c69c7e1571a0df75ddbd36147977d804380dbbb528a8db432c9e7e5b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "ad_account_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.069547, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_advertiser_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "snapchat_creative_url_tag_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "snapchat_creative_url_tag_history_data.csv", "original_file_path": "seeds/snapchat_creative_url_tag_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data", "fqn": ["ad_reporting_integration_tests", "snapchat_creative_url_tag_history_data"], "alias": "snapchat_creative_url_tag_history_data", "checksum": {"name": "sha256", "checksum": "c5e8dbafad038e142209d2145532d5d5e762922bf4fe44535901b46cd9797dcc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.070858, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_creative_url_tag_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "tiktok_campaign_report_hourly_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "tiktok_campaign_report_hourly_data.csv", "original_file_path": "seeds/tiktok_campaign_report_hourly_data.csv", "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data", "fqn": ["ad_reporting_integration_tests", "tiktok_campaign_report_hourly_data"], "alias": "tiktok_campaign_report_hourly_data", "checksum": {"name": "sha256", "checksum": "baf505833c34b186203e988860c5a68c06d3a8d45379b10136bb3d08cec107bc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.072126, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"tiktok_campaign_report_hourly_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "microsoft_ads_campaign_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_campaign_history_data.csv", "original_file_path": "seeds/microsoft_ads_campaign_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_campaign_history_data"], "alias": "microsoft_ads_campaign_history_data", "checksum": {"name": "sha256", "checksum": "b713e54ffdbc25d2260c83c5a17eb48d98bde788bcdb5b62defa9cca936cb552"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.0733619, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_campaign_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_ad_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "reddit_ads_ad_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_ad_report_data.csv", "original_file_path": "seeds/reddit_ads_ad_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_report_data", "fqn": ["ad_reporting_integration_tests", "reddit_ads_ad_report_data"], "alias": "reddit_ads_ad_report_data", "checksum": {"name": "sha256", "checksum": "14c3bf5b4e2b66f5971ba77839d88bdabbef2a61b57a373335303973d27d5d33"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"ad_id": "bigint", "account_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.074642, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_pin_promotion_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "pinterest_pin_promotion_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "pinterest_pin_promotion_report_data.csv", "original_file_path": "seeds/pinterest_pin_promotion_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.pinterest_pin_promotion_report_data", "fqn": ["ad_reporting_integration_tests", "pinterest_pin_promotion_report_data"], "alias": "pinterest_pin_promotion_report_data", "checksum": {"name": "sha256", "checksum": "d38f800761cda64662a51255e2c98a4c0dffa9ace704960d44d666aead38cdf1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "ad_account_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.075999, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_pin_promotion_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_account_conversions": {"database": "postgres", "schema": "zz_ad_reporting", "name": "reddit_ads_account_conversions", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "reddit_ads_account_conversions.csv", "original_file_path": "seeds/reddit_ads_account_conversions.csv", "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_account_conversions", "fqn": ["ad_reporting_integration_tests", "reddit_ads_account_conversions"], "alias": "reddit_ads_account_conversions", "checksum": {"name": "sha256", "checksum": "4eb70e9496b0dcf31186020f33f9d19c67576af11b0e6c46300ffa2dde4e286a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.0772932, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_account_conversions\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "apple_search_ad_group_report_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_ad_group_report_data.csv", "original_file_path": "seeds/apple_search_ad_group_report_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data", "fqn": ["ad_reporting_integration_tests", "apple_search_ad_group_report_data"], "alias": "apple_search_ad_group_report_data", "checksum": {"name": "sha256", "checksum": "135ee77ac9c3aa146d4f0281b04312c1034c271276f215b27145bb99f83534f5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.07856, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_ad_group_report_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "microsoft_ads_ad_group_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "microsoft_ads_ad_group_history_data.csv", "original_file_path": "seeds/microsoft_ads_ad_group_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data", "fqn": ["ad_reporting_integration_tests", "microsoft_ads_ad_group_history_data"], "alias": "microsoft_ads_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "4abd621bb94190bc111a86b471c7cde3b75308f0eee84a0c62fcdeb53bc54d9e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "campaign_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1734462182.079822, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_ad_group_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_ad_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "apple_search_ad_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "apple_search_ad_history_data.csv", "original_file_path": "seeds/apple_search_ad_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_history_data", "fqn": ["ad_reporting_integration_tests", "apple_search_ad_history_data"], "alias": "apple_search_ad_history_data", "checksum": {"name": "sha256", "checksum": "e9e1a65339d24d616ce16ea8ee3cc902473a1b5048789ad338c4ba6ca57fe8e0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"creation_time": "timestamp", "modification_time": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}", "column_types": {"creation_time": "timestamp", "modification_time": "timestamp"}}, "created_at": 1734462182.081141, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_ad_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data": {"database": "postgres", "schema": "zz_ad_reporting", "name": "tiktok_adgroup_history_data", "resource_type": "seed", "package_name": "ad_reporting_integration_tests", "path": "tiktok_adgroup_history_data.csv", "original_file_path": "seeds/tiktok_adgroup_history_data.csv", "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data", "fqn": ["ad_reporting_integration_tests", "tiktok_adgroup_history_data"], "alias": "tiktok_adgroup_history_data", "checksum": {"name": "sha256", "checksum": "639ab801e23bda0eab7fc62a605781f2f926f1ef2bd935f12af67e56d9ffeb89"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": false}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift') else false }}"}, "created_at": 1734462182.0824, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"tiktok_adgroup_history_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "depends_on": {"macros": []}}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__account_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__account_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__account_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__account_daily_report"], "alias": "stg_microsoft_ads__account_daily_report", "checksum": {"name": "sha256", "checksum": "4a7438046c73940c8fc2f73a01712fd7e1182450d70242e17fa6b13ad83b11d1"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance by account and all non-metric columns.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.278486, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_daily_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__account_daily_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__account_daily_report_tmp')),\n staging_columns=get_account_daily_report_columns()\n )\n }}\n\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n device_os,\n device_type,\n network,\n currency_code, \n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as {{ dbt.type_int() }}), cast(conversions as {{ dbt.type_int() }})), 0) as conversions,\n coalesce(cast(revenue as {{ dbt.type_float() }}), 0) as conversions_value,\n coalesce(cast(all_conversions_qualified as {{ dbt.type_int() }}), 0) as all_conversions \n -- this report does not have an all_revenue or an all_conversions field\n\n {{ microsoft_ads_fill_pass_through_columns(pass_through_fields=var('microsoft_ads__account_passthrough_metrics'), except=['conversions', 'conversions_value', 'all_conversions']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__account_daily_report_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_daily_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_account_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_int", "macro.dbt.type_float", "macro.microsoft_ads_source.microsoft_ads_fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__account_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_daily_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_distribution\n \n as \n \n ad_distribution\n \n, \n \n \n bid_match_type\n \n as \n \n bid_match_type\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n delivered_match_type\n \n as \n \n delivered_match_type\n \n, \n \n \n device_os\n \n as \n \n device_os\n \n, \n \n \n device_type\n \n as \n \n device_type\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n network\n \n as \n \n network\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n top_vs_other\n \n as \n \n top_vs_other\n \n, \n \n \n conversions_qualified\n \n as \n \n conversions_qualified\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n revenue\n \n as \n \n revenue\n \n, \n \n \n all_conversions_qualified\n \n as \n \n all_conversions_qualified\n \n\n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n device_os,\n device_type,\n network,\n currency_code, \n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as integer), cast(conversions as integer)), 0) as conversions,\n coalesce(cast(revenue as float), 0) as conversions_value,\n coalesce(cast(all_conversions_qualified as integer), 0) as all_conversions \n -- this report does not have an all_revenue or an all_conversions field\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__search_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__search_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__search_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__search_daily_report"], "alias": "stg_microsoft_ads__search_daily_report", "checksum": {"name": "sha256", "checksum": "011dc208500160fa3388fe5afd4b888bdddeffbdc7e088767bf1bea1f58f6ffc"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad, keyword and all non-metric columns.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_query": {"name": "search_query", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.287924, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__search_daily_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__search_daily_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__search_daily_report_tmp')),\n staging_columns=get_search_daily_report_columns()\n )\n }}\n\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n ad_group_id,\n ad_id,\n keyword_id,\n search_query,\n device_os,\n device_type,\n network,\n language,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as {{ dbt.type_int() }}), cast(conversions as {{ dbt.type_int() }})), 0) as conversions,\n coalesce(cast(revenue as {{ dbt.type_float() }}), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as {{ dbt.type_int() }}), cast(all_conversions as {{ dbt.type_int() }})), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as {{ dbt.type_string() }}), ',', '') as {{ dbt.type_float() }}), 0) as all_conversions_value\n\n {{ microsoft_ads_fill_pass_through_columns(pass_through_fields=var('microsoft_ads__search_passthrough_metrics'), except=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__search_daily_report_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__search_daily_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_search_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string", "macro.microsoft_ads_source.microsoft_ads_fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__search_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__search_daily_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n bid_match_type\n \n as \n \n bid_match_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n delivered_match_type\n \n as \n \n delivered_match_type\n \n, \n \n \n device_os\n \n as \n \n device_os\n \n, \n \n \n device_type\n \n as \n \n device_type\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n keyword_id\n \n as \n \n keyword_id\n \n, \n \n \n language\n \n as \n \n language\n \n, \n \n \n network\n \n as \n \n network\n \n, \n \n \n search_query\n \n as \n \n search_query\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n top_vs_other\n \n as \n \n top_vs_other\n \n, \n \n \n conversions_qualified\n \n as \n \n conversions_qualified\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n revenue\n \n as \n \n revenue\n \n, \n \n \n all_conversions\n \n as \n \n all_conversions\n \n, \n \n \n all_conversions_qualified\n \n as \n \n all_conversions_qualified\n \n, \n \n \n all_revenue\n \n as \n \n all_revenue\n \n\n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n ad_group_id,\n ad_id,\n keyword_id,\n search_query,\n device_os,\n device_type,\n network,\n language,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as integer), cast(conversions as integer)), 0) as conversions,\n coalesce(cast(revenue as float), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as integer), cast(all_conversions as integer)), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as TEXT), ',', '') as float), 0) as all_conversions_value\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__keyword_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__keyword_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__keyword_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__keyword_daily_report"], "alias": "stg_microsoft_ads__keyword_daily_report", "checksum": {"name": "sha256", "checksum": "2ff9d4f7f2cfca6d0a99dd0342fac5fdf7aba8adeb76461bec6e9ecb113a6c77"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad, keyword and all non-metric columns.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.286819, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__keyword_daily_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__keyword_daily_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__keyword_daily_report_tmp')),\n staging_columns=get_keyword_daily_report_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n ad_group_id,\n ad_id,\n keyword_id,\n currency_code,\n device_os,\n device_type,\n network,\n language,\n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as {{ dbt.type_int() }}), cast(conversions as {{ dbt.type_int() }})), 0) as conversions,\n coalesce(cast(revenue as {{ dbt.type_float() }}), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as {{ dbt.type_int() }}), cast(all_conversions as {{ dbt.type_int() }})), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as {{ dbt.type_string() }}), ',', '') as {{ dbt.type_float() }}), 0) as all_conversions_value\n\n {{ microsoft_ads_fill_pass_through_columns(pass_through_fields=var('microsoft_ads__keyword_passthrough_metrics'), except=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }}\n \n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__keyword_daily_report_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__keyword_daily_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_keyword_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string", "macro.microsoft_ads_source.microsoft_ads_fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__keyword_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__keyword_daily_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_distribution\n \n as \n \n ad_distribution\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n bid_match_type\n \n as \n \n bid_match_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n delivered_match_type\n \n as \n \n delivered_match_type\n \n, \n \n \n device_os\n \n as \n \n device_os\n \n, \n \n \n device_type\n \n as \n \n device_type\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n keyword_id\n \n as \n \n keyword_id\n \n, \n \n \n language\n \n as \n \n language\n \n, \n \n \n network\n \n as \n \n network\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n top_vs_other\n \n as \n \n top_vs_other\n \n, \n \n \n conversions_qualified\n \n as \n \n conversions_qualified\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n revenue\n \n as \n \n revenue\n \n, \n \n \n all_conversions\n \n as \n \n all_conversions\n \n, \n \n \n all_conversions_qualified\n \n as \n \n all_conversions_qualified\n \n, \n \n \n all_revenue\n \n as \n \n all_revenue\n \n\n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n ad_group_id,\n ad_id,\n keyword_id,\n currency_code,\n device_os,\n device_type,\n network,\n language,\n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as integer), cast(conversions as integer)), 0) as conversions,\n coalesce(cast(revenue as float), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as integer), cast(all_conversions as integer)), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as TEXT), ',', '') as float), 0) as all_conversions_value\n\n \n\n\n\n\n \n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__campaign_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__campaign_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__campaign_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__campaign_daily_report"], "alias": "stg_microsoft_ads__campaign_daily_report", "checksum": {"name": "sha256", "checksum": "d4b969c827ea86ff39d2ded571f12ad17eb785a8ba28fcb2892e7c6d19c5d3c2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance by account, campaign and all non-metric columns.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_association_status": {"name": "budget_association_status", "description": "Indicates whether or not the campaign is currently spending from the budget mentioned in the BudgetName column. The possible values are `Current` and `Ended`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_name": {"name": "budget_name", "description": "The name of the budget. This column will be empty for unshared budgets.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_status": {"name": "budget_status", "description": "The budget status. The possible values are `Active` and `Deleted`. This column will be empty for unshared budgets.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.2847948, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__campaign_daily_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__campaign_daily_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__campaign_daily_report_tmp')),\n staging_columns=get_campaign_daily_report_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n currency_code,\n device_os,\n device_type,\n network,\n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n budget_association_status,\n budget_name,\n budget_status,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as {{ dbt.type_int() }}), cast(conversions as {{ dbt.type_int() }})), 0) as conversions,\n coalesce(cast(revenue as {{ dbt.type_float() }}), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as {{ dbt.type_int() }}), cast(all_conversions as {{ dbt.type_int() }})), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as {{ dbt.type_string() }}), ',', '') as {{ dbt.type_float() }}), 0) as all_conversions_value\n\n {{ microsoft_ads_fill_pass_through_columns(pass_through_fields=var('microsoft_ads__campaign_passthrough_metrics'), except=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__campaign_daily_report_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__campaign_daily_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_campaign_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string", "macro.microsoft_ads_source.microsoft_ads_fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__campaign_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__campaign_daily_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_distribution\n \n as \n \n ad_distribution\n \n, \n \n \n bid_match_type\n \n as \n \n bid_match_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n delivered_match_type\n \n as \n \n delivered_match_type\n \n, \n \n \n device_os\n \n as \n \n device_os\n \n, \n \n \n device_type\n \n as \n \n device_type\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n network\n \n as \n \n network\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n top_vs_other\n \n as \n \n top_vs_other\n \n, \n \n \n budget_association_status\n \n as \n \n budget_association_status\n \n, \n \n \n budget_name\n \n as \n \n budget_name\n \n, \n cast(null as TEXT) as \n \n budget_status\n \n , \n \n \n conversions_qualified\n \n as \n \n conversions_qualified\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n revenue\n \n as \n \n revenue\n \n, \n \n \n all_conversions\n \n as \n \n all_conversions\n \n, \n \n \n all_conversions_qualified\n \n as \n \n all_conversions_qualified\n \n, \n \n \n all_revenue\n \n as \n \n all_revenue\n \n\n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n currency_code,\n device_os,\n device_type,\n network,\n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n budget_association_status,\n budget_name,\n budget_status,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as integer), cast(conversions as integer)), 0) as conversions,\n coalesce(cast(revenue as float), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as integer), cast(all_conversions as integer)), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as TEXT), ',', '') as float), 0) as all_conversions_value\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__keyword_history", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__keyword_history.sql", "original_file_path": "models/stg_microsoft_ads__keyword_history.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__keyword_history"], "alias": "stg_microsoft_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "1b41ee13cb41d4f43f8865259f69dfc0a7d054f31350eb97dc57184e1840792b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a version of one or more Microsoft keywords.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_name": {"name": "keyword_name", "description": "The keyword(s) associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "The match type associated with this record; values contain but may not be limited to 'Broad', 'Exact', 'Phrase'. Please refer to Microsoft Ad's [documentation](https://help.ads.microsoft.com/#apex/ads/en/50822/1).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of this keyword; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/keywordstatus?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.2857358, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__keyword_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__keyword_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__keyword_history_tmp')),\n staging_columns=get_keyword_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as keyword_id,\n name as keyword_name,\n modified_time as modified_at,\n ad_group_id,\n match_type,\n status,\n row_number() over (partition by source_relation, id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__keyword_history_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__keyword_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_keyword_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__keyword_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__keyword_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n modified_time\n \n as \n \n modified_time\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n match_type\n \n as \n \n match_type\n \n, \n \n \n status\n \n as \n \n status\n \n\n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as keyword_id,\n name as keyword_name,\n modified_time as modified_at,\n ad_group_id,\n match_type,\n status,\n row_number() over (partition by source_relation, id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__ad_group_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__ad_group_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__ad_group_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_group_daily_report"], "alias": "stg_microsoft_ads__ad_group_daily_report", "checksum": {"name": "sha256", "checksum": "738115b30fed1e209f0844fd17a0c2e2cc80754f800a4104dcdc092b0d3794dd"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance by account, campaign, ad group and all non-metric columns.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.280677, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_group_daily_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__ad_group_daily_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__ad_group_daily_report_tmp')),\n staging_columns=get_ad_group_daily_report_columns()\n )\n }}\n\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n ad_group_id,\n currency_code,\n device_os,\n device_type,\n network,\n language,\n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as {{ dbt.type_int() }}), cast(conversions as {{ dbt.type_int() }})), 0) as conversions,\n coalesce(cast(revenue as {{ dbt.type_float() }}), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as {{ dbt.type_int() }}), cast(all_conversions as {{ dbt.type_int() }})), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as {{ dbt.type_string() }}), ',', '') as {{ dbt.type_float() }}), 0) as all_conversions_value\n\n {{ microsoft_ads_fill_pass_through_columns(pass_through_fields=var('microsoft_ads__ad_group_passthrough_metrics'), except=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_group_daily_report_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_group_daily_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_ad_group_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string", "macro.microsoft_ads_source.microsoft_ads_fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_group_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_group_daily_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_distribution\n \n as \n \n ad_distribution\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n bid_match_type\n \n as \n \n bid_match_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n delivered_match_type\n \n as \n \n delivered_match_type\n \n, \n \n \n device_os\n \n as \n \n device_os\n \n, \n \n \n device_type\n \n as \n \n device_type\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n language\n \n as \n \n language\n \n, \n \n \n network\n \n as \n \n network\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n top_vs_other\n \n as \n \n top_vs_other\n \n, \n \n \n conversions_qualified\n \n as \n \n conversions_qualified\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n revenue\n \n as \n \n revenue\n \n, \n \n \n all_conversions\n \n as \n \n all_conversions\n \n, \n \n \n all_conversions_qualified\n \n as \n \n all_conversions_qualified\n \n, \n \n \n all_revenue\n \n as \n \n all_revenue\n \n\n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n ad_group_id,\n currency_code,\n device_os,\n device_type,\n network,\n language,\n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as integer), cast(conversions as integer)), 0) as conversions,\n coalesce(cast(revenue as float), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as integer), cast(all_conversions as integer)), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as TEXT), ',', '') as float), 0) as all_conversions_value\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__ad_group_history", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__ad_group_history.sql", "original_file_path": "models/stg_microsoft_ads__ad_group_history.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_group_history"], "alias": "stg_microsoft_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "522dc7275a382654d9a32a61c5bb344b1ff07437c7e99118430a1578d539a39e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a version of one or more Microsoft ad groups.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The date in which an ad group starts running.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The date in which this ad group will no longer run.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of this ad group; see the following [documentation](https://help.ads.microsoft.com/apex/index/3/en/53094) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.279453, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_group_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__ad_group_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__ad_group_history_tmp')),\n staging_columns=get_ad_group_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_group_id,\n name as ad_group_name,\n campaign_id,\n modified_time as modified_at,\n start_date,\n end_date,\n status,\n row_number() over (partition by source_relation, id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_group_history_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_group_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_group_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n modified_time\n \n as \n \n modified_time\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n status\n \n as \n \n status\n \n\n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_group_id,\n name as ad_group_name,\n campaign_id,\n modified_time as modified_at,\n start_date,\n end_date,\n status,\n row_number() over (partition by source_relation, id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__ad_history", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__ad_history.sql", "original_file_path": "models/stg_microsoft_ads__ad_history.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_history"], "alias": "stg_microsoft_ads__ad_history", "checksum": {"name": "sha256", "checksum": "e5426f0499f23a3271624b79d87fd3535cd21c20517a873e75f1956ab4a70bd4"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a version of one or more Microsoft ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the corresponding ad; `title_part_1` is used as the ad name as a proxy as one is not provided by the data source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "final_url": {"name": "final_url", "description": "The full URL that the ad links to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of this ad; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/adstatus?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The ad type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/adtype?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.2816482, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__ad_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__ad_history_tmp')),\n staging_columns=get_ad_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_id,\n title_part_1 as ad_name,\n final_url,\n ad_group_id,\n modified_time as modified_at,\n status,\n type,\n row_number() over (partition by source_relation, id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_history_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n title_part_1\n \n as \n \n title_part_1\n \n, \n \n \n final_url\n \n as \n \n final_url\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n modified_time\n \n as \n \n modified_time\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_id,\n title_part_1 as ad_name,\n final_url,\n ad_group_id,\n modified_time as modified_at,\n status,\n type,\n row_number() over (partition by source_relation, id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__ad_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__ad_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__ad_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_daily_report"], "alias": "stg_microsoft_ads__ad_daily_report", "checksum": {"name": "sha256", "checksum": "27e176700147c6e8e180632c13babf7051e5b1081c2c1e5ceb002648116514c0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad and all non-metric columns.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.282711, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_daily_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__ad_daily_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__ad_daily_report_tmp')),\n staging_columns=get_ad_daily_report_columns()\n )\n }}\n\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n ad_group_id,\n ad_id,\n currency_code,\n device_os,\n device_type,\n network,\n language,\n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as {{ dbt.type_int() }}), cast(conversions as {{ dbt.type_int() }})), 0) as conversions,\n coalesce(cast(revenue as {{ dbt.type_float() }}), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as {{ dbt.type_int() }}), cast(all_conversions as {{ dbt.type_int() }})), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as {{ dbt.type_string() }}), ',', '') as {{ dbt.type_float() }}), 0) as all_conversions_value\n\n {{ microsoft_ads_fill_pass_through_columns(pass_through_fields=var('microsoft_ads__ad_passthrough_metrics'), except=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_daily_report_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_daily_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_ad_daily_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string", "macro.microsoft_ads_source.microsoft_ads_fill_pass_through_columns"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_daily_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_distribution\n \n as \n \n ad_distribution\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n bid_match_type\n \n as \n \n bid_match_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n delivered_match_type\n \n as \n \n delivered_match_type\n \n, \n \n \n device_os\n \n as \n \n device_os\n \n, \n \n \n device_type\n \n as \n \n device_type\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n language\n \n as \n \n language\n \n, \n \n \n network\n \n as \n \n network\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n top_vs_other\n \n as \n \n top_vs_other\n \n, \n \n \n conversions_qualified\n \n as \n \n conversions_qualified\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n revenue\n \n as \n \n revenue\n \n, \n \n \n all_conversions\n \n as \n \n all_conversions\n \n, \n \n \n all_conversions_qualified\n \n as \n \n all_conversions_qualified\n \n, \n \n \n all_revenue\n \n as \n \n all_revenue\n \n\n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n account_id,\n campaign_id,\n ad_group_id,\n ad_id,\n currency_code,\n device_os,\n device_type,\n network,\n language,\n ad_distribution,\n bid_match_type,\n delivered_match_type,\n top_vs_other,\n coalesce(clicks, 0) as clicks, \n coalesce(impressions, 0) as impressions,\n coalesce(spend, 0) as spend,\n coalesce(coalesce(cast(conversions_qualified as integer), cast(conversions as integer)), 0) as conversions,\n coalesce(cast(revenue as float), 0) as conversions_value,\n coalesce(coalesce(cast(all_conversions_qualified as integer), cast(all_conversions as integer)), 0) as all_conversions,\n -- sometimes this field comes in as a string\n coalesce(cast(replace(cast(all_revenue as TEXT), ',', '') as float), 0) as all_conversions_value\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__account_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__account_history", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__account_history.sql", "original_file_path": "models/stg_microsoft_ads__account_history.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__account_history"], "alias": "stg_microsoft_ads__account_history", "checksum": {"name": "sha256", "checksum": "a4c82fe874592f0a94ef610e065f28e0bdc08014e5be80ed4b006839a2f81f4c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a version of one or more Microsoft accounts.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.276478, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__account_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__account_history_tmp')),\n staging_columns=get_account_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as account_id,\n name as account_name,\n last_modified_time as modified_at,\n time_zone,\n currency_code,\n row_number() over (partition by source_relation, id order by last_modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__account_history_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__account_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n last_modified_time\n \n as \n \n last_modified_time\n \n, \n \n \n time_zone\n \n as \n \n time_zone\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n\n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as account_id,\n name as account_name,\n last_modified_time as modified_at,\n time_zone,\n currency_code,\n row_number() over (partition by source_relation, id order by last_modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__campaign_history", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__campaign_history.sql", "original_file_path": "models/stg_microsoft_ads__campaign_history.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__campaign_history"], "alias": "stg_microsoft_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "c8c1c422bc1f13e466d3bd4883776fd1f58357cafd190ac9bc789477b7a10bf0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a version of one or more Microsoft campaigns.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The campaign type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaigntype?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of this campaign; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaignstatus?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads_source://models/stg_microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.283689, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__campaign_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_microsoft_ads__campaign_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_microsoft_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='microsoft_ads_union_schemas', \n union_database_variable='microsoft_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as campaign_id,\n name as campaign_name,\n account_id,\n modified_time as modified_at,\n type,\n time_zone,\n status,\n row_number() over (partition by source_relation, id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_microsoft_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_microsoft_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__campaign_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n modified_time\n \n as \n \n modified_time\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n time_zone\n \n as \n \n time_zone\n \n, \n \n \n status\n \n as \n \n status\n \n\n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as campaign_id,\n name as campaign_name,\n account_id,\n modified_time as modified_at,\n type,\n time_zone,\n status,\n row_number() over (partition by source_relation, id order by modified_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__search_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__search_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__search_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__search_daily_report_tmp"], "alias": "stg_microsoft_ads__search_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "8f27e7884d86a03eb7ec2e1d7f8a378eda6a48e57d081cca828b1002debb1bc5"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.3095648, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__search_daily_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='search_query_performance_daily_report', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='search_query_performance_daily_report',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "search_query_performance_daily_report"], ["microsoft_ads", "search_query_performance_daily_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__search_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"microsoft_ads_search_performance_daily_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__ad_group_history_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_group_history_tmp"], "alias": "stg_microsoft_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "b905cec7651ee727a417649b9aaea92a03f66a52d40f8b94578560f0aafdea8a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.3282921, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_group_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_history', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='ad_group_history',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "ad_group_history"], ["microsoft_ads", "ad_group_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_group_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"microsoft_ads_ad_group_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__campaign_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__campaign_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__campaign_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__campaign_daily_report_tmp"], "alias": "stg_microsoft_ads__campaign_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "edc77058afb2077fa307bf5329cbcb91f6576e9086179311461d29a9f5692685"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.3324218, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__campaign_daily_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_performance_daily_report', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='campaign_performance_daily_report',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "campaign_performance_daily_report"], ["microsoft_ads", "campaign_performance_daily_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__campaign_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"microsoft_ads_campaign_performance_daily_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__ad_history_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__ad_history_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_history_tmp"], "alias": "stg_microsoft_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "112b59bf099851182216bee8068b9c46db94f23a34d346b35adbbe68c4f27125"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.33656, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_history', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='ad_history',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "ad_history"], ["microsoft_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"microsoft_ads_ad_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__account_history_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__account_history_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__account_history_tmp"], "alias": "stg_microsoft_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "e4a541bca0e1a5818bea2f2e2a18f6870e9038d01abf498c46b4429c063a9c32"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.372319, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_history', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='account_history',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "account_history"], ["microsoft_ads", "account_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.account_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__account_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"microsoft_ads_account_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__ad_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__ad_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__ad_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_daily_report_tmp"], "alias": "stg_microsoft_ads__ad_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "a98acb9f5a96358e8acd938475360474ca2feb6e80011b258bf883f58eac9874"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.376588, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_daily_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_performance_daily_report', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='ad_performance_daily_report',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "ad_performance_daily_report"], ["microsoft_ads", "ad_performance_daily_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"microsoft_ads_ad_performance_daily_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__ad_group_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__ad_group_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__ad_group_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_group_daily_report_tmp"], "alias": "stg_microsoft_ads__ad_group_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "20f2de80c669c0939efd8b8b5d09d3616401124cfa3f0ab770c0542f2bae5c46"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.380693, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_group_daily_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_performance_daily_report', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='ad_group_performance_daily_report',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "ad_group_performance_daily_report"], ["microsoft_ads", "ad_group_performance_daily_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_group_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"microsoft_ads_ad_group_performance_daily_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__keyword_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__keyword_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__keyword_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__keyword_daily_report_tmp"], "alias": "stg_microsoft_ads__keyword_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "6da7982b6783028d2d89332042f9ebd4137ac07544fd9f8d539864713d80f242"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.384793, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__keyword_daily_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='keyword_performance_daily_report', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='keyword_performance_daily_report',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "keyword_performance_daily_report"], ["microsoft_ads", "keyword_performance_daily_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__keyword_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"microsoft_ads_keyword_performance_daily_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__keyword_history_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__keyword_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__keyword_history_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__keyword_history_tmp"], "alias": "stg_microsoft_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "784b760534fc1e06b9dc0ea24b2dfccf9a5e182ae9459f749765aa8680b882cc"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.3896692, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__keyword_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='keyword_history', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='keyword_history',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "keyword_history"], ["microsoft_ads", "keyword_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.keyword_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__keyword_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"microsoft_ads_keyword_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__campaign_history_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__campaign_history_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__campaign_history_tmp"], "alias": "stg_microsoft_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "2e3d5a3532a6e00dc2bd9a81d57c5f307969cbb012bdf9a925cde76c1b625dbc"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.3937862, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__campaign_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='campaign_history',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "campaign_history"], ["microsoft_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.campaign_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"microsoft_ads_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_microsoft_ads__account_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__account_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__account_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__account_daily_report_tmp"], "alias": "stg_microsoft_ads__account_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "621b94d4a5611282d036759accd3863ed4efaaf67596939dc98c5a8e7cec9425"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.397917, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_daily_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_performance_daily_report', \n database_variable='microsoft_ads_database', \n schema_variable='microsoft_ads_schema', \n default_database=target.database,\n default_schema='microsoft_ads',\n default_variable='account_performance_daily_report',\n union_schema_variable='microsoft_ads_union_schemas',\n union_database_variable='microsoft_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["microsoft_ads", "account_performance_daily_report"], ["microsoft_ads", "account_performance_daily_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.microsoft_ads_source.microsoft_ads.account_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__account_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"microsoft_ads_account_performance_daily_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads.tiktok_ads__ad_group_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "tiktok_ads__ad_group_report", "resource_type": "model", "package_name": "tiktok_ads", "path": "tiktok_ads__ad_group_report.sql", "original_file_path": "models/tiktok_ads__ad_group_report.sql", "unique_id": "model.tiktok_ads.tiktok_ads__ad_group_report", "fqn": ["tiktok_ads", "tiktok_ads__ad_group_report"], "alias": "tiktok_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "8ffa6a17cc576c9b7668dbf3e9c716419e1cef365164d456190531fadd3134aa"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the ad group level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Day of record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget": {"name": "budget", "description": "Ad budget. Returns 0.0 when Campaign Budget Optimization (budget_optimize_switch) is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversion_value": {"name": "total_conversion_value", "description": "The accumulated value of `total_purchase_value` and `total_sales_lead_value`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpm": {"name": "daily_cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_ctr": {"name": "daily_ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.382218, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__ad_group_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith hourly as (\n \n select *\n from {{ var('ad_group_report_hourly') }}\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from {{ var('advertiser') }}\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record\n), \n\naggregated as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n ad_groups.advertiser_id,\n advertiser.advertiser_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n hourly.ad_group_id,\n ad_groups.ad_group_name,\n advertiser.currency, \n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n sum(hourly.impressions) as impressions,\n sum(hourly.clicks) as clicks,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s,\n sum(hourly.video_watched_6_s) as video_watched_6_s,\n sum(hourly.video_views_p_25) as video_views_p_25,\n sum(hourly.video_views_p_50) as video_views_p_50, \n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value, \n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value, \n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n \n {{ tiktok_ads_persist_pass_through_columns(pass_through_variable='tiktok_ads__ad_group_hourly_passthrough_metrics', identifier='hourly', transform='sum', coalesce_with=0, exclude_fields=['real_time_conversion','total_purchase_value','total_sales_lead_value']) }} \n\n from hourly\n left join ad_groups \n on hourly.ad_group_id = ad_groups.ad_group_id\n and hourly.source_relation = ad_groups.source_relation\n left join advertiser\n on ad_groups.advertiser_id = advertiser.advertiser_id\n and ad_groups.source_relation = advertiser.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n {{ dbt_utils.group_by(13) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_group_report_hourly", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_tiktok_ads__advertiser", "package": null, "version": null}, {"name": "stg_tiktok_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads.tiktok_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_group_report_hourly\"\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_group_history\"\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__advertiser\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__campaign_history\"\n where is_most_recent_record\n), \n\naggregated as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n ad_groups.advertiser_id,\n advertiser.advertiser_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n hourly.ad_group_id,\n ad_groups.ad_group_name,\n advertiser.currency, \n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n sum(hourly.impressions) as impressions,\n sum(hourly.clicks) as clicks,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s,\n sum(hourly.video_watched_6_s) as video_watched_6_s,\n sum(hourly.video_views_p_25) as video_views_p_25,\n sum(hourly.video_views_p_50) as video_views_p_50, \n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value, \n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value, \n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n \n \n\n\n\n \n\n from hourly\n left join ad_groups \n on hourly.ad_group_id = ad_groups.ad_group_id\n and hourly.source_relation = ad_groups.source_relation\n left join advertiser\n on ad_groups.advertiser_id = advertiser.advertiser_id\n and ad_groups.source_relation = advertiser.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads.tiktok_ads__url_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "tiktok_ads__url_report", "resource_type": "model", "package_name": "tiktok_ads", "path": "tiktok_ads__url_report.sql", "original_file_path": "models/tiktok_ads__url_report.sql", "unique_id": "model.tiktok_ads.tiktok_ads__url_report", "fqn": ["tiktok_ads", "tiktok_ads__url_report"], "alias": "tiktok_ads__url_report", "checksum": {"name": "sha256", "checksum": "7c54e99ede66f00d25614a1b314d50870fbd97f50e71e29ae452c5e051713a16"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the URL level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Day of record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget": {"name": "budget", "description": "Ad budget. Returns 0.0 when Campaign Budget Optimization (budget_optimize_switch) is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversion_value": {"name": "total_conversion_value", "description": "The accumulated value of `total_purchase_value` and `total_sales_lead_value`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpm": {"name": "daily_cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_ctr": {"name": "daily_ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.385607, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__url_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith hourly as (\n \n select *\n from {{ var('ad_report_hourly') }}\n), \n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from {{ var('advertiser') }}\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record\n), \n\naggregated as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n ad_groups.advertiser_id,\n advertiser.advertiser_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_groups.ad_group_id,\n ad_groups.ad_group_name,\n hourly.ad_id,\n ads.ad_name,\n ads.base_url,\n ads.url_host,\n ads.url_path,\n ads.utm_source,\n ads.utm_medium,\n ads.utm_campaign,\n ads.utm_content,\n ads.utm_term,\n advertiser.currency,\n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n sum(hourly.impressions) as impressions,\n sum(hourly.clicks) as clicks,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s,\n sum(hourly.video_watched_6_s) as video_watched_6_s,\n sum(hourly.video_views_p_25) as video_views_p_25,\n sum(hourly.video_views_p_50) as video_views_p_50, \n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value,\n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value,\n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n\n {{ tiktok_ads_persist_pass_through_columns(pass_through_variable='tiktok_ads__ad_hourly_passthrough_metrics', identifier='hourly', transform='sum', coalesce_with=0, exclude_fields=['real_time_conversion','total_purchase_value','total_sales_lead_value']) }}\n\n from hourly\n left join ads\n on hourly.ad_id = ads.ad_id\n and hourly.source_relation = ads.source_relation\n left join ad_groups \n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n and ads.source_relation = advertiser.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n -- We are filtering for only ads where url fields are populated.\n where ads.landing_page_url is not null\n {% endif %}\n\n {{ dbt_utils.group_by(23) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_report_hourly", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_history", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_tiktok_ads__advertiser", "package": null, "version": null}, {"name": "stg_tiktok_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads.tiktok_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_report_hourly\"\n), \n\nads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_history\"\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_group_history\"\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__advertiser\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__campaign_history\"\n where is_most_recent_record\n), \n\naggregated as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n ad_groups.advertiser_id,\n advertiser.advertiser_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_groups.ad_group_id,\n ad_groups.ad_group_name,\n hourly.ad_id,\n ads.ad_name,\n ads.base_url,\n ads.url_host,\n ads.url_path,\n ads.utm_source,\n ads.utm_medium,\n ads.utm_campaign,\n ads.utm_content,\n ads.utm_term,\n advertiser.currency,\n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n sum(hourly.impressions) as impressions,\n sum(hourly.clicks) as clicks,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s,\n sum(hourly.video_watched_6_s) as video_watched_6_s,\n sum(hourly.video_views_p_25) as video_views_p_25,\n sum(hourly.video_views_p_50) as video_views_p_50, \n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value,\n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value,\n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n\n \n\n\n\n\n\n from hourly\n left join ads\n on hourly.ad_id = ads.ad_id\n and hourly.source_relation = ads.source_relation\n left join ad_groups \n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n and ads.source_relation = advertiser.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n\n \n -- We are filtering for only ads where url fields are populated.\n where ads.landing_page_url is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads.tiktok_ads__campaign_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "tiktok_ads__campaign_report", "resource_type": "model", "package_name": "tiktok_ads", "path": "tiktok_ads__campaign_report.sql", "original_file_path": "models/tiktok_ads__campaign_report.sql", "unique_id": "model.tiktok_ads.tiktok_ads__campaign_report", "fqn": ["tiktok_ads", "tiktok_ads__campaign_report"], "alias": "tiktok_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "09fd12c2c005686b5c7839c1bda78a0d6f512bb0c37132d60f9a92b07bb5c0de"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the campaign level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Day of record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversion_value": {"name": "total_conversion_value", "description": "The accumulated value of `total_purchase_value` and `total_sales_lead_value`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpm": {"name": "daily_cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_ctr": {"name": "daily_ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.383146, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__campaign_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith hourly as (\n \n select *\n from {{ var('campaign_report_hourly') }}\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from {{ var('advertiser') }}\n), \n\naggregated as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n advertiser.advertiser_id,\n advertiser.advertiser_name,\n hourly.campaign_id,\n campaigns.campaign_name,\n advertiser.currency,\n sum(hourly.impressions) as impressions,\n sum(hourly.clicks) as clicks,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s,\n sum(hourly.video_watched_6_s) as video_watched_6_s,\n sum(hourly.video_views_p_25) as video_views_p_25,\n sum(hourly.video_views_p_50) as video_views_p_50, \n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value,\n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value,\n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n\n {{ tiktok_ads_persist_pass_through_columns(pass_through_variable='tiktok_ads__campaign_hourly_passthrough_metrics', identifier='hourly', transform='sum', coalesce_with=0, exclude_fields=['real_time_conversion','total_purchase_value','total_sales_lead_value']) }} \n\n from hourly\n left join campaigns\n on hourly.campaign_id = campaigns.campaign_id\n and hourly.source_relation = campaigns.source_relation\n left join advertiser\n on campaigns.advertiser_id = advertiser.advertiser_id\n and campaigns.source_relation = advertiser.source_relation\n {{ dbt_utils.group_by(7) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_tiktok_ads__campaign_report_hourly", "package": null, "version": null}, {"name": "stg_tiktok_ads__campaign_history", "package": null, "version": null}, {"name": "stg_tiktok_ads__advertiser", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads.tiktok_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history", "model.tiktok_ads_source.stg_tiktok_ads__advertiser"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__campaign_report_hourly\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__campaign_history\"\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__advertiser\"\n), \n\naggregated as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n advertiser.advertiser_id,\n advertiser.advertiser_name,\n hourly.campaign_id,\n campaigns.campaign_name,\n advertiser.currency,\n sum(hourly.impressions) as impressions,\n sum(hourly.clicks) as clicks,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s,\n sum(hourly.video_watched_6_s) as video_watched_6_s,\n sum(hourly.video_views_p_25) as video_views_p_25,\n sum(hourly.video_views_p_50) as video_views_p_50, \n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value,\n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value,\n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n\n \n\n\n\n \n\n from hourly\n left join campaigns\n on hourly.campaign_id = campaigns.campaign_id\n and hourly.source_relation = campaigns.source_relation\n left join advertiser\n on campaigns.advertiser_id = advertiser.advertiser_id\n and campaigns.source_relation = advertiser.source_relation\n group by 1,2,3,4,5,6,7\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads.tiktok_ads__ad_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "tiktok_ads__ad_report", "resource_type": "model", "package_name": "tiktok_ads", "path": "tiktok_ads__ad_report.sql", "original_file_path": "models/tiktok_ads__ad_report.sql", "unique_id": "model.tiktok_ads.tiktok_ads__ad_report", "fqn": ["tiktok_ads", "tiktok_ads__ad_report"], "alias": "tiktok_ads__ad_report", "checksum": {"name": "sha256", "checksum": "965374bcbdbff0e31f81ce1a9d372bd2554448007caecab0e3fff8ded9ca0dfa"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the ad level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Day of record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget": {"name": "budget", "description": "Ad budget. Returns 0.0 when Campaign Budget Optimization (budget_optimize_switch) is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversion_value": {"name": "total_conversion_value", "description": "The accumulated value of `total_purchase_value` and `total_sales_lead_value`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpm": {"name": "daily_cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_ctr": {"name": "daily_ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.381122, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__ad_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith hourly as (\n \n select *\n from {{ var('ad_report_hourly') }}\n), \n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from {{ var('advertiser') }}\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record\n),\n\naggregated as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n ad_groups.advertiser_id,\n advertiser.advertiser_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_groups.ad_group_id,\n ad_groups.ad_group_name,\n hourly.ad_id,\n ads.ad_name,\n advertiser.currency,\n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n sum(hourly.impressions) as impressions,\n sum(hourly.clicks) as clicks,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s,\n sum(hourly.video_watched_6_s) as video_watched_6_s,\n sum(hourly.video_views_p_25) as video_views_p_25,\n sum(hourly.video_views_p_50) as video_views_p_50, \n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value,\n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value,\n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n\n {{ tiktok_ads_persist_pass_through_columns(pass_through_variable='tiktok_ads__ad_hourly_passthrough_metrics', identifier='hourly', transform='sum', coalesce_with=0, exclude_fields=['real_time_conversion','total_purchase_value','total_sales_lead_value']) }} \n\n from hourly\n left join ads\n on hourly.ad_id = ads.ad_id\n and hourly.source_relation = ads.source_relation\n left join ad_groups \n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n and ads.source_relation = advertiser.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n {{ dbt_utils.group_by(15) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_report_hourly", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_history", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_tiktok_ads__advertiser", "package": null, "version": null}, {"name": "stg_tiktok_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads.tiktok_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_report_hourly\"\n), \n\nads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_history\"\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_group_history\"\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__advertiser\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__campaign_history\"\n where is_most_recent_record\n),\n\naggregated as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n ad_groups.advertiser_id,\n advertiser.advertiser_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_groups.ad_group_id,\n ad_groups.ad_group_name,\n hourly.ad_id,\n ads.ad_name,\n advertiser.currency,\n ad_groups.category,\n ad_groups.gender,\n ad_groups.audience_type,\n ad_groups.budget,\n sum(hourly.impressions) as impressions,\n sum(hourly.clicks) as clicks,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s,\n sum(hourly.video_watched_6_s) as video_watched_6_s,\n sum(hourly.video_views_p_25) as video_views_p_25,\n sum(hourly.video_views_p_50) as video_views_p_50, \n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value,\n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value,\n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n\n \n\n\n\n \n\n from hourly\n left join ads\n on hourly.ad_id = ads.ad_id\n and hourly.source_relation = ads.source_relation\n left join ad_groups \n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n and ads.source_relation = advertiser.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads.tiktok_ads__advertiser_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "tiktok_ads__advertiser_report", "resource_type": "model", "package_name": "tiktok_ads", "path": "tiktok_ads__advertiser_report.sql", "original_file_path": "models/tiktok_ads__advertiser_report.sql", "unique_id": "model.tiktok_ads.tiktok_ads__advertiser_report", "fqn": ["tiktok_ads", "tiktok_ads__advertiser_report"], "alias": "tiktok_ads__advertiser_report", "checksum": {"name": "sha256", "checksum": "2864322d2b43627936097dc82a145062861fa4410764fc5bd6e266ea70be8317"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Day of record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of follows that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversion_value": {"name": "total_conversion_value", "description": "The accumulated value of `total_purchase_value` and `total_sales_lead_value`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpc": {"name": "daily_cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_cpm": {"name": "daily_cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_ctr": {"name": "daily_ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads://models/tiktok_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.379394, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__advertiser_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith hourly as (\n \n select *\n from {{ var('ad_report_hourly') }}\n),\n\nadvertiser as (\n\n select *\n from {{ var('advertiser') }}\n), \n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record\n), \n\njoined as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n ads.advertiser_id,\n advertiser.advertiser_name,\n advertiser.currency,\n sum(hourly.clicks) as clicks,\n sum(hourly.impressions) as impressions,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s, \n sum(hourly.video_watched_6_s) as video_watched_6_s, \n sum(hourly.video_views_p_25) as video_views_p_25, \n sum(hourly.video_views_p_50) as video_views_p_50,\n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value,\n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value,\n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n\n {{ tiktok_ads_persist_pass_through_columns(pass_through_variable='tiktok_ads__ad_hourly_passthrough_metrics', identifier='hourly', transform='sum', coalesce_with=0, exclude_fields=['real_time_conversion','total_purchase_value','total_sales_lead_value']) }} \n\n from hourly\n left join ads\n on hourly.ad_id = ads.ad_id\n and hourly.source_relation = ads.source_relation\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n and ads.source_relation = advertiser.source_relation\n {{ dbt_utils.group_by(5) }}\n\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_report_hourly", "package": null, "version": null}, {"name": "stg_tiktok_ads__advertiser", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads.tiktok_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__ad_history"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__advertiser_report.sql", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_report_hourly\"\n),\n\nadvertiser as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__advertiser\"\n), \n\nads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_history\"\n where is_most_recent_record\n), \n\njoined as (\n\n select\n hourly.source_relation,\n cast(hourly.stat_time_hour as date) as date_day,\n ads.advertiser_id,\n advertiser.advertiser_name,\n advertiser.currency,\n sum(hourly.clicks) as clicks,\n sum(hourly.impressions) as impressions,\n sum(hourly.spend) as spend,\n sum(hourly.reach) as reach,\n sum(hourly.conversion) as conversion,\n sum(hourly.likes) as likes,\n sum(hourly.comments) as comments,\n sum(hourly.shares) as shares,\n sum(hourly.profile_visits) as profile_visits,\n sum(hourly.follows) as follows,\n sum(hourly.video_watched_2_s) as video_watched_2_s, \n sum(hourly.video_watched_6_s) as video_watched_6_s, \n sum(hourly.video_views_p_25) as video_views_p_25, \n sum(hourly.video_views_p_50) as video_views_p_50,\n sum(hourly.video_views_p_75) as video_views_p_75,\n sum(hourly.real_time_conversion) as real_time_conversion,\n sum(hourly.total_purchase_value) as total_purchase_value,\n sum(hourly.total_sales_lead_value) as total_sales_lead_value,\n sum(hourly.total_purchase_value + hourly.total_sales_lead_value) as total_conversion_value,\n sum(hourly.spend)/nullif(sum(hourly.clicks),0) as daily_cpc,\n (sum(hourly.spend)/nullif(sum(hourly.impressions),0))*1000 as daily_cpm,\n (sum(hourly.clicks)/nullif(sum(hourly.impressions),0))*100 as daily_ctr\n\n \n\n\n\n \n\n from hourly\n left join ads\n on hourly.ad_id = ads.ad_id\n and hourly.source_relation = ads.source_relation\n left join advertiser\n on ads.advertiser_id = advertiser.advertiser_id\n and ads.source_relation = advertiser.source_relation\n group by 1,2,3,4,5\n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads.twitter_ads__account_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "twitter_ads__account_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__account_report.sql", "original_file_path": "models/twitter_ads__account_report.sql", "unique_id": "model.twitter_ads.twitter_ads__account_report", "fqn": ["twitter_ads", "twitter_ads__account_report"], "alias": "twitter_ads__account_report", "checksum": {"name": "sha256", "checksum": "1c01032cde12cebe694d9b68ee1d347411201f67357c33f1a290f23886544d9d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account level, within a placement in Twitter.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend (in micros) for the account on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the account on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for th account on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the account on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the account on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_id": {"name": "business_id", "description": "The ID of the related business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_name": {"name": "business_name", "description": "The name of the related business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "industry_type": {"name": "industry_type", "description": "The industry of the accounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The timezone the account is set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone_switched_timestamp": {"name": "timezone_switched_timestamp", "description": "The timestamp the account's timezone was last changed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "Sum of all fields included in `twitter_ads__conversion_fields` variable (default = conversion_purchases_metric + conversion_custom_metric).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_sale_amount": {"name": "total_conversions_sale_amount", "description": "Sum of all fields included in `twitter_ads__conversion_sale_amount_fields` variable (default = conversion_purchases_sale_amount + conversion_custom_sale_amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.427861, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__account_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith accounts as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\npromoted_tweet_report as (\n \n select \n *,\n {# Let's sum up conversions into general fields for ease of use #}\n {{ var('twitter_ads__conversion_fields') | join(' + ') if var('twitter_ads__conversion_fields') else 0 }} as total_conversions,\n {{ var('twitter_ads__conversion_sale_amount_fields') | join(' + ') if var('twitter_ads__conversion_sale_amount_fields') else 0 }} as total_conversions_sale_amount\n\n from {{ var('promoted_tweet_report') }}\n),\n\nrollup_report as (\n\n select \n source_relation,\n date_day,\n account_id,\n placement,\n sum(clicks) as clicks, \n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(spend_micro) as spend_micro,\n sum(url_clicks) as url_clicks,\n sum(total_conversions) as total_conversions,\n sum(total_conversions_sale_amount) as total_conversions_sale_amount\n\n {# Persist all of the customizable fields #}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__promoted_tweet_report_passthrough_metrics') }}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_sale_amount_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__promoted_tweet_report_passthrough_metrics') }}\n {{ fivetran_utils.persist_pass_through_columns('twitter_ads__promoted_tweet_report_passthrough_metrics', transform='sum') }}\n \n from promoted_tweet_report\n {{ dbt_utils.group_by(4) }}\n\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n report.account_id,\n accounts.name as account_name,\n accounts.is_deleted,\n accounts.timezone,\n accounts.industry_type,\n accounts.approval_status,\n accounts.business_name,\n accounts.business_id,\n accounts.created_timestamp,\n accounts.updated_timestamp,\n accounts.timezone_switched_timestamp,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n {# Persist all of the customizable fields #}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__promoted_tweet_report_passthrough_metrics') }}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_sale_amount_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__promoted_tweet_report_passthrough_metrics') }}\n {{ fivetran_utils.persist_pass_through_columns('twitter_ads__promoted_tweet_report_passthrough_metrics', transform='sum') }}\n\n from rollup_report as report\n left join accounts \n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n {{ dbt_utils.group_by(14) }}\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__account_history", "package": null, "version": null}, {"name": "stg_twitter_ads__promoted_tweet_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads.twitter_ads_persist_pass_through_columns", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith accounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\npromoted_tweet_report as (\n \n select \n *,\n \n conversion_purchases_metric + conversion_custom_metric as total_conversions,\n conversion_purchases_sale_amount + conversion_custom_sale_amount as total_conversions_sale_amount\n\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_report\"\n),\n\nrollup_report as (\n\n select \n source_relation,\n date_day,\n account_id,\n placement,\n sum(clicks) as clicks, \n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(spend_micro) as spend_micro,\n sum(url_clicks) as url_clicks,\n sum(total_conversions) as total_conversions,\n sum(total_conversions_sale_amount) as total_conversions_sale_amount\n\n \n \n\n\n\n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_metric, 0)) as conversion_purchases_metric\n \n \n \n , sum(coalesce(conversion_custom_metric, 0)) as conversion_custom_metric\n \n \n\n\n\n \n\n\n\n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_sale_amount, 0)) as conversion_purchases_sale_amount\n \n \n \n , sum(coalesce(conversion_custom_sale_amount, 0)) as conversion_custom_sale_amount\n \n \n\n\n\n \n\n\n\n\n \n from promoted_tweet_report\n group by 1,2,3,4\n\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n report.account_id,\n accounts.name as account_name,\n accounts.is_deleted,\n accounts.timezone,\n accounts.industry_type,\n accounts.approval_status,\n accounts.business_name,\n accounts.business_id,\n accounts.created_timestamp,\n accounts.updated_timestamp,\n accounts.timezone_switched_timestamp,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n \n \n\n\n\n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_metric, 0)) as conversion_purchases_metric\n \n \n \n , sum(coalesce(conversion_custom_metric, 0)) as conversion_custom_metric\n \n \n\n\n\n \n\n\n\n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_sale_amount, 0)) as conversion_purchases_sale_amount\n \n \n \n , sum(coalesce(conversion_custom_sale_amount, 0)) as conversion_custom_sale_amount\n \n \n\n\n\n \n\n\n\n\n\n from rollup_report as report\n left join accounts \n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads.twitter_ads__campaign_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "twitter_ads__campaign_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__campaign_report.sql", "original_file_path": "models/twitter_ads__campaign_report.sql", "unique_id": "model.twitter_ads.twitter_ads__campaign_report", "fqn": ["twitter_ads", "twitter_ads__campaign_report"], "alias": "twitter_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "9dbe42c209d7eb027a722795563374228911cefe492aec5995d4d540e0c97bb0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account and campaign level, within a placement in Twitter.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on that date. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions on that date. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend on that date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The amount of spend, in micros, on that date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The number of URL clicks on that date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "The time the campaign will end", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency_cap": {"name": "frequency_cap", "description": "The maximum number of times an ad could be delivered to a user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_servable": {"name": "is_servable", "description": "Whether the campaign is in a state to be actively served to users.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_standard_delivery": {"name": "is_standard_delivery", "description": "Whether standard delivery is enabled (vs accelerated delivery).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "The time the campaign will start.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Reference to the funding instrument.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_amount": {"name": "daily_budget_amount", "description": "The daily budget amount to be allocated to the campaign. The currency associated with the specified funding instrument will be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_budget_amount": {"name": "total_budget_amount", "description": "The total budget amount to be allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "Sum of all fields included in `twitter_ads__conversion_fields` variable (default = conversion_purchases_metric + conversion_custom_metric).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_sale_amount": {"name": "total_conversions_sale_amount", "description": "Sum of all fields included in `twitter_ads__conversion_sale_amount_fields` variable (default = conversion_purchases_sale_amount + conversion_custom_sale_amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.4227462, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__campaign_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith report as (\n\n select \n *,\n {# Let's sum up conversions into general fields for ease of use #}\n {{ var('twitter_ads__conversion_fields') | join(' + ') if var('twitter_ads__conversion_fields') else 0 }} as total_conversions,\n {{ var('twitter_ads__conversion_sale_amount_fields') | join(' + ') if var('twitter_ads__conversion_sale_amount_fields') else 0 }} as total_conversions_sale_amount\n\n from {{ var('campaign_report') }}\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n report.account_id,\n accounts.name as account_name,\n report.campaign_id,\n campaigns.campaign_name,\n campaigns.is_deleted,\n campaigns.entity_status as campaign_status,\n campaigns.currency,\n campaigns.is_servable,\n campaigns.is_standard_delivery,\n campaigns.frequency_cap,\n campaigns.start_timestamp,\n campaigns.end_timestamp,\n campaigns.created_timestamp,\n campaigns.updated_timestamp,\n campaigns.funding_instrument_id,\n campaigns.daily_budget_amount,\n campaigns.total_budget_amount,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n {# Persist all of the customizable fields #}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__campaign_report_passthrough_metrics') }}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_sale_amount_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__campaign_report_passthrough_metrics') }}\n {{ fivetran_utils.persist_pass_through_columns('twitter_ads__campaign_report_passthrough_metrics', transform='sum') }}\n\n from report \n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n {{ dbt_utils.group_by(20) }}\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_report", "package": null, "version": null}, {"name": "stg_twitter_ads__campaign_history", "package": null, "version": null}, {"name": "stg_twitter_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads.twitter_ads_persist_pass_through_columns", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__account_history"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select \n *,\n \n conversion_purchases_metric + conversion_custom_metric as total_conversions,\n conversion_purchases_sale_amount + conversion_custom_sale_amount as total_conversions_sale_amount\n\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n report.account_id,\n accounts.name as account_name,\n report.campaign_id,\n campaigns.campaign_name,\n campaigns.is_deleted,\n campaigns.entity_status as campaign_status,\n campaigns.currency,\n campaigns.is_servable,\n campaigns.is_standard_delivery,\n campaigns.frequency_cap,\n campaigns.start_timestamp,\n campaigns.end_timestamp,\n campaigns.created_timestamp,\n campaigns.updated_timestamp,\n campaigns.funding_instrument_id,\n campaigns.daily_budget_amount,\n campaigns.total_budget_amount,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n \n \n\n\n\n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_metric, 0)) as conversion_purchases_metric\n \n \n \n , sum(coalesce(conversion_custom_metric, 0)) as conversion_custom_metric\n \n \n\n\n\n \n\n\n\n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_sale_amount, 0)) as conversion_purchases_sale_amount\n \n \n \n , sum(coalesce(conversion_custom_sale_amount, 0)) as conversion_custom_sale_amount\n \n \n\n\n\n \n\n\n\n\n\n from report \n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads.twitter_ads__url_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "twitter_ads__url_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__url_report.sql", "original_file_path": "models/twitter_ads__url_report.sql", "unique_id": "model.twitter_ads.twitter_ads__url_report", "fqn": ["twitter_ads", "twitter_ads__url_report"], "alias": "twitter_ads__url_report", "checksum": {"name": "sha256", "checksum": "f6f4aab372789ea4e160e91bcd807cc1f3413cf5ee1ec8fb87a68febd63b76fe"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account, campaign, line item (ad group), promoted tweet, and url level, within a placement in Twitter.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item (ad group).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_name": {"name": "line_item_name", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "promoted_tweet_id": {"name": "promoted_tweet_id", "description": "The ID of the promoted tweet that the URL appeared in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_name": {"name": "tweet_name", "description": "The name, if provided, of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_full_text": {"name": "tweet_full_text", "description": "The full text of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The URL as it will be displayed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expanded_url": {"name": "expanded_url", "description": "The fully expanded URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the promoted tweet + URL on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the promoted tweet + URL on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the promoted tweet + URL on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend, in micros, for the tweet + URL on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The URL clicks for the promoted tweet + URL on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "Sum of all fields included in `twitter_ads__conversion_fields` variable (default = conversion_purchases_metric + conversion_custom_metric).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_sale_amount": {"name": "total_conversions_sale_amount", "description": "Sum of all fields included in `twitter_ads__conversion_sale_amount_fields` variable (default = conversion_purchases_sale_amount + conversion_custom_sale_amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.432437, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__url_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith report as (\n\n select \n *,\n {# Let's sum up conversions into general fields for ease of use #}\n {{ var('twitter_ads__conversion_fields') | join(' + ') if var('twitter_ads__conversion_fields') else 0 }} as total_conversions,\n {{ var('twitter_ads__conversion_sale_amount_fields') | join(' + ') if var('twitter_ads__conversion_sale_amount_fields') else 0 }} as total_conversions_sale_amount\n\n from {{ var('promoted_tweet_report') }}\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from {{ var('line_item_history') }}\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from {{ var('promoted_tweet_history') }}\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from {{ var('tweet') }}\n),\n\ntweet_url as (\n\n select *\n from {{ var('tweet_url') }}\n where index = 0\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n accounts.account_id,\n accounts.name as account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n line_items.line_item_id,\n line_items.name as line_item_name,\n promoted_tweets.promoted_tweet_id,\n promoted_tweets.tweet_id,\n tweets.name as tweet_name,\n tweets.full_text as tweet_full_text,\n tweet_url.base_url,\n tweet_url.url_host,\n tweet_url.url_path,\n tweet_url.utm_source,\n tweet_url.utm_medium,\n tweet_url.utm_campaign,\n tweet_url.utm_content,\n tweet_url.utm_term,\n tweet_url.expanded_url,\n tweet_url.display_url,\n campaigns.currency,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n {# Persist all of the customizable fields #}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__promoted_tweet_report_passthrough_metrics') }}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_sale_amount_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__promoted_tweet_report_passthrough_metrics') }}\n {{ fivetran_utils.persist_pass_through_columns('twitter_ads__promoted_tweet_report_passthrough_metrics', transform='sum') }}\n\n from report \n left join promoted_tweets \n on report.promoted_tweet_id = promoted_tweets.promoted_tweet_id\n and report.source_relation = promoted_tweets.source_relation\n left join tweet_url \n on promoted_tweets.tweet_id = tweet_url.tweet_id\n and promoted_tweets.source_relation = tweet_url.source_relation\n left join tweets\n on promoted_tweets.tweet_id = tweets.tweet_id\n and promoted_tweets.source_relation = tweets.source_relation\n left join line_items\n on promoted_tweets.line_item_id = line_items.line_item_id\n and promoted_tweets.source_relation = line_items.source_relation\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n and line_items.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n \n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where tweet_url.expanded_url is not null\n {% endif %}\n\n {{ dbt_utils.group_by(24) }}\n\n \n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_report", "package": null, "version": null}, {"name": "stg_twitter_ads__campaign_history", "package": null, "version": null}, {"name": "stg_twitter_ads__account_history", "package": null, "version": null}, {"name": "stg_twitter_ads__line_item_history", "package": null, "version": null}, {"name": "stg_twitter_ads__promoted_tweet_history", "package": null, "version": null}, {"name": "stg_twitter_ads__tweet", "package": null, "version": null}, {"name": "stg_twitter_ads__tweet_url", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads.twitter_ads_persist_pass_through_columns", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "model.twitter_ads_source.stg_twitter_ads__tweet", "model.twitter_ads_source.stg_twitter_ads__tweet_url"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select \n *,\n \n conversion_purchases_metric + conversion_custom_metric as total_conversions,\n conversion_purchases_sale_amount + conversion_custom_sale_amount as total_conversions_sale_amount\n\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_history\"\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_history\"\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__tweet\"\n),\n\ntweet_url as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__tweet_url\"\n where index = 0\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n accounts.account_id,\n accounts.name as account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n line_items.line_item_id,\n line_items.name as line_item_name,\n promoted_tweets.promoted_tweet_id,\n promoted_tweets.tweet_id,\n tweets.name as tweet_name,\n tweets.full_text as tweet_full_text,\n tweet_url.base_url,\n tweet_url.url_host,\n tweet_url.url_path,\n tweet_url.utm_source,\n tweet_url.utm_medium,\n tweet_url.utm_campaign,\n tweet_url.utm_content,\n tweet_url.utm_term,\n tweet_url.expanded_url,\n tweet_url.display_url,\n campaigns.currency,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n \n \n\n\n\n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_metric, 0)) as conversion_purchases_metric\n \n \n \n , sum(coalesce(conversion_custom_metric, 0)) as conversion_custom_metric\n \n \n\n\n\n \n\n\n\n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_sale_amount, 0)) as conversion_purchases_sale_amount\n \n \n \n , sum(coalesce(conversion_custom_sale_amount, 0)) as conversion_custom_sale_amount\n \n \n\n\n\n \n\n\n\n\n\n from report \n left join promoted_tweets \n on report.promoted_tweet_id = promoted_tweets.promoted_tweet_id\n and report.source_relation = promoted_tweets.source_relation\n left join tweet_url \n on promoted_tweets.tweet_id = tweet_url.tweet_id\n and promoted_tweets.source_relation = tweet_url.source_relation\n left join tweets\n on promoted_tweets.tweet_id = tweets.tweet_id\n and promoted_tweets.source_relation = tweets.source_relation\n left join line_items\n on promoted_tweets.line_item_id = line_items.line_item_id\n and promoted_tweets.source_relation = line_items.source_relation\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n and line_items.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n \n \n where tweet_url.expanded_url is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\n\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads.twitter_ads__promoted_tweet_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "twitter_ads__promoted_tweet_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__promoted_tweet_report.sql", "original_file_path": "models/twitter_ads__promoted_tweet_report.sql", "unique_id": "model.twitter_ads.twitter_ads__promoted_tweet_report", "fqn": ["twitter_ads", "twitter_ads__promoted_tweet_report"], "alias": "twitter_ads__promoted_tweet_report", "checksum": {"name": "sha256", "checksum": "41ca91cfdbaefea30d695d45b273fd8bec77a23ea452ba123c64db8d12fd217e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account, campaign, line item (ad group), and promoted tweet level, within a placement in Twitter.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item (ad group).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_name": {"name": "line_item_name", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "promoted_tweet_id": {"name": "promoted_tweet_id", "description": "The ID of the promoted tweet that the URL appeared in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_name": {"name": "tweet_name", "description": "The name, if provided, of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_text": {"name": "full_text", "description": "The full text of the tweet that the URL appeared in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the promoted tweet + URL on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the promoted tweet + URL on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the promoted tweet + URL on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend, in micros, for the tweet + URL on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The URL clicks for the promoted tweet + URL on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "promoted_tweet_status": {"name": "promoted_tweet_status", "description": "The status of the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the tweet's campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_status": {"name": "line_item_status", "description": "The status of the tweet's line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "Two-letter language code of the tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "Sum of all fields included in `twitter_ads__conversion_fields` variable (default = conversion_purchases_metric + conversion_custom_metric).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_sale_amount": {"name": "total_conversions_sale_amount", "description": "Sum of all fields included in `twitter_ads__conversion_sale_amount_fields` variable (default = conversion_purchases_sale_amount + conversion_custom_sale_amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.4308748, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__promoted_tweet_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith report as (\n\n select \n *,\n {# Let's sum up conversions into general fields for ease of use #}\n {{ var('twitter_ads__conversion_fields') | join(' + ') if var('twitter_ads__conversion_fields') else 0 }} as total_conversions,\n {{ var('twitter_ads__conversion_sale_amount_fields') | join(' + ') if var('twitter_ads__conversion_sale_amount_fields') else 0 }} as total_conversions_sale_amount\n\n from {{ var('promoted_tweet_report') }}\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from {{ var('line_item_history') }}\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from {{ var('promoted_tweet_history') }}\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from {{ var('tweet') }}\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n accounts.account_id,\n accounts.name as account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n line_items.line_item_id,\n line_items.name as line_item_name,\n promoted_tweets.promoted_tweet_id,\n promoted_tweets.tweet_id,\n tweets.name as tweet_name,\n tweets.full_text,\n promoted_tweets.is_deleted,\n promoted_tweets.entity_status as promoted_tweet_status,\n campaigns.entity_status as campaign_status,\n line_items.entity_status as line_item_status,\n tweets.language,\n campaigns.currency,\n promoted_tweets.approval_status,\n promoted_tweets.created_timestamp,\n promoted_tweets.updated_timestamp,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n {# Persist all of the customizable fields #}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__promoted_tweet_report_passthrough_metrics') }}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_sale_amount_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__promoted_tweet_report_passthrough_metrics') }}\n {{ fivetran_utils.persist_pass_through_columns('twitter_ads__promoted_tweet_report_passthrough_metrics', transform='sum') }}\n\n from report \n left join promoted_tweets \n on report.promoted_tweet_id = promoted_tweets.promoted_tweet_id\n and report.source_relation = promoted_tweets.source_relation\n left join tweets\n on promoted_tweets.tweet_id = tweets.tweet_id\n and promoted_tweets.source_relation = tweets.source_relation\n left join line_items\n on promoted_tweets.line_item_id = line_items.line_item_id\n and promoted_tweets.source_relation = line_items.source_relation\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n and line_items.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n {{ dbt_utils.group_by(22) }}\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_report", "package": null, "version": null}, {"name": "stg_twitter_ads__campaign_history", "package": null, "version": null}, {"name": "stg_twitter_ads__account_history", "package": null, "version": null}, {"name": "stg_twitter_ads__line_item_history", "package": null, "version": null}, {"name": "stg_twitter_ads__promoted_tweet_history", "package": null, "version": null}, {"name": "stg_twitter_ads__tweet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads.twitter_ads_persist_pass_through_columns", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "model.twitter_ads_source.stg_twitter_ads__tweet"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__promoted_tweet_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select \n *,\n \n conversion_purchases_metric + conversion_custom_metric as total_conversions,\n conversion_purchases_sale_amount + conversion_custom_sale_amount as total_conversions_sale_amount\n\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_history\"\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_history\"\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__tweet\"\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n accounts.account_id,\n accounts.name as account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n line_items.line_item_id,\n line_items.name as line_item_name,\n promoted_tweets.promoted_tweet_id,\n promoted_tweets.tweet_id,\n tweets.name as tweet_name,\n tweets.full_text,\n promoted_tweets.is_deleted,\n promoted_tweets.entity_status as promoted_tweet_status,\n campaigns.entity_status as campaign_status,\n line_items.entity_status as line_item_status,\n tweets.language,\n campaigns.currency,\n promoted_tweets.approval_status,\n promoted_tweets.created_timestamp,\n promoted_tweets.updated_timestamp,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n \n \n\n\n\n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_metric, 0)) as conversion_purchases_metric\n \n \n \n , sum(coalesce(conversion_custom_metric, 0)) as conversion_custom_metric\n \n \n\n\n\n \n\n\n\n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_sale_amount, 0)) as conversion_purchases_sale_amount\n \n \n \n , sum(coalesce(conversion_custom_sale_amount, 0)) as conversion_custom_sale_amount\n \n \n\n\n\n \n\n\n\n\n\n from report \n left join promoted_tweets \n on report.promoted_tweet_id = promoted_tweets.promoted_tweet_id\n and report.source_relation = promoted_tweets.source_relation\n left join tweets\n on promoted_tweets.tweet_id = tweets.tweet_id\n and promoted_tweets.source_relation = tweets.source_relation\n left join line_items\n on promoted_tweets.line_item_id = line_items.line_item_id\n and promoted_tweets.source_relation = line_items.source_relation\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n and line_items.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads.twitter_ads__line_item_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "twitter_ads__line_item_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__line_item_report.sql", "original_file_path": "models/twitter_ads__line_item_report.sql", "unique_id": "model.twitter_ads.twitter_ads__line_item_report", "fqn": ["twitter_ads", "twitter_ads__line_item_report"], "alias": "twitter_ads__line_item_report", "checksum": {"name": "sha256", "checksum": "4235dc7ccb275b987287e1497226672a8ce71faf425e527359e795c1bba89116"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account, campaign, and line item (ad group) level, within a placement in Twitter.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the line item's campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the line item's campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on that date. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions on that date. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_name": {"name": "line_item_name", "description": "The name of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend on that date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The amount of spend, in micros, on that date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The number of URL clicks on that date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_domain": {"name": "advertiser_domain", "description": "The website domain for this advertiser, without the protocol specification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_user_id": {"name": "advertiser_user_id", "description": "The Twitter user identifier for the handle promoting the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_type": {"name": "bid_type", "description": "The bidding mechanism.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_unit": {"name": "bid_unit", "description": "The bid unit for this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "charge_by": {"name": "charge_by", "description": "The unit to charge this line item by.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_source": {"name": "creative_source", "description": "The source of the creatives for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency in which metrics will be reported.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "The timestamp at which the line item will stop being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_status": {"name": "line_item_status", "description": "The status of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the line item's related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The campaign objective for this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization": {"name": "optimization", "description": "The optimization setting to use with this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_web_event_tag": {"name": "primary_web_event_tag", "description": "The identifier of the primary web event tag. Allows more accurate tracking of engagements for the campaign pertaining to this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "product_type": {"name": "product_type", "description": "The type of promoted product that this line item will contain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "The timestamp at which the line item will start being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount": {"name": "bid_amount", "description": "The bid amount to be associated with this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_budget_amount": {"name": "total_budget_amount", "description": "The total budget amount to be allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "target_cpa": {"name": "target_cpa", "description": "The target cost per acquisition for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "Sum of all fields included in `twitter_ads__conversion_fields` variable (default = conversion_purchases_metric + conversion_custom_metric).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_sale_amount": {"name": "total_conversions_sale_amount", "description": "Sum of all fields included in `twitter_ads__conversion_sale_amount_fields` variable (default = conversion_purchases_sale_amount + conversion_custom_sale_amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.4260921, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__line_item_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith report as (\n\n select \n *,\n {# Let's sum up conversions into general fields for ease of use #}\n {{ var('twitter_ads__conversion_fields') | join(' + ') if var('twitter_ads__conversion_fields') else 0 }} as total_conversions,\n {{ var('twitter_ads__conversion_sale_amount_fields') | join(' + ') if var('twitter_ads__conversion_sale_amount_fields') else 0 }} as total_conversions_sale_amount\n\n from {{ var('line_item_report') }}\n),\n\nline_items as (\n\n select *\n from {{ var('line_item_history') }}\n where is_latest_version\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n report.account_id,\n accounts.name as account_name,\n line_items.campaign_id,\n campaigns.campaign_name,\n report.line_item_id,\n line_items.name as line_item_name,\n line_items.is_deleted,\n line_items.entity_status as line_item_status,\n campaigns.entity_status as campaign_status,\n line_items.currency,\n line_items.advertiser_domain,\n line_items.advertiser_user_id,\n line_items.bid_type,\n line_items.bid_unit,\n line_items.charge_by,\n line_items.objective,\n line_items.optimization,\n line_items.product_type,\n line_items.primary_web_event_tag,\n line_items.creative_source,\n line_items.start_timestamp,\n line_items.end_timestamp,\n line_items.created_timestamp,\n line_items.updated_timestamp,\n line_items.target_cpa,\n line_items.total_budget_amount,\n line_items.bid_amount,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n {# Persist all of the customizable fields #}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__line_item_report_passthrough_metrics') }}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_sale_amount_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__line_item_report_passthrough_metrics') }}\n {{ fivetran_utils.persist_pass_through_columns('twitter_ads__line_item_report_passthrough_metrics', transform='sum')}}\n\n from report \n left join line_items\n on report.line_item_id = line_items.line_item_id\n and report.source_relation = line_items.source_relation\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n and line_items.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n {{ dbt_utils.group_by(30) }}\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_report", "package": null, "version": null}, {"name": "stg_twitter_ads__line_item_history", "package": null, "version": null}, {"name": "stg_twitter_ads__campaign_history", "package": null, "version": null}, {"name": "stg_twitter_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads.twitter_ads_persist_pass_through_columns", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__account_history"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__line_item_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select \n *,\n \n conversion_purchases_metric + conversion_custom_metric as total_conversions,\n conversion_purchases_sale_amount + conversion_custom_sale_amount as total_conversions_sale_amount\n\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_report\"\n),\n\nline_items as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_history\"\n where is_latest_version\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n report.account_id,\n accounts.name as account_name,\n line_items.campaign_id,\n campaigns.campaign_name,\n report.line_item_id,\n line_items.name as line_item_name,\n line_items.is_deleted,\n line_items.entity_status as line_item_status,\n campaigns.entity_status as campaign_status,\n line_items.currency,\n line_items.advertiser_domain,\n line_items.advertiser_user_id,\n line_items.bid_type,\n line_items.bid_unit,\n line_items.charge_by,\n line_items.objective,\n line_items.optimization,\n line_items.product_type,\n line_items.primary_web_event_tag,\n line_items.creative_source,\n line_items.start_timestamp,\n line_items.end_timestamp,\n line_items.created_timestamp,\n line_items.updated_timestamp,\n line_items.target_cpa,\n line_items.total_budget_amount,\n line_items.bid_amount,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n \n \n\n\n\n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_metric, 0)) as conversion_purchases_metric\n \n \n \n , sum(coalesce(conversion_custom_metric, 0)) as conversion_custom_metric\n \n \n\n\n\n \n\n\n\n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_sale_amount, 0)) as conversion_purchases_sale_amount\n \n \n \n , sum(coalesce(conversion_custom_sale_amount, 0)) as conversion_custom_sale_amount\n \n \n\n\n\n \n\n\n\n\n\n from report \n left join line_items\n on report.line_item_id = line_items.line_item_id\n and report.source_relation = line_items.source_relation\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n and line_items.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads.twitter_ads__keyword_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "twitter_ads__keyword_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__keyword_report.sql", "original_file_path": "models/twitter_ads__keyword_report.sql", "unique_id": "model.twitter_ads.twitter_ads__keyword_report", "fqn": ["twitter_ads", "twitter_ads__keyword_report"], "alias": "twitter_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "dc701f5ab6598bce7bfdf873a85c7da7ad65240be7affc222d05daeeb73b147a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account, campaign, line item (ad group), and keyword level, within a placement in Twitter.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend for the line item + keyword on that day, in micros and in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the line item + keyword on that day in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the line item + keyword on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the line item + keyword on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item (ad group).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item + keyword on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword": {"name": "keyword", "description": "The keyword whose performance is being tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique key of the table built from the combination of 'account_id', 'line_item_id', 'segment', and 'placement' fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the associated account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_name": {"name": "line_item_name", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "Sum of all fields included in `twitter_ads__conversion_fields` variable (default = conversion_purchases_metric + conversion_custom_metric).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_sale_amount": {"name": "total_conversions_sale_amount", "description": "Sum of all fields included in `twitter_ads__conversion_sale_amount_fields` variable (default = conversion_purchases_sale_amount + conversion_custom_sale_amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.428871, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__keyword_report\"", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__twitter_ads_enabled','twitter_ads__using_keywords'])) }}\n\nwith report as (\n\n select \n *,\n {# Let's sum up conversions into general fields for ease of use #}\n {{ var('twitter_ads__conversion_fields') | join(' + ') if var('twitter_ads__conversion_fields') else 0 }} as total_conversions,\n {{ var('twitter_ads__conversion_sale_amount_fields') | join(' + ') if var('twitter_ads__conversion_sale_amount_fields') else 0 }} as total_conversions_sale_amount\n\n from {{ var('line_item_keywords_report') }}\n),\n\nline_items as (\n\n select *\n from {{ var('line_item_history') }}\n where is_latest_version\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n report.account_id,\n accounts.name as account_name,\n line_items.campaign_id,\n campaigns.campaign_name,\n report.line_item_id,\n line_items.name as line_item_name,\n report.keyword_id,\n report.keyword,\n line_items.currency,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__line_item_keywords_report_passthrough_metrics') }}\n {{ twitter_ads_persist_pass_through_columns(pass_through_variable='twitter_ads__conversion_sale_amount_fields', transform='sum', coalesce_with=0, except_variable='twitter_ads__line_item_keywords_report_passthrough_metrics') }}\n {{ fivetran_utils.persist_pass_through_columns('twitter_ads__line_item_keywords_report_passthrough_metrics', transform='sum')}}\n\n from report \n left join line_items\n on report.line_item_id = line_items.line_item_id\n and report.source_relation = line_items.source_relation\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n and line_items.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_keywords_report", "package": null, "version": null}, {"name": "stg_twitter_ads__line_item_history", "package": null, "version": null}, {"name": "stg_twitter_ads__campaign_history", "package": null, "version": null}, {"name": "stg_twitter_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.twitter_ads.twitter_ads_persist_pass_through_columns", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__account_history"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select \n *,\n \n conversion_purchases_metric + conversion_custom_metric as total_conversions,\n conversion_purchases_sale_amount + conversion_custom_sale_amount as total_conversions_sale_amount\n\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_keywords_report\"\n),\n\nline_items as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_history\"\n where is_latest_version\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.placement, \n report.account_id,\n accounts.name as account_name,\n line_items.campaign_id,\n campaigns.campaign_name,\n report.line_item_id,\n line_items.name as line_item_name,\n report.keyword_id,\n report.keyword,\n line_items.currency,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_sale_amount) as total_conversions_sale_amount\n\n \n\n\n\n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_metric, 0)) as conversion_purchases_metric\n \n \n \n , sum(coalesce(conversion_custom_metric, 0)) as conversion_custom_metric\n \n \n\n\n\n \n\n\n\n \n \n\n\n\n\n\n \n \n , sum(coalesce(conversion_purchases_sale_amount, 0)) as conversion_purchases_sale_amount\n \n \n \n , sum(coalesce(conversion_custom_sale_amount, 0)) as conversion_custom_sale_amount\n \n \n\n\n\n \n\n\n\n\n\n from report \n left join line_items\n on report.line_item_id = line_items.line_item_id\n and report.source_relation = line_items.source_relation\n left join campaigns \n on line_items.campaign_id = campaigns.campaign_id\n and line_items.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads.reddit_ads__campaign_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "reddit_ads__campaign_report", "resource_type": "model", "package_name": "reddit_ads", "path": "reddit_ads__campaign_report.sql", "original_file_path": "models/reddit_ads__campaign_report.sql", "unique_id": "model.reddit_ads.reddit_ads__campaign_report", "fqn": ["reddit_ads", "reddit_ads__campaign_report"], "alias": "reddit_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "58b0c34ac5f977a30056d0df65cd65e7505f1d902b5e588ac951bf3662912fe3"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily number of clicks, impressions, and spend per campaign, along with account information.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.520153, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__campaign_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('campaign_daily_report') }}\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign') }}\n),\n\naccounts as (\n\n select *\n from {{ var('account') }}\n),\n\n{# This includes data at the event type level that we'll need to roll up and pivot out #}\nconversions_report as (\n\n select *\n from {{ var('campaign_conversions_report') }}\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n campaign_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__campaign_conversions_passthrough_metrics', transform = 'sum') }}\n\n from conversions_report\n\n {% if var('reddit_ads__conversion_event_types') %}\n where \n {% for event_type in var('reddit_ads__conversion_event_types') %}\n event_name = '{{ event_type|lower }}'\n {% if not loop.last %} or {% endif %} \n {% endfor %}\n {% endif %}\n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n accounts.currency,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n {{ reddit_ads_persist_pass_through_columns(pass_through_variable='reddit_ads__campaign_passthrough_metrics', identifier = 'report', transform = 'sum', alias_fields=['conversions', 'view_through_conversions', 'total_value', 'total_items']) }}\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__campaign_conversions_passthrough_metrics', transform = 'sum') }}\n\n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join rollup_conversions_report\n on report.campaign_id = rollup_conversions_report.campaign_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n {{ dbt_utils.group_by(6) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign_report", "package": null, "version": null}, {"name": "stg_reddit_ads__campaign", "package": null, "version": null}, {"name": "stg_reddit_ads__account", "package": null, "version": null}, {"name": "stg_reddit_ads__campaign_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.reddit_ads.reddit_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_report", "model.reddit_ads_source.stg_reddit_ads__campaign", "model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account\"\n),\n\n\nconversions_report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign_conversions_report\"\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n campaign_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n \n\n\n\n\n\n from conversions_report\n\n \n where \n \n event_name = 'lead'\n or \n \n event_name = 'purchase'\n or \n \n event_name = 'custom'\n \n \n \n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n accounts.currency,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n \n\n\n\n\n\n \n\n\n\n\n\n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join rollup_conversions_report\n on report.campaign_id = rollup_conversions_report.campaign_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n group by 1,2,3,4,5,6\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads.reddit_ads__url_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "reddit_ads__url_report", "resource_type": "model", "package_name": "reddit_ads", "path": "reddit_ads__url_report.sql", "original_file_path": "models/reddit_ads__url_report.sql", "unique_id": "model.reddit_ads.reddit_ads__url_report", "fqn": ["reddit_ads", "reddit_ads__url_report"], "alias": "reddit_ads__url_report", "checksum": {"name": "sha256", "checksum": "a0f2385ea82d16057f45e5537941a121b507f685b5ac2ed2541c4ee806ee6c76"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily number of clicks, impressions, and spend per url and utm parameters, along with post,ad, account, campaign, and ad group information.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_id": {"name": "post_id", "description": "The ID of the post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_url": {"name": "post_url", "description": "The URL belonging to the post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_url": {"name": "click_url", "description": "The destination url, or the website address, that a visitor goes to when they click on the ad", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `click_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `click_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `click_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The site that sent traffic to your page. Microsoft Advertising sets this to Bing; extracted from the `click_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "Which channel was used. Microsoft Advertising sets this to cp; extracted from the `click_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "Which campaign the keyword came from; extracted from the `click_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "Which ad group the keyword came from; extracted from the `click_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "Which keyword brought people to your website; extracted from the `click_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.52141, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__url_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_daily_report') }}\n),\n\nads as (\n\n select *\n from {{ var('ad') }}\n),\n\nad_groups as (\n\n select *\n from {{ var('ad_group') }}\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account') }}\n),\n\n{# This includes data at the event type level that we'll need to roll up and pivot out #}\nconversions_report as (\n\n select *\n from {{ var('ad_conversions_report') }}\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n ad_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_conversions_passthrough_metrics', transform = 'sum') }}\n\n from conversions_report\n\n {% if var('reddit_ads__conversion_event_types') %}\n where \n {% for event_type in var('reddit_ads__conversion_event_types') %}\n event_name = '{{ event_type|lower }}'\n {% if not loop.last %} or {% endif %} \n {% endfor %}\n {% endif %}\n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n ads.ad_name,\n report.ad_id,\n report.account_id,\n campaigns.campaign_name,\n ads.campaign_id,\n ad_groups.ad_group_name,\n ads.ad_group_id,\n accounts.currency,\n ads.post_id,\n ads.post_url,\n ads.click_url,\n {{ dbt.split_part('ads.click_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('ads.click_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('ads.click_url') }} as url_path,\n {{ reddit_ads.reddit_ads_extract_url_parameter('ads.click_url', 'utm_source') }} as utm_source,\n {{ reddit_ads.reddit_ads_extract_url_parameter('ads.click_url', 'utm_medium') }} as utm_medium,\n {{ reddit_ads.reddit_ads_extract_url_parameter('ads.click_url', 'utm_term') }} as utm_term,\n {{ reddit_ads.reddit_ads_extract_url_parameter('ads.click_url', 'utm_content') }} as utm_content,\n coalesce( {{ reddit_ads.reddit_ads_extract_url_parameter('ads.click_url', 'utm_campaign') }}, campaigns.campaign_name) as utm_campaign,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n {{ reddit_ads_persist_pass_through_columns(pass_through_variable='reddit_ads__ad_passthrough_metrics', identifier = 'report', transform = 'sum', alias_fields=['conversions', 'view_through_conversions', 'total_value', 'total_items']) }}\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_conversions_passthrough_metrics', transform = 'sum') }}\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join rollup_conversions_report\n on report.ad_id = rollup_conversions_report.ad_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n \n {{ dbt_utils.group_by(20) }}\n), \n\nfiltered as (\n\n select *\n from joined\n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where click_url is not null -- filter for only ads with valid URLs\n {% endif %}\n)\n\nselect *\nfrom filtered", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_report", "package": null, "version": null}, {"name": "stg_reddit_ads__ad", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_group", "package": null, "version": null}, {"name": "stg_reddit_ads__campaign", "package": null, "version": null}, {"name": "stg_reddit_ads__account", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.reddit_ads.reddit_ads_extract_url_parameter", "macro.reddit_ads.reddit_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_report", "model.reddit_ads_source.stg_reddit_ads__ad", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__campaign", "model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_report\"\n),\n\nads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad\"\n),\n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account\"\n),\n\n\nconversions_report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_conversions_report\"\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n ad_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n \n\n\n\n\n\n from conversions_report\n\n \n where \n \n event_name = 'lead'\n or \n \n event_name = 'purchase'\n or \n \n event_name = 'custom'\n \n \n \n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n ads.ad_name,\n report.ad_id,\n report.account_id,\n campaigns.campaign_name,\n ads.campaign_id,\n ad_groups.ad_group_name,\n ads.ad_group_id,\n accounts.currency,\n ads.post_id,\n ads.post_url,\n ads.click_url,\n \n\n \n \n\n split_part(\n ads.click_url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n ads.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n ads.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n ads.click_url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_source,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n ads.click_url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_medium,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n ads.click_url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_term,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n ads.click_url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_content,\n coalesce( nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n ads.click_url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,''), campaigns.campaign_name) as utm_campaign,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n \n\n\n\n\n\n \n\n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join rollup_conversions_report\n on report.ad_id = rollup_conversions_report.ad_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n \n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20\n), \n\nfiltered as (\n\n select *\n from joined\n\n \n where click_url is not null -- filter for only ads with valid URLs\n \n)\n\nselect *\nfrom filtered", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads.reddit_ads__account_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "reddit_ads__account_report", "resource_type": "model", "package_name": "reddit_ads", "path": "reddit_ads__account_report.sql", "original_file_path": "models/reddit_ads__account_report.sql", "unique_id": "model.reddit_ads.reddit_ads__account_report", "fqn": ["reddit_ads", "reddit_ads__account_report"], "alias": "reddit_ads__account_report", "checksum": {"name": "sha256", "checksum": "d2f85cb8344c998d2eaef5efbf48e12ab9d42bb8de2f14c60a960c42c8ced12d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily number of clicks, impressions, and spend of ads by account, account timezone, attribution type, and currency.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attribution_type": {"name": "attribution_type", "description": "Attribution type: \"CLICK_THROUGH_CONVERSION\", \"VIEW_THROUGH_CONVERSION\", or \"ALL_CONVERSION\".\nCLICK_THROUGH_CONVERSION: A user clicked on your ad and then completed the conversion action on your site. \nVIEW_THROUGH_CONVERSION: A user saw your ad and did not click it, but did complete the conversion action on your site.\nALL_CONVERSION: Combination of both.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current state of the advertiser. \"PENDING_BILLING\", \"VALID\", \"TRUSTED\", \"ADMIN\", \"FAILED_BILLING\", \"SUSPICIOUS\", \"SUSPENDED\", or \"BANNED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone_id": {"name": "time_zone_id", "description": "The time zone id preference for this account", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.518014, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__account_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('account_daily_report') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account') }}\n),\n\n{# This includes data at the event type level that we'll need to roll up and pivot out #}\nconversions_report as (\n\n select *\n from {{ var('account_conversions_report') }}\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n account_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__account_conversions_passthrough_metrics', transform = 'sum') }}\n\n from conversions_report\n\n {% if var('reddit_ads__conversion_event_types') %}\n where \n {% for event_type in var('reddit_ads__conversion_event_types') %}\n event_name = '{{ event_type|lower }}'\n {% if not loop.last %} or {% endif %} \n {% endfor %}\n {% endif %}\n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n report.account_id,\n accounts.currency,\n accounts.attribution_type,\n accounts.status,\n accounts.time_zone_id,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n {{ reddit_ads_persist_pass_through_columns(pass_through_variable='reddit_ads__account_passthrough_metrics', identifier = 'report', transform = 'sum', alias_fields=['conversions', 'view_through_conversions', 'total_value', 'total_items']) }}\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__account_conversions_passthrough_metrics', transform = 'sum') }}\n\n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join rollup_conversions_report\n on report.account_id = rollup_conversions_report.account_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_reddit_ads__account_report", "package": null, "version": null}, {"name": "stg_reddit_ads__account", "package": null, "version": null}, {"name": "stg_reddit_ads__account_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.reddit_ads.reddit_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_report", "model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__account_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account_report\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account\"\n),\n\n\nconversions_report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account_conversions_report\"\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n account_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n \n\n\n\n\n\n from conversions_report\n\n \n where \n \n event_name = 'lead'\n or \n \n event_name = 'purchase'\n or \n \n event_name = 'custom'\n \n \n \n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n report.account_id,\n accounts.currency,\n accounts.attribution_type,\n accounts.status,\n accounts.time_zone_id,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n \n\n\n\n\n\n \n\n\n\n\n\n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join rollup_conversions_report\n on report.account_id = rollup_conversions_report.account_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads.reddit_ads__ad_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "reddit_ads__ad_report", "resource_type": "model", "package_name": "reddit_ads", "path": "reddit_ads__ad_report.sql", "original_file_path": "models/reddit_ads__ad_report.sql", "unique_id": "model.reddit_ads.reddit_ads__ad_report", "fqn": ["reddit_ads", "reddit_ads__ad_report"], "alias": "reddit_ads__ad_report", "checksum": {"name": "sha256", "checksum": "f15b1a5a445a33560d83b5793146341f7446a9e68202be4f7c998af2529b76ba"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily number of clicks, impressions, and spend per ad, along with account, campaign, ad group, and post information.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_id": {"name": "post_id", "description": "The ID of the post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.519565, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__ad_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_daily_report') }}\n),\n\nads as (\n\n select *\n from {{ var('ad') }}\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group') }}\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign') }}\n),\n\naccounts as (\n\n select *\n from {{ var('account') }}\n),\n\n{# This includes data at the event type level that we'll need to roll up and pivot out #}\nconversions_report as (\n\n select *\n from {{ var('ad_conversions_report') }}\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n ad_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_conversions_passthrough_metrics', transform = 'sum') }}\n\n from conversions_report\n\n {% if var('reddit_ads__conversion_event_types') %}\n where \n {% for event_type in var('reddit_ads__conversion_event_types') %}\n event_name = '{{ event_type|lower }}'\n {% if not loop.last %} or {% endif %} \n {% endfor %}\n {% endif %}\n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n report.ad_id,\n ads.ad_name,\n report.account_id,\n campaigns.campaign_name,\n ads.campaign_id,\n ad_groups.ad_group_name,\n ads.ad_group_id,\n accounts.currency,\n ads.post_id,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n {{ reddit_ads_persist_pass_through_columns(pass_through_variable='reddit_ads__ad_passthrough_metrics', identifier = 'report', transform = 'sum', alias_fields=['conversions', 'view_through_conversions', 'total_value', 'total_items']) }}\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_conversions_passthrough_metrics', transform = 'sum') }}\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join rollup_conversions_report\n on report.ad_id = rollup_conversions_report.ad_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n {{ dbt_utils.group_by(11) }}\n\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_report", "package": null, "version": null}, {"name": "stg_reddit_ads__ad", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_group", "package": null, "version": null}, {"name": "stg_reddit_ads__campaign", "package": null, "version": null}, {"name": "stg_reddit_ads__account", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.reddit_ads.reddit_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_report", "model.reddit_ads_source.stg_reddit_ads__ad", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__campaign", "model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_report\"\n),\n\nads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad\"\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account\"\n),\n\n\nconversions_report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_conversions_report\"\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n ad_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n \n\n\n\n\n\n from conversions_report\n\n \n where \n \n event_name = 'lead'\n or \n \n event_name = 'purchase'\n or \n \n event_name = 'custom'\n \n \n \n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n report.ad_id,\n ads.ad_name,\n report.account_id,\n campaigns.campaign_name,\n ads.campaign_id,\n ad_groups.ad_group_name,\n ads.ad_group_id,\n accounts.currency,\n ads.post_id,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n \n\n\n\n\n\n \n\n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join rollup_conversions_report\n on report.ad_id = rollup_conversions_report.ad_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n group by 1,2,3,4,5,6,7,8,9,10,11\n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads.reddit_ads__ad_group_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "reddit_ads__ad_group_report", "resource_type": "model", "package_name": "reddit_ads", "path": "reddit_ads__ad_group_report.sql", "original_file_path": "models/reddit_ads__ad_group_report.sql", "unique_id": "model.reddit_ads.reddit_ads__ad_group_report", "fqn": ["reddit_ads", "reddit_ads__ad_group_report"], "alias": "reddit_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "da3e58c2430f6d79ff4238d481dce7d78a509733639e6c94900c09fe418fdd67"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily number of clicks, impressions, and spend per ad group, along with campaign and account information.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.518663, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__ad_group_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_group_daily_report') }}\n),\n\nad_groups as (\n\n select *\n from {{ var('ad_group') }}\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign') }}\n),\n\naccounts as (\n\n select *\n from {{ var('account') }}\n),\n\n{# This includes data at the event type level that we'll need to roll up and pivot out #}\nconversions_report as (\n\n select *\n from {{ var('ad_group_conversions_report') }}\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n ad_group_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_group_conversions_passthrough_metrics', transform = 'sum') }}\n\n from conversions_report\n\n {% if var('reddit_ads__conversion_event_types') %}\n where \n {% for event_type in var('reddit_ads__conversion_event_types') %}\n event_name = '{{ event_type|lower }}'\n {% if not loop.last %} or {% endif %} \n {% endfor %}\n {% endif %}\n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n report.account_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n campaigns.campaign_name,\n ad_groups.campaign_id,\n accounts.currency,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n {{ reddit_ads_persist_pass_through_columns(pass_through_variable='reddit_ads__ad_group_passthrough_metrics', identifier = 'report', transform = 'sum', alias_fields=['conversions', 'view_through_conversions', 'total_value', 'total_items']) }}\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_group_conversions_passthrough_metrics', transform = 'sum') }}\n\n from report\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join rollup_conversions_report\n on report.ad_group_id = rollup_conversions_report.ad_group_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n {{ dbt_utils.group_by(8) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group_report", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_group", "package": null, "version": null}, {"name": "stg_reddit_ads__campaign", "package": null, "version": null}, {"name": "stg_reddit_ads__account", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_group_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.reddit_ads.reddit_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__campaign", "model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group_report\"\n),\n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account\"\n),\n\n\nconversions_report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group_conversions_report\"\n),\n\nrollup_conversions_report as (\n\n select \n source_relation,\n date_day,\n ad_group_id,\n sum(conversions) as conversions,\n sum(view_through_conversions) as view_through_conversions,\n sum(total_value) as total_value,\n sum(total_items) as total_items\n\n \n\n\n\n\n\n from conversions_report\n\n \n where \n \n event_name = 'lead'\n or \n \n event_name = 'purchase'\n or \n \n event_name = 'custom'\n \n \n \n\n group by 1,2,3\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n report.account_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n campaigns.campaign_name,\n ad_groups.campaign_id,\n accounts.currency,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(rollup_conversions_report.conversions) as conversions,\n sum(rollup_conversions_report.view_through_conversions) as view_through_conversions,\n sum(rollup_conversions_report.total_value) as total_value,\n sum(rollup_conversions_report.total_items) as total_items\n\n \n\n\n\n\n\n \n\n\n\n\n\n from report\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join rollup_conversions_report\n on report.ad_group_id = rollup_conversions_report.ad_group_id\n and report.source_relation = rollup_conversions_report.source_relation\n and report.date_day = rollup_conversions_report.date_day\n group by 1,2,3,4,5,6,7,8\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest.pinterest_ads__url_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "pinterest_ads__url_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__url_report.sql", "original_file_path": "models/pinterest_ads__url_report.sql", "unique_id": "model.pinterest.pinterest_ads__url_report", "fqn": ["pinterest", "pinterest_ads__url_report"], "alias": "pinterest_ads__url_report", "checksum": {"name": "sha256", "checksum": "908c1c84386adf832d657f43f0a9b735d52e26816bffe046d985b35f035a42c9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the advertiser, campaign, ad group, and url level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "destination_url": {"name": "destination_url", "description": "Pin destination URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_name": {"name": "pin_name", "description": "Pin promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_status": {"name": "pin_status", "description": "The status of the Pin promotion. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_type": {"name": "creative_type", "description": "The creative type. \nOne of \"APP\", \"APP_VIDEO\", \"BOARD\", \"CAROUSEL\", \"CINEMATIC\", \"COMMERCE\", \"MAX_VIDEO\", \"NATIVE_VIDEO\", \"REGULAR\", \n\"SEARCH_PROMINENCE\", \"SEARCH_PROMINENCE_CAROUSEL\", \"SHOPPING\", \"SHOP_THE_PIN\", \"THIRD_PARTY\", or \"VIDEO\".\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.556602, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__url_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('pin_promotion_report') }}\n), \n\npins as (\n\n select *\n from {{ var('pin_promotion_history') }}\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from {{ var('advertiser_history') }}\n where is_most_recent_record = True\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n campaigns.advertiser_id,\n advertisers.advertiser_name,\n report.campaign_id,\n campaigns.campaign_name,\n campaigns.campaign_status,\n report.ad_group_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_status,\n pins.destination_url,\n pins.creative_type,\n report.pin_promotion_id,\n pins.pin_name,\n pins.pin_status,\n pins.base_url,\n pins.url_host,\n pins.url_path,\n pins.utm_source,\n pins.utm_medium,\n pins.utm_campaign,\n pins.utm_content,\n pins.utm_term,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n {{ pinterest_ads_persist_pass_through_columns(pass_through_variable='pinterest__pin_promotion_report_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from report \n left join pins \n on report.pin_promotion_id = pins.pin_promotion_id\n and report.source_relation = pins.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where pins.destination_url is not null\n {% endif %}\n\n {{ dbt_utils.group_by(23) }}\n)\n\nselect * \nfrom joined", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_report", "package": null, "version": null}, {"name": "stg_pinterest_ads__pin_promotion_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__campaign_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__advertiser_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest.pinterest_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report", "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__pin_promotion_report\"\n), \n\npins as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__pin_promotion_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_history\"\n where is_most_recent_record = True\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n campaigns.advertiser_id,\n advertisers.advertiser_name,\n report.campaign_id,\n campaigns.campaign_name,\n campaigns.campaign_status,\n report.ad_group_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_status,\n pins.destination_url,\n pins.creative_type,\n report.pin_promotion_id,\n pins.pin_name,\n pins.pin_status,\n pins.base_url,\n pins.url_host,\n pins.url_path,\n pins.utm_source,\n pins.utm_medium,\n pins.utm_campaign,\n pins.utm_content,\n pins.utm_term,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n \n\n\n\n\n\n from report \n left join pins \n on report.pin_promotion_id = pins.pin_promotion_id\n and report.source_relation = pins.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n\n \n where pins.destination_url is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest.pinterest_ads__campaign_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "pinterest_ads__campaign_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__campaign_report.sql", "original_file_path": "models/pinterest_ads__campaign_report.sql", "unique_id": "model.pinterest.pinterest_ads__campaign_report", "fqn": ["pinterest", "pinterest_ads__campaign_report"], "alias": "pinterest_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "97debbf37bc67d00cc1588959af5618dd61a1ae76870bf7b89d465a0327ad519"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the advertiser and campaign level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.5584, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__campaign_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('campaign_report') }}\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nadvertisers as (\n select *\n from {{ var('advertiser_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n\n select\n report.source_relation,\n report.date_day,\n advertisers.advertiser_name,\n advertisers.advertiser_id,\n campaigns.campaign_name,\n report.campaign_id,\n campaigns.campaign_status,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n {{ pinterest_ads_persist_pass_through_columns(pass_through_variable='pinterest__campaign_report_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from report\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_pinterest_ads__campaign_report", "package": null, "version": null}, {"name": "stg_pinterest_ads__campaign_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__advertiser_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest.pinterest_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__campaign_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nadvertisers as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_history\"\n where is_most_recent_record = True\n),\n\nfields as (\n\n select\n report.source_relation,\n report.date_day,\n advertisers.advertiser_name,\n advertisers.advertiser_id,\n campaigns.campaign_name,\n report.campaign_id,\n campaigns.campaign_status,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n \n\n\n\n\n\n from report\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest.pinterest_ads__keyword_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "pinterest_ads__keyword_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__keyword_report.sql", "original_file_path": "models/pinterest_ads__keyword_report.sql", "unique_id": "model.pinterest.pinterest_ads__keyword_report", "fqn": ["pinterest", "pinterest_ads__keyword_report"], "alias": "pinterest_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "4db46d33b34396c5696e32650cf799d469ec8af67c1532d76c6fe8f312c98634"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of a keyword at the advertiser, campaign, ad group, and keyword level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of match the keyword is tied to. Either Exact or Broad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_type": {"name": "parent_type", "description": "Identifier of what grain the parent type is. Ad group or campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_value": {"name": "keyword_value", "description": "The text value that makes upd the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.560127, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__keyword_report\"", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__pinterest_ads_enabled','pinterest__using_keywords'])) }}\n\nwith report as (\n\n select *\n from {{ var('keyword_report') }}\n), \n\nadvertisers as (\n\n select *\n from {{ var('advertiser_history') }}\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nkeywords as (\n\n select *\n from {{ var('keyword_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n report.source_relation,\n report.date_day,\n advertisers.advertiser_name,\n advertisers.advertiser_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n report.keyword_id,\n keywords.match_type,\n keywords.parent_type,\n keywords.keyword_value,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n {{ pinterest_ads_persist_pass_through_columns(pass_through_variable='pinterest__keyword_report_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from report\n left join keywords\n on report.keyword_id = keywords.keyword_id\n and report.source_relation = keywords.source_relation\n left join ad_groups\n on keywords.ad_group_id = ad_groups.ad_group_id\n and keywords.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_pinterest_ads__keyword_report", "package": null, "version": null}, {"name": "stg_pinterest_ads__advertiser_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__campaign_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.pinterest.pinterest_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report", "model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__keyword_history"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__keyword_report\"\n), \n\nadvertisers as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_history\"\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nkeywords as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__keyword_history\"\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n report.source_relation,\n report.date_day,\n advertisers.advertiser_name,\n advertisers.advertiser_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_id,\n report.keyword_id,\n keywords.match_type,\n keywords.parent_type,\n keywords.keyword_value,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n \n\n\n\n\n\n from report\n left join keywords\n on report.keyword_id = keywords.keyword_id\n and report.source_relation = keywords.source_relation\n left join ad_groups\n on keywords.ad_group_id = ad_groups.ad_group_id\n and keywords.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest.pinterest_ads__advertiser_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "pinterest_ads__advertiser_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__advertiser_report.sql", "original_file_path": "models/pinterest_ads__advertiser_report.sql", "unique_id": "model.pinterest.pinterest_ads__advertiser_report", "fqn": ["pinterest", "pinterest_ads__advertiser_report"], "alias": "pinterest_ads__advertiser_report", "checksum": {"name": "sha256", "checksum": "e278c2ba9130d51525dcc95b70cec41005fc7837f94320f103a44ea5208caee0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of an advertiser on the Pinterest Ads platform.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code which the advertiser is set up using.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country code where the advertiser is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.559144, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__advertiser_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('advertiser_report') }}\n), \n\nadvertisers as (\n\n select *\n from {{ var('advertiser_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n report.source_relation,\n report.date_day,\n advertisers.advertiser_name,\n report.advertiser_id,\n advertisers.currency_code,\n advertisers.country,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n {{ pinterest_ads_persist_pass_through_columns(pass_through_variable='pinterest__advertiser_report_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from report\n left join advertisers\n on cast(report.advertiser_id as {{ dbt.type_string() }}) = cast(advertisers.advertiser_id as {{ dbt.type_string() }})\n and report.source_relation = advertisers.source_relation\n {{ dbt_utils.group_by(6) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_pinterest_ads__advertiser_report", "package": null, "version": null}, {"name": "stg_pinterest_ads__advertiser_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest.pinterest_ads_persist_pass_through_columns", "macro.dbt.type_string", "macro.dbt_utils.group_by"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report", "model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__advertiser_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_report\"\n), \n\nadvertisers as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_history\"\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n report.source_relation,\n report.date_day,\n advertisers.advertiser_name,\n report.advertiser_id,\n advertisers.currency_code,\n advertisers.country,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n \n\n\n\n\n\n from report\n left join advertisers\n on cast(report.advertiser_id as TEXT) = cast(advertisers.advertiser_id as TEXT)\n and report.source_relation = advertisers.source_relation\n group by 1,2,3,4,5,6\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest.pinterest_ads__pin_promotion_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "pinterest_ads__pin_promotion_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__pin_promotion_report.sql", "original_file_path": "models/pinterest_ads__pin_promotion_report.sql", "unique_id": "model.pinterest.pinterest_ads__pin_promotion_report", "fqn": ["pinterest", "pinterest_ads__pin_promotion_report"], "alias": "pinterest_ads__pin_promotion_report", "checksum": {"name": "sha256", "checksum": "6dd79a968e4ad499186896c5309136cfad2f3fc076da09949051d96d64dfc75c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the advertiser, campaign, ad group, and pin level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_type": {"name": "creative_type", "description": "The creative type. \nOne of \"APP\", \"APP_VIDEO\", \"BOARD\", \"CAROUSEL\", \"CINEMATIC\", \"COMMERCE\", \"MAX_VIDEO\", \"NATIVE_VIDEO\", \"REGULAR\", \n\"SEARCH_PROMINENCE\", \"SEARCH_PROMINENCE_CAROUSEL\", \"SHOPPING\", \"SHOP_THE_PIN\", \"THIRD_PARTY\", or \"VIDEO\".\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_name": {"name": "pin_name", "description": "Name of the pin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_status": {"name": "pin_status", "description": "Status of the pin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "destination_url": {"name": "destination_url", "description": "Pin destination URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.560897, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__pin_promotion_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('pin_promotion_report') }}\n), \n\npins as (\n\n select *\n from {{ var('pin_promotion_history') }}\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from {{ var('advertiser_history') }}\n where is_most_recent_record = True\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n campaigns.advertiser_id,\n advertisers.advertiser_name,\n report.campaign_id,\n campaigns.campaign_name,\n campaigns.campaign_status,\n report.ad_group_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_status,\n pins.creative_type,\n report.pin_promotion_id,\n pins.pin_name,\n pins.pin_status,\n pins.destination_url,\n pins.base_url,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n {{ pinterest_ads_persist_pass_through_columns(pass_through_variable='pinterest__pin_promotion_report_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from report \n left join pins \n on report.pin_promotion_id = pins.pin_promotion_id\n and report.source_relation = pins.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n\n {{ dbt_utils.group_by(16) }}\n)\n\nselect * \nfrom joined", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_report", "package": null, "version": null}, {"name": "stg_pinterest_ads__pin_promotion_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__campaign_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__advertiser_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest.pinterest_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report", "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__pin_promotion_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__pin_promotion_report\"\n), \n\npins as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__pin_promotion_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_history\"\n where is_most_recent_record = True\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n campaigns.advertiser_id,\n advertisers.advertiser_name,\n report.campaign_id,\n campaigns.campaign_name,\n campaigns.campaign_status,\n report.ad_group_id,\n ad_groups.ad_group_name,\n ad_groups.ad_group_status,\n pins.creative_type,\n report.pin_promotion_id,\n pins.pin_name,\n pins.pin_status,\n pins.destination_url,\n pins.base_url,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n \n\n\n\n\n\n from report \n left join pins \n on report.pin_promotion_id = pins.pin_promotion_id\n and report.source_relation = pins.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns \n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest.pinterest_ads__ad_group_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "pinterest_ads__ad_group_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__ad_group_report.sql", "original_file_path": "models/pinterest_ads__ad_group_report.sql", "unique_id": "model.pinterest.pinterest_ads__ad_group_report", "fqn": ["pinterest", "pinterest_ads__ad_group_report"], "alias": "pinterest_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "0c9041bc4c1dc47e46d201b0939350615001c4054f31af8a75248905b7c61c9b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the campaign, advertiser, and ad group level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Ad group creation time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Ad group start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "Ad group end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.557811, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__ad_group_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_group_report') }}\n), \n\nadvertisers as (\n\n select *\n from {{ var('advertiser_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n report.source_relation,\n report.date_day,\n advertisers.advertiser_name,\n advertisers.advertiser_id,\n campaigns.campaign_name,\n campaigns.campaign_status,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ad_groups.created_at,\n ad_groups.start_time,\n ad_groups.end_time,\n ad_groups.ad_group_status,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n {{ pinterest_ads_persist_pass_through_columns(pass_through_variable='pinterest__ad_group_report_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from report\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n {{ dbt_utils.group_by(13) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_pinterest_ads__ad_group_report", "package": null, "version": null}, {"name": "stg_pinterest_ads__advertiser_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__campaign_history", "package": null, "version": null}, {"name": "stg_pinterest_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest.pinterest_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report", "model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__ad_group_history"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__ad_group_report\"\n), \n\nadvertisers as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n report.source_relation,\n report.date_day,\n advertisers.advertiser_name,\n advertisers.advertiser_id,\n campaigns.campaign_name,\n campaigns.campaign_status,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ad_groups.created_at,\n ad_groups.start_time,\n ad_groups.end_time,\n ad_groups.ad_group_status,\n sum(report.spend) as spend,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.total_conversions) as total_conversions,\n sum(report.total_conversions_quantity) as total_conversions_quantity,\n sum(report.total_conversions_value) as total_conversions_value\n\n \n\n\n\n\n\n from report\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join advertisers\n on campaigns.advertiser_id = advertisers.advertiser_id\n and campaigns.source_relation = advertisers.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_conversions_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__ad_conversions_report.sql", "original_file_path": "models/stg_reddit_ads__ad_conversions_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__ad_conversions_report"], "alias": "stg_reddit_ads__ad_conversions_report", "checksum": {"name": "sha256", "checksum": "8178e2eaffb6eeaa3d0d51b1f20a93c1fdb87268d81ac6165172e4ad99a301a0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Provides a summary of conversion events at the individual ad level, aggregating key metrics by event and day such as view-through and click-through conversions.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.620715, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_conversions_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__ad_conversions_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__ad_conversions_report_tmp')),\n staging_columns=get_ad_conversions_report_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n _fivetran_synced,\n account_id,\n ad_id,\n date as date_day,\n lower(event_name) as event_name,\n coalesce(total_items,0) as total_items,\n coalesce(total_value,0) as total_value,\n coalesce(click_through_conversion_attribution_window_month,0) as conversions,\n coalesce(view_through_conversion_attribution_window_month,0) as view_through_conversions\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__ad_conversions_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_conversions_report_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_conversions_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_ad_conversions_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__ad_conversions_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_conversions_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n click_through_conversion_attribution_window_month\n \n as \n \n click_through_conversion_attribution_window_month\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n event_name\n \n as \n \n event_name\n \n, \n \n \n total_items\n \n as \n \n total_items\n \n, \n \n \n total_value\n \n as \n \n total_value\n \n, \n \n \n view_through_conversion_attribution_window_month\n \n as \n \n view_through_conversion_attribution_window_month\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n _fivetran_synced,\n account_id,\n ad_id,\n date as date_day,\n lower(event_name) as event_name,\n coalesce(total_items,0) as total_items,\n coalesce(total_value,0) as total_value,\n coalesce(click_through_conversion_attribution_window_month,0) as conversions,\n coalesce(view_through_conversion_attribution_window_month,0) as view_through_conversions\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_conversions_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__ad_group_conversions_report.sql", "original_file_path": "models/stg_reddit_ads__ad_group_conversions_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__ad_group_conversions_report"], "alias": "stg_reddit_ads__ad_group_conversions_report", "checksum": {"name": "sha256", "checksum": "f60f2d427e2bd055808696f3e4d0664ce380fc68733f53d2da846647feac0080"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Provides a summary of conversion events at the ad group level, aggregating key metrics by event and day such as view-through and click-through conversions.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.6202471, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group_conversions_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__ad_group_conversions_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__ad_group_conversions_report_tmp')),\n staging_columns=get_ad_group_conversions_report_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n _fivetran_synced,\n account_id,\n ad_group_id,\n date as date_day,\n lower(event_name) as event_name,\n coalesce(total_items,0) as total_items,\n coalesce(total_value,0) as total_value,\n coalesce(click_through_conversion_attribution_window_month,0) as conversions,\n coalesce(view_through_conversion_attribution_window_month,0) as view_through_conversions\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__ad_group_conversions_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group_conversions_report_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_group_conversions_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_ad_group_conversions_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__ad_group_conversions_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group_conversions_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n click_through_conversion_attribution_window_month\n \n as \n \n click_through_conversion_attribution_window_month\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n event_name\n \n as \n \n event_name\n \n, \n \n \n total_items\n \n as \n \n total_items\n \n, \n \n \n total_value\n \n as \n \n total_value\n \n, \n \n \n view_through_conversion_attribution_window_month\n \n as \n \n view_through_conversion_attribution_window_month\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n _fivetran_synced,\n account_id,\n ad_group_id,\n date as date_day,\n lower(event_name) as event_name,\n coalesce(total_items,0) as total_items,\n coalesce(total_value,0) as total_value,\n coalesce(click_through_conversion_attribution_window_month,0) as conversions,\n coalesce(view_through_conversion_attribution_window_month,0) as view_through_conversions\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__account_conversions_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__account_conversions_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__account_conversions_report.sql", "original_file_path": "models/stg_reddit_ads__account_conversions_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_conversions_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__account_conversions_report"], "alias": "stg_reddit_ads__account_conversions_report", "checksum": {"name": "sha256", "checksum": "b4b613ebec06cf0929e4f85092dd4fa3d12c90fd9a85f29a20570dae58459ba2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Provides a summary of conversion events at the account level, aggregating key metrics by event and day such as view-through and click-through conversions.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.6197839, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account_conversions_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__account_conversions_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__account_conversions_report_tmp')),\n staging_columns=get_account_conversions_report_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n _fivetran_synced,\n account_id,\n date as date_day,\n lower(event_name) as event_name,\n coalesce(total_items,0) as total_items,\n coalesce(total_value,0) as total_value,\n coalesce(click_through_conversion_attribution_window_month,0) as conversions,\n coalesce(view_through_conversion_attribution_window_month,0) as view_through_conversions\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__account_conversions_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__account_conversions_report_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__account_conversions_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_account_conversions_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__account_conversions_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account_conversions_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n click_through_conversion_attribution_window_month\n \n as \n \n click_through_conversion_attribution_window_month\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n event_name\n \n as \n \n event_name\n \n, \n \n \n total_items\n \n as \n \n total_items\n \n, \n \n \n total_value\n \n as \n \n total_value\n \n, \n \n \n view_through_conversion_attribution_window_month\n \n as \n \n view_through_conversion_attribution_window_month\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n _fivetran_synced,\n account_id,\n date as date_day,\n lower(event_name) as event_name,\n coalesce(total_items,0) as total_items,\n coalesce(total_value,0) as total_value,\n coalesce(click_through_conversion_attribution_window_month,0) as conversions,\n coalesce(view_through_conversion_attribution_window_month,0) as view_through_conversions\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_group": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_group", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__ad_group.sql", "original_file_path": "models/stg_reddit_ads__ad_group.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group", "fqn": ["reddit_ads_source", "stg_reddit_ads__ad_group"], "alias": "stg_reddit_ads__ad_group", "checksum": {"name": "sha256", "checksum": "1af74e7161cb11686b326a7adc30aafdda49c74059628509590d5f356655ff7c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents information about each ad group.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_strategy": {"name": "bid_strategy", "description": "The bid strategy for this entity. \"MAXIMIZE_VOLUME\", \"MANUAL_BIDDING\", or \"BIDLESS\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_value": {"name": "bid_value", "description": "The amount to pay in microcurrency per bidding event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time_at": {"name": "end_time_at", "description": "When the entity will stop delivering.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expand_targeting": {"name": "expand_targeting", "description": "Boolean that when selected, allows Reddit to expand your targeting to maximize your results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "goal_type": {"name": "goal_type", "description": "The type of goal for the entity. \"IMPRESSIONS\", \"PERCENTAGE\", \"CLICKS\", \"CONVERSIONS\", \"LIFETIME_SPEND\", \"DAILY_SPEND\", or \"VIDEO_VIEWABLE_IMPRESSIONS\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "goal_value": {"name": "goal_value", "description": "The value used to determine the goal has been met. This is measured in microcurrency for monetary goals types.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization_strategy_type": {"name": "optimization_strategy_type", "description": "The strategy to use when optimizing the delivery of an ad. \"DOWNSTREAM_CONVERSIONS\" or \"APP_INSTALLS\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time_at": {"name": "start_time_at", "description": "When the entity will begin to deliver.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.6179252, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__ad_group_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__ad_group_tmp')),\n staging_columns=get_ad_group_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n bid_strategy,\n bid_value,\n campaign_id,\n configured_status,\n effective_status,\n cast(end_time as {{ dbt.type_timestamp() }}) as end_time_at,\n expand_targeting,\n goal_type,\n goal_value,\n id as ad_group_id,\n is_processing,\n name as ad_group_name,\n optimization_strategy_type,\n cast(start_time as {{ dbt.type_timestamp() }}) as start_time_at\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_group_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_ad_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__ad_group.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n bid_strategy\n \n as \n \n bid_strategy\n \n, \n \n \n bid_value\n \n as \n \n bid_value\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n configured_status\n \n as \n \n configured_status\n \n, \n \n \n effective_status\n \n as \n \n effective_status\n \n, \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n expand_targeting\n \n as \n \n expand_targeting\n \n, \n \n \n goal_type\n \n as \n \n goal_type\n \n, \n \n \n goal_value\n \n as \n \n goal_value\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_processing\n \n as \n \n is_processing\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n optimization_strategy_type\n \n as \n \n optimization_strategy_type\n \n, \n \n \n start_time\n \n as \n \n start_time\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n bid_strategy,\n bid_value,\n campaign_id,\n configured_status,\n effective_status,\n cast(end_time as timestamp) as end_time_at,\n expand_targeting,\n goal_type,\n goal_value,\n id as ad_group_id,\n is_processing,\n name as ad_group_name,\n optimization_strategy_type,\n cast(start_time as timestamp) as start_time_at\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__ad.sql", "original_file_path": "models/stg_reddit_ads__ad.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad", "fqn": ["reddit_ads_source", "stg_reddit_ads__ad"], "alias": "stg_reddit_ads__ad", "checksum": {"name": "sha256", "checksum": "6c0f29e4d4380766f63917eb0e1fc5b9a9c79d9636ba214f97eec44e55f51157"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents information about each ad.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_url": {"name": "click_url", "description": "The destination url, or the website address, that a visitor goes to when they click on the ad", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_id": {"name": "post_id", "description": "The ID of the post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_url": {"name": "post_url", "description": "The URL belonging to the post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rejection_reason": {"name": "rejection_reason", "description": "Reason why entity was rejected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.6165051, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__ad_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__ad_tmp')),\n staging_columns=get_ad_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n account_id,\n ad_group_id,\n campaign_id,\n click_url,\n configured_status,\n effective_status,\n id as ad_id,\n is_processing,\n name as ad_name,\n post_id,\n post_url,\n rejection_reason\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_ad_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__ad.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n click_url\n \n as \n \n click_url\n \n, \n \n \n configured_status\n \n as \n \n configured_status\n \n, \n \n \n effective_status\n \n as \n \n effective_status\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_processing\n \n as \n \n is_processing\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n post_id\n \n as \n \n post_id\n \n, \n \n \n post_url\n \n as \n \n post_url\n \n, \n \n \n rejection_reason\n \n as \n \n rejection_reason\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n account_id,\n ad_group_id,\n campaign_id,\n click_url,\n configured_status,\n effective_status,\n id as ad_id,\n is_processing,\n name as ad_name,\n post_id,\n post_url,\n rejection_reason\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__campaign_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__campaign_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__campaign_report.sql", "original_file_path": "models/stg_reddit_ads__campaign_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__campaign_report"], "alias": "stg_reddit_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "e7e0a9fa9d9338c1acbb60d6fcee39a3233f20d15cbd732395c0dcae6821ab34"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a summary of events for each given date and campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.6193368, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__campaign_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__campaign_report_tmp')),\n staging_columns=get_campaign_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n campaign_id,\n coalesce(clicks,0) as clicks,\n date as date_day,\n coalesce(impressions,0) as impressions,\n region,\n coalesce((spend/1000000),0) as spend\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__campaign_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign_report_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__campaign_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_campaign_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n region\n \n as \n \n region\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n date\n \n as date_day \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n campaign_id,\n coalesce(clicks,0) as clicks,\n date as date_day,\n coalesce(impressions,0) as impressions,\n region,\n coalesce((spend/1000000),0) as spend\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__account": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__account", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__account.sql", "original_file_path": "models/stg_reddit_ads__account.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__account", "fqn": ["reddit_ads_source", "stg_reddit_ads__account"], "alias": "stg_reddit_ads__account", "checksum": {"name": "sha256", "checksum": "9d483fdfc8706aa4eb1cfb477f23310eac813413c9d5c2f30a64d3d860edb101"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents information about an account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attribution_type": {"name": "attribution_type", "description": "Attribution type: \"CLICK_THROUGH_CONVERSION\", \"VIEW_THROUGH_CONVERSION\", or \"ALL_CONVERSION\".\nCLICK_THROUGH_CONVERSION: A user clicked on your ad and then completed the conversion action on your site. \nVIEW_THROUGH_CONVERSION: A user saw your ad and did not click it, but did complete the conversion action on your site.\nALL_CONVERSION: Combination of both.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_attribution_window": {"name": "click_attribution_window", "description": "Determines how long after clicking on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current state of the advertiser. \"PENDING_BILLING\", \"VALID\", \"TRUSTED\", \"ADMIN\", \"FAILED_BILLING\", \"SUSPICIOUS\", \"SUSPENDED\", or \"BANNED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone_id": {"name": "time_zone_id", "description": "The time zone id preference for this account", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_attribution_window": {"name": "view_attribution_window", "description": "Determines how long after viewing on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.615488, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__account_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__account_tmp')),\n staging_columns=get_account_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n attribution_type,\n click_attribution_window,\n cast(created_at as {{ dbt.type_timestamp() }}) as created_at,\n currency,\n id as account_id,\n status,\n time_zone_id,\n view_attribution_window\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__account_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__account_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__account.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n attribution_type\n \n as \n \n attribution_type\n \n, \n \n \n click_attribution_window\n \n as \n \n click_attribution_window\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n time_zone_id\n \n as \n \n time_zone_id\n \n, \n \n \n view_attribution_window\n \n as \n \n view_attribution_window\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n attribution_type,\n click_attribution_window,\n cast(created_at as timestamp) as created_at,\n currency,\n id as account_id,\n status,\n time_zone_id,\n view_attribution_window\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__campaign_conversions_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__campaign_conversions_report.sql", "original_file_path": "models/stg_reddit_ads__campaign_conversions_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__campaign_conversions_report"], "alias": "stg_reddit_ads__campaign_conversions_report", "checksum": {"name": "sha256", "checksum": "46383c46cc0428ae3f28578793575503356d3598d9fc22d534f6bc2bfec29d10"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Provides a summary of conversion events at the campaign level, aggregating key metrics by event and day such as view-through and click-through conversions.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.621224, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign_conversions_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__campaign_conversions_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__campaign_conversions_report_tmp')),\n staging_columns=get_campaign_conversions_report_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n _fivetran_synced,\n account_id,\n campaign_id,\n date as date_day,\n lower(event_name) as event_name,\n coalesce(total_items,0) as total_items,\n coalesce(total_value,0) as total_value,\n coalesce(click_through_conversion_attribution_window_month,0) as conversions,\n coalesce(view_through_conversion_attribution_window_month,0) as view_through_conversions\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__campaign_conversions_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign_conversions_report_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__campaign_conversions_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_campaign_conversions_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__campaign_conversions_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign_conversions_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n click_through_conversion_attribution_window_month\n \n as \n \n click_through_conversion_attribution_window_month\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n event_name\n \n as \n \n event_name\n \n, \n \n \n total_items\n \n as \n \n total_items\n \n, \n \n \n total_value\n \n as \n \n total_value\n \n, \n \n \n view_through_conversion_attribution_window_month\n \n as \n \n view_through_conversion_attribution_window_month\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n _fivetran_synced,\n account_id,\n campaign_id,\n date as date_day,\n lower(event_name) as event_name,\n coalesce(total_items,0) as total_items,\n coalesce(total_value,0) as total_value,\n coalesce(click_through_conversion_attribution_window_month,0) as conversions,\n coalesce(view_through_conversion_attribution_window_month,0) as view_through_conversions\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__account_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__account_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__account_report.sql", "original_file_path": "models/stg_reddit_ads__account_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__account_report"], "alias": "stg_reddit_ads__account_report", "checksum": {"name": "sha256", "checksum": "53e677ea4dc69c19a911841b64a8a902f050e053e802f8eb69379280be188f56"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a summary of events for each given date and account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.615941, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__account_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__account_report_tmp')),\n staging_columns=get_account_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n coalesce(clicks,0) as clicks,\n date as date_day,\n coalesce(impressions,0) as impressions,\n region,\n coalesce((spend/1000000),0) as spend\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__account_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__account_report_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__account_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_account_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n region\n \n as \n \n region\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n date\n \n as date_day \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n coalesce(clicks,0) as clicks,\n date as date_day,\n coalesce(impressions,0) as impressions,\n region,\n coalesce((spend/1000000),0) as spend\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__ad_report.sql", "original_file_path": "models/stg_reddit_ads__ad_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__ad_report"], "alias": "stg_reddit_ads__ad_report", "checksum": {"name": "sha256", "checksum": "acd7771a1d092830b40039eafc650b1de89d3e9cec6b8d70dd426f394d236e4f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a summary of events for each given date and ad.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.616956, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__ad_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__ad_report_tmp')),\n staging_columns=get_ad_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n account_id,\n ad_id,\n coalesce(clicks,0) as clicks,\n date as date_day,\n coalesce(impressions,0) as impressions,\n region,\n coalesce((spend/1000000),0) as spend\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__ad_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_report_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_ad_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n region\n \n as \n \n region\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n date\n \n as date_day \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n account_id,\n ad_id,\n coalesce(clicks,0) as clicks,\n date as date_day,\n coalesce(impressions,0) as impressions,\n region,\n coalesce((spend/1000000),0) as spend\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__campaign": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__campaign", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__campaign.sql", "original_file_path": "models/stg_reddit_ads__campaign.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign", "fqn": ["reddit_ads_source", "stg_reddit_ads__campaign"], "alias": "stg_reddit_ads__campaign", "checksum": {"name": "sha256", "checksum": "6636ef83b99871bb567c3232022490a35f298eb119c2bc236ac10be2c577c33d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents information about each campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Campaign level funding instrument id", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The objective type of a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.618845, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__campaign_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__campaign_tmp')),\n staging_columns=get_campaign_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n configured_status,\n effective_status,\n funding_instrument_id,\n id as campaign_id,\n is_processing,\n name as campaign_name,\n objective\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__campaign_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_campaign_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__campaign.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n configured_status\n \n as \n \n configured_status\n \n, \n \n \n effective_status\n \n as \n \n effective_status\n \n, \n \n \n funding_instrument_id\n \n as \n \n funding_instrument_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_processing\n \n as \n \n is_processing\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n objective\n \n as \n \n objective\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n configured_status,\n effective_status,\n funding_instrument_id,\n id as campaign_id,\n is_processing,\n name as campaign_name,\n objective\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_group_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__ad_group_report.sql", "original_file_path": "models/stg_reddit_ads__ad_group_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__ad_group_report"], "alias": "stg_reddit_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "310c0039b021f42a29dc17aea23d7eca76fccac0d56f85e2ccd9b41afbc1de34"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a summary of events for each given date and ad group.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.618379, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__ad_group_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__ad_group_report_tmp')),\n staging_columns=get_ad_group_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='reddit_ads_union_schemas', \n union_database_variable='reddit_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n account_id,\n ad_group_id,\n coalesce(clicks,0) as clicks,\n date as date_day,\n coalesce(impressions,0) as impressions,\n region,\n coalesce((spend/1000000),0) as spend\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__ad_group_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group_report_tmp", "package": null, "version": null}, {"name": "stg_reddit_ads__ad_group_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_ad_group_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n region\n \n as \n \n region\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n date\n \n as date_day \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n account_id,\n ad_group_id,\n coalesce(clicks,0) as clicks,\n date as date_day,\n coalesce(impressions,0) as impressions,\n region,\n coalesce((spend/1000000),0) as spend\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__campaign_conversions_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__campaign_conversions_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__campaign_conversions_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__campaign_conversions_report_tmp"], "alias": "stg_reddit_ads__campaign_conversions_report_tmp", "checksum": {"name": "sha256", "checksum": "1733299c7e9e1f64bcb7a8b8a0607ef2b506ae2515a10d91d6cc26b8076418d9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.783176, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign_conversions_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_conversions_report', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='campaign_conversions_report',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "campaign_conversions_report"], ["reddit_ads", "campaign_conversions_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.campaign_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__campaign_conversions_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"reddit_ads_campaign_conversions\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__campaign_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__campaign_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__campaign_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__campaign_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__campaign_tmp"], "alias": "stg_reddit_ads__campaign_tmp", "checksum": {"name": "sha256", "checksum": "4d4435020ecdff835411a074498b4dc17da6a74789bdff3ba708de7b0a087c6a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.7877939, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='campaign',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "campaign"], ["reddit_ads", "campaign"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.campaign"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__campaign_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"reddit_ads_campaign_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__ad_group_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__ad_group_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__ad_group_report_tmp"], "alias": "stg_reddit_ads__ad_group_report_tmp", "checksum": {"name": "sha256", "checksum": "4a51b7ef16211bb47421f59ada38a330470d179558d47b9ed631d1c66fb1edd5"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.791882, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_report', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='ad_group_report',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "ad_group_report"], ["reddit_ads", "ad_group_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__ad_group_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_group_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_conversions_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__ad_group_conversions_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__ad_group_conversions_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__ad_group_conversions_report_tmp"], "alias": "stg_reddit_ads__ad_group_conversions_report_tmp", "checksum": {"name": "sha256", "checksum": "0e5a406fae1ecf1cbe5c86fd272e11a261882ac7e7ee4e91e83bf33644978f19"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.795995, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group_conversions_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_conversions_report', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='ad_group_conversions_report',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "ad_group_conversions_report"], ["reddit_ads", "ad_group_conversions_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.ad_group_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__ad_group_conversions_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_group_conversions\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__account_conversions_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__account_conversions_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__account_conversions_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__account_conversions_report_tmp"], "alias": "stg_reddit_ads__account_conversions_report_tmp", "checksum": {"name": "sha256", "checksum": "61a2056f621c4024aa2f58bdf611090a0d68386b3882991912c55cad128b097d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.8005672, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account_conversions_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_conversions_report', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='account_conversions_report',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "account_conversions_report"], ["reddit_ads", "account_conversions_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.account_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__account_conversions_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"reddit_ads_account_conversions\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__campaign_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__campaign_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__campaign_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__campaign_report_tmp"], "alias": "stg_reddit_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "50c0bfb7a7336ba7044f1ecc4225f9efade5a8269f3f8190048541343fe56ef0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.836761, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_report', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='campaign_report',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "campaign_report"], ["reddit_ads", "campaign_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.campaign_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__campaign_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"reddit_ads_campaign_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__account_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__account_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__account_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__account_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__account_report_tmp"], "alias": "stg_reddit_ads__account_report_tmp", "checksum": {"name": "sha256", "checksum": "6867e31cd7eb185dde000130a00d63c56bb1598e46dcd009b5038c7fd7f54927"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.8409212, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_report', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='account_report',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "account_report"], ["reddit_ads", "account_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.account_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__account_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"reddit_ads_account_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__account_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__account_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__account_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__account_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__account_tmp"], "alias": "stg_reddit_ads__account_tmp", "checksum": {"name": "sha256", "checksum": "972af2e96860e35d96195754ec159ac88a9d96f216d72eb92ac7a9f795d1e8e0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.8450649, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='account',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "account"], ["reddit_ads", "account"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.account"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__account_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"reddit_ads_account_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_conversions_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__ad_conversions_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__ad_conversions_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__ad_conversions_report_tmp"], "alias": "stg_reddit_ads__ad_conversions_report_tmp", "checksum": {"name": "sha256", "checksum": "e0504666a60042e3f5714817c4121b9724aa2aa209b03d4611bd4d33524da474"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.849767, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_conversions_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_conversions_report', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='ad_conversions_report',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "ad_conversions_report"], ["reddit_ads", "ad_conversions_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.ad_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__ad_conversions_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_conversions\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_group_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__ad_group_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__ad_group_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__ad_group_tmp"], "alias": "stg_reddit_ads__ad_group_tmp", "checksum": {"name": "sha256", "checksum": "5f0c7dc0a9a3ce9c686d6f5292c3cf37267be63724fe24dfbe0f77c13b480289"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.853842, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='ad_group',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "ad_group"], ["reddit_ads", "ad_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.ad_group"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__ad_group_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__ad_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__ad_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__ad_report_tmp"], "alias": "stg_reddit_ads__ad_report_tmp", "checksum": {"name": "sha256", "checksum": "b030efa9ab67719baf7173f9acde9d70307e31d0a7e0825e2e87610fdfca2903"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.85797, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_report', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='ad_report',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "ad_report"], ["reddit_ads", "ad_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.ad_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__ad_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.reddit_ads_source.stg_reddit_ads__ad_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_reddit_ads__ad_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__ad_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__ad_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__ad_tmp"], "alias": "stg_reddit_ads__ad_tmp", "checksum": {"name": "sha256", "checksum": "014059acc078b839d20487dfedb750a7ed3850b74d41c4770367043f5ff942d9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462182.862036, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad', \n database_variable='reddit_ads_database', \n schema_variable='reddit_ads_schema', \n default_database=target.database,\n default_schema='reddit_ads',\n default_variable='ad',\n union_schema_variable='reddit_ads_union_schemas',\n union_database_variable='reddit_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["reddit_ads", "ad"], ["reddit_ads", "ad"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.reddit_ads_source.reddit_ads.ad"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__ad_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads.google_ads__keyword_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "google_ads__keyword_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__keyword_report.sql", "original_file_path": "models/google_ads__keyword_report.sql", "unique_id": "model.google_ads.google_ads__keyword_report", "fqn": ["google_ads", "google_ads__keyword_report"], "alias": "google_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "635f2c12fc302aecf57b19cd9d286ef0301a0508e7320d45970166db7d8b8409"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the ad group level for keywords.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency which the account uses.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "criterion_id": {"name": "criterion_id", "description": "The unique identifier of the criterion being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of keyword ad being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the keyword ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_match_type": {"name": "keyword_match_type", "description": "The match type criteria used for the keyword ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The specific keyword text that is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.673374, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__keyword_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith stats as (\n\n select *\n from {{ var('keyword_stats') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\ncriterions as (\n\n select *\n from {{ var('ad_group_criterion_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n stats.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n stats.campaign_id,\n ad_groups.ad_group_name,\n stats.ad_group_id,\n stats.criterion_id,\n criterions.type,\n criterions.status,\n criterions.keyword_match_type,\n criterions.keyword_text,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n {{ google_ads_persist_pass_through_columns(pass_through_variable='google_ads__keyword_stats_passthrough_metrics', identifier='stats', transform='sum', coalesce_with=0, exclude_fields=['conversions','conversions_value','view_through_conversions']) }}\n\n from stats\n left join criterions\n on stats.criterion_id = criterions.criterion_id\n and stats.source_relation = criterions.source_relation\n left join ad_groups\n on stats.ad_group_id = ad_groups.ad_group_id\n and stats.source_relation = ad_groups.source_relation\n left join campaigns\n on stats.campaign_id = campaigns.campaign_id\n and stats.source_relation = campaigns.source_relation\n left join accounts\n on stats.account_id = accounts.account_id\n and stats.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(14) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_google_ads__keyword_stats", "package": null, "version": null}, {"name": "stg_google_ads__account_history", "package": null, "version": null}, {"name": "stg_google_ads__campaign_history", "package": null, "version": null}, {"name": "stg_google_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_google_ads__ad_group_criterion_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads.google_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats", "model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__campaign_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__ad_group_criterion_history"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__keyword_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncriterions as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_criterion_history\"\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n stats.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n stats.campaign_id,\n ad_groups.ad_group_name,\n stats.ad_group_id,\n stats.criterion_id,\n criterions.type,\n criterions.status,\n criterions.keyword_match_type,\n criterions.keyword_text,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n \n\n\n\n\n\n from stats\n left join criterions\n on stats.criterion_id = criterions.criterion_id\n and stats.source_relation = criterions.source_relation\n left join ad_groups\n on stats.ad_group_id = ad_groups.ad_group_id\n and stats.source_relation = ad_groups.source_relation\n left join campaigns\n on stats.campaign_id = campaigns.campaign_id\n and stats.source_relation = campaigns.source_relation\n left join accounts\n on stats.account_id = accounts.account_id\n and stats.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads.google_ads__campaign_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "google_ads__campaign_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__campaign_report.sql", "original_file_path": "models/google_ads__campaign_report.sql", "unique_id": "model.google_ads.google_ads__campaign_report", "fqn": ["google_ads", "google_ads__campaign_report"], "alias": "google_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "3fd81cc858986339bbccd9ba00d56233b84572ee2b9d6593ab30fdf7c7b9685c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of a campaign at the campaign/advertising_channel/advertising_channel_subtype level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency which the account uses.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertising_channel_type": {"name": "advertising_channel_type", "description": "The channel type of the ads being served within the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertising_channel_subtype": {"name": "advertising_channel_subtype", "description": "The channel subtype of the ads being served within the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.672239, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__campaign_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith stats as (\n\n select *\n from {{ var('campaign_stats') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n stats.campaign_id,\n campaigns.advertising_channel_type,\n campaigns.advertising_channel_subtype,\n campaigns.status,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n {{ google_ads_persist_pass_through_columns(pass_through_variable='google_ads__campaign_stats_passthrough_metrics', identifier='stats', transform='sum', coalesce_with=0, exclude_fields=['conversions','conversions_value','view_through_conversions']) }}\n\n from stats\n left join campaigns\n on stats.campaign_id = campaigns.campaign_id\n and stats.source_relation = campaigns.source_relation\n left join accounts\n on campaigns.account_id = accounts.account_id\n and campaigns.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(10) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_google_ads__campaign_stats", "package": null, "version": null}, {"name": "stg_google_ads__account_history", "package": null, "version": null}, {"name": "stg_google_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads.google_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats", "model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__campaign_history"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__campaign_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n stats.campaign_id,\n campaigns.advertising_channel_type,\n campaigns.advertising_channel_subtype,\n campaigns.status,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n \n\n\n\n\n\n from stats\n left join campaigns\n on stats.campaign_id = campaigns.campaign_id\n and stats.source_relation = campaigns.source_relation\n left join accounts\n on campaigns.account_id = accounts.account_id\n and campaigns.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7,8,9,10\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads.google_ads__url_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "google_ads__url_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__url_report.sql", "original_file_path": "models/google_ads__url_report.sql", "unique_id": "model.google_ads.google_ads__url_report", "fqn": ["google_ads", "google_ads__url_report"], "alias": "google_ads__url_report", "checksum": {"name": "sha256", "checksum": "8d2cd4722f82eee2577f710682e39810ee3ae509fda9edaddd35be5355ec90ca"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of URLs at the ad level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency which the account uses.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The unique identifier of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.6681778, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__url_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith stats as (\n\n select *\n from {{ var('ad_stats') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n stats.ad_group_id,\n stats.ad_id,\n ads.base_url,\n ads.url_host,\n ads.url_path,\n\n {% if var('google_auto_tagging_enabled', false) %}\n\n coalesce( {{ google_ads_source.google_ads_extract_url_parameter('ads.final_url', 'utm_source') }} , 'google') as utm_source,\n coalesce( {{ google_ads_source.google_ads_extract_url_parameter('ads.final_url', 'utm_medium') }} , 'cpc') as utm_medium,\n coalesce( {{ google_ads_source.google_ads_extract_url_parameter('ads.final_url', 'utm_campaign') }} , campaigns.campaign_name) as utm_campaign,\n coalesce( {{ google_ads_source.google_ads_extract_url_parameter('ads.final_url', 'utm_content') }} , ad_groups.ad_group_name) as utm_content,\n\n {% else %}\n\n ads.utm_source,\n ads.utm_medium,\n ads.utm_campaign,\n ads.utm_content,\n \n {% endif %}\n\n ads.utm_term,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n {{ google_ads_persist_pass_through_columns(pass_through_variable='google_ads__ad_stats_passthrough_metrics', identifier='stats', transform='sum', coalesce_with=0, exclude_fields=['conversions','conversions_value','view_through_conversions']) }}\n\n from stats\n left join ads\n on stats.ad_id = ads.ad_id\n and stats.source_relation = ads.source_relation\n and stats.ad_group_id = ads.ad_group_id\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join accounts\n on campaigns.account_id = accounts.account_id\n and campaigns.source_relation = accounts.source_relation\n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where ads.source_final_urls is not null\n {% endif %}\n\n {{ dbt_utils.group_by(18) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_google_ads__ad_stats", "package": null, "version": null}, {"name": "stg_google_ads__account_history", "package": null, "version": null}, {"name": "stg_google_ads__campaign_history", "package": null, "version": null}, {"name": "stg_google_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_google_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads.google_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats", "model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__campaign_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__ad_history"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_history\"\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_history\"\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n stats.ad_group_id,\n stats.ad_id,\n ads.base_url,\n ads.url_host,\n ads.url_path,\n\n \n\n ads.utm_source,\n ads.utm_medium,\n ads.utm_campaign,\n ads.utm_content,\n \n \n\n ads.utm_term,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n \n\n\n\n\n\n from stats\n left join ads\n on stats.ad_id = ads.ad_id\n and stats.source_relation = ads.source_relation\n and stats.ad_group_id = ads.ad_group_id\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join accounts\n on campaigns.account_id = accounts.account_id\n and campaigns.source_relation = accounts.source_relation\n\n \n where ads.source_final_urls is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads.google_ads__ad_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "google_ads__ad_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__ad_report.sql", "original_file_path": "models/google_ads__ad_report.sql", "unique_id": "model.google_ads.google_ads__ad_report", "fqn": ["google_ads", "google_ads__ad_report"], "alias": "google_ads__ad_report", "checksum": {"name": "sha256", "checksum": "0803e815b631052074e61fa9e8e42a2eb69d06c128d06592c7ea918c6e9eb7b9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the ad level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency which the account uses.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The unique identifier of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The url which is displayed with the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_final_urls": {"name": "source_final_urls", "description": "The final urls that are used within the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_status": {"name": "ad_status", "description": "The status of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_type": {"name": "ad_type", "description": "The type of the ad that is being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.670944, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__ad_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith stats as (\n\n select *\n from {{ var('ad_stats') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n stats.ad_group_id,\n stats.ad_id,\n ads.ad_name,\n ads.ad_status,\n ads.ad_type,\n ads.display_url,\n ads.source_final_urls,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n {{ google_ads_persist_pass_through_columns(pass_through_variable='google_ads__ad_stats_passthrough_metrics', identifier='stats', transform='sum', coalesce_with=0, exclude_fields=['conversions','conversions_value','view_through_conversions']) }}\n\n from stats\n left join ads\n on stats.ad_id = ads.ad_id\n and stats.source_relation = ads.source_relation\n and stats.ad_group_id = ads.ad_group_id\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join accounts\n on campaigns.account_id = accounts.account_id\n and campaigns.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(15) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_google_ads__ad_stats", "package": null, "version": null}, {"name": "stg_google_ads__account_history", "package": null, "version": null}, {"name": "stg_google_ads__campaign_history", "package": null, "version": null}, {"name": "stg_google_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_google_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads.google_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats", "model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__campaign_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__ad_history"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_history\"\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_history\"\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n stats.ad_group_id,\n stats.ad_id,\n ads.ad_name,\n ads.ad_status,\n ads.ad_type,\n ads.display_url,\n ads.source_final_urls,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n \n\n\n\n\n\n from stats\n left join ads\n on stats.ad_id = ads.ad_id\n and stats.source_relation = ads.source_relation\n and stats.ad_group_id = ads.ad_group_id\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n and ads.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join accounts\n on campaigns.account_id = accounts.account_id\n and campaigns.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads.google_ads__ad_group_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "google_ads__ad_group_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__ad_group_report.sql", "original_file_path": "models/google_ads__ad_group_report.sql", "unique_id": "model.google_ads.google_ads__ad_group_report", "fqn": ["google_ads", "google_ads__ad_group_report"], "alias": "google_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "452be61a44029a8145fe60fc172cd1bd27ba45e4de2054865633e87c9bd3a596"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the ad group level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency which the account uses.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "The status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_type": {"name": "ad_group_type", "description": "The type of ad group which is serving ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.669791, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__ad_group_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith stats as (\n\n select *\n from {{ var('ad_group_stats') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n stats.ad_group_id,\n ad_groups.ad_group_status,\n ad_groups.ad_group_type,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n {{ google_ads_persist_pass_through_columns(pass_through_variable='google_ads__ad_group_stats_passthrough_metrics', identifier='stats', transform='sum', coalesce_with=0, exclude_fields=['conversions','conversions_value','view_through_conversions']) }}\n\n from stats\n left join ad_groups\n on stats.ad_group_id = ad_groups.ad_group_id\n and stats.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join accounts\n on campaigns.account_id = accounts.account_id\n and campaigns.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(11) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_stats", "package": null, "version": null}, {"name": "stg_google_ads__account_history", "package": null, "version": null}, {"name": "stg_google_ads__campaign_history", "package": null, "version": null}, {"name": "stg_google_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads.google_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats", "model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__campaign_history", "model.google_ads_source.stg_google_ads__ad_group_history"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n accounts.account_id,\n accounts.currency_code,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n stats.ad_group_id,\n ad_groups.ad_group_status,\n ad_groups.ad_group_type,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value,\n sum(view_through_conversions) as view_through_conversions\n\n \n\n\n\n\n\n from stats\n left join ad_groups\n on stats.ad_group_id = ad_groups.ad_group_id\n and stats.source_relation = ad_groups.source_relation\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n and ad_groups.source_relation = campaigns.source_relation\n left join accounts\n on campaigns.account_id = accounts.account_id\n and campaigns.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads.google_ads__account_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "google_ads__account_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__account_report.sql", "original_file_path": "models/google_ads__account_report.sql", "unique_id": "model.google_ads.google_ads__account_report", "fqn": ["google_ads", "google_ads__account_report"], "alias": "google_ads__account_report", "checksum": {"name": "sha256", "checksum": "2740f351b276fc153ca4e7a3bfb94697d65305ceb9fed6e5717ea6896514f21b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the account level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone which the account is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency which the account uses.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "auto_tagging_enabled": {"name": "auto_tagging_enabled", "description": "Boolean indicating if the account uses auto tagging within ad urls.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.668947, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__account_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith stats as (\n\n select *\n from {{ var('account_stats') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n stats.account_id,\n accounts.currency_code,\n accounts.auto_tagging_enabled,\n accounts.time_zone,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(stats.conversions) as conversions,\n sum(stats.conversions_value) as conversions_value,\n sum(stats.view_through_conversions) as view_through_conversions\n\n {{ google_ads_persist_pass_through_columns(pass_through_variable='google_ads__account_stats_passthrough_metrics', identifier='stats', transform='sum', coalesce_with=0, exclude_fields=['conversions','conversions_value','view_through_conversions']) }}\n\n from stats\n left join accounts\n on stats.account_id = accounts.account_id\n and stats.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_google_ads__account_stats", "package": null, "version": null}, {"name": "stg_google_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads.google_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats", "model.google_ads_source.stg_google_ads__account_history"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n), \n\nfields as (\n\n select\n stats.source_relation,\n stats.date_day,\n accounts.account_name,\n stats.account_id,\n accounts.currency_code,\n accounts.auto_tagging_enabled,\n accounts.time_zone,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions,\n sum(stats.conversions) as conversions,\n sum(stats.conversions_value) as conversions_value,\n sum(stats.view_through_conversions) as view_through_conversions\n\n \n\n\n\n\n\n from stats\n left join accounts\n on stats.account_id = accounts.account_id\n and stats.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__campaign_level_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__campaign_level_report", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__campaign_level_report.sql", "original_file_path": "models/stg_amazon_ads__campaign_level_report.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "fqn": ["amazon_ads_source", "stg_amazon_ads__campaign_level_report"], "alias": "stg_amazon_ads__campaign_level_report", "checksum": {"name": "sha256", "checksum": "faff85e0a0f4e67a8a53f8de1035e545336154fc516d4fc1dd0b994c0228ec01"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Campaign reports contain performance data broken down at the campaign level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_applicable_budget_rule_id": {"name": "campaign_applicable_budget_rule_id", "description": "The ID associated to the active budget rule for a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_applicable_budget_rule_name": {"name": "campaign_applicable_budget_rule_name", "description": "The name associated to the active budget rule for a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_rule_based_budget_amount": {"name": "campaign_rule_based_budget_amount", "description": "The value of the rule-based budget for a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.710005, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_level_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__campaign_level_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__campaign_level_report_tmp')),\n staging_columns=get_campaign_level_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n campaign_applicable_budget_rule_id,\n campaign_applicable_budget_rule_name,\n campaign_bidding_strategy,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n campaign_rule_based_budget_amount,\n clicks,\n cost,\n date as date_day,\n impressions,\n purchases_30_d,\n sales_30_d\n\n {{ amazon_ads_fill_pass_through_columns(pass_through_fields=var('amazon_ads__campaign_passthrough_metrics'), except=['purchases_30_d', 'sales_30_d']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_level_report_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_level_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_campaign_level_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.amazon_ads_source.amazon_ads_fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__campaign_level_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_level_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n campaign_applicable_budget_rule_id\n \n as \n \n campaign_applicable_budget_rule_id\n \n, \n \n \n campaign_applicable_budget_rule_name\n \n as \n \n campaign_applicable_budget_rule_name\n \n, \n \n \n campaign_bidding_strategy\n \n as \n \n campaign_bidding_strategy\n \n, \n \n \n campaign_budget_amount\n \n as \n \n campaign_budget_amount\n \n, \n \n \n campaign_budget_currency_code\n \n as \n \n campaign_budget_currency_code\n \n, \n \n \n campaign_budget_type\n \n as \n \n campaign_budget_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n campaign_rule_based_budget_amount\n \n as \n \n campaign_rule_based_budget_amount\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost\n \n as \n \n cost\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n purchases_30_d\n \n as \n \n purchases_30_d\n \n, \n \n \n sales_30_d\n \n as \n \n sales_30_d\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n campaign_applicable_budget_rule_id,\n campaign_applicable_budget_rule_name,\n campaign_bidding_strategy,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n cast(campaign_id as TEXT) as campaign_id,\n campaign_rule_based_budget_amount,\n clicks,\n cost,\n date as date_day,\n impressions,\n purchases_30_d,\n sales_30_d\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__ad_group_level_report", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__ad_group_level_report.sql", "original_file_path": "models/stg_amazon_ads__ad_group_level_report.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "fqn": ["amazon_ads_source", "stg_amazon_ads__ad_group_level_report"], "alias": "stg_amazon_ads__ad_group_level_report", "checksum": {"name": "sha256", "checksum": "e9a02b686f84b5e0bfaff8e878e8f3459f669cb340f7344e3b61994b7be15d6d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance by Amazon ad group.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.706115, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__ad_group_level_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__ad_group_level_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__ad_group_level_report_tmp')),\n staging_columns=get_ad_group_level_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n campaign_bidding_strategy,\n clicks,\n cost,\n date as date_day,\n impressions,\n purchases_30_d,\n sales_30_d\n \n {{ amazon_ads_fill_pass_through_columns(pass_through_fields=var('amazon_ads__ad_group_passthrough_metrics'), except=['purchases_30_d', 'sales_30_d']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__ad_group_level_report_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__ad_group_level_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_ad_group_level_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.amazon_ads_source.amazon_ads_fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__ad_group_level_report.sql", "compiled": true, "compiled_code": "\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__ad_group_level_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n campaign_bidding_strategy\n \n as \n \n campaign_bidding_strategy\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost\n \n as \n \n cost\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n cast(null as integer) as \n \n purchases_30_d\n \n , \n cast(null as float) as \n \n sales_30_d\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_group_id as TEXT) as ad_group_id,\n campaign_bidding_strategy,\n clicks,\n cost,\n date as date_day,\n impressions,\n purchases_30_d,\n sales_30_d\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__advertised_product_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__advertised_product_report", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__advertised_product_report.sql", "original_file_path": "models/stg_amazon_ads__advertised_product_report.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "fqn": ["amazon_ads_source", "stg_amazon_ads__advertised_product_report"], "alias": "stg_amazon_ads__advertised_product_report", "checksum": {"name": "sha256", "checksum": "d68ba58014d1c07153a6527dfd801e0b7472e9c4c80704c9b591659154ed6553"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Advertised product reports contain performance data for products that are advertised as part of your campaigns.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertised_asin": {"name": "advertised_asin", "description": "The ASIN associated to an advertised product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertised_sku": {"name": "advertised_sku", "description": "The SKU being advertised.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.707468, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__advertised_product_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__advertised_product_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__advertised_product_report_tmp')),\n staging_columns=get_advertised_product_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_id as {{ dbt.type_string() }}) as ad_id,\n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n advertised_asin,\n advertised_sku,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n purchases_30_d,\n sales_30_d\n \n {{ amazon_ads_fill_pass_through_columns(pass_through_fields=var('amazon_ads__advertised_product_passthrough_metrics'), except=['purchases_30_d', 'sales_30_d']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__advertised_product_report_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__advertised_product_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_advertised_product_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.amazon_ads_source.amazon_ads_fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__advertised_product_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__advertised_product_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n advertised_asin\n \n as \n \n advertised_asin\n \n, \n \n \n advertised_sku\n \n as \n \n advertised_sku\n \n, \n \n \n campaign_budget_amount\n \n as \n \n campaign_budget_amount\n \n, \n \n \n campaign_budget_currency_code\n \n as \n \n campaign_budget_currency_code\n \n, \n \n \n campaign_budget_type\n \n as \n \n campaign_budget_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost\n \n as \n \n cost\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n cast(null as integer) as \n \n purchases_30_d\n \n , \n cast(null as float) as \n \n sales_30_d\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_id as TEXT) as ad_id,\n cast(ad_group_id as TEXT) as ad_group_id,\n advertised_asin,\n advertised_sku,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n cast(campaign_id as TEXT) as campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n purchases_30_d,\n sales_30_d\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__portfolio_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__portfolio_history", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__portfolio_history.sql", "original_file_path": "models/stg_amazon_ads__portfolio_history.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history", "fqn": ["amazon_ads_source", "stg_amazon_ads__portfolio_history"], "alias": "stg_amazon_ads__portfolio_history", "checksum": {"name": "sha256", "checksum": "7492e34b2032f5ee64914c76852d669aa3cee452d469f9db719aaa40d7901ec9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a portfolio in Amazon Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_amount": {"name": "budget_amount", "description": "The budget amount associated with the portfolio. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_currency_code": {"name": "budget_currency_code", "description": "The currency used for all monetary values for entities under this profile. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_end_date": {"name": "budget_end_date", "description": "The end date after which the budget is no longer applied. Optional if policy is set to dateRange or monthlyRecurring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_start_date": {"name": "budget_start_date", "description": "The starting date in YYYYMMDD format to which the budget is applied. Required if policy is set to dateRange. Not specified if policy is set to monthlyRecurring. Note that the starting date for monthlyRecurring is the date when the policy is set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_policy": {"name": "budget_policy", "description": "The budget policy. Set to dateRange to specify a budget for a specific period of time. Set to monthlyRecurring to specify a budget that is automatically renewed at the beginning of each month. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "in_budget": {"name": "in_budget", "description": "Indicates the current budget status of the portfolio. Set to true if the portfolio is in budget, set to false if the portfolio is out of budget.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating whether record was the most recent instance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.712596, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__portfolio_history\"", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__amazon_ads_enabled','amazon_ads__portfolio_history_enabled'])) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__portfolio_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__portfolio_history_tmp')),\n staging_columns=get_portfolio_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as portfolio_id,\n budget_amount,\n budget_currency_code,\n budget_end_date,\n budget_policy,\n budget_start_date,\n creation_date,\n in_budget,\n last_updated_date,\n name as portfolio_name,\n cast(profile_id as {{ dbt.type_string() }}) as profile_id,\n serving_status,\n state,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__portfolio_history_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__portfolio_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.amazon_ads_source.get_portfolio_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__portfolio_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__portfolio_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n budget_amount\n \n as \n \n budget_amount\n \n, \n \n \n budget_currency_code\n \n as \n \n budget_currency_code\n \n, \n \n \n budget_end_date\n \n as \n \n budget_end_date\n \n, \n \n \n budget_policy\n \n as \n \n budget_policy\n \n, \n \n \n budget_start_date\n \n as \n \n budget_start_date\n \n, \n \n \n creation_date\n \n as \n \n creation_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n in_budget\n \n as \n \n in_budget\n \n, \n \n \n last_updated_date\n \n as \n \n last_updated_date\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n profile_id\n \n as \n \n profile_id\n \n, \n \n \n serving_status\n \n as \n \n serving_status\n \n, \n \n \n state\n \n as \n \n state\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as TEXT) as portfolio_id,\n budget_amount,\n budget_currency_code,\n budget_end_date,\n budget_policy,\n budget_start_date,\n creation_date,\n in_budget,\n last_updated_date,\n name as portfolio_name,\n cast(profile_id as TEXT) as profile_id,\n serving_status,\n state,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__campaign_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__campaign_history", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__campaign_history.sql", "original_file_path": "models/stg_amazon_ads__campaign_history.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history", "fqn": ["amazon_ads_source", "stg_amazon_ads__campaign_history"], "alias": "stg_amazon_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "2d4efd6602d2d8e18cacbb116dd66d4ca8969a8b7623902fd7084a4572325aca"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a campaign in Amazon Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bidding_strategy": {"name": "bidding_strategy", "description": "The bidding strategy associated with a campaign (legacyForSales, autoForSales, or manual.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget": {"name": "budget", "description": "The budget for the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_type": {"name": "budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_budget": {"name": "effective_budget", "description": "Adjusted budget for the campaign that has been impacted by a budget rule.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "targeting_type": {"name": "targeting_type", "description": "The type of targeting used for the campaign, either manual or auto.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating whether record was the most recent instance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.708983, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__campaign_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as campaign_id,\n last_updated_date,\n bidding_strategy,\n creation_date,\n end_date,\n name as campaign_name,\n cast(portfolio_id as {{ dbt.type_string() }}) as portfolio_id,\n cast(profile_id as {{ dbt.type_string() }}) as profile_id,\n serving_status,\n start_date,\n state,\n targeting_type,\n budget,\n budget_type,\n effective_budget,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n bidding_strategy\n \n as \n \n bidding_strategy\n \n, \n \n \n creation_date\n \n as \n \n creation_date\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_updated_date\n \n as \n \n last_updated_date\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n portfolio_id\n \n as \n \n portfolio_id\n \n, \n \n \n profile_id\n \n as \n \n profile_id\n \n, \n \n \n serving_status\n \n as \n \n serving_status\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n targeting_type\n \n as \n \n targeting_type\n \n, \n \n \n budget\n \n as \n \n budget\n \n, \n \n \n budget_type\n \n as \n \n budget_type\n \n, \n \n \n effective_budget\n \n as \n \n effective_budget\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as TEXT) as campaign_id,\n last_updated_date,\n bidding_strategy,\n creation_date,\n end_date,\n name as campaign_name,\n cast(portfolio_id as TEXT) as portfolio_id,\n cast(profile_id as TEXT) as profile_id,\n serving_status,\n start_date,\n state,\n targeting_type,\n budget,\n budget_type,\n effective_budget,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__product_ad_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__product_ad_history", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__product_ad_history.sql", "original_file_path": "models/stg_amazon_ads__product_ad_history.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history", "fqn": ["amazon_ads_source", "stg_amazon_ads__product_ad_history"], "alias": "stg_amazon_ads__product_ad_history", "checksum": {"name": "sha256", "checksum": "a561e039270a2906c3b2c4612600325afadd04e43ede1e59146f94f89a09e86c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a product in Amazon Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "asin": {"name": "asin", "description": "The ASIN associated with the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sku": {"name": "sku", "description": "The product SKU associated with the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating whether record was the most recent instance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.713444, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__product_ad_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__product_ad_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__product_ad_history_tmp')),\n staging_columns=get_product_ad_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as ad_id,\n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n asin,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n creation_date,\n last_updated_date,\n serving_status,\n sku,\n state,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__product_ad_history_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__product_ad_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_product_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__product_ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__product_ad_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n asin\n \n as \n \n asin\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n creation_date\n \n as \n \n creation_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_updated_date\n \n as \n \n last_updated_date\n \n, \n \n \n serving_status\n \n as \n \n serving_status\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n state\n \n as \n \n state\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as TEXT) as ad_id,\n cast(ad_group_id as TEXT) as ad_group_id,\n asin,\n cast(campaign_id as TEXT) as campaign_id,\n creation_date,\n last_updated_date,\n serving_status,\n sku,\n state,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__targeting_keyword_report", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__targeting_keyword_report.sql", "original_file_path": "models/stg_amazon_ads__targeting_keyword_report.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report", "fqn": ["amazon_ads_source", "stg_amazon_ads__targeting_keyword_report"], "alias": "stg_amazon_ads__targeting_keyword_report", "checksum": {"name": "sha256", "checksum": "70565b72db3435e73426ccce95715ecb48b66aa5e390ea51ff0b19c60eb2d6f1"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Targeting reports contain performance metrics broken down by both targeting expressions and keywords.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_keyword_status": {"name": "ad_keyword_status", "description": "Current status of a keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_bid": {"name": "keyword_bid", "description": "Bid associated with a keyword or targeting expression.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_type": {"name": "keyword_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "targeting": {"name": "targeting", "description": "A string representation of the expression object used in the targeting clause.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.7162051, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__targeting_keyword_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__targeting_keyword_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__targeting_keyword_report_tmp')),\n staging_columns=get_targeting_keyword_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n ad_keyword_status,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n keyword_bid,\n cast(keyword_id as {{ dbt.type_string() }}) as keyword_id,\n keyword_type,\n match_type,\n targeting,\n purchases_30_d,\n sales_30_d\n\n {{ amazon_ads_fill_pass_through_columns(pass_through_fields=var('amazon_ads__targeting_keyword_passthrough_metrics'), except=['purchases_30_d', 'sales_30_d']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__targeting_keyword_report_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__targeting_keyword_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_targeting_keyword_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.amazon_ads_source.amazon_ads_fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__targeting_keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__targeting_keyword_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_keyword_status\n \n as \n \n ad_keyword_status\n \n, \n \n \n campaign_budget_amount\n \n as \n \n campaign_budget_amount\n \n, \n \n \n campaign_budget_currency_code\n \n as \n \n campaign_budget_currency_code\n \n, \n \n \n campaign_budget_type\n \n as \n \n campaign_budget_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost\n \n as \n \n cost\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n keyword_bid\n \n as \n \n keyword_bid\n \n, \n \n \n keyword_id\n \n as \n \n keyword_id\n \n, \n \n \n keyword_type\n \n as \n \n keyword_type\n \n, \n \n \n match_type\n \n as \n \n match_type\n \n, \n \n \n targeting\n \n as \n \n targeting\n \n, \n cast(null as integer) as \n \n purchases_30_d\n \n , \n cast(null as float) as \n \n sales_30_d\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_group_id as TEXT) as ad_group_id,\n ad_keyword_status,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n cast(campaign_id as TEXT) as campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n keyword_bid,\n cast(keyword_id as TEXT) as keyword_id,\n keyword_type,\n match_type,\n targeting,\n purchases_30_d,\n sales_30_d\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__profile": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__profile", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__profile.sql", "original_file_path": "models/stg_amazon_ads__profile.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile", "fqn": ["amazon_ads_source", "stg_amazon_ads__profile"], "alias": "stg_amazon_ads__profile", "checksum": {"name": "sha256", "checksum": "b19222876f75b5b7f2172737e7020be2bd0fe52e2fa55ecfb2eb1c437ac054bf"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a profile. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_marketplace_string_id": {"name": "account_marketplace_string_id", "description": "The identifier of the marketplace to which the account is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account subtype.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "One of seller, vendor, or agency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_valid_payment_method": {"name": "account_valid_payment_method", "description": "For Vendors, this returns if the Advertiser has set up a valid payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency used for all monetary values for entities under this profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget for Sponsored Product campaigns for seller type accounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The time zone used for all date-based campaign management and reporting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.7149382, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__profile\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__profile_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__profile_tmp')),\n staging_columns=get_profile_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as profile_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n account_marketplace_string_id,\n account_name,\n account_sub_type,\n account_type,\n account_valid_payment_method,\n country_code,\n currency_code,\n daily_budget,\n timezone,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__profile_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__profile_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__profile_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__profile.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__profile_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n account_marketplace_string_id\n \n as \n \n account_marketplace_string_id\n \n, \n \n \n account_name\n \n as \n \n account_name\n \n, \n \n \n account_sub_type\n \n as \n \n account_sub_type\n \n, \n \n \n account_type\n \n as \n \n account_type\n \n, \n \n \n account_valid_payment_method\n \n as \n \n account_valid_payment_method\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n daily_budget\n \n as \n \n daily_budget\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as TEXT) as profile_id,\n cast(account_id as TEXT) as account_id,\n account_marketplace_string_id,\n account_name,\n account_sub_type,\n account_type,\n account_valid_payment_method,\n country_code,\n currency_code,\n daily_budget,\n timezone,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__keyword_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__keyword_history", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__keyword_history.sql", "original_file_path": "models/stg_amazon_ads__keyword_history.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history", "fqn": ["amazon_ads_source", "stg_amazon_ads__keyword_history"], "alias": "stg_amazon_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "8fef1df7058e8d7f41b82c40ee263ed0969637aafc90670ab3c2068f3be788fd"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a keyword in Amazon Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid": {"name": "bid", "description": "Bid associated with this keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The exact text for the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "One of (broad, exact, or phrase.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_language_keyword": {"name": "native_language_keyword", "description": "The unlocalized keyword text in the preferred locale of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_language_locale": {"name": "native_language_locale", "description": "The preferred language locale of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating whether record was the most recent instance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.711039, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__keyword_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__keyword_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__keyword_history_tmp')),\n staging_columns=get_keyword_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as keyword_id,\n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n bid,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n creation_date,\n keyword_text,\n last_updated_date,\n match_type,\n native_language_keyword,\n serving_status,\n state,\n native_language_locale,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__keyword_history_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__keyword_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_keyword_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__keyword_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__keyword_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n bid\n \n as \n \n bid\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n creation_date\n \n as \n \n creation_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n keyword_text\n \n as \n \n keyword_text\n \n, \n \n \n last_updated_date\n \n as \n \n last_updated_date\n \n, \n \n \n match_type\n \n as \n \n match_type\n \n, \n \n \n native_language_keyword\n \n as \n \n native_language_keyword\n \n, \n \n \n serving_status\n \n as \n \n serving_status\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n native_language_locale\n \n as \n \n native_language_locale\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as TEXT) as keyword_id,\n cast(ad_group_id as TEXT) as ad_group_id,\n bid,\n cast(campaign_id as TEXT) as campaign_id,\n creation_date,\n keyword_text,\n last_updated_date,\n match_type,\n native_language_keyword,\n serving_status,\n state,\n native_language_locale,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__ad_group_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__ad_group_history", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__ad_group_history.sql", "original_file_path": "models/stg_amazon_ads__ad_group_history.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "fqn": ["amazon_ads_source", "stg_amazon_ads__ad_group_history"], "alias": "stg_amazon_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "ad915eee0f9060ec6076a785633fb14e6a4197f55b4a2f5dfe8e523b3428d7fe"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents an ad group in Amazon Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_bid": {"name": "default_bid", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating whether record was the most recent instance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.7050502, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__ad_group_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__ad_group_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__ad_group_history_tmp')),\n staging_columns=get_ad_group_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as ad_group_id,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n creation_date,\n default_bid,\n last_updated_date,\n name as ad_group_name,\n serving_status,\n state,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__ad_group_history_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__ad_group_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__ad_group_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n creation_date\n \n as \n \n creation_date\n \n, \n \n \n default_bid\n \n as \n \n default_bid\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_updated_date\n \n as \n \n last_updated_date\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n serving_status\n \n as \n \n serving_status\n \n, \n \n \n state\n \n as \n \n state\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as TEXT) as ad_group_id,\n cast(campaign_id as TEXT) as campaign_id,\n creation_date,\n default_bid,\n last_updated_date,\n name as ad_group_name,\n serving_status,\n state,\n row_number() over (partition by source_relation, id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__search_term_ad_keyword_report", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__search_term_ad_keyword_report.sql", "original_file_path": "models/stg_amazon_ads__search_term_ad_keyword_report.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report", "fqn": ["amazon_ads_source", "stg_amazon_ads__search_term_ad_keyword_report"], "alias": "stg_amazon_ads__search_term_ad_keyword_report", "checksum": {"name": "sha256", "checksum": "43ad5dca44d474500e342be039a6942d725816f1006303d496722f8931f00410"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Search term reports contain search term performance metrics broken down by targeting expressions and keywords.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_keyword_status": {"name": "ad_keyword_status", "description": "Current status of a keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_bid": {"name": "keyword_bid", "description": "Bid associated with a keyword or targeting expression.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_term": {"name": "search_term", "description": "The search term used by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "targeting": {"name": "targeting", "description": "A string representation of the expression object used in the targeting clause.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.716989, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__search_term_ad_keyword_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__search_term_ad_keyword_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__search_term_ad_keyword_report_tmp')),\n staging_columns=get_search_term_ad_keyword_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='amazon_ads_union_schemas', \n union_database_variable='amazon_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n ad_keyword_status,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n keyword_bid,\n cast(keyword_id as {{ dbt.type_string() }}) as keyword_id,\n search_term,\n targeting,\n purchases_30_d,\n sales_30_d\n\n {{ amazon_ads_fill_pass_through_columns(pass_through_fields=var('amazon_ads__search_term_ad_keyword_passthrough_metrics'), except=['purchases_30_d', 'sales_30_d']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_amazon_ads__search_term_ad_keyword_report_tmp", "package": null, "version": null}, {"name": "stg_amazon_ads__search_term_ad_keyword_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_search_term_ad_keyword_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.amazon_ads_source.amazon_ads_fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__search_term_ad_keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__search_term_ad_keyword_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n cast(null as TEXT) as \n \n ad_keyword_status\n \n , \n \n \n campaign_budget_amount\n \n as \n \n campaign_budget_amount\n \n, \n \n \n campaign_budget_currency_code\n \n as \n \n campaign_budget_currency_code\n \n, \n \n \n campaign_budget_type\n \n as \n \n campaign_budget_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost\n \n as \n \n cost\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n keyword_bid\n \n as \n \n keyword_bid\n \n, \n \n \n keyword_id\n \n as \n \n keyword_id\n \n, \n \n \n search_term\n \n as \n \n search_term\n \n, \n \n \n targeting\n \n as \n \n targeting\n \n, \n cast(null as integer) as \n \n purchases_30_d\n \n , \n cast(null as float) as \n \n sales_30_d\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_group_id as TEXT) as ad_group_id,\n ad_keyword_status,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n cast(campaign_id as TEXT) as campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n keyword_bid,\n cast(keyword_id as TEXT) as keyword_id,\n search_term,\n targeting,\n purchases_30_d,\n sales_30_d\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__keyword_history_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__keyword_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__keyword_history_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__keyword_history_tmp"], "alias": "stg_amazon_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "c142330a3f12a74e80ec0f0645c51afe68190e156f8e55913f9653d58bade07d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.083515, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__keyword_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='keyword_history', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='keyword_history',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "keyword_history"], ["amazon_ads", "keyword_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.keyword_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__keyword_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"amazon_ads_keyword_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__profile_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__profile_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__profile_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__profile_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__profile_tmp"], "alias": "stg_amazon_ads__profile_tmp", "checksum": {"name": "sha256", "checksum": "3b418e24c0a6ea40bf9d5a6855a3aeb96c4548339c127142014b61602b62da35"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.087726, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__profile_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='profile', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='profile',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "profile"], ["amazon_ads", "profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.profile"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__profile_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"amazon_ads_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__search_term_ad_keyword_report_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__search_term_ad_keyword_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__search_term_ad_keyword_report_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__search_term_ad_keyword_report_tmp"], "alias": "stg_amazon_ads__search_term_ad_keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "ae1c9bf47b0cc22b217eaf505173ce06e0b1861722b9415ab54d4a8f13eac3cc"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.0923572, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__search_term_ad_keyword_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='search_term_ad_keyword_report', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='search_term_ad_keyword_report',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "search_term_ad_keyword_report"], ["amazon_ads", "search_term_ad_keyword_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__search_term_ad_keyword_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"amazon_ads_search_term_ad_keyword_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__product_ad_history_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__product_ad_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__product_ad_history_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__product_ad_history_tmp"], "alias": "stg_amazon_ads__product_ad_history_tmp", "checksum": {"name": "sha256", "checksum": "5cf7d1f7a9db1fc2e083a4c66e20630efb5268b83337f2b51e9134fb74c91062"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.096509, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__product_ad_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='product_ad_history', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='product_ad_history',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "product_ad_history"], ["amazon_ads", "product_ad_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.product_ad_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__product_ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"amazon_ads_product_ad_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__ad_group_history_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__ad_group_history_tmp"], "alias": "stg_amazon_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "a4a15e75690b1457f5e0f40d7dccd135bf8ac2c8598152a159fdac4e7df9c110"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.100596, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__ad_group_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_history', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='ad_group_history',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "ad_group_history"], ["amazon_ads", "ad_group_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.ad_group_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"amazon_ads_ad_group_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__campaign_level_report_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__campaign_level_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__campaign_level_report_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__campaign_level_report_tmp"], "alias": "stg_amazon_ads__campaign_level_report_tmp", "checksum": {"name": "sha256", "checksum": "34b2a26051b11d48d8a3c29349032a928ecd80207c1d2e9222407fa6b3cdd835"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.104668, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_level_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_level_report', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='campaign_level_report',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "campaign_level_report"], ["amazon_ads", "campaign_level_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.campaign_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__campaign_level_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"amazon_ads_campaign_level_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__targeting_keyword_report_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__targeting_keyword_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__targeting_keyword_report_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__targeting_keyword_report_tmp"], "alias": "stg_amazon_ads__targeting_keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "b4171c02c2583338e3767f969b5799359e262da90821bebe28da24bf0db030ce"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.1095412, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__targeting_keyword_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='targeting_keyword_report', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='targeting_keyword_report',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "targeting_keyword_report"], ["amazon_ads", "targeting_keyword_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.targeting_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__targeting_keyword_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"amazon_ads_targeting_keyword_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__portfolio_history_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__portfolio_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__portfolio_history_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__portfolio_history_tmp"], "alias": "stg_amazon_ads__portfolio_history_tmp", "checksum": {"name": "sha256", "checksum": "e3d32e4c31e5335c6eb282ec238bcedbcbe559a9f08e0e3daf3ac682f965b806"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.113599, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__portfolio_history_tmp\"", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__amazon_ads_enabled','amazon_ads__portfolio_history_enabled'])) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='portfolio_history', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='portfolio_history',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "portfolio_history"], ["amazon_ads", "portfolio_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.portfolio_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__portfolio_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"amazon_ads_portfolio_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__campaign_history_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__campaign_history_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__campaign_history_tmp"], "alias": "stg_amazon_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "0187c7725896fbcdf1bbcbae9d300353ed94df3ec8b0d90e8e63f4bf0d266a15"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.117801, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='campaign_history',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "campaign_history"], ["amazon_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.campaign_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"amazon_ads_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__ad_group_level_report_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__ad_group_level_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__ad_group_level_report_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__ad_group_level_report_tmp"], "alias": "stg_amazon_ads__ad_group_level_report_tmp", "checksum": {"name": "sha256", "checksum": "8482674eabaf3fd22e7f482b0baa19f8289a10598455aebc81d56fe90b63f60f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.1225102, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__ad_group_level_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_level_report', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='ad_group_level_report',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "ad_group_level_report"], ["amazon_ads", "ad_group_level_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.ad_group_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__ad_group_level_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"amazon_ads_ad_group_level_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_amazon_ads__advertised_product_report_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__advertised_product_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__advertised_product_report_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__advertised_product_report_tmp"], "alias": "stg_amazon_ads__advertised_product_report_tmp", "checksum": {"name": "sha256", "checksum": "630c5233213d1ccc88fe253f8eeac5b8e4bc415443891fff3687dbdb50ee8ca0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.126554, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__advertised_product_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='advertised_product_report', \n database_variable='amazon_ads_database', \n schema_variable='amazon_ads_schema', \n default_database=target.database,\n default_schema='amazon_ads',\n default_variable='advertised_product_report',\n union_schema_variable='amazon_ads_union_schemas',\n union_database_variable='amazon_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["amazon_ads", "advertised_product_report"], ["amazon_ads", "advertised_product_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.amazon_ads_source.amazon_ads.advertised_product_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__advertised_product_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"amazon_ads_advertised_product_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__creative_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__creative_history", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__creative_history.sql", "original_file_path": "models/stg_linkedin_ads__creative_history.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history", "fqn": ["linkedin_source", "stg_linkedin_ads__creative_history"], "alias": "stg_linkedin_ads__creative_history", "checksum": {"name": "sha256", "checksum": "30d7363c0b9ff9f5079187cbe2ba628a765dd48b2f0f47077e7ee1bade4ee2c6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a 'version' of a creative.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "Unique internal ID representing the creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the creative was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign the creative belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "ACTIVE - Creative creation is complete and creative is available for review and serve.\nPAUSED - Creative creation is complete and creative is current, but should temporarily not be served. This status is not valid upon creation.\nDRAFT - Creative creation is incomplete and may still be edited.\nARCHIVED - Creative creation is complete, but creative should not be served and should be separated from non-archived creatives in any UI.\nCANCELED - Creative is permanently canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_uri": {"name": "click_uri", "description": "The URL where the member should be redirected to, on clicking the text ad or spotlight ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_uri_type": {"name": "click_uri_type", "description": "Will either be `text_ad`, `spotlight`, or `null` to indicate the origin of the click_uri.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Boolean of whether the record is the latest version of the creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.816884, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__creative_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_linkedin_ads__creative_history_tmp') }}\n\n), macro as (\n\n select \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__creative_history_tmp')),\n staging_columns=get_creative_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='linkedin_ads_union_schemas', \n union_database_variable='linkedin_ads_union_databases') \n }}\n\n from base\n\n), fields as (\n\n select\n source_relation,\n id as creative_id,\n campaign_id,\n coalesce(status, intended_status) as status,\n coalesce(text_ad_landing_page, spotlight_landing_page, click_uri) as click_uri,\n cast(coalesce(last_modified_time, last_modified_at) as {{ dbt.type_timestamp() }}) as last_modified_at,\n cast(coalesce(created_time, created_at) as {{ dbt.type_timestamp() }}) as created_at,\n case when text_ad_landing_page is not null then 'text_ad'\n when spotlight_landing_page is not null then 'spotlight'\n else cast(null as {{ dbt.type_string() }})\n end as click_uri_type\n\n from macro\n\n), url_fields as (\n\n select \n *,\n row_number() over (partition by creative_id {{ ', source_relation' if (var('linkedin_ads_union_schemas', []) or var('linkedin_ads_union_databases', []) | length > 1) }} order by last_modified_at desc) = 1 as is_latest_version,\n {{ dbt.split_part('click_uri', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('click_uri') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('click_uri') }} as url_path,\n {{ linkedin_source.linkedin_ads_extract_url_parameter('click_uri', 'utm_source') }} as utm_source,\n {{ linkedin_source.linkedin_ads_extract_url_parameter('click_uri', 'utm_medium') }} as utm_medium,\n {{ linkedin_source.linkedin_ads_extract_url_parameter('click_uri', 'utm_campaign') }} as utm_campaign,\n {{ linkedin_source.linkedin_ads_extract_url_parameter('click_uri', 'utm_content') }} as utm_content,\n {{ linkedin_source.linkedin_ads_extract_url_parameter('click_uri', 'utm_term') }} as utm_term\n \n from fields\n)\n\nselect *\nfrom url_fields", "language": "sql", "refs": [{"name": "stg_linkedin_ads__creative_history_tmp", "package": null, "version": null}, {"name": "stg_linkedin_ads__creative_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_creative_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.linkedin_source.linkedin_ads_extract_url_parameter"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history_tmp"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__creative_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__creative_history_tmp\"\n\n), macro as (\n\n select \n \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n click_uri\n \n as \n \n click_uri\n \n, \n \n \n created_time\n \n as \n \n created_time\n \n, \n cast(null as timestamp) as \n \n created_at\n \n , \n \n \n id\n \n as \n \n id\n \n, \n cast(null as timestamp) as \n \n last_modified_time\n \n , \n \n \n last_modified_at\n \n as \n \n last_modified_at\n \n, \n \n \n intended_status\n \n as \n \n intended_status\n \n, \n cast(null as TEXT) as \n \n status\n \n , \n \n \n text_ad_landing_page\n \n as \n \n text_ad_landing_page\n \n, \n \n \n spotlight_landing_page\n \n as \n \n spotlight_landing_page\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n), fields as (\n\n select\n source_relation,\n id as creative_id,\n campaign_id,\n coalesce(status, intended_status) as status,\n coalesce(text_ad_landing_page, spotlight_landing_page, click_uri) as click_uri,\n cast(coalesce(last_modified_time, last_modified_at) as timestamp) as last_modified_at,\n cast(coalesce(created_time, created_at) as timestamp) as created_at,\n case when text_ad_landing_page is not null then 'text_ad'\n when spotlight_landing_page is not null then 'spotlight'\n else cast(null as TEXT)\n end as click_uri_type\n\n from macro\n\n), url_fields as (\n\n select \n *,\n row_number() over (partition by creative_id order by last_modified_at desc) = 1 as is_latest_version,\n \n\n \n \n\n split_part(\n click_uri,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n click_uri,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_source,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n click_uri,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_medium,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n click_uri,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_campaign,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n click_uri,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_content,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n click_uri,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_term\n \n from fields\n)\n\nselect *\nfrom url_fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__campaign_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__campaign_history", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__campaign_history.sql", "original_file_path": "models/stg_linkedin_ads__campaign_history.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history", "fqn": ["linkedin_source", "stg_linkedin_ads__campaign_history"], "alias": "stg_linkedin_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "52762e6568594efdf86d7a2c9d7835ea0731487902dd9c7746979e47dd1caa13"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a 'version' of a campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Unique internal ID representing the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account the campaign belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "The ID of the campaign group the campaign belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the campaign was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "A label for the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_audience_expansion_enabled": {"name": "is_audience_expansion_enabled", "description": "Boolean (default=false) representing whether Audience Expansion is enabled for the campaign provides query expansion for certain targeting criteria.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_type": {"name": "cost_type", "description": "CPM - Cost per thousand advertising impressions. If type=SPONSORED_INMAILS; cost per send(CPS) is measured as CPM x 1000.\nCPC- Cost per individual click on the associated link.\nCPV- Cost per view for video ads.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_selection": {"name": "creative_selection", "description": "ROUND_ROBIN - Rotate through available creatives to serve them as evenly as possible.\nOPTIMIZED (default) - Bias selection taking into account such as expected performance. Not available for Message and Conversation Ads (type=SPONSORED_INMAILS).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_amount": {"name": "daily_budget_amount", "description": "Maximum amount to spend per day UTC. The amount of money as a real number string.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_currency_code": {"name": "daily_budget_currency_code", "description": "ISO currency code. The currency must match that of the parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "format": {"name": "format", "description": "The ad format on the campaign level. See https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads/campaign-formats?view=li-lms-2022-07", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "locale_country": {"name": "locale_country", "description": "Locale of the campaign. An uppercase two-letter country code as defined by ISO-3166.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "locale_language": {"name": "locale_language", "description": "Locale of the campaign. A lowercase two-letter language code as defined by ISO-639.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective_type": {"name": "objective_type", "description": "Campaign Objective type values. Click [here](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ad-budget-pricing-type-combinations?view=li-lms-2022-07) for Campaign Objective descriptions. One of: - BRAND_AWARENESS - ENGAGEMENT - JOB_APPLICANTS - LEAD_GENERATION - WEBSITE_CONVERSIONS - WEBSITE_VISITS - VIDEO_VIEWS\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_offsite_delivery_enabled": {"name": "is_offsite_delivery_enabled", "description": "Boolean indicating if this campaign to allowed to be served on the LinkedIn Audience Network to extend the reach of your campaign by delivering ads beyond the LinkedIn feed to members on third-party apps and sites.\t(default will be \"True\" from June 30, 2022)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization_target_type": {"name": "optimization_target_type", "description": "Determines how this campaign is optimized for spending. If this is not set, there is no optimization. Refer to the documentation here. Default = 'NONE'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_start_at": {"name": "run_schedule_start_at", "description": "Scheduled date range to run associated creatives. The start date must be non-null. Represents the inclusive (greater than or equal to) value in which to start the range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_end_at": {"name": "run_schedule_end_at", "description": "Scheduled date range to run associated creatives. The start date must be non-null. Represents the exclusive (strictly less than) value in which to end the range, if provided.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "ACTIVE - Denotes that the campaign is fully servable.\nPAUSED - Denotes that the campaign meets all requirements to be served, but temporarily should not be.\nARCHIVED - Denotes that the campaign is presently inactive, and should mostly be hidden in the UI until un-archived.\nCOMPLETED - Denotes that the campaign has reached a specified budgetary or chronological limit.\nCANCELED - Denotes that the campaign has been permanently canceled, such as when an advertising account is permanently closed.\nDRAFT - Denotes that the campaign is still being edited and not eligible for serving. Some validation will be postponed until the campaign is activated.\nPENDING_DELETION - Denotes that the campaign has been requested to be deleted that is currently pending.\nREMOVED - Denotes that the campaign was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "TEXT_AD - Text-based ads that show up in the right column or top of the page on LinkedIn.\nSPONSORED_UPDATES - Native ads that promote a company's content updates in the LinkedIn feed.\nSPONSORED_INMAILS - Personalized messages with a call-to-action button delivered to a LinkedIn's member inbox.\nDYNAMIC - Ads that are dynamically personalized.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "This value is used as one of the following: amount to bid (for manual bidding), amount which is the target cost (for target cost bidding) per click, impression, or other event depending on the pricing model, or cost cap (for cost cap bidding). The amount of money as a real number string. The amount should be non-negative if the bidding strategy is manual, target cost, or cost cap bidding. The default is 0 with the currency code set to match that of the associated account.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Amount to bid per click, impression, or other event depending on the pricing model. The default is 0 with the currency code set to match that of the associated account. ISO currency code.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Boolean of whether the record is the latest version of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.819995, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_linkedin_ads__campaign_history_tmp') }}\n\n), macro as (\n\n select \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='linkedin_ads_union_schemas', \n union_database_variable='linkedin_ads_union_databases') \n }}\n\n from base\n\n), fields as (\n\n select \n source_relation,\n id as campaign_id,\n name as campaign_name,\n cast(version_tag as numeric) as version_tag,\n campaign_group_id,\n account_id,\n status,\n type,\n cost_type,\n creative_selection,\n daily_budget_amount,\n daily_budget_currency_code,\n unit_cost_amount,\n unit_cost_currency_code,\n format,\n locale_country,\n locale_language,\n objective_type,\n optimization_target_type,\n audience_expansion_enabled as is_audience_expansion_enabled,\n offsite_delivery_enabled as is_offsite_delivery_enabled,\n cast(run_schedule_start as {{ dbt.type_timestamp() }}) as run_schedule_start_at,\n cast(run_schedule_end as {{ dbt.type_timestamp() }}) as run_schedule_end_at,\n cast(last_modified_time as {{ dbt.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt.type_timestamp() }}) as created_at,\n row_number() over (partition by id {{ ', source_relation' if (var('linkedin_ads_union_schemas', []) or var('linkedin_ads_union_databases', []) | length > 1) }} order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_history_tmp\"\n\n), macro as (\n\n select \n \n \n \n account_id\n \n as \n \n account_id\n \n, \n cast(null as boolean) as \n \n audience_expansion_enabled\n \n , \n \n \n campaign_group_id\n \n as \n \n campaign_group_id\n \n, \n cast(null as TEXT) as \n \n cost_type\n \n , \n \n \n created_time\n \n as \n \n created_time\n \n, \n cast(null as TEXT) as \n \n creative_selection\n \n , \n cast(null as float) as \n \n daily_budget_amount\n \n , \n cast(null as TEXT) as \n \n daily_budget_currency_code\n \n , \n cast(null as TEXT) as \n \n format\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_modified_time\n \n as \n \n last_modified_time\n \n, \n cast(null as TEXT) as \n \n locale_country\n \n , \n cast(null as TEXT) as \n \n locale_language\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as TEXT) as \n \n objective_type\n \n , \n cast(null as boolean) as \n \n offsite_delivery_enabled\n \n , \n cast(null as TEXT) as \n \n optimization_target_type\n \n , \n cast(null as timestamp) as \n \n run_schedule_end\n \n , \n cast(null as timestamp) as \n \n run_schedule_start\n \n , \n cast(null as TEXT) as \n \n status\n \n , \n cast(null as TEXT) as \n \n type\n \n , \n cast(null as float) as \n \n unit_cost_amount\n \n , \n cast(null as TEXT) as \n \n unit_cost_currency_code\n \n , \n \n \n version_tag\n \n as \n \n version_tag\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n), fields as (\n\n select \n source_relation,\n id as campaign_id,\n name as campaign_name,\n cast(version_tag as numeric) as version_tag,\n campaign_group_id,\n account_id,\n status,\n type,\n cost_type,\n creative_selection,\n daily_budget_amount,\n daily_budget_currency_code,\n unit_cost_amount,\n unit_cost_currency_code,\n format,\n locale_country,\n locale_language,\n objective_type,\n optimization_target_type,\n audience_expansion_enabled as is_audience_expansion_enabled,\n offsite_delivery_enabled as is_offsite_delivery_enabled,\n cast(run_schedule_start as timestamp) as run_schedule_start_at,\n cast(run_schedule_end as timestamp) as run_schedule_end_at,\n cast(last_modified_time as timestamp) as last_modified_at,\n cast(created_time as timestamp) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__ad_analytics_by_campaign", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__ad_analytics_by_campaign.sql", "original_file_path": "models/stg_linkedin_ads__ad_analytics_by_campaign.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "fqn": ["linkedin_source", "stg_linkedin_ads__ad_analytics_by_campaign"], "alias": "stg_linkedin_ads__ad_analytics_by_campaign", "checksum": {"name": "sha256", "checksum": "1b532a9a4e1b9aeeccd19e0294f9420fff6721de9807f6854aa40d4b8f584a68"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the campaign level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.8156228, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__ad_analytics_by_campaign\"", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_linkedin_ads__ad_analytics_by_campaign_tmp') }}\n),\n\nmacro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__ad_analytics_by_campaign_tmp')),\n staging_columns=get_ad_analytics_by_campaign_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='linkedin_ads_union_schemas', \n union_database_variable='linkedin_ads_union_databases') \n }}\n\n from base\n),\n\nfields as (\n \n select \n source_relation,\n {{ dbt.date_trunc('day', 'day') }} as date_day,\n campaign_id,\n clicks,\n impressions,\n {% if var('linkedin_ads__use_local_currency', false) %}\n cost_in_local_currency as cost,\n {% else %}\n cost_in_usd as cost,\n {% endif %}\n\n coalesce(cast(conversion_value_in_local_currency as {{ dbt.type_float() }}), 0) as conversion_value_in_local_currency\n\n {% for conversion in var('linkedin_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {{ linkedin_ads_fill_pass_through_columns(pass_through_fields=var('linkedin_ads__campaign_passthrough_metrics'), except=(var('linkedin_ads__conversion_fields') + ['conversion_value_in_local_currency'])) }}\n\n from macro\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "package": null, "version": null}, {"name": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_ad_analytics_by_campaign_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_float", "macro.dbt.type_bigint", "macro.linkedin_source.linkedin_ads_fill_pass_through_columns"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__ad_analytics_by_campaign.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__ad_analytics_by_campaign_tmp\"\n),\n\nmacro as (\n\n select\n \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost_in_local_currency\n \n as \n \n cost_in_local_currency\n \n, \n \n \n cost_in_usd\n \n as \n \n cost_in_usd\n \n, \n \n \n day\n \n as \n \n day\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n conversion_value_in_local_currency\n \n as \n \n conversion_value_in_local_currency\n \n, \n \n \n external_website_conversions\n \n as \n \n external_website_conversions\n \n, \n \n \n one_click_leads\n \n as \n \n one_click_leads\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfields as (\n \n select \n source_relation,\n date_trunc('day', day) as date_day,\n campaign_id,\n clicks,\n impressions,\n \n cost_in_usd as cost,\n \n\n coalesce(cast(conversion_value_in_local_currency as float), 0) as conversion_value_in_local_currency\n\n \n , coalesce(cast(external_website_conversions as bigint), 0) as external_website_conversions\n \n , coalesce(cast(one_click_leads as bigint), 0) as one_click_leads\n \n\n \n\n\n\n\n\n from macro\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__campaign_group_history", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__campaign_group_history.sql", "original_file_path": "models/stg_linkedin_ads__campaign_group_history.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "fqn": ["linkedin_source", "stg_linkedin_ads__campaign_group_history"], "alias": "stg_linkedin_ads__campaign_group_history", "checksum": {"name": "sha256", "checksum": "1648f6e9422ceab665ee1431a805182beca8cb470d1bb839628796f653f83322"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a 'version' of a campaign group.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account the campaign group belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the campaign group was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_backfilled": {"name": "is_backfilled", "description": "Flag that denotes whether the campaign group was created organically or to backfill existing campaigns. This is a read-only field set by the system. Default = false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_start_at": {"name": "run_schedule_start_at", "description": "Represents the inclusive (greater than or equal to) date when to start running the associated campaigns under this campaign group. This field is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_end_at": {"name": "run_schedule_end_at", "description": "Represents the exclusive (strictly less than) date when to stop running the associated campaigns under this campaign group. If this field is unset, it indicates an open range with no end date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of campaign group. Possible values are: ACTIVE - Denotes that the campaign group is capable of serving ads, subject to run date and budget limitations (as well as any other limitations at the account or campaign level). ARCHIVED - Denotes that the campaign group is presently inactive, and should mostly be hidden in the UI until un-archived. CANCELLED - Denotes that the campaign group has been permanently canceled and cannot be reactivated. Not a settable status. DRAFT - Denotes that the campaign group is in a preliminary state and should temporarily not be served. PAUSED - Denotes that the campaign group meets all requirements to be served, but temporarily should not be. PENDING_DELETION - Denotes that the campaign group has been requested to be deleted that is currently pending. REMOVED - Denoted that the campaign group was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Boolean of whether the record is the latest version of the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.820865, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_group_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_linkedin_ads__campaign_group_history_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__campaign_group_history_tmp')),\n staging_columns=get_campaign_group_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='linkedin_ads_union_schemas', \n union_database_variable='linkedin_ads_union_databases') \n }}\n\n from base\n\n), fields as (\n\n select \n source_relation,\n id as campaign_group_id,\n name as campaign_group_name,\n account_id,\n status,\n backfilled as is_backfilled,\n cast(run_schedule_start as {{ dbt.type_timestamp() }}) as run_schedule_start_at,\n cast(run_schedule_end as {{ dbt.type_timestamp() }}) as run_schedule_end_at,\n cast(last_modified_time as {{ dbt.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt.type_timestamp() }}) as created_at,\n row_number() over (partition by id {{ ', source_relation' if (var('linkedin_ads_union_schemas', []) or var('linkedin_ads_union_databases', []) | length > 1) }} order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_group_history_tmp", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_group_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_campaign_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__campaign_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_group_history_tmp\"\n\n), macro as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n cast(null as boolean) as \n \n backfilled\n \n , \n \n \n created_time\n \n as \n \n created_time\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_modified_time\n \n as \n \n last_modified_time\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as timestamp) as \n \n run_schedule_end\n \n , \n cast(null as timestamp) as \n \n run_schedule_start\n \n , \n cast(null as TEXT) as \n \n status\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n), fields as (\n\n select \n source_relation,\n id as campaign_group_id,\n name as campaign_group_name,\n account_id,\n status,\n backfilled as is_backfilled,\n cast(run_schedule_start as timestamp) as run_schedule_start_at,\n cast(run_schedule_end as timestamp) as run_schedule_end_at,\n cast(last_modified_time as timestamp) as last_modified_at,\n cast(created_time as timestamp) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__account_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__account_history", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__account_history.sql", "original_file_path": "models/stg_linkedin_ads__account_history.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history", "fqn": ["linkedin_source", "stg_linkedin_ads__account_history"], "alias": "stg_linkedin_ads__account_history", "checksum": {"name": "sha256", "checksum": "2acd5b14f8536cc29cbc2f326e20e451073a9d7098db5d7e654839a3c58b8dba"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a 'version' of an account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The ISO 4217 currency code of the account, such as 'USD' for United States Dollar (default).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "ACTIVE - Account is active; this is the default state\nCANCELLED - Account has been permanently cancelled\nDRAFT - Account is in draft status, meaning it's not yet fully set up and it is not serving\nPENDING_DELETION - Denotes that the account has been requested to be deleted that is currently pending\nREMOVED - Denotes that the account was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "BUSINESS - This is the only value allowed when creating accounts through the API.\nENTERPRISE - This value cannot be used to create accounts through the API and is reserved for accounts created by LinkedIn's internal ad operations systems.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Boolean of whether the record is the latest version of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.821398, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__account_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_linkedin_ads__account_history_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__account_history_tmp')),\n staging_columns=get_account_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='linkedin_ads_union_schemas', \n union_database_variable='linkedin_ads_union_databases') \n }}\n\n from base\n\n), fields as (\n\n select \n source_relation,\n id as account_id,\n name as account_name,\n currency,\n cast(version_tag as numeric) as version_tag,\n status,\n type,\n cast(last_modified_time as {{ dbt.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt.type_timestamp() }}) as created_at,\n row_number() over (partition by id {{ ', source_relation' if (var('linkedin_ads_union_schemas', []) or var('linkedin_ads_union_databases', []) | length > 1) }} order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_linkedin_ads__account_history_tmp", "package": null, "version": null}, {"name": "stg_linkedin_ads__account_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history_tmp"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__account_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__account_history_tmp\"\n\n), macro as (\n\n select\n \n \n \n created_time\n \n as \n \n created_time\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_modified_time\n \n as \n \n last_modified_time\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as TEXT) as \n \n status\n \n , \n cast(null as TEXT) as \n \n type\n \n , \n \n \n version_tag\n \n as \n \n version_tag\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n), fields as (\n\n select \n source_relation,\n id as account_id,\n name as account_name,\n currency,\n cast(version_tag as numeric) as version_tag,\n status,\n type,\n cast(last_modified_time as timestamp) as last_modified_at,\n cast(created_time as timestamp) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__ad_analytics_by_creative", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__ad_analytics_by_creative.sql", "original_file_path": "models/stg_linkedin_ads__ad_analytics_by_creative.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative", "fqn": ["linkedin_source", "stg_linkedin_ads__ad_analytics_by_creative"], "alias": "stg_linkedin_ads__ad_analytics_by_creative", "checksum": {"name": "sha256", "checksum": "c8c3dd2d342376a278622b3d904ca93abbf7f3108ef7ad2c3c2a7471a6019e58"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the creative level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin_source://models/stg_linkedin.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.8151119, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__ad_analytics_by_creative\"", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_linkedin_ads__ad_analytics_by_creative_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__ad_analytics_by_creative_tmp')),\n staging_columns=get_ad_analytics_by_creative_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='linkedin_ads_union_schemas', \n union_database_variable='linkedin_ads_union_databases') \n }}\n\n from base\n\n), fields as (\n\n select\n source_relation,\n {{ dbt.date_trunc('day', 'day') }} as date_day,\n creative_id,\n clicks, \n impressions,\n {% if var('linkedin_ads__use_local_currency', false) %}\n cost_in_local_currency as cost,\n {% else %}\n cost_in_usd as cost,\n {% endif %}\n\n coalesce(cast(conversion_value_in_local_currency as {{ dbt.type_float() }}), 0) as conversion_value_in_local_currency\n\n {% for conversion in var('linkedin_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {{ linkedin_ads_fill_pass_through_columns(pass_through_fields=var('linkedin_ads__creative_passthrough_metrics'), except=(var('linkedin_ads__conversion_fields') + ['conversion_value_in_local_currency'])) }}\n\n from macro\n\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "package": null, "version": null}, {"name": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_ad_analytics_by_creative_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_float", "macro.dbt.type_bigint", "macro.linkedin_source.linkedin_ads_fill_pass_through_columns"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__ad_analytics_by_creative.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__ad_analytics_by_creative_tmp\"\n\n), macro as (\n\n select\n \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost_in_local_currency\n \n as \n \n cost_in_local_currency\n \n, \n \n \n cost_in_usd\n \n as \n \n cost_in_usd\n \n, \n \n \n creative_id\n \n as \n \n creative_id\n \n, \n \n \n day\n \n as \n \n day\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n conversion_value_in_local_currency\n \n as \n \n conversion_value_in_local_currency\n \n, \n \n \n external_website_conversions\n \n as \n \n external_website_conversions\n \n, \n \n \n one_click_leads\n \n as \n \n one_click_leads\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n), fields as (\n\n select\n source_relation,\n date_trunc('day', day) as date_day,\n creative_id,\n clicks, \n impressions,\n \n cost_in_usd as cost,\n \n\n coalesce(cast(conversion_value_in_local_currency as float), 0) as conversion_value_in_local_currency\n\n \n , coalesce(cast(external_website_conversions as bigint), 0) as external_website_conversions\n \n , coalesce(cast(one_click_leads as bigint), 0) as one_click_leads\n \n\n \n\n\n\n\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__ad_analytics_by_creative_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__ad_analytics_by_creative_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__ad_analytics_by_creative_tmp"], "alias": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "checksum": {"name": "sha256", "checksum": "3875350fd6f19fb9585c697c1f6413f7e56e37cf7419dc340b5c94b94d0fe987"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.220076, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__ad_analytics_by_creative_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_analytics_by_creative', \n database_variable='linkedin_ads_database', \n schema_variable='linkedin_ads_schema', \n default_database=target.database,\n default_schema='linkedin_ads',\n default_variable='ad_analytics_by_creative',\n union_schema_variable='linkedin_ads_union_schemas',\n union_database_variable='linkedin_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["linkedin_ads", "ad_analytics_by_creative"], ["linkedin_ads", "ad_analytics_by_creative"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.linkedin_source.linkedin_ads.ad_analytics_by_creative"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__ad_analytics_by_creative_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"linkedin_ad_analytics_by_creative_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__campaign_history_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__campaign_history_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__campaign_history_tmp"], "alias": "stg_linkedin_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "57277904daa40b519f861f012daf16c101dfef12ba3e9d613b718c5cdb8de610"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.225128, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='linkedin_ads_database', \n schema_variable='linkedin_ads_schema', \n default_database=target.database,\n default_schema='linkedin_ads',\n default_variable='campaign_history',\n union_schema_variable='linkedin_ads_union_schemas',\n union_database_variable='linkedin_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["linkedin_ads", "campaign_history"], ["linkedin_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.linkedin_source.linkedin_ads.campaign_history"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"linkedin_ad_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__account_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__account_history_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__account_history_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__account_history_tmp"], "alias": "stg_linkedin_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "caea086945e8fcbcc122f063bc8667a1f509f2b210498598e49fa310ab53c04b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.229384, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__account_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_history', \n database_variable='linkedin_ads_database', \n schema_variable='linkedin_ads_schema', \n default_database=target.database,\n default_schema='linkedin_ads',\n default_variable='account_history',\n union_schema_variable='linkedin_ads_union_schemas',\n union_database_variable='linkedin_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["linkedin_ads", "account_history"], ["linkedin_ads", "account_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.linkedin_source.linkedin_ads.account_history"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__account_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"linkedin_ad_account_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__campaign_group_history_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__campaign_group_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__campaign_group_history_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__campaign_group_history_tmp"], "alias": "stg_linkedin_ads__campaign_group_history_tmp", "checksum": {"name": "sha256", "checksum": "ab81fdc6f9397f2481b6b809fc4a571f4c82405a2b1ff9fd526bd00e5c2b9aca"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.233716, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_group_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_group_history', \n database_variable='linkedin_ads_database', \n schema_variable='linkedin_ads_schema', \n default_database=target.database,\n default_schema='linkedin_ads',\n default_variable='campaign_group_history',\n union_schema_variable='linkedin_ads_union_schemas',\n union_database_variable='linkedin_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["linkedin_ads", "campaign_group_history"], ["linkedin_ads", "campaign_group_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.linkedin_source.linkedin_ads.campaign_group_history"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__campaign_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"linkedin_ad_campaign_group_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__creative_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__creative_history_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__creative_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__creative_history_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__creative_history_tmp"], "alias": "stg_linkedin_ads__creative_history_tmp", "checksum": {"name": "sha256", "checksum": "8834c1345f54ac9a8e39e4a0efcad9912cf619fc02ba4c686764f0cd332a6fe2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.238913, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__creative_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='creative_history', \n database_variable='linkedin_ads_database', \n schema_variable='linkedin_ads_schema', \n default_database=target.database,\n default_schema='linkedin_ads',\n default_variable='creative_history',\n union_schema_variable='linkedin_ads_union_schemas',\n union_database_variable='linkedin_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["linkedin_ads", "creative_history"], ["linkedin_ads", "creative_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.linkedin_source.linkedin_ads.creative_history"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__creative_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"linkedin_ad_creative_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__ad_analytics_by_campaign_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__ad_analytics_by_campaign_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__ad_analytics_by_campaign_tmp"], "alias": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "checksum": {"name": "sha256", "checksum": "1970c620d47208b109aea8708b078f745b755c3961e4be604524ee6c6af698f5"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.243446, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__ad_analytics_by_campaign_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_analytics_by_campaign', \n database_variable='linkedin_ads_database', \n schema_variable='linkedin_ads_schema', \n default_database=target.database,\n default_schema='linkedin_ads',\n default_variable='ad_analytics_by_campaign',\n union_schema_variable='linkedin_ads_union_schemas',\n union_database_variable='linkedin_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["linkedin_ads", "ad_analytics_by_campaign"], ["linkedin_ads", "ad_analytics_by_campaign"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.linkedin_source.linkedin_ads.ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__ad_analytics_by_campaign_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"linkedin_ad_analytics_by_campaign_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads.amazon_ads__portfolio_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "amazon_ads__portfolio_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__portfolio_report.sql", "original_file_path": "models/amazon_ads__portfolio_report.sql", "unique_id": "model.amazon_ads.amazon_ads__portfolio_report", "fqn": ["amazon_ads", "amazon_ads__portfolio_report"], "alias": "amazon_ads__portfolio_report", "checksum": {"name": "sha256", "checksum": "51082e4847994f4c12b8ff5651fd864a541d5a4ea45d3d15c7d3e38be96a1556"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the portfolio level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_amount": {"name": "budget_amount", "description": "The budget amount associated with the portfolio. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_currency_code": {"name": "budget_currency_code", "description": "The currency used for all monetary values for entities under this profile. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_end_date": {"name": "budget_end_date", "description": "The end date after which the budget is no longer applied. Optional if policy is set to dateRange or monthlyRecurring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_start_date": {"name": "budget_start_date", "description": "The starting date in YYYYMMDD format to which the budget is applied. Required if policy is set to dateRange. Not specified if policy is set to monthlyRecurring. Note that the starting date for monthlyRecurring is the date when the policy is set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_policy": {"name": "budget_policy", "description": "The budget policy. Set to dateRange to specify a budget for a specific period of time. Set to monthlyRecurring to specify a budget that is automatically renewed at the beginning of each month. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "in_budget": {"name": "in_budget", "description": "Indicates the current budget status of the portfolio. Set to true if the portfolio is in budget, set to false if the portfolio is out of budget.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.86556, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__portfolio_report\"", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__amazon_ads_enabled','amazon_ads__portfolio_history_enabled'])) }}\n\nwith report as (\n select *\n --use campaign report since portfolio report not provided\n from {{ var('campaign_level_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ var('portfolio_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n portfolios.budget_amount,\n portfolios.budget_currency_code,\n portfolios.budget_start_date,\n portfolios.budget_end_date,\n portfolios.budget_policy,\n portfolios.in_budget,\n portfolios.serving_status,\n portfolios.state,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n {{ amazon_ads_persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['purchases_30_d','sales_30_d']) }} \n\n from portfolios\n\n left join campaigns\n on campaigns.portfolio_id = portfolios.portfolio_id\n and campaigns.source_relation = portfolios.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n left join report\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n\n {{ dbt_utils.group_by(16) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_level_report", "package": null, "version": null}, {"name": "stg_amazon_ads__profile", "package": null, "version": null}, {"name": "stg_amazon_ads__portfolio_history", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.amazon_ads.amazon_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__portfolio_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n --use campaign report since portfolio report not provided\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__portfolio_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n portfolios.budget_amount,\n portfolios.budget_currency_code,\n portfolios.budget_start_date,\n portfolios.budget_end_date,\n portfolios.budget_policy,\n portfolios.in_budget,\n portfolios.serving_status,\n portfolios.state,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n \n\n\n\n \n\n from portfolios\n\n left join campaigns\n on campaigns.portfolio_id = portfolios.portfolio_id\n and campaigns.source_relation = portfolios.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n left join report\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads.amazon_ads__search_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "amazon_ads__search_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__search_report.sql", "original_file_path": "models/amazon_ads__search_report.sql", "unique_id": "model.amazon_ads.amazon_ads__search_report", "fqn": ["amazon_ads", "amazon_ads__search_report"], "alias": "amazon_ads__search_report", "checksum": {"name": "sha256", "checksum": "53ae303090bb93999e58de71448ae75e0c4ac7a252acbea8b17dfe31342aa9ed"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the search term level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The exact text for the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_term": {"name": "search_term", "description": "The search term used by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "targeting": {"name": "targeting", "description": "A string representation of the expression object used in the targeting clause.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.86717, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__search_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('search_term_ad_keyword_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from {{ var('keyword_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.keyword_id,\n keywords.keyword_text,\n keywords.match_type,\n keywords.serving_status,\n keywords.state,\n report.search_term,\n report.targeting,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n {{ amazon_ads_persist_pass_through_columns(pass_through_variable='amazon_ads__search_term_ad_keyword_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['purchases_30_d','sales_30_d']) }} \n\n from report\n\n left join keywords\n on keywords.keyword_id = report.keyword_id\n and keywords.source_relation = report.source_relation\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n and ad_groups.source_relation = report.source_relation\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n\n {{ dbt_utils.group_by(19) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_amazon_ads__search_term_ad_keyword_report", "package": null, "version": null}, {"name": "stg_amazon_ads__profile", "package": null, "version": null}, {"name": "int_amazon_ads__portfolio_history", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}, {"name": "stg_amazon_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_amazon_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads.amazon_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__search_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__search_term_ad_keyword_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__keyword_history\"\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.keyword_id,\n keywords.keyword_text,\n keywords.match_type,\n keywords.serving_status,\n keywords.state,\n report.search_term,\n report.targeting,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n \n\n\n\n \n\n from report\n\n left join keywords\n on keywords.keyword_id = report.keyword_id\n and keywords.source_relation = report.source_relation\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n and ad_groups.source_relation = report.source_relation\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads.amazon_ads__ad_group_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "amazon_ads__ad_group_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__ad_group_report.sql", "original_file_path": "models/amazon_ads__ad_group_report.sql", "unique_id": "model.amazon_ads.amazon_ads__ad_group_report", "fqn": ["amazon_ads", "amazon_ads__ad_group_report"], "alias": "amazon_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "86308d6f351c465b283d0ee99e548bf769b2f9040ad43f6d5c34e839fb40fe98"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the ad group level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_bid": {"name": "default_bid", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.863243, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__ad_group_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('ad_group_level_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ad_groups.serving_status,\n ad_groups.state,\n ad_groups.default_bid,\n report.campaign_bidding_strategy,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n {{ amazon_ads_persist_pass_through_columns(pass_through_variable='amazon_ads__ad_group_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['purchases_30_d','sales_30_d']) }}\n\n from report\n\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n and ad_groups.source_relation = report.source_relation\n left join campaigns\n on campaigns.campaign_id = ad_groups.campaign_id\n and campaigns.source_relation = ad_groups.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n\n {{ dbt_utils.group_by(16) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_amazon_ads__ad_group_level_report", "package": null, "version": null}, {"name": "stg_amazon_ads__profile", "package": null, "version": null}, {"name": "int_amazon_ads__portfolio_history", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}, {"name": "stg_amazon_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads.amazon_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__ad_group_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ad_groups.serving_status,\n ad_groups.state,\n ad_groups.default_bid,\n report.campaign_bidding_strategy,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n \n\n\n\n\n\n from report\n\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n and ad_groups.source_relation = report.source_relation\n left join campaigns\n on campaigns.campaign_id = ad_groups.campaign_id\n and campaigns.source_relation = ad_groups.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads.amazon_ads__keyword_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "amazon_ads__keyword_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__keyword_report.sql", "original_file_path": "models/amazon_ads__keyword_report.sql", "unique_id": "model.amazon_ads.amazon_ads__keyword_report", "fqn": ["amazon_ads", "amazon_ads__keyword_report"], "alias": "amazon_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "537907f2ff10aeb390a0fe795fdd6a15fa2ccb9d812ee18d566f7454195c7ffb"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the keyword level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_bid": {"name": "keyword_bid", "description": "Bid associated with a keyword or targeting expression.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The exact text for the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_type": {"name": "keyword_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.8663812, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__keyword_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('targeting_keyword_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from {{ var('keyword_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.keyword_id,\n keywords.keyword_text,\n keywords.serving_status,\n keywords.state,\n report.keyword_bid,\n report.keyword_type,\n report.match_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n {{ amazon_ads_persist_pass_through_columns(pass_through_variable='amazon_ads__targeting_keyword_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['purchases_30_d','sales_30_d']) }}\n\n from report\n\n left join keywords\n on keywords.keyword_id = report.keyword_id\n and keywords.source_relation = report.source_relation\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n and ad_groups.source_relation = report.source_relation\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n\n {{ dbt_utils.group_by(19) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_amazon_ads__targeting_keyword_report", "package": null, "version": null}, {"name": "stg_amazon_ads__profile", "package": null, "version": null}, {"name": "int_amazon_ads__portfolio_history", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}, {"name": "stg_amazon_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_amazon_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads.amazon_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__targeting_keyword_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__keyword_history\"\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.keyword_id,\n keywords.keyword_text,\n keywords.serving_status,\n keywords.state,\n report.keyword_bid,\n report.keyword_type,\n report.match_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n \n\n\n\n\n\n from report\n\n left join keywords\n on keywords.keyword_id = report.keyword_id\n and keywords.source_relation = report.source_relation\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n and ad_groups.source_relation = report.source_relation\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads.amazon_ads__campaign_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "amazon_ads__campaign_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__campaign_report.sql", "original_file_path": "models/amazon_ads__campaign_report.sql", "unique_id": "model.amazon_ads.amazon_ads__campaign_report", "fqn": ["amazon_ads", "amazon_ads__campaign_report"], "alias": "amazon_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "96235a5e080d57ca27ecb691353d2d3040fc44b9edd887700da32d02bb1a75da"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the campaign level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.864825, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__campaign_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('campaign_level_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n report.campaign_bidding_strategy,\n report.campaign_budget_amount,\n report.campaign_budget_currency_code,\n report.campaign_budget_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n {{ amazon_ads_persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['purchases_30_d','sales_30_d']) }} \n\n from report\n\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation \n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation \n\n {{ dbt_utils.group_by(14) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_level_report", "package": null, "version": null}, {"name": "stg_amazon_ads__profile", "package": null, "version": null}, {"name": "int_amazon_ads__portfolio_history", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads.amazon_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n report.campaign_bidding_strategy,\n report.campaign_budget_amount,\n report.campaign_budget_currency_code,\n report.campaign_budget_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n \n\n\n\n \n\n from report\n\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation \n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads.amazon_ads__account_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "amazon_ads__account_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__account_report.sql", "original_file_path": "models/amazon_ads__account_report.sql", "unique_id": "model.amazon_ads.amazon_ads__account_report", "fqn": ["amazon_ads", "amazon_ads__account_report"], "alias": "amazon_ads__account_report", "checksum": {"name": "sha256", "checksum": "96e024b6d0bba898b6217c46302599c0dd71314373844d87fd1326e4f355dcc5"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the account level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.862423, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__account_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n --use campaign report since account report not provided\n from {{ var('campaign_level_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n {{ amazon_ads_persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['purchases_30_d','sales_30_d']) }}\n\n from report\n\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n \n\n {{ dbt_utils.group_by(6) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_level_report", "package": null, "version": null}, {"name": "stg_amazon_ads__profile", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads.amazon_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n --use campaign report since account report not provided\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\ncampaigns as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n \n\n\n\n\n\n from report\n\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation\n \n\n group by 1,2,3,4,5,6\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads.amazon_ads__ad_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "amazon_ads__ad_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__ad_report.sql", "original_file_path": "models/amazon_ads__ad_report.sql", "unique_id": "model.amazon_ads.amazon_ads__ad_report", "fqn": ["amazon_ads", "amazon_ads__ad_report"], "alias": "amazon_ads__ad_report", "checksum": {"name": "sha256", "checksum": "eb55ea57fa0faebf74b1d3eefcc27cb7e10e1fbacb3cf4a785f7f2ee585896be"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance at the ad level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertised_asin": {"name": "advertised_asin", "description": "The ASIN associated to an advertised product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertised_sku": {"name": "advertised_sku", "description": "The SKU being advertised.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.864077, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__ad_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('advertised_product_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nads as (\n select *\n from {{ var('product_ad_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.ad_id,\n ads.serving_status,\n ads.state,\n report.advertised_asin,\n report.advertised_sku,\n report.campaign_budget_amount,\n report.campaign_budget_currency_code,\n report.campaign_budget_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n {{ amazon_ads_persist_pass_through_columns(pass_through_variable='amazon_ads__advertised_product_passthrough_metrics', identifier='report', transform='sum', coalesce_with=0, exclude_fields=['purchases_30_d','sales_30_d']) }}\n\n from report\n \n left join ads\n on ads.ad_id = report.ad_id\n and ads.source_relation = report.source_relation\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n and ad_groups.source_relation = report.source_relation\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation \n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation \n\n {{ dbt_utils.group_by(20) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_amazon_ads__advertised_product_report", "package": null, "version": null}, {"name": "stg_amazon_ads__profile", "package": null, "version": null}, {"name": "int_amazon_ads__portfolio_history", "package": null, "version": null}, {"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}, {"name": "stg_amazon_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_amazon_ads__product_ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads.amazon_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__product_ad_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__advertised_product_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nads as (\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__product_ad_history\"\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.source_relation,\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.ad_id,\n ads.serving_status,\n ads.state,\n report.advertised_asin,\n report.advertised_sku,\n report.campaign_budget_amount,\n report.campaign_budget_currency_code,\n report.campaign_budget_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.purchases_30_d) as purchases_30_d,\n sum(report.sales_30_d) as sales_30_d\n\n \n\n\n\n\n\n from report\n \n left join ads\n on ads.ad_id = report.ad_id\n and ads.source_relation = report.source_relation\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n and ad_groups.source_relation = report.source_relation\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n and campaigns.source_relation = report.source_relation\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n and portfolios.source_relation = campaigns.source_relation \n left join account_info\n on account_info.profile_id = campaigns.profile_id\n and account_info.source_relation = campaigns.source_relation \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.amazon_ads.int_amazon_ads__portfolio_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "int_amazon_ads__portfolio_history", "resource_type": "model", "package_name": "amazon_ads", "path": "intermediate/int_amazon_ads__portfolio_history.sql", "original_file_path": "models/intermediate/int_amazon_ads__portfolio_history.sql", "unique_id": "model.amazon_ads.int_amazon_ads__portfolio_history", "fqn": ["amazon_ads", "intermediate", "int_amazon_ads__portfolio_history"], "alias": "int_amazon_ads__portfolio_history", "checksum": {"name": "sha256", "checksum": "a82e6f8deab555d84fbf0bd7cd0035b1a5301cac631f14b6e23a3ddcfc03d319"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.349371, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"int_amazon_ads__portfolio_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{# This intermediate model creates a dummy portfolio table if the user does not use portfolios. \nIf they are using them, the normal portfolio_history will be used. #}\n\nwith portfolios as (\n select\n {% if var('amazon_ads__portfolio_history_enabled', True) %}\n *\n from {{ var('portfolio_history') }}\n where is_most_recent_record = True\n {% else %}\n cast(null as {{ dbt.type_string() }}) as source_relation,\n {# uses the columns macro from the source package to populate column names #}\n {%- set columns = amazon_ads_source.get_portfolio_history_columns() -%}\n {% for column in columns %}\n {# set null for each column #}\n {%- if column['name'] == 'id' -%}\n cast(null as {{ dbt.type_string() }}) as portfolio_id\n {%- elif column['name'] == 'name' -%}\n cast(null as {{ dbt.type_string() }}) as portfolio_name\n {%- elif column['name'] == 'profile_id' -%}\n cast(null as {{ dbt.type_string() }}) as profile_id\n {%- else -%}\n cast(null as {{ column['datatype'] }}) as {{ column['name'] }}\n {%- endif -%}\n {# add comma if not the last column #}\n {%- if not loop.last -%} , {% endif -%}\n {% endfor %}\n {% endif %}\n)\n\nselect * \nfrom portfolios", "language": "sql", "refs": [{"name": "stg_amazon_ads__portfolio_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"]}, "compiled_path": "target/compiled/amazon_ads/models/intermediate/int_amazon_ads__portfolio_history.sql", "compiled": true, "compiled_code": "\n\n\n\nwith portfolios as (\n select\n \n *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__portfolio_history\"\n where is_most_recent_record = True\n \n)\n\nselect * \nfrom portfolios", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads.facebook_ads__url_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "facebook_ads__url_report", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__url_report.sql", "original_file_path": "models/facebook_ads__url_report.sql", "unique_id": "model.facebook_ads.facebook_ads__url_report", "fqn": ["facebook_ads", "facebook_ads__url_report"], "alias": "facebook_ads__url_report", "checksum": {"name": "sha256", "checksum": "c2f762b35e296244858277cfd59ca3ddac6745199d12e4e06d92352c285f83e1"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Facebook ad at the URL level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "The ID of the related ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "The name of the related ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the related ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the related ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_name": {"name": "creative_name", "description": "The name of the related creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the page_link and template_page_link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the page_link and template_page_link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the page_link and template_page_link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the page_link and template_page_link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the page_link and template_page_link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the page_link and template_page_link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the page_link and template_page_link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the page_link and template_page_link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total number of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "Total monetary of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.902658, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__url_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('basic_ad') }}\n\n), \n\nconversion_report as (\n\n select *\n from {{ ref('int_facebook_ads__conversions') }}\n\n), \n\ncreatives as (\n\n select *\n from {{ ref('int_facebook_ads__creative_history') }}\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = true\n\n), \n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = true\n\n), \n\nad_sets as (\n\n select *\n from {{ var('ad_set_history') }}\n where is_most_recent_record = true\n\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = true\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_sets.ad_set_id,\n ad_sets.ad_set_name,\n ads.ad_id,\n ads.ad_name,\n creatives.creative_id,\n creatives.creative_name,\n creatives.base_url,\n creatives.url_host,\n creatives.url_path,\n creatives.utm_source,\n creatives.utm_medium,\n creatives.utm_campaign,\n creatives.utm_content,\n creatives.utm_term,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum', exclude_fields=['conversions', 'conversions_value']) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_actions_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_action_values_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n\n from report\n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join ads \n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join creatives\n on ads.creative_id = creatives.creative_id\n and ads.source_relation = creatives.source_relation\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n and ads.source_relation = ad_sets.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation \n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where creatives.url is not null\n {% endif %}\n \n {{ dbt_utils.group_by(20) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "package": null, "version": null}, {"name": "int_facebook_ads__conversions", "package": null, "version": null}, {"name": "int_facebook_ads__creative_history", "package": null, "version": null}, {"name": "stg_facebook_ads__account_history", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_history", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_set_history", "package": null, "version": null}, {"name": "stg_facebook_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads.facebook_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads.int_facebook_ads__creative_history", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__campaign_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad\"\n\n), \n\nconversion_report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"int_facebook_ads__conversions\"\n\n), \n\ncreatives as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"int_facebook_ads__creative_history\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__account_history\"\n where is_most_recent_record = true\n\n), \n\nads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_history\"\n where is_most_recent_record = true\n\n), \n\nad_sets as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_set_history\"\n where is_most_recent_record = true\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__campaign_history\"\n where is_most_recent_record = true\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_sets.ad_set_id,\n ad_sets.ad_set_name,\n ads.ad_id,\n ads.ad_name,\n creatives.creative_id,\n creatives.creative_name,\n creatives.base_url,\n creatives.url_host,\n creatives.url_path,\n creatives.utm_source,\n creatives.utm_medium,\n creatives.utm_campaign,\n creatives.utm_content,\n creatives.utm_term,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n \n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n from report\n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join ads \n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join creatives\n on ads.creative_id = creatives.creative_id\n and ads.source_relation = creatives.source_relation\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n and ads.source_relation = ad_sets.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation \n\n \n where creatives.url is not null\n \n \n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads.facebook_ads__url_tags": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "facebook_ads__url_tags", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__url_tags.sql", "original_file_path": "models/facebook_ads__url_tags.sql", "unique_id": "model.facebook_ads.facebook_ads__url_tags", "fqn": ["facebook_ads", "facebook_ads__url_tags"], "alias": "facebook_ads__url_tags", "checksum": {"name": "sha256", "checksum": "e1f8604d2933345b434018baac4526837cc97cfca2d75a89a9facc28a0db8e75"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a unique combination of creative_id and corresponding key, value, type contained in the url_tags field", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "The unique fivetran ID for this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The associated creative_id for this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "key": {"name": "key", "description": "The url tag object name e.g. utm_source associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "value": {"name": "value", "description": "The value assigned to the url tag object associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type assigned to the url tag object e.g. 'AD_VIDEO'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.9077399, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__url_tags\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ var('creative_history') }}\n where is_most_recent_record = true\n), \n\nrequired_fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n url_tags\n from base\n where url_tags is not null\n), \n\n{{ get_url_tags_query() }} \n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_facebook_ads__creative_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads.get_url_tags_query"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__url_tags.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__creative_history\"\n where is_most_recent_record = true\n), \n\nrequired_fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n url_tags\n from base\n where url_tags is not null\n), \n\n\n\n cleaned_json as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n replace(trim(url_tags::text, '\"'),'\\\\','')::json as cleaned_url_tags\n from required_fields\n ), \n\n unnested as (\n\n select \n source_relation,\n _fivetran_id, \n creative_id, \n url_tag_element\n from cleaned_json\n left join lateral json_array_elements(cleaned_url_tags) as url_tag_element on True\n where cleaned_url_tags is not null\n ), \n\n fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n url_tag_element->>'key' as key,\n url_tag_element->>'value' as value,\n url_tag_element->>'type' as type\n from unnested\n )\n\n \n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads.facebook_ads__campaign_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "facebook_ads__campaign_report", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__campaign_report.sql", "original_file_path": "models/facebook_ads__campaign_report.sql", "unique_id": "model.facebook_ads.facebook_ads__campaign_report", "fqn": ["facebook_ads", "facebook_ads__campaign_report"], "alias": "facebook_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "83733ea9fd36d94313f03106c99767134deb563b66a633a7e0792f0076872f10"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Facebook campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total number of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "Total monetary of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "Timestamp of designated campaign start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "Timestamp of designated campaign end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "lifetime_budget": {"name": "lifetime_budget", "description": "Lifetime budget of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.905906, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__campaign_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('basic_ad') }}\n\n), \n\nconversion_report as (\n\n select *\n from {{ ref('int_facebook_ads__conversions') }}\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = true\n\n),\n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n campaigns.start_at,\n campaigns.end_at,\n campaigns.status,\n campaigns.daily_budget,\n campaigns.lifetime_budget,\n campaigns.budget_remaining,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend, \n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum', exclude_fields=['conversions', 'conversions_value']) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_actions_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_action_values_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n\n from report \n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ads \n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "package": null, "version": null}, {"name": "int_facebook_ads__conversions", "package": null, "version": null}, {"name": "stg_facebook_ads__account_history", "package": null, "version": null}, {"name": "stg_facebook_ads__campaign_history", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads.facebook_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__campaign_history", "model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad\"\n\n), \n\nconversion_report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"int_facebook_ads__conversions\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__account_history\"\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__campaign_history\"\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_history\"\n where is_most_recent_record = true\n\n),\n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n campaigns.start_at,\n campaigns.end_at,\n campaigns.status,\n campaigns.daily_budget,\n campaigns.lifetime_budget,\n campaigns.budget_remaining,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend, \n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n \n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n from report \n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ads \n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads.facebook_ads__account_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "facebook_ads__account_report", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__account_report.sql", "original_file_path": "models/facebook_ads__account_report.sql", "unique_id": "model.facebook_ads.facebook_ads__account_report", "fqn": ["facebook_ads", "facebook_ads__account_report"], "alias": "facebook_ads__account_report", "checksum": {"name": "sha256", "checksum": "1f66182ee3093654137c3448e0fbb6538831e570b3213562997e2093e528a02a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Facebook account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total number of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "Total monetary of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_status": {"name": "account_status", "description": "Current status of account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_country_code": {"name": "business_country_code", "description": "Country code of business associated to account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The time account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency associated with account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone_name": {"name": "timezone_name", "description": "Timezone associated with account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.9069161, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__account_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('basic_ad') }}\n\n), \n\nconversion_report as (\n\n select *\n from {{ ref('int_facebook_ads__conversions') }}\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = true\n\n),\n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n accounts.account_status,\n accounts.business_country_code,\n accounts.created_at,\n accounts.currency,\n accounts.timezone_name,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum', exclude_fields=['conversions', 'conversions_value']) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_actions_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_action_values_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n\n from report \n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(9) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "package": null, "version": null}, {"name": "int_facebook_ads__conversions", "package": null, "version": null}, {"name": "stg_facebook_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads.facebook_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads_source.stg_facebook_ads__account_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad\"\n\n), \n\nconversion_report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"int_facebook_ads__conversions\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__account_history\"\n where is_most_recent_record = true\n\n),\n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n accounts.account_status,\n accounts.business_country_code,\n accounts.created_at,\n accounts.currency,\n accounts.timezone_name,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n \n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n from report \n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7,8,9\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads.facebook_ads__ad_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "facebook_ads__ad_report", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__ad_report.sql", "original_file_path": "models/facebook_ads__ad_report.sql", "unique_id": "model.facebook_ads.facebook_ads__ad_report", "fqn": ["facebook_ads", "facebook_ads__ad_report"], "alias": "facebook_ads__ad_report", "checksum": {"name": "sha256", "checksum": "c033cd34839fdeb566f36442ea5216dbd1942c627fefc03fbb2bb26b5033f346"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Facebook ad.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "The ID of the related ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "The name of the related ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the related ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the related ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total number of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "Total monetary of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_domain": {"name": "conversion_domain", "description": "The domain you've configured the ad to convert to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.903448, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__ad_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('basic_ad') }}\n\n), \n\nconversion_report as (\n\n select *\n from {{ ref('int_facebook_ads__conversions') }}\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = true\n\n),\n\nad_sets as (\n\n select *\n from {{ var('ad_set_history') }}\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = true\n\n),\n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_sets.ad_set_id,\n ad_sets.ad_set_name,\n ads.ad_id,\n ads.ad_name,\n ads.conversion_domain,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum', exclude_fields=['conversions', 'conversions_value']) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_actions_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_action_values_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n\n from report \n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ads \n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n and ads.source_relation = ad_sets.source_relation\n {{ dbt_utils.group_by(11) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "package": null, "version": null}, {"name": "int_facebook_ads__conversions", "package": null, "version": null}, {"name": "stg_facebook_ads__account_history", "package": null, "version": null}, {"name": "stg_facebook_ads__campaign_history", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_set_history", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads.facebook_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__campaign_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad\"\n\n), \n\nconversion_report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"int_facebook_ads__conversions\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__account_history\"\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__campaign_history\"\n where is_most_recent_record = true\n\n),\n\nad_sets as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_set_history\"\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_history\"\n where is_most_recent_record = true\n\n),\n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_sets.ad_set_id,\n ad_sets.ad_set_name,\n ads.ad_id,\n ads.ad_name,\n ads.conversion_domain,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n \n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n from report \n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ads \n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n and ads.source_relation = ad_sets.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads.facebook_ads__ad_set_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "facebook_ads__ad_set_report", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__ad_set_report.sql", "original_file_path": "models/facebook_ads__ad_set_report.sql", "unique_id": "model.facebook_ads.facebook_ads__ad_set_report", "fqn": ["facebook_ads", "facebook_ads__ad_set_report"], "alias": "facebook_ads__ad_set_report", "checksum": {"name": "sha256", "checksum": "92331eb480c1a0ea7da1e7e6bde0d1d56accc9ae638c508df81185a0682aa47a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Facebook ad set.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "The ID of the related ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "The name of the related ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total number of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "Total monetary of conversions using the default attribution window on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization_goal": {"name": "optimization_goal", "description": "The optimization goal this ad set is using. Possible values defined [here](https://developers.facebook.com/docs/marketing-api/reference/ad-campaign/#fields).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "Timestamp of designated ad set start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "Timestamp of designated ad set end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_strategy": {"name": "bid_strategy", "description": "Bid strategy values are - 'LOWEST_COST_WITHOUT_CAP', 'LOWEST_COST_WITH_BID_CAP', 'COST_CAP', 'LOWEST_COST_WITH_MIN_ROAS'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.9047308, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__ad_set_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('basic_ad') }}\n\n), \n\nconversion_report as (\n\n select *\n from {{ ref('int_facebook_ads__conversions') }}\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = true\n\n),\n\nad_sets as (\n\n select *\n from {{ var('ad_set_history') }}\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = true\n\n),\n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_sets.ad_set_id,\n ad_sets.ad_set_name,\n ad_sets.start_at,\n ad_sets.end_at,\n ad_sets.bid_strategy,\n ad_sets.daily_budget,\n ad_sets.budget_remaining,\n ad_sets.optimization_goal,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend, \n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum', exclude_fields=['conversions', 'conversions_value']) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_actions_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n {{ facebook_ads_persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_action_values_passthrough_metrics', transform = 'sum', coalesce_with=0) }}\n\n from report \n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ads \n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n and ads.source_relation = ad_sets.source_relation\n {{ dbt_utils.group_by(14) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "package": null, "version": null}, {"name": "int_facebook_ads__conversions", "package": null, "version": null}, {"name": "stg_facebook_ads__account_history", "package": null, "version": null}, {"name": "stg_facebook_ads__campaign_history", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_set_history", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads.facebook_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__campaign_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__ad_set_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad\"\n\n), \n\nconversion_report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"int_facebook_ads__conversions\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__account_history\"\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__campaign_history\"\n where is_most_recent_record = true\n\n),\n\nad_sets as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_set_history\"\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_history\"\n where is_most_recent_record = true\n\n),\n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n accounts.account_id,\n accounts.account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_sets.ad_set_id,\n ad_sets.ad_set_name,\n ad_sets.start_at,\n ad_sets.end_at,\n ad_sets.bid_strategy,\n ad_sets.daily_budget,\n ad_sets.budget_remaining,\n ad_sets.optimization_goal,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend, \n sum(coalesce(conversion_report.conversions, 0)) as conversions,\n sum(coalesce(conversion_report.conversions_value, 0)) as conversions_value\n\n \n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n from report \n left join conversion_report\n on report.date_day = conversion_report.date_day\n and report.ad_id = conversion_report.ad_id\n and report.source_relation = conversion_report.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join ads \n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n and ads.source_relation = campaigns.source_relation\n left join ad_sets\n on ads.ad_set_id = ad_sets.ad_set_id\n and ads.source_relation = ad_sets.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads.int_facebook_ads__creative_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "int_facebook_ads__creative_history", "resource_type": "model", "package_name": "facebook_ads", "path": "intermediate/int_facebook_ads__creative_history.sql", "original_file_path": "models/intermediate/int_facebook_ads__creative_history.sql", "unique_id": "model.facebook_ads.int_facebook_ads__creative_history", "fqn": ["facebook_ads", "intermediate", "int_facebook_ads__creative_history"], "alias": "int_facebook_ads__creative_history", "checksum": {"name": "sha256", "checksum": "2f21264af6d7266e71e63edb82592db433d2f0d3578416f4ab4a2907dc458b6e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.412461, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"int_facebook_ads__creative_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{% set url_field = \"coalesce(page_link,template_page_link)\" %}\n\nwith base as (\n\n select *\n from {{ var('creative_history') }}\n where is_most_recent_record = true\n\n), \n\nurl_tags as (\n\n select *\n from {{ ref('facebook_ads__url_tags') }}\n), \n\nurl_tags_pivoted as (\n\n select \n source_relation,\n _fivetran_id,\n creative_id,\n min(case when key = 'utm_source' then value end) as utm_source,\n min(case when key = 'utm_medium' then value end) as utm_medium,\n min(case when key = 'utm_campaign' then value end) as utm_campaign,\n min(case when key = 'utm_content' then value end) as utm_content,\n min(case when key = 'utm_term' then value end) as utm_term\n from url_tags\n group by 1,2,3\n\n), \n\nfields as (\n\n select\n base.source_relation,\n base._fivetran_id,\n base.creative_id,\n base.account_id,\n base.creative_name,\n {{ url_field }} as url,\n {{ dbt.split_part(url_field, \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host(url_field) }} as url_host,\n '/' || {{ dbt_utils.get_url_path(url_field) }} as url_path,\n coalesce(url_tags_pivoted.utm_source, {{ facebook_ads.facebook_ads_extract_url_parameter(url_field, 'utm_source') }}) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, {{ facebook_ads.facebook_ads_extract_url_parameter(url_field, 'utm_medium') }}) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, {{ facebook_ads.facebook_ads_extract_url_parameter(url_field, 'utm_campaign') }}) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, {{ facebook_ads.facebook_ads_extract_url_parameter(url_field, 'utm_content') }}) as utm_content,\n coalesce(url_tags_pivoted.utm_term, {{ facebook_ads.facebook_ads_extract_url_parameter(url_field, 'utm_term') }}) as utm_term\n from base\n left join url_tags_pivoted\n on base._fivetran_id = url_tags_pivoted._fivetran_id\n and base.source_relation = url_tags_pivoted.source_relation\n and base.creative_id = url_tags_pivoted.creative_id\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_facebook_ads__creative_history", "package": null, "version": null}, {"name": "facebook_ads__url_tags", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.facebook_ads.facebook_ads_extract_url_parameter"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history", "model.facebook_ads.facebook_ads__url_tags"]}, "compiled_path": "target/compiled/facebook_ads/models/intermediate/int_facebook_ads__creative_history.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__creative_history\"\n where is_most_recent_record = true\n\n), \n\nurl_tags as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__url_tags\"\n), \n\nurl_tags_pivoted as (\n\n select \n source_relation,\n _fivetran_id,\n creative_id,\n min(case when key = 'utm_source' then value end) as utm_source,\n min(case when key = 'utm_medium' then value end) as utm_medium,\n min(case when key = 'utm_campaign' then value end) as utm_campaign,\n min(case when key = 'utm_content' then value end) as utm_content,\n min(case when key = 'utm_term' then value end) as utm_term\n from url_tags\n group by 1,2,3\n\n), \n\nfields as (\n\n select\n base.source_relation,\n base._fivetran_id,\n base.creative_id,\n base.account_id,\n base.creative_name,\n coalesce(page_link,template_page_link) as url,\n \n\n \n \n\n split_part(\n coalesce(page_link,template_page_link),\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n coalesce(page_link,template_page_link),\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n coalesce(page_link,template_page_link),\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n coalesce(page_link,template_page_link),\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n coalesce(page_link,template_page_link),\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n coalesce(page_link,template_page_link),\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base._fivetran_id = url_tags_pivoted._fivetran_id\n and base.source_relation = url_tags_pivoted.source_relation\n and base.creative_id = url_tags_pivoted.creative_id\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads.int_facebook_ads__conversions": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "int_facebook_ads__conversions", "resource_type": "model", "package_name": "facebook_ads", "path": "intermediate/int_facebook_ads__conversions.sql", "original_file_path": "models/intermediate/int_facebook_ads__conversions.sql", "unique_id": "model.facebook_ads.int_facebook_ads__conversions", "fqn": ["facebook_ads", "intermediate", "int_facebook_ads__conversions"], "alias": "int_facebook_ads__conversions", "checksum": {"name": "sha256", "checksum": "f06e390f9dbba15f465d0235a974c459a5420255bca5b00c4f7980dd19055ddd"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.423209, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"int_facebook_ads__conversions\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith actions_report as (\n\n select *\n from {{ var('basic_ad_actions') }}\n),\n\naction_values_report as (\n\n select *\n from {{ var('basic_ad_action_values') }}\n),\n\naction_metrics as (\n\n select\n source_relation,\n ad_id,\n date_day,\n sum(conversions) as conversions\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_actions_passthrough_metrics', transform='sum') }}\n\n from actions_report\n {% if var('facebook_ads__conversion_action_types') -%}\n where \n {# Limit conversions to the chosen action types #}\n {% for action_type in var('facebook_ads__conversion_action_types') -%}\n (\n {%- if action_type.name -%}\n action_type = '{{ action_type.name }}'\n {%- elif action_type.pattern -%}\n action_type like '{{ action_type.pattern }}'\n {%- endif -%}\n\n {% if action_type.where_sql %}\n and {{ action_type.where_sql }}\n {%- endif -%}\n ) {% if not loop.last %} or {% endif %}\n {%- endfor %}\n {% endif %}\n group by 1,2,3\n),\n\naction_value_metrics as (\n\n select\n source_relation,\n ad_id,\n date_day,\n sum(conversions_value) as conversions_value\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_action_values_passthrough_metrics', transform='sum') }}\n\n from action_values_report\n {% if var('facebook_ads__conversion_action_types') -%}\n where \n {# Limit conversions to the chosen action types #}\n {% for action_type in var('facebook_ads__conversion_action_types') -%}\n (\n {%- if action_type.name -%}\n action_type = '{{ action_type.name }}'\n {%- elif action_type.pattern -%}\n action_type like '{{ action_type.pattern }}'\n {%- endif -%}\n\n {% if action_type.where_sql %}\n and {{ action_type.where_sql }}\n {%- endif -%}\n ) {% if not loop.last %} or {% endif %}\n {%- endfor %}\n {% endif %}\n\n group by 1,2,3\n),\n\nmetrics_join as (\n\n select\n action_metrics.source_relation,\n action_metrics.ad_id,\n action_metrics.date_day,\n action_metrics.conversions,\n action_value_metrics.conversions_value\n \n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_actions_passthrough_metrics', identifier='action_metrics') }}\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_action_values_passthrough_metrics', identifier='action_value_metrics') }}\n\n from action_metrics \n left join action_value_metrics\n on action_metrics.source_relation = action_value_metrics.source_relation\n and action_metrics.ad_id = action_value_metrics.ad_id\n and action_metrics.date_day = action_value_metrics.date_day\n)\n\nselect * \nfrom metrics_join", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad_actions", "package": null, "version": null}, {"name": "stg_facebook_ads__basic_ad_action_values", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_actions", "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values"]}, "compiled_path": "target/compiled/facebook_ads/models/intermediate/int_facebook_ads__conversions.sql", "compiled": true, "compiled_code": "\n\nwith actions_report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad_actions\"\n),\n\naction_values_report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad_action_values\"\n),\n\naction_metrics as (\n\n select\n source_relation,\n ad_id,\n date_day,\n sum(conversions) as conversions\n\n \n\n\n\n\n\n from actions_report\n where \n \n (action_type = 'onsite_conversion.purchase') or (action_type = 'onsite_conversion.lead_grouped') or (action_type = 'offsite_conversion.fb_pixel_purchase') or (action_type = 'offsite_conversion.fb_pixel_lead') or (action_type = 'offsite_conversion.fb_pixel_custom') \n \n group by 1,2,3\n),\n\naction_value_metrics as (\n\n select\n source_relation,\n ad_id,\n date_day,\n sum(conversions_value) as conversions_value\n\n \n\n\n\n\n\n from action_values_report\n where \n \n (action_type = 'onsite_conversion.purchase') or (action_type = 'onsite_conversion.lead_grouped') or (action_type = 'offsite_conversion.fb_pixel_purchase') or (action_type = 'offsite_conversion.fb_pixel_lead') or (action_type = 'offsite_conversion.fb_pixel_custom') \n \n\n group by 1,2,3\n),\n\nmetrics_join as (\n\n select\n action_metrics.source_relation,\n action_metrics.ad_id,\n action_metrics.date_day,\n action_metrics.conversions,\n action_value_metrics.conversions_value\n \n \n\n\n\n\n \n\n\n\n\n\n from action_metrics \n left join action_value_metrics\n on action_metrics.source_relation = action_value_metrics.source_relation\n and action_metrics.ad_id = action_value_metrics.ad_id\n and action_metrics.date_day = action_value_metrics.date_day\n)\n\nselect * \nfrom metrics_join", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads.snapchat_ads__ad_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "snapchat_ads__ad_report", "resource_type": "model", "package_name": "snapchat_ads", "path": "snapchat_ads__ad_report.sql", "original_file_path": "models/snapchat_ads__ad_report.sql", "unique_id": "model.snapchat_ads.snapchat_ads__ad_report", "fqn": ["snapchat_ads", "snapchat_ads__ad_report"], "alias": "snapchat_ads__ad_report", "checksum": {"name": "sha256", "checksum": "b8c200b335e6a9bc0aad27a812b925fe064a04395fa28dde73f305c9cd1f129f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Snapchat ad account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the ad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `snapchat_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.939908, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__ad_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith ad_hourly as (\n\n select *,\n {% if var('snapchat_ads__conversion_fields', none) %}\n {{ var('snapchat_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_hourly_report') }}\n\n), creatives as (\n\n select *\n from {{ ref('snapchat_ads__creative_history_prep') }}\n\n), account as (\n\n select *\n from {{ var('ad_account_history') }}\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = true\n\n), aggregated as (\n\n select\n ad_hourly.source_relation,\n cast(ad_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n ad_hourly.ad_id,\n ads.ad_name,\n account.currency,\n sum(ad_hourly.swipes) as swipes,\n sum(ad_hourly.impressions) as impressions,\n round(sum(ad_hourly.spend),2) as spend,\n sum(ad_hourly.total_conversions) as total_conversions,\n round(cast(sum(ad_hourly.conversion_purchases_value) as {{ dbt.type_numeric() }}), 2) as conversion_purchases_value\n\n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='snapchat_ads__ad_hourly_passthrough_metrics', exclude_fields=['conversion_purchases_value']) }}\n\n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_hourly_passthrough_metrics', transform='sum', exclude_fields=['conversion_purchases_value']) }}\n\n from ad_hourly\n left join ads \n on ad_hourly.ad_id = ads.ad_id\n and ad_hourly.source_relation = ads.source_relation\n left join creatives\n on ads.creative_id = creatives.creative_id\n and ads.source_relation = creatives.source_relation\n left join account\n on creatives.ad_account_id = account.ad_account_id\n and creatives.source_relation = account.source_relation\n \n {{ dbt_utils.group_by(7) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_hourly_report", "package": null, "version": null}, {"name": "snapchat_ads__creative_history_prep", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_account_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.snapchat_ads.snapchat_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "model.snapchat_ads.snapchat_ads__creative_history_prep", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_history\"\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_url_tag_history\"\n where is_most_recent_record = true\n\n), url_tags_pivoted as (\n\n select \n source_relation,\n creative_id,\n min(case when param_key = 'utm_source' then param_value end) as utm_source,\n min(case when param_key = 'utm_medium' then param_value end) as utm_medium,\n min(case when param_key = 'utm_campaign' then param_value end) as utm_campaign,\n min(case when param_key = 'utm_content' then param_value end) as utm_content,\n min(case when param_key = 'utm_term' then param_value end) as utm_term\n from url_tags\n group by 1,2\n\n), fields as (\n\n select\n base.source_relation,\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n \n\n split_part(\n base.url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n and base.source_relation = url_tags_pivoted.source_relation\n\n)\n\nselect *\nfrom fields\n), ad_hourly as (\n\n select *,\n \n conversion_purchases as total_conversions\n \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_hourly_report\"\n\n), creatives as (\n\n select *\n from __dbt__cte__snapchat_ads__creative_history_prep\n\n), account as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_history\"\n where is_most_recent_record = true\n\n), aggregated as (\n\n select\n ad_hourly.source_relation,\n cast(ad_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n ad_hourly.ad_id,\n ads.ad_name,\n account.currency,\n sum(ad_hourly.swipes) as swipes,\n sum(ad_hourly.impressions) as impressions,\n round(sum(ad_hourly.spend),2) as spend,\n sum(ad_hourly.total_conversions) as total_conversions,\n round(cast(sum(ad_hourly.conversion_purchases_value) as numeric(28,6)), 2) as conversion_purchases_value\n\n \n\n\n\n \n \n\n\n\n \n\n\n\n \n \n \n \n , sum(coalesce(conversion_purchases, 0)) as conversion_purchases\n \n\n \n\n\n\n\n \n\n\n\n\n\n \n\n\n\n\n\n\n from ad_hourly\n left join ads \n on ad_hourly.ad_id = ads.ad_id\n and ad_hourly.source_relation = ads.source_relation\n left join creatives\n on ads.creative_id = creatives.creative_id\n and ads.source_relation = creatives.source_relation\n left join account\n on creatives.ad_account_id = account.ad_account_id\n and creatives.source_relation = account.source_relation\n \n group by 1,2,3,4,5,6,7\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.snapchat_ads.snapchat_ads__creative_history_prep", "sql": " __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_history\"\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_url_tag_history\"\n where is_most_recent_record = true\n\n), url_tags_pivoted as (\n\n select \n source_relation,\n creative_id,\n min(case when param_key = 'utm_source' then param_value end) as utm_source,\n min(case when param_key = 'utm_medium' then param_value end) as utm_medium,\n min(case when param_key = 'utm_campaign' then param_value end) as utm_campaign,\n min(case when param_key = 'utm_content' then param_value end) as utm_content,\n min(case when param_key = 'utm_term' then param_value end) as utm_term\n from url_tags\n group by 1,2\n\n), fields as (\n\n select\n base.source_relation,\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n \n\n split_part(\n base.url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n and base.source_relation = url_tags_pivoted.source_relation\n\n)\n\nselect *\nfrom fields\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads.snapchat_ads__url_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "snapchat_ads__url_report", "resource_type": "model", "package_name": "snapchat_ads", "path": "snapchat_ads__url_report.sql", "original_file_path": "models/snapchat_ads__url_report.sql", "unique_id": "model.snapchat_ads.snapchat_ads__url_report", "fqn": ["snapchat_ads", "snapchat_ads__url_report"], "alias": "snapchat_ads__url_report", "checksum": {"name": "sha256", "checksum": "87d45159b72f1440b95f729fe41df3cc9dc77d5b57e173f30f93ecedf8b1eda6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of Snapchat ads that leverage urls.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the ad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_name": {"name": "ad_squad_name", "description": "The name of the ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the web_view_url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the web_view_url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the web_view_url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the web_view_url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the web_view_url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the web_view_url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the web_view_url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the web_view_url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `snapchat_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.9422998, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__url_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith ad_hourly as (\n\n select *,\n {% if var('snapchat_ads__conversion_fields', none) %}\n {{ var('snapchat_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_hourly_report') }}\n\n), creatives as (\n\n select *\n from {{ ref('snapchat_ads__creative_history_prep') }}\n\n), account as (\n\n select *\n from {{ var('ad_account_history') }}\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from {{ var('ad_squad_history') }}\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\n ad_hourly.source_relation,\n cast(ad_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n ad_hourly.ad_id,\n ads.ad_name,\n ad_squads.ad_squad_id,\n ad_squads.ad_squad_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n account.currency,\n creatives.base_url,\n creatives.url_host,\n creatives.url_path,\n creatives.utm_source,\n creatives.utm_medium,\n creatives.utm_campaign,\n creatives.utm_content,\n creatives.utm_term,\n sum(ad_hourly.swipes) as swipes,\n sum(ad_hourly.impressions) as impressions,\n round(sum(ad_hourly.spend),2) as spend,\n sum(ad_hourly.total_conversions) as total_conversions,\n round(cast(sum(ad_hourly.conversion_purchases_value) as {{ dbt.type_numeric() }}), 2) as conversion_purchases_value\n \n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='snapchat_ads__ad_hourly_passthrough_metrics', exclude_fields=['conversion_purchases_value']) }}\n\n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_hourly_passthrough_metrics', transform='sum', exclude_fields=['conversion_purchases_value']) }}\n \n from ad_hourly\n left join ads \n on ad_hourly.ad_id = ads.ad_id\n and ad_hourly.source_relation = ads.source_relation\n left join creatives\n on ads.creative_id = creatives.creative_id\n and ads.source_relation = creatives.source_relation\n left join ad_squads\n on ads.ad_squad_id = ad_squads.ad_squad_id\n and ads.source_relation = ad_squads.source_relation\n left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n and ad_squads.source_relation = campaigns.source_relation\n left join account\n on creatives.ad_account_id = account.ad_account_id\n and creatives.source_relation = account.source_relation\n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n -- We only want utm ads to populate this report. Therefore, we filter where url ads are populated.\n where creatives.url is not null\n {% endif %}\n\n {{ dbt_utils.group_by(19) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_hourly_report", "package": null, "version": null}, {"name": "snapchat_ads__creative_history_prep", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_account_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_squad_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.snapchat_ads.snapchat_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "model.snapchat_ads.snapchat_ads__creative_history_prep", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_history\"\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_url_tag_history\"\n where is_most_recent_record = true\n\n), url_tags_pivoted as (\n\n select \n source_relation,\n creative_id,\n min(case when param_key = 'utm_source' then param_value end) as utm_source,\n min(case when param_key = 'utm_medium' then param_value end) as utm_medium,\n min(case when param_key = 'utm_campaign' then param_value end) as utm_campaign,\n min(case when param_key = 'utm_content' then param_value end) as utm_content,\n min(case when param_key = 'utm_term' then param_value end) as utm_term\n from url_tags\n group by 1,2\n\n), fields as (\n\n select\n base.source_relation,\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n \n\n split_part(\n base.url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n and base.source_relation = url_tags_pivoted.source_relation\n\n)\n\nselect *\nfrom fields\n), ad_hourly as (\n\n select *,\n \n conversion_purchases as total_conversions\n \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_hourly_report\"\n\n), creatives as (\n\n select *\n from __dbt__cte__snapchat_ads__creative_history_prep\n\n), account as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_history\"\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_squad_history\"\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__campaign_history\"\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\n ad_hourly.source_relation,\n cast(ad_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n ad_hourly.ad_id,\n ads.ad_name,\n ad_squads.ad_squad_id,\n ad_squads.ad_squad_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n account.currency,\n creatives.base_url,\n creatives.url_host,\n creatives.url_path,\n creatives.utm_source,\n creatives.utm_medium,\n creatives.utm_campaign,\n creatives.utm_content,\n creatives.utm_term,\n sum(ad_hourly.swipes) as swipes,\n sum(ad_hourly.impressions) as impressions,\n round(sum(ad_hourly.spend),2) as spend,\n sum(ad_hourly.total_conversions) as total_conversions,\n round(cast(sum(ad_hourly.conversion_purchases_value) as numeric(28,6)), 2) as conversion_purchases_value\n \n \n\n\n\n \n \n\n\n\n \n\n\n\n \n \n \n \n , sum(coalesce(conversion_purchases, 0)) as conversion_purchases\n \n\n \n\n\n\n\n \n\n\n\n\n\n \n\n\n\n\n\n \n from ad_hourly\n left join ads \n on ad_hourly.ad_id = ads.ad_id\n and ad_hourly.source_relation = ads.source_relation\n left join creatives\n on ads.creative_id = creatives.creative_id\n and ads.source_relation = creatives.source_relation\n left join ad_squads\n on ads.ad_squad_id = ad_squads.ad_squad_id\n and ads.source_relation = ad_squads.source_relation\n left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n and ad_squads.source_relation = campaigns.source_relation\n left join account\n on creatives.ad_account_id = account.ad_account_id\n and creatives.source_relation = account.source_relation\n\n \n -- We only want utm ads to populate this report. Therefore, we filter where url ads are populated.\n where creatives.url is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.snapchat_ads.snapchat_ads__creative_history_prep", "sql": " __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_history\"\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_url_tag_history\"\n where is_most_recent_record = true\n\n), url_tags_pivoted as (\n\n select \n source_relation,\n creative_id,\n min(case when param_key = 'utm_source' then param_value end) as utm_source,\n min(case when param_key = 'utm_medium' then param_value end) as utm_medium,\n min(case when param_key = 'utm_campaign' then param_value end) as utm_campaign,\n min(case when param_key = 'utm_content' then param_value end) as utm_content,\n min(case when param_key = 'utm_term' then param_value end) as utm_term\n from url_tags\n group by 1,2\n\n), fields as (\n\n select\n base.source_relation,\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n \n\n split_part(\n base.url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n and base.source_relation = url_tags_pivoted.source_relation\n\n)\n\nselect *\nfrom fields\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads.snapchat_ads__account_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "snapchat_ads__account_report", "resource_type": "model", "package_name": "snapchat_ads", "path": "snapchat_ads__account_report.sql", "original_file_path": "models/snapchat_ads__account_report.sql", "unique_id": "model.snapchat_ads.snapchat_ads__account_report", "fqn": ["snapchat_ads", "snapchat_ads__account_report"], "alias": "snapchat_ads__account_report", "checksum": {"name": "sha256", "checksum": "b1f8ee646f82a94a902428080dc066c1a5df73879a405e677c5263adfd80e187"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Snapchat ad account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `snapchat_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.939311, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__account_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith ad_hourly as (\n\n select *,\n {% if var('snapchat_ads__conversion_fields', none) %}\n {{ var('snapchat_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_hourly_report') }}\n\n), account as (\n\n select *\n from {{ var('ad_account_history') }}\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from {{ var('ad_squad_history') }}\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\n ad_hourly.source_relation,\n cast(ad_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n account.currency,\n sum(ad_hourly.swipes) as swipes,\n sum(ad_hourly.impressions) as impressions,\n round(sum(ad_hourly.spend),2) as spend,\n sum(ad_hourly.total_conversions) as total_conversions,\n round(cast(sum(ad_hourly.conversion_purchases_value) as {{ dbt.type_numeric() }}), 2) as conversion_purchases_value\n\n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='snapchat_ads__ad_hourly_passthrough_metrics', exclude_fields=['conversion_purchases_value']) }}\n\n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_hourly_passthrough_metrics', transform='sum', exclude_fields=['conversion_purchases_value']) }}\n\n from ad_hourly\n left join ads \n on ad_hourly.ad_id = ads.ad_id\n and ad_hourly.source_relation = ads.source_relation\n left join ad_squads\n on ads.ad_squad_id = ad_squads.ad_squad_id\n and ads.source_relation = ad_squads.source_relation\n left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n and ad_squads.source_relation = campaigns.source_relation\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n and campaigns.source_relation = account.source_relation\n\n {{ dbt_utils.group_by(5) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_hourly_report", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_account_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_squad_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.snapchat_ads.snapchat_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith ad_hourly as (\n\n select *,\n \n conversion_purchases as total_conversions\n \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_hourly_report\"\n\n), account as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_history\"\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_squad_history\"\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__campaign_history\"\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\n ad_hourly.source_relation,\n cast(ad_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n account.currency,\n sum(ad_hourly.swipes) as swipes,\n sum(ad_hourly.impressions) as impressions,\n round(sum(ad_hourly.spend),2) as spend,\n sum(ad_hourly.total_conversions) as total_conversions,\n round(cast(sum(ad_hourly.conversion_purchases_value) as numeric(28,6)), 2) as conversion_purchases_value\n\n \n\n\n\n \n \n\n\n\n \n\n\n\n \n \n \n \n , sum(coalesce(conversion_purchases, 0)) as conversion_purchases\n \n\n \n\n\n\n\n \n\n\n\n\n\n \n\n\n\n\n\n\n from ad_hourly\n left join ads \n on ad_hourly.ad_id = ads.ad_id\n and ad_hourly.source_relation = ads.source_relation\n left join ad_squads\n on ads.ad_squad_id = ad_squads.ad_squad_id\n and ads.source_relation = ad_squads.source_relation\n left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n and ad_squads.source_relation = campaigns.source_relation\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n and campaigns.source_relation = account.source_relation\n\n group by 1,2,3,4,5\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads.snapchat_ads__ad_squad_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "snapchat_ads__ad_squad_report", "resource_type": "model", "package_name": "snapchat_ads", "path": "snapchat_ads__ad_squad_report.sql", "original_file_path": "models/snapchat_ads__ad_squad_report.sql", "unique_id": "model.snapchat_ads.snapchat_ads__ad_squad_report", "fqn": ["snapchat_ads", "snapchat_ads__ad_squad_report"], "alias": "snapchat_ads__ad_squad_report", "checksum": {"name": "sha256", "checksum": "ce3c64584fef4a76d391b6153123ebc53bc4397cacb99027a88425b4c93af44c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Snapchat ad squad.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_name": {"name": "ad_squad_name", "description": "The name of the ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `snapchat_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.941452, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__ad_squad_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith ad_squad_hourly as (\n\n select *,\n {% if var('snapchat_ads__conversion_fields', none) %}\n {{ var('snapchat_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_squad_hourly_report') }}\n\n), account as (\n\n select *\n from {{ var('ad_account_history') }}\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from {{ var('ad_squad_history') }}\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\n ad_squad_hourly.source_relation,\n cast(ad_squad_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_squad_hourly.ad_squad_id,\n ad_squads.ad_squad_name,\n account.currency,\n sum(ad_squad_hourly.swipes) as swipes,\n sum(ad_squad_hourly.impressions) as impressions,\n round(sum(ad_squad_hourly.spend),2) as spend,\n sum(ad_squad_hourly.total_conversions) as total_conversions,\n round(cast(sum(ad_squad_hourly.conversion_purchases_value) as {{ dbt.type_numeric() }}), 2) as conversion_purchases_value\n\n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='snapchat_ads__ad_squad_hourly_passthrough_metrics', exclude_fields=['conversion_purchases_value']) }}\n \n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_squad_hourly_passthrough_metrics', transform='sum', exclude_fields=['conversion_purchases_value']) }}\n\n from ad_squad_hourly\n left join ad_squads\n on ad_squad_hourly.ad_squad_id = ad_squads.ad_squad_id\n and ad_squad_hourly.source_relation = ad_squads.source_relation\n left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n and ad_squads.source_relation = campaigns.source_relation\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n and campaigns.source_relation = account.source_relation\n \n {{ dbt_utils.group_by(9) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_hourly_report", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_account_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_squad_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.snapchat_ads.snapchat_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__ad_squad_report.sql", "compiled": true, "compiled_code": "\n\nwith ad_squad_hourly as (\n\n select *,\n \n conversion_purchases as total_conversions\n \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_squad_hourly_report\"\n\n), account as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_squad_history\"\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__campaign_history\"\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\n ad_squad_hourly.source_relation,\n cast(ad_squad_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n ad_squad_hourly.ad_squad_id,\n ad_squads.ad_squad_name,\n account.currency,\n sum(ad_squad_hourly.swipes) as swipes,\n sum(ad_squad_hourly.impressions) as impressions,\n round(sum(ad_squad_hourly.spend),2) as spend,\n sum(ad_squad_hourly.total_conversions) as total_conversions,\n round(cast(sum(ad_squad_hourly.conversion_purchases_value) as numeric(28,6)), 2) as conversion_purchases_value\n\n \n\n\n\n \n \n\n\n\n \n\n\n\n \n \n \n \n , sum(coalesce(conversion_purchases, 0)) as conversion_purchases\n \n\n \n\n\n\n \n \n\n\n\n\n\n \n\n\n\n\n\n\n from ad_squad_hourly\n left join ad_squads\n on ad_squad_hourly.ad_squad_id = ad_squads.ad_squad_id\n and ad_squad_hourly.source_relation = ad_squads.source_relation\n left join campaigns\n on ad_squads.campaign_id = campaigns.campaign_id\n and ad_squads.source_relation = campaigns.source_relation\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n and campaigns.source_relation = account.source_relation\n \n group by 1,2,3,4,5,6,7,8,9\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads.snapchat_ads__campaign_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "snapchat_ads__campaign_report", "resource_type": "model", "package_name": "snapchat_ads", "path": "snapchat_ads__campaign_report.sql", "original_file_path": "models/snapchat_ads__campaign_report.sql", "unique_id": "model.snapchat_ads.snapchat_ads__campaign_report", "fqn": ["snapchat_ads", "snapchat_ads__campaign_report"], "alias": "snapchat_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "ce111e14c24a3748fec1557f9c2bfe540a3e7fac7dc95cbb6d36069415ec9e13"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Snapchat campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The current used by the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases for an ad on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `snapchat_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462185.940535, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__campaign_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith campaign_hourly as (\n\n select *,\n {% if var('snapchat_ads__conversion_fields', none) %}\n {{ var('snapchat_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('campaign_hourly_report') }}\n\n), account as (\n\n select *\n from {{ var('ad_account_history') }}\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\n campaign_hourly.source_relation,\n cast(campaign_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n campaign_hourly.campaign_id,\n campaigns.campaign_name,\n account.currency,\n sum(campaign_hourly.swipes) as swipes,\n sum(campaign_hourly.impressions) as impressions,\n round(sum(campaign_hourly.spend),2) as spend,\n sum(campaign_hourly.total_conversions) as total_conversions,\n round(cast(sum(campaign_hourly.conversion_purchases_value) as {{ dbt.type_numeric() }}), 2) as conversion_purchases_value\n\n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='snapchat_ads__campaign_hourly_report_passthrough_metrics', exclude_fields=['conversion_purchases_value']) }}\n \n {{ snapchat_ads_persist_pass_through_columns(pass_through_variable='snapchat_ads__campaign_hourly_report_passthrough_metrics', transform='sum', exclude_fields=['conversion_purchases_value']) }}\n \n from campaign_hourly\n left join campaigns\n on campaign_hourly.campaign_id = campaigns.campaign_id\n and campaign_hourly.source_relation = campaigns.source_relation\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n and campaigns.source_relation = account.source_relation\n \n {{ dbt_utils.group_by(7) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_hourly_report", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_account_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.snapchat_ads.snapchat_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith campaign_hourly as (\n\n select *,\n \n conversion_purchases as total_conversions\n \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__campaign_hourly_report\"\n\n), account as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__campaign_history\"\n where is_most_recent_record = true\n\n\n), aggregated as (\n\n select\n campaign_hourly.source_relation,\n cast(campaign_hourly.date_hour as date) as date_day,\n account.ad_account_id,\n account.ad_account_name,\n campaign_hourly.campaign_id,\n campaigns.campaign_name,\n account.currency,\n sum(campaign_hourly.swipes) as swipes,\n sum(campaign_hourly.impressions) as impressions,\n round(sum(campaign_hourly.spend),2) as spend,\n sum(campaign_hourly.total_conversions) as total_conversions,\n round(cast(sum(campaign_hourly.conversion_purchases_value) as numeric(28,6)), 2) as conversion_purchases_value\n\n \n\n\n\n \n \n\n\n\n \n\n\n\n \n \n \n \n , sum(coalesce(conversion_purchases, 0)) as conversion_purchases\n \n\n \n\n\n\n \n \n\n\n\n\n\n \n\n\n\n\n\n \n from campaign_hourly\n left join campaigns\n on campaign_hourly.campaign_id = campaigns.campaign_id\n and campaign_hourly.source_relation = campaigns.source_relation\n left join account\n on campaigns.ad_account_id = account.ad_account_id\n and campaigns.source_relation = account.source_relation\n \n group by 1,2,3,4,5,6,7\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads.snapchat_ads__creative_history_prep": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "snapchat_ads__creative_history_prep", "resource_type": "model", "package_name": "snapchat_ads", "path": "intermediate/snapchat_ads__creative_history_prep.sql", "original_file_path": "models/intermediate/snapchat_ads__creative_history_prep.sql", "unique_id": "model.snapchat_ads.snapchat_ads__creative_history_prep", "fqn": ["snapchat_ads", "intermediate", "snapchat_ads__creative_history_prep"], "alias": "snapchat_ads__creative_history_prep", "checksum": {"name": "sha256", "checksum": "e3cefdb96080d7616e006c39ed116afc1bfdf99c32ae5f8cf01f72a16e86a8a6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1734462183.4778628, "relation_name": null, "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\nwith base as (\n\n select *\n from {{ var('creative_history') }}\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from {{ var('creative_url_tag_history') }}\n where is_most_recent_record = true\n\n), url_tags_pivoted as (\n\n select \n source_relation,\n creative_id,\n min(case when param_key = 'utm_source' then param_value end) as utm_source,\n min(case when param_key = 'utm_medium' then param_value end) as utm_medium,\n min(case when param_key = 'utm_campaign' then param_value end) as utm_campaign,\n min(case when param_key = 'utm_content' then param_value end) as utm_content,\n min(case when param_key = 'utm_term' then param_value end) as utm_term\n from url_tags\n group by 1,2\n\n), fields as (\n\n select\n base.source_relation,\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n {{ dbt.split_part('base.url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('base.url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('base.url') }} as url_path,\n coalesce(url_tags_pivoted.utm_source, {{ snapchat_ads.snapchat_ads_extract_url_parameter('base.url', 'utm_source') }}) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, {{ snapchat_ads.snapchat_ads_extract_url_parameter('base.url', 'utm_medium') }}) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, {{ snapchat_ads.snapchat_ads_extract_url_parameter('base.url', 'utm_campaign') }}) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, {{ snapchat_ads.snapchat_ads_extract_url_parameter('base.url', 'utm_content') }}) as utm_content,\n coalesce(url_tags_pivoted.utm_term, {{ snapchat_ads.snapchat_ads_extract_url_parameter('base.url', 'utm_term') }}) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n and base.source_relation = url_tags_pivoted.source_relation\n\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [{"name": "stg_snapchat_ads__creative_history", "package": null, "version": null}, {"name": "stg_snapchat_ads__creative_url_tag_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.snapchat_ads.snapchat_ads_extract_url_parameter"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history", "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"]}, "compiled_path": "target/compiled/snapchat_ads/models/intermediate/snapchat_ads__creative_history_prep.sql", "compiled": true, "compiled_code": "\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_history\"\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_url_tag_history\"\n where is_most_recent_record = true\n\n), url_tags_pivoted as (\n\n select \n source_relation,\n creative_id,\n min(case when param_key = 'utm_source' then param_value end) as utm_source,\n min(case when param_key = 'utm_medium' then param_value end) as utm_medium,\n min(case when param_key = 'utm_campaign' then param_value end) as utm_campaign,\n min(case when param_key = 'utm_content' then param_value end) as utm_content,\n min(case when param_key = 'utm_term' then param_value end) as utm_term\n from url_tags\n group by 1,2\n\n), fields as (\n\n select\n base.source_relation,\n base.creative_id,\n base.ad_account_id,\n base.creative_name,\n base.url,\n \n\n \n \n\n split_part(\n base.url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n and base.source_relation = url_tags_pivoted.source_relation\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_group_stats": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_group_stats", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__ad_group_stats.sql", "original_file_path": "models/stg_google_ads__ad_group_stats.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats", "fqn": ["google_ads_source", "stg_google_ads__ad_group_stats"], "alias": "stg_google_ads__ad_group_stats", "checksum": {"name": "sha256", "checksum": "bfb7ed2f43bbdc003f595169de8364408a1ed968c097b4d6ff7b686177728ce3"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of an ad group in Google Ads broken down to the ad network and device type.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.025938, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_stats\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__ad_group_stats_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__ad_group_stats_tmp')),\n staging_columns=get_ad_group_stats_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n customer_id as account_id, \n date as date_day, \n cast(id as {{ dbt.type_string() }}) as ad_group_id, \n campaign_id, \n device,\n ad_network_type,\n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n \n {{ google_ads_fill_pass_through_columns(pass_through_fields=var('google_ads__ad_group_stats_passthrough_metrics'), except=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_stats_tmp", "package": null, "version": null}, {"name": "stg_google_ads__ad_group_stats_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_ad_group_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.google_ads_source.google_ads_fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_group_stats.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_stats_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_network_type\n \n as \n \n ad_network_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost_micros\n \n as \n \n cost_micros\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n device\n \n as \n \n device\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n conversions_value\n \n as \n \n conversions_value\n \n, \n \n \n view_through_conversions\n \n as \n \n view_through_conversions\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n customer_id as account_id, \n date as date_day, \n cast(id as TEXT) as ad_group_id, \n campaign_id, \n device,\n ad_network_type,\n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__account_stats": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__account_stats", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__account_stats.sql", "original_file_path": "models/stg_google_ads__account_stats.sql", "unique_id": "model.google_ads_source.stg_google_ads__account_stats", "fqn": ["google_ads_source", "stg_google_ads__account_stats"], "alias": "stg_google_ads__account_stats", "checksum": {"name": "sha256", "checksum": "7d2d7b2362eaedb37320f8dd5c60ca91a34965bf4d8f60e9296cc9e802363f64"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of an account in Google Ads broken down to the ad network and device type.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.02764, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_stats\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__account_stats_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__account_stats_tmp')),\n staging_columns=get_account_stats_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n customer_id as account_id, \n date as date_day,\n ad_network_type,\n device,\n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n \n {{ google_ads_fill_pass_through_columns(pass_through_fields=var('google_ads__account_stats_passthrough_metrics'), except=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_google_ads__account_stats_tmp", "package": null, "version": null}, {"name": "stg_google_ads__account_stats_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_account_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.google_ads_source.google_ads_fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__account_stats.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_stats_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_network_type\n \n as \n \n ad_network_type\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost_micros\n \n as \n \n cost_micros\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n device\n \n as \n \n device\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n conversions_value\n \n as \n \n conversions_value\n \n, \n \n \n view_through_conversions\n \n as \n \n view_through_conversions\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n customer_id as account_id, \n date as date_day,\n ad_network_type,\n device,\n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_group_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_group_history", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__ad_group_history.sql", "original_file_path": "models/stg_google_ads__ad_group_history.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history", "fqn": ["google_ads_source", "stg_google_ads__ad_group_history"], "alias": "stg_google_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "fcafb02e78df209c9a612dd410917873e4452ab3eeffc76ae4f3cd276a0b7683"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of an ad group in Google Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_type": {"name": "ad_group_type", "description": "The type of the ad group in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.022167, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__ad_group_history_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__ad_group_history_tmp')),\n staging_columns=get_ad_group_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as ad_group_id,\n updated_at,\n type as ad_group_type, \n campaign_id, \n campaign_name, \n name as ad_group_name, \n status as ad_group_status,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_history_tmp", "package": null, "version": null}, {"name": "stg_google_ads__ad_group_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_history_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_history_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n campaign_name\n \n as \n \n campaign_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n cast(null as boolean) as \n \n _fivetran_active\n \n \n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as TEXT) as ad_group_id,\n updated_at,\n type as ad_group_type, \n campaign_id, \n campaign_name, \n name as ad_group_name, \n status as ad_group_status,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_history", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__ad_history.sql", "original_file_path": "models/stg_google_ads__ad_history.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_history", "fqn": ["google_ads_source", "stg_google_ads__ad_history"], "alias": "stg_google_ads__ad_history", "checksum": {"name": "sha256", "checksum": "dfb14371dddca0865cf728b2724a131758522d19391bef8689824b0eb398cede"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of an ad in Google Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The display url of the ad that is being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_type": {"name": "ad_type", "description": "The type of the ad in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_status": {"name": "ad_status", "description": "Status of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_final_urls": {"name": "source_final_urls", "description": "The original list of final urls expressed as an array. Please be aware the test used on this field is intended to warn you if you have fields with multiple urls. If you do, the `final_url` field will filter down the urls within the array to just the first. Therefore, this package will only leverage one of possibly many urls within this field array.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "final_url": {"name": "final_url", "description": "The first url in the list of the urls within the `final_urls` source field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `final_urls`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.02285, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__ad_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__ad_history_tmp')),\n staging_columns=get_ad_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id, \n id as ad_id,\n name as ad_name,\n updated_at,\n type as ad_type,\n status as ad_status,\n display_url,\n final_urls as source_final_urls,\n replace(replace(final_urls, '[', ''),']','') as final_urls,\n row_number() over (partition by source_relation, id, ad_group_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n),\n\nfinal_urls as (\n\n select \n *,\n --Extract the first url within the list of urls provided within the final_urls field\n {{ dbt.split_part(string_text='final_urls', delimiter_text=\"','\", part_number=1) }} as final_url\n\n from final\n\n),\n\nurl_fields as (\n select \n *,\n {{ dbt.split_part('final_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('final_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('final_url') }} as url_path,\n {{ google_ads_source.google_ads_extract_url_parameter('final_url', 'utm_source') }} as utm_source,\n {{ google_ads_source.google_ads_extract_url_parameter('final_url', 'utm_medium') }} as utm_medium,\n {{ google_ads_source.google_ads_extract_url_parameter('final_url', 'utm_campaign') }} as utm_campaign,\n {{ google_ads_source.google_ads_extract_url_parameter('final_url', 'utm_content') }} as utm_content,\n {{ google_ads_source.google_ads_extract_url_parameter('final_url', 'utm_term') }} as utm_term\n from final_urls\n)\n\nselect * \nfrom url_fields", "language": "sql", "refs": [{"name": "stg_google_ads__ad_history_tmp", "package": null, "version": null}, {"name": "stg_google_ads__ad_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.google_ads_source.google_ads_extract_url_parameter"], "nodes": ["model.google_ads_source.stg_google_ads__ad_history_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n display_url\n \n as \n \n display_url\n \n, \n \n \n final_urls\n \n as \n \n final_urls\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n cast(null as boolean) as \n \n _fivetran_active\n \n \n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_group_id as TEXT) as ad_group_id, \n id as ad_id,\n name as ad_name,\n updated_at,\n type as ad_type,\n status as ad_status,\n display_url,\n final_urls as source_final_urls,\n replace(replace(final_urls, '[', ''),']','') as final_urls,\n row_number() over (partition by source_relation, id, ad_group_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n),\n\nfinal_urls as (\n\n select \n *,\n --Extract the first url within the list of urls provided within the final_urls field\n \n\n \n \n\n split_part(\n final_urls,\n ',',\n 1\n )\n\n\n \n\n as final_url\n\n from final\n\n),\n\nurl_fields as (\n select \n *,\n \n\n \n \n\n split_part(\n final_url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n final_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n final_url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_source,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n final_url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_medium,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n final_url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_campaign,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n final_url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_content,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n final_url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_term\n from final_urls\n)\n\nselect * \nfrom url_fields", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__keyword_stats": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__keyword_stats", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__keyword_stats.sql", "original_file_path": "models/stg_google_ads__keyword_stats.sql", "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats", "fqn": ["google_ads_source", "stg_google_ads__keyword_stats"], "alias": "stg_google_ads__keyword_stats", "checksum": {"name": "sha256", "checksum": "bdbdc14def8247f6f22db4da24dc6f86da3d5ec56ae7af55741d0cf4d1cd291a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a keyword in Google Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The unique ID of the keyword record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "criterion_id": {"name": "criterion_id", "description": "Reference to the ad group criterion used for the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.027102, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__keyword_stats\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__keyword_stats_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__keyword_stats_tmp')),\n staging_columns=get_keyword_stats_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n _fivetran_id as keyword_id,\n customer_id as account_id, \n date as date_day, \n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n ad_group_criterion_criterion_id as criterion_id,\n campaign_id, \n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n \n {{ google_ads_fill_pass_through_columns(pass_through_fields=var('google_ads__keyword_stats_passthrough_metrics'), except=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_google_ads__keyword_stats_tmp", "package": null, "version": null}, {"name": "stg_google_ads__keyword_stats_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_keyword_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.google_ads_source.google_ads_fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__keyword_stats.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__keyword_stats_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_group_criterion_criterion_id\n \n as \n \n ad_group_criterion_criterion_id\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_network_type\n \n as \n \n ad_network_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost_micros\n \n as \n \n cost_micros\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n device\n \n as \n \n device\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n conversions_value\n \n as \n \n conversions_value\n \n, \n \n \n view_through_conversions\n \n as \n \n view_through_conversions\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n _fivetran_id as keyword_id,\n customer_id as account_id, \n date as date_day, \n cast(ad_group_id as TEXT) as ad_group_id,\n ad_group_criterion_criterion_id as criterion_id,\n campaign_id, \n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_stats": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_stats", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__ad_stats.sql", "original_file_path": "models/stg_google_ads__ad_stats.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_stats", "fqn": ["google_ads_source", "stg_google_ads__ad_stats"], "alias": "stg_google_ads__ad_stats", "checksum": {"name": "sha256", "checksum": "3d9153d0c78940f772fdcad173fe4caf48a1bcba23e3114727d3dfc5206922b6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of an ad in Google Ads broken down to the ad network, device type, and ad_group_id.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_ad_group_criterion": {"name": "keyword_ad_group_criterion", "description": "The ad group which the keyword criterion resides.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.023962, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_stats\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__ad_stats_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__ad_stats_tmp')),\n staging_columns=get_ad_stats_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n customer_id as account_id, \n date as date_day, \n {% if target.type in ('spark','databricks') %}\n coalesce(cast(ad_group_id as {{ dbt.type_string() }}), split(ad_group,'adGroups/')[1]) as ad_group_id,\n {% else %}\n coalesce(cast(ad_group_id as {{ dbt.type_string() }}), {{ dbt.split_part(string_text='ad_group', delimiter_text=\"'adGroups/'\", part_number=2) }}) as ad_group_id,\n {% endif %}\n keyword_ad_group_criterion,\n ad_network_type,\n device,\n ad_id, \n campaign_id, \n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n\n {{ google_ads_fill_pass_through_columns(pass_through_fields=var('google_ads__ad_stats_passthrough_metrics'), except=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n from fields\n)\n\nselect * from final", "language": "sql", "refs": [{"name": "stg_google_ads__ad_stats_tmp", "package": null, "version": null}, {"name": "stg_google_ads__ad_stats_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_ad_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.split_part", "macro.google_ads_source.google_ads_fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_stats.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_stats_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n ad_group\n \n as \n \n ad_group\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n ad_network_type\n \n as \n \n ad_network_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost_micros\n \n as \n \n cost_micros\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n device\n \n as \n \n device\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n keyword_ad_group_criterion\n \n as \n \n keyword_ad_group_criterion\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n conversions_value\n \n as \n \n conversions_value\n \n, \n \n \n view_through_conversions\n \n as \n \n view_through_conversions\n \n\n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n customer_id as account_id, \n date as date_day, \n \n coalesce(cast(ad_group_id as TEXT), \n\n \n \n\n split_part(\n ad_group,\n 'adGroups/',\n 2\n )\n\n\n \n\n) as ad_group_id,\n \n keyword_ad_group_criterion,\n ad_network_type,\n device,\n ad_id, \n campaign_id, \n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n\n \n\n\n\n\n\n from fields\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_group_criterion_history", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__ad_group_criterion_history.sql", "original_file_path": "models/stg_google_ads__ad_group_criterion_history.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history", "fqn": ["google_ads_source", "stg_google_ads__ad_group_criterion_history"], "alias": "stg_google_ads__ad_group_criterion_history", "checksum": {"name": "sha256", "checksum": "6f52de4d9c75239528727d3b83277cfe3d2ae624f85f7d51acc6e9d76058e81d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a historical version of an ad group criterion in Google Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "criterion_id": {"name": "criterion_id", "description": "Unique identifier of the ad group criterion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_campaign_id": {"name": "base_campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of ad group criterion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad group criterion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_match_type": {"name": "keyword_match_type", "description": "The match type which dictate how closely the keyword needs to match with the user\u2019s search query so that the ad can be considered for the auction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The text used within the keyword criterion that is being matched against.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.025357, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_criterion_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__ad_group_criterion_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__ad_group_criterion_history_tmp')),\n staging_columns=get_ad_group_criterion_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as criterion_id,\n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n base_campaign_id,\n updated_at,\n type,\n status,\n keyword_match_type,\n keyword_text,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_criterion_history_tmp", "package": null, "version": null}, {"name": "stg_google_ads__ad_group_criterion_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_ad_group_criterion_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_group_criterion_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_criterion_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n base_campaign_id\n \n as \n \n base_campaign_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n keyword_match_type\n \n as \n \n keyword_match_type\n \n, \n \n \n keyword_text\n \n as \n \n keyword_text\n \n, \n cast(null as boolean) as \n \n _fivetran_active\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as criterion_id,\n cast(ad_group_id as TEXT) as ad_group_id,\n base_campaign_id,\n updated_at,\n type,\n status,\n keyword_match_type,\n keyword_text,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__campaign_stats": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__campaign_stats", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__campaign_stats.sql", "original_file_path": "models/stg_google_ads__campaign_stats.sql", "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats", "fqn": ["google_ads_source", "stg_google_ads__campaign_stats"], "alias": "stg_google_ads__campaign_stats", "checksum": {"name": "sha256", "checksum": "999db701077c8ea2d7204928d8f200f1cb75c4922382f75a8ad3943209793dc3"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a campaign in Google Ads broken down to the ad network and device type.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.0264919, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__campaign_stats\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__campaign_stats_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__campaign_stats_tmp')),\n staging_columns=get_campaign_stats_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n customer_id as account_id, \n date as date_day, \n id as campaign_id, \n ad_network_type,\n device,\n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n \n {{ google_ads_fill_pass_through_columns(pass_through_fields=var('google_ads__campaign_stats_passthrough_metrics'), except=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_google_ads__campaign_stats_tmp", "package": null, "version": null}, {"name": "stg_google_ads__campaign_stats_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_campaign_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.google_ads_source.google_ads_fill_pass_through_columns"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__campaign_stats.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__campaign_stats_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_network_type\n \n as \n \n ad_network_type\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost_micros\n \n as \n \n cost_micros\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n device\n \n as \n \n device\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n conversions_value\n \n as \n \n conversions_value\n \n, \n \n \n view_through_conversions\n \n as \n \n view_through_conversions\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n customer_id as account_id, \n date as date_day, \n id as campaign_id, \n ad_network_type,\n device,\n coalesce(clicks, 0) as clicks, \n coalesce(cost_micros, 0) / 1000000.0 as spend, \n coalesce(impressions, 0) as impressions,\n coalesce(conversions, 0) as conversions,\n coalesce(conversions_value, 0) as conversions_value,\n coalesce(view_through_conversions, 0) as view_through_conversions\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__campaign_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__campaign_history", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__campaign_history.sql", "original_file_path": "models/stg_google_ads__campaign_history.sql", "unique_id": "model.google_ads_source.stg_google_ads__campaign_history", "fqn": ["google_ads_source", "stg_google_ads__campaign_history"], "alias": "stg_google_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "d46649f5c27047aa1e33e81154c92f77835c18d889d3db874355a67c1eb42359"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of a campaign in Google Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertising_channel_type": {"name": "advertising_channel_type", "description": "The type of advertising channel being used by the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertising_channel_subtype": {"name": "advertising_channel_subtype", "description": "The advertising channel subtype that is being used by the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "Status of the ads and how they are currently being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "General status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tracking_url_template": {"name": "tracking_url_template", "description": "The tracking url template being used throughout the campaign ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.024671, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__campaign_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__campaign_history_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as campaign_id, \n updated_at,\n name as campaign_name,\n customer_id as account_id,\n advertising_channel_type,\n advertising_channel_subtype,\n start_date,\n end_date,\n serving_status,\n status,\n tracking_url_template,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_google_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_google_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__campaign_history_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n advertising_channel_subtype\n \n as \n \n advertising_channel_subtype\n \n, \n \n \n advertising_channel_type\n \n as \n \n advertising_channel_type\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n serving_status\n \n as \n \n serving_status\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n tracking_url_template\n \n as \n \n tracking_url_template\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n cast(null as boolean) as \n \n _fivetran_active\n \n \n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as campaign_id, \n updated_at,\n name as campaign_name,\n customer_id as account_id,\n advertising_channel_type,\n advertising_channel_subtype,\n start_date,\n end_date,\n serving_status,\n status,\n tracking_url_template,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__account_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__account_history", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__account_history.sql", "original_file_path": "models/stg_google_ads__account_history.sql", "unique_id": "model.google_ads_source.stg_google_ads__account_history", "fqn": ["google_ads_source", "stg_google_ads__account_history"], "alias": "stg_google_ads__account_history", "checksum": {"name": "sha256", "checksum": "851559735dd5553d76ec6b4ec596719d9f1ee1ed47042df4d861d15bb64ca96e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of an account in Google Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the Account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency of the spend reported.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "auto_tagging_enabled": {"name": "auto_tagging_enabled", "description": "Boolean indicating if auto tagging is enabled on the account ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone of the account ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "google_ads_source://models/stg_google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.0216541, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_google_ads__account_history_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_google_ads__account_history_tmp')),\n staging_columns=get_account_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='google_ads_union_schemas', \n union_database_variable='google_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as account_id,\n updated_at,\n currency_code,\n auto_tagging_enabled,\n time_zone,\n descriptive_name as account_name,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_google_ads__account_history_tmp", "package": null, "version": null}, {"name": "stg_google_ads__account_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.google_ads_source.stg_google_ads__account_history_tmp"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__account_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_history_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n auto_tagging_enabled\n \n as \n \n auto_tagging_enabled\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n descriptive_name\n \n as \n \n descriptive_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n time_zone\n \n as \n \n time_zone\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n cast(null as boolean) as \n \n _fivetran_active\n \n \n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as account_id,\n updated_at,\n currency_code,\n auto_tagging_enabled,\n time_zone,\n descriptive_name as account_name,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n where coalesce(_fivetran_active, true)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__account_stats_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__account_stats_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__account_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__account_stats_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__account_stats_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__account_stats_tmp"], "alias": "stg_google_ads__account_stats_tmp", "checksum": {"name": "sha256", "checksum": "53bf3e1d8bb8072a5eeecc61aea3ac8e6bcd886fe778eae4d09936a8a15cf1a4"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.638743, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_stats_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_stats', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='account_stats',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "account_stats"], ["google_ads", "account_stats"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.account_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__account_stats_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"google_ads_account_stats_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_group_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_group_history_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_group_history_tmp"], "alias": "stg_google_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "27917221395112d60ce764fff5a10d6ed86afb2788ad6a04a1f79c9d5fd8e3e0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.642879, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_history', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='ad_group_history',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "ad_group_history"], ["google_ads", "ad_group_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.ad_group_history"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"google_ads_ad_group_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__campaign_stats_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__campaign_stats_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__campaign_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__campaign_stats_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__campaign_stats_tmp"], "alias": "stg_google_ads__campaign_stats_tmp", "checksum": {"name": "sha256", "checksum": "c6d7ed9fb5b4d735912bea35c575b0a2b306a9a56f11db4d84c3fbbb5f53251e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.647041, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__campaign_stats_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_stats', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='campaign_stats',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "campaign_stats"], ["google_ads", "campaign_stats"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.campaign_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__campaign_stats_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"google_ads_campaign_stats_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_stats_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_stats_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__ad_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_stats_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_stats_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_stats_tmp"], "alias": "stg_google_ads__ad_stats_tmp", "checksum": {"name": "sha256", "checksum": "0e8698cde9ab2db188086002af848006aaf04516286b9f5a510ac39f1157b2d5"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.651781, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_stats_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_stats', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='ad_stats',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "ad_stats"], ["google_ads", "ad_stats"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.ad_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_stats_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"google_ads_ad_stats_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__campaign_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__campaign_history_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__campaign_history_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__campaign_history_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__campaign_history_tmp"], "alias": "stg_google_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "14370258c20a027e6253cd40b5d937da847aac202403f5392f46fb65511f61c2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.655875, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__campaign_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='campaign_history',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "campaign_history"], ["google_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.campaign_history"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"google_ads_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_group_criterion_history_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__ad_group_criterion_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_group_criterion_history_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_group_criterion_history_tmp"], "alias": "stg_google_ads__ad_group_criterion_history_tmp", "checksum": {"name": "sha256", "checksum": "ddef66fa4107a20f2f166e866289eccb2fae8c06639044433e3cd34048f03d4c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.6600199, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_criterion_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_criterion_history', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='ad_group_criterion_history',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "ad_group_criterion_history"], ["google_ads", "ad_group_criterion_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.ad_group_criterion_history"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_group_criterion_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"google_ads_ad_group_criterion_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_group_stats_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_group_stats_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__ad_group_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_group_stats_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_group_stats_tmp"], "alias": "stg_google_ads__ad_group_stats_tmp", "checksum": {"name": "sha256", "checksum": "e5eaa10da4d6f25ac4988386a9added765eb7b7638065692723b7508abad2fc9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.6641228, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_stats_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_stats', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='ad_group_stats',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "ad_group_stats"], ["google_ads", "ad_group_stats"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.ad_group_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_group_stats_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"google_ads_ad_group_stats_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__keyword_stats_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__keyword_stats_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__keyword_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__keyword_stats_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__keyword_stats_tmp"], "alias": "stg_google_ads__keyword_stats_tmp", "checksum": {"name": "sha256", "checksum": "488ddf5cbf005ec6f18520bc87007fab72de55a77c67ef05e5b359fe5d685440"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.668958, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__keyword_stats_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='keyword_stats', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='keyword_stats',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "keyword_stats"], ["google_ads", "keyword_stats"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.keyword_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__keyword_stats_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"google_ads_keyword_stats_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__ad_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__ad_history_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_history_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_history_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_history_tmp"], "alias": "stg_google_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "d5b44fadc77a3ade124cc55b4930d84d15805ecb6ca2c74c2f622f1a2747f687"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.6731021, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_history', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='ad_history',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "ad_history"], ["google_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.ad_history"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"google_ads_ad_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.google_ads_source.stg_google_ads__account_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_google_ads__account_history_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__account_history_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__account_history_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__account_history_tmp"], "alias": "stg_google_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "5f3a32b7b4a588718f7925dd1317ec47506168ad46d7fb39658af3ad12c6402b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462183.677197, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__google_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_history', \n database_variable='google_ads_database', \n schema_variable='google_ads_schema', \n default_database=target.database,\n default_schema='google_ads',\n default_variable='account_history',\n union_schema_variable='google_ads_union_schemas',\n union_database_variable='google_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["google_ads", "account_history"], ["google_ads", "account_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.google_ads_source.google_ads.account_history"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__account_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"google_ads_account_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads.apple_search_ads__ad_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "apple_search_ads__ad_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__ad_report.sql", "original_file_path": "models/apple_search_ads__ad_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__ad_report", "fqn": ["apple_search_ads", "apple_search_ads__ad_report"], "alias": "apple_search_ads__ad_report", "checksum": {"name": "sha256", "checksum": "e29b1e72ebbd1c0104e3aa76068d99df68829f7d97268b35e1dbbe72fedc63bc"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily ad performance of each ad.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_status": {"name": "ad_status", "description": "The status of the ad associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on ad group on given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed app of ad group in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Number of user downloads where user deletes app and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device of ad group in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of ad group in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on ad group in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.087504, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__ad_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_report') }}\n), \n\nad as (\n\n select * \n from {{ var('ad_history') }}\n where is_most_recent_record = True\n), \n\nad_group as (\n\n select * \n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from {{ var('organization') }}\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n report.campaign_id, \n campaign.campaign_name, \n report.ad_group_id,\n ad_group.ad_group_name,\n report.ad_id,\n ad.ad_name,\n report.currency,\n ad.ad_status,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ apple_search_ads_persist_pass_through_columns(\n pass_through_variable = 'apple_search_ads__ad_passthrough_metrics',\n identifier = 'report',\n transform = 'sum',\n coalesce_with = 0,\n exclude_fields = ['conversions']) }}\n\n from report\n left join ad \n on report.ad_id = ad.ad_id\n and report.source_relation = ad.source_relation\n left join ad_group \n on report.ad_group_id = ad_group.ad_group_id\n and report.source_relation = ad_group.source_relation\n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join organization \n on ad.organization_id = organization.organization_id\n and ad.source_relation = organization.source_relation\n {{ dbt_utils.group_by(12) }}\n)\n\nselect * \nfrom joined", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_report", "package": null, "version": null}, {"name": "stg_apple_search_ads__ad_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads.apple_search_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report", "model.apple_search_ads_source.stg_apple_search_ads__ad_history", "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_report\"\n), \n\nad as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_history\"\n where is_most_recent_record = True\n), \n\nad_group as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__organization\"\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n report.campaign_id, \n campaign.campaign_name, \n report.ad_group_id,\n ad_group.ad_group_name,\n report.ad_id,\n ad.ad_name,\n report.currency,\n ad.ad_status,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n\n from report\n left join ad \n on report.ad_id = ad.ad_id\n and report.source_relation = ad.source_relation\n left join ad_group \n on report.ad_group_id = ad_group.ad_group_id\n and report.source_relation = ad_group.source_relation\n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join organization \n on ad.organization_id = organization.organization_id\n and ad.source_relation = organization.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads.apple_search_ads__ad_group_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "apple_search_ads__ad_group_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__ad_group_report.sql", "original_file_path": "models/apple_search_ads__ad_group_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__ad_group_report", "fqn": ["apple_search_ads", "apple_search_ads__ad_group_report"], "alias": "apple_search_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "2602d7523f30c6786efd325a78f9eba75fc7358c1e0855658ac60ddcf8827d73"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily ad performance of each ad group.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "The status of the ad group associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "The start timestamp for this ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "The end timestamp for this ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on ad group on given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed app of ad group in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Number of user downloads where user deletes app and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device of ad group in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of ad group in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on ad group in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.086733, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__ad_group_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_group_report') }}\n), \n\nad_group as (\n\n select * \n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from {{ var('organization') }}\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n campaign.campaign_id, \n campaign.campaign_name, \n report.ad_group_id,\n ad_group.ad_group_name,\n report.currency,\n ad_group.ad_group_status,\n ad_group.start_at, \n ad_group.end_at,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ apple_search_ads_persist_pass_through_columns(\n pass_through_variable = 'apple_search_ads__ad_group_passthrough_metrics',\n identifier = 'report',\n transform = 'sum',\n coalesce_with = 0,\n exclude_fields = ['conversions']) }}\n\n from report\n left join ad_group \n on report.ad_group_id = ad_group.ad_group_id\n and report.source_relation = ad_group.source_relation\n left join campaign \n on ad_group.campaign_id = campaign.campaign_id\n and ad_group.source_relation = campaign.source_relation\n left join organization \n on ad_group.organization_id = organization.organization_id\n and ad_group.source_relation = organization.source_relation\n {{ dbt_utils.group_by(12) }}\n)\n\nselect * \nfrom joined", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_report", "package": null, "version": null}, {"name": "stg_apple_search_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads.apple_search_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report", "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_group_report\"\n), \n\nad_group as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__organization\"\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n campaign.campaign_id, \n campaign.campaign_name, \n report.ad_group_id,\n ad_group.ad_group_name,\n report.currency,\n ad_group.ad_group_status,\n ad_group.start_at, \n ad_group.end_at,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n\n from report\n left join ad_group \n on report.ad_group_id = ad_group.ad_group_id\n and report.source_relation = ad_group.source_relation\n left join campaign \n on ad_group.campaign_id = campaign.campaign_id\n and ad_group.source_relation = campaign.source_relation\n left join organization \n on ad_group.organization_id = organization.organization_id\n and ad_group.source_relation = organization.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads.apple_search_ads__keyword_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "apple_search_ads__keyword_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__keyword_report.sql", "original_file_path": "models/apple_search_ads__keyword_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__keyword_report", "fqn": ["apple_search_ads", "apple_search_ads__keyword_report"], "alias": "apple_search_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "2084104eca772de93d985ecd33168e3f16c6f16496566fc2bcf73a03f59dcd2b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily ad performance of each creative set.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Creative set name associatd with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "Creative set ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; EXACT or BROAD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_status": {"name": "keyword_status", "description": "The status of the keyword associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on keyword on given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed app of keyword in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Number of user downloads where user deletes app and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device of keyword in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of keyword in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on keyword in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.08906, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__keyword_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('keyword_report') }}\n), \n\nkeyword as (\n\n select *\n from {{ var('keyword_history') }}\n where is_most_recent_record = True\n), \n\nad_group as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from {{ var('organization') }}\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n campaign.campaign_id, \n campaign.campaign_name, \n ad_group.ad_group_id,\n ad_group.ad_group_name,\n report.keyword_id,\n keyword.keyword_text,\n keyword.match_type,\n report.currency,\n keyword.keyword_status,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ apple_search_ads_persist_pass_through_columns(\n pass_through_variable = 'apple_search_ads__keyword_passthrough_metrics',\n identifier = 'report',\n transform = 'sum',\n coalesce_with = 0,\n exclude_fields = ['conversions']) }}\n\n from report\n left join keyword \n on report.keyword_id = keyword.keyword_id\n and report.source_relation = keyword.source_relation\n left join ad_group \n on keyword.ad_group_id = ad_group.ad_group_id\n and keyword.source_relation = ad_group.source_relation\n left join campaign \n on ad_group.campaign_id = campaign.campaign_id\n and ad_group.source_relation = campaign.source_relation\n left join organization \n on ad_group.organization_id = organization.organization_id\n and ad_group.source_relation = organization.source_relation\n {{ dbt_utils.group_by(13) }}\n)\n\nselect * \nfrom joined", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_report", "package": null, "version": null}, {"name": "stg_apple_search_ads__keyword_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads.apple_search_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report", "model.apple_search_ads_source.stg_apple_search_ads__keyword_history", "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__keyword_report\"\n), \n\nkeyword as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__keyword_history\"\n where is_most_recent_record = True\n), \n\nad_group as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__organization\"\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n campaign.campaign_id, \n campaign.campaign_name, \n ad_group.ad_group_id,\n ad_group.ad_group_name,\n report.keyword_id,\n keyword.keyword_text,\n keyword.match_type,\n report.currency,\n keyword.keyword_status,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n\n from report\n left join keyword \n on report.keyword_id = keyword.keyword_id\n and report.source_relation = keyword.source_relation\n left join ad_group \n on keyword.ad_group_id = ad_group.ad_group_id\n and keyword.source_relation = ad_group.source_relation\n left join campaign \n on ad_group.campaign_id = campaign.campaign_id\n and ad_group.source_relation = campaign.source_relation\n left join organization \n on ad_group.organization_id = organization.organization_id\n and ad_group.source_relation = organization.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads.apple_search_ads__search_term_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "apple_search_ads__search_term_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__search_term_report.sql", "original_file_path": "models/apple_search_ads__search_term_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__search_term_report", "fqn": ["apple_search_ads", "apple_search_ads__search_term_report"], "alias": "apple_search_ads__search_term_report", "checksum": {"name": "sha256", "checksum": "6ced58b37d0019fa6d58b7f91e6d511f65d5b7148658e37af3f264fa61c74a0f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily ad performance of each search term, only includes records with search term values.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; EXACT or BROAD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_term_text": {"name": "search_term_text", "description": "Search term text.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on organization on given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed app of organization in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Number of user downloads where user deletes app and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device of organization in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of organization in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on organization in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Creative set name associatd with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "Creative set ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.090549, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__search_term_report\"", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__apple_search_ads_enabled','apple_search_ads__using_search_terms'])) }}\n\nwith report as (\n\n select *\n from {{ var('search_term_report') }}\n), \n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from {{ var('organization') }}\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n report.campaign_id, \n campaign.campaign_name, \n report.ad_group_id,\n report.ad_group_name,\n report.keyword_id,\n report.keyword_text,\n report.search_term_text,\n report.match_type,\n report.currency,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ apple_search_ads_persist_pass_through_columns(\n pass_through_variable = 'apple_search_ads__search_term_passthrough_metrics',\n identifier = 'report',\n transform = 'sum',\n coalesce_with = 0,\n exclude_fields = ['conversions']) }}\n\n from report\n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join organization \n on campaign.organization_id = organization.organization_id\n and campaign.source_relation = organization.source_relation\n where report.search_term_text is not null\n {{ dbt_utils.group_by(13) }}\n)\n\nselect * \nfrom joined", "language": "sql", "refs": [{"name": "stg_apple_search_ads__search_term_report", "package": null, "version": null}, {"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.apple_search_ads.apple_search_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__search_term_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__search_term_report\"\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__organization\"\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n report.campaign_id, \n campaign.campaign_name, \n report.ad_group_id,\n report.ad_group_name,\n report.keyword_id,\n report.keyword_text,\n report.search_term_text,\n report.match_type,\n report.currency,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n\n from report\n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join organization \n on campaign.organization_id = organization.organization_id\n and campaign.source_relation = organization.source_relation\n where report.search_term_text is not null\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads.apple_search_ads__campaign_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "apple_search_ads__campaign_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__campaign_report.sql", "original_file_path": "models/apple_search_ads__campaign_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__campaign_report", "fqn": ["apple_search_ads", "apple_search_ads__campaign_report"], "alias": "apple_search_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "d791e6844ad8de5daeae110ef3fefa7bf8edc864c395bfd8d35b512c908fbb79"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily ad performance of each campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the campaign associted with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "The start timestamp of this campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "The end timestamp of this campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on campaign on given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed app of campaign in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Number of user downloads where user deletes app and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device of campaign in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of campaign in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on campaign in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.08818, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__campaign_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith report as (\n \n select *\n from {{ var('campaign_report') }}\n\n), \n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from {{ var('organization') }}\n\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n campaign.organization_id,\n organization.organization_name,\n report.campaign_id, \n campaign.campaign_name, \n report.currency,\n campaign.campaign_status,\n campaign.start_at,\n campaign.end_at,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ apple_search_ads_persist_pass_through_columns(\n pass_through_variable = 'apple_search_ads__campaign_passthrough_metrics',\n identifier = 'report',\n transform = 'sum',\n coalesce_with = 0,\n exclude_fields = ['conversions']) }}\n\n from report\n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join organization \n on campaign.organization_id = organization.organization_id\n and campaign.source_relation = organization.source_relation\n {{ dbt_utils.group_by(10) }}\n)\n\nselect * \nfrom joined", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_report", "package": null, "version": null}, {"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads.apple_search_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n \n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_report\"\n\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__organization\"\n\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n campaign.organization_id,\n organization.organization_name,\n report.campaign_id, \n campaign.campaign_name, \n report.currency,\n campaign.campaign_status,\n campaign.start_at,\n campaign.end_at,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n\n from report\n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join organization \n on campaign.organization_id = organization.organization_id\n and campaign.source_relation = organization.source_relation\n group by 1,2,3,4,5,6,7,8,9,10\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads.apple_search_ads__organization_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "apple_search_ads__organization_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__organization_report.sql", "original_file_path": "models/apple_search_ads__organization_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__organization_report", "fqn": ["apple_search_ads", "apple_search_ads__organization_report"], "alias": "apple_search_ads__organization_report", "checksum": {"name": "sha256", "checksum": "d2240e15cc84526475bbb649a224aa7e877f8580ecf400368b9a22b732f5f0f7"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily ad performance of each organization.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Organization name associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "Number of taps on organization on given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed app of organization in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Number of user downloads where user deletes app and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device of organization in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_downloads": {"name": "total_downloads", "description": "The sum of new_downloads and redownloads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions of organization in a given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on organization in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads://models/apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.089664, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__organization_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith report as (\n \n select *\n from {{ var('campaign_report') }}\n), \n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from {{ var('organization') }}\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n organization.currency,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ apple_search_ads_persist_pass_through_columns(\n pass_through_variable = 'apple_search_ads__campaign_passthrough_metrics',\n identifier = 'report',\n transform = 'sum',\n coalesce_with = 0,\n exclude_fields = ['conversions']) }}\n\n from report\n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join organization \n on campaign.organization_id = organization.organization_id\n and campaign.source_relation = organization.source_relation\n {{ dbt_utils.group_by(5) }}\n)\n\nselect * \nfrom joined", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_report", "package": null, "version": null}, {"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}, {"name": "stg_apple_search_ads__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads.apple_search_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__organization_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n \n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_report\"\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__organization\"\n), \n\njoined as (\n\n select \n report.source_relation,\n report.date_day,\n organization.organization_id,\n organization.organization_name,\n organization.currency,\n sum(report.taps) as taps,\n sum(report.new_downloads) as new_downloads,\n sum(report.redownloads) as redownloads,\n sum(report.new_downloads + report.redownloads) as total_downloads,\n sum(report.conversions) as conversions,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n\n from report\n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join organization \n on campaign.organization_id = organization.organization_id\n and campaign.source_relation = organization.source_relation\n group by 1,2,3,4,5\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.ad_reporting__campaign_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "ad_reporting__campaign_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__campaign_report.sql", "original_file_path": "models/ad_reporting__campaign_report.sql", "unique_id": "model.ad_reporting.ad_reporting__campaign_report", "fqn": ["ad_reporting", "ad_reporting__campaign_report"], "alias": "ad_reporting__campaign_report", "checksum": {"name": "sha256", "checksum": "47f504069deefb56c5c643f6189cde8184fdc3c802242edfeb182e4010ad4323"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents daily metrics by campaign and account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The count of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The monetary value of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.1288168, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__campaign_report\"", "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__campaign_report') }}\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n {{ ad_reporting_persist_pass_through_columns(pass_through_variable='ad_reporting__campaign_passthrough_metrics', transform = 'sum', alias_fields=['conversions', 'conversions_value']) }}\n\n from base\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "int_ad_reporting__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.ad_reporting_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__campaign_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__campaign_report.sql", "compiled": true, "compiled_code": "\n\n\nwith __dbt__cte__int_ad_reporting__campaign_report as (\n\n\n\nwith\n\n\nfacebook_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__campaign_report\"\n\n),\n\n\n\ngoogle_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__campaign_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__campaign_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__campaign_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_group_id as TEXT) as campaign_id\n\n \n ,cast(campaign_group_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_value_in_local_currency as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__campaign_group_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__campaign_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id\n\n \n ,cast(ad_account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(swipes as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_purchases_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__campaign_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversion as float) as conversions\n\n ,cast(total_conversion_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__campaign_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__campaign_report\"\n\n),\n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__campaign_report\"\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'reddit_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(null as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(total_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__campaign_report\"\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n), base as (\n\n select *\n from __dbt__cte__int_ad_reporting__campaign_report\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n \n\n\n\n\n\n from base\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.ad_reporting.int_ad_reporting__campaign_report", "sql": " __dbt__cte__int_ad_reporting__campaign_report as (\n\n\n\nwith\n\n\nfacebook_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__campaign_report\"\n\n),\n\n\n\ngoogle_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__campaign_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__campaign_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__campaign_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_group_id as TEXT) as campaign_id\n\n \n ,cast(campaign_group_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_value_in_local_currency as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__campaign_group_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__campaign_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id\n\n \n ,cast(ad_account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(swipes as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_purchases_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__campaign_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversion as float) as conversions\n\n ,cast(total_conversion_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__campaign_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__campaign_report\"\n\n),\n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__campaign_report\"\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'reddit_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(null as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(total_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__campaign_report\"\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.ad_reporting__account_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "ad_reporting__account_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__account_report.sql", "original_file_path": "models/ad_reporting__account_report.sql", "unique_id": "model.ad_reporting.ad_reporting__account_report", "fqn": ["ad_reporting", "ad_reporting__account_report"], "alias": "ad_reporting__account_report", "checksum": {"name": "sha256", "checksum": "a3d1d911b21f4d4230c39ce69de3f963ea9f911ad1edfd14a4a5d40939333b54"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents daily metrics by account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The count of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The monetary value of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.1269991, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__account_report\"", "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__account_report') }}\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n {{ ad_reporting_persist_pass_through_columns(pass_through_variable='ad_reporting__account_passthrough_metrics', transform = 'sum', alias_fields=['conversions', 'conversions_value']) }}\n\n from base\n {{ dbt_utils.group_by(5) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "int_ad_reporting__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.ad_reporting_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__account_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__account_report.sql", "compiled": true, "compiled_code": "\n\n\nwith __dbt__cte__int_ad_reporting__account_report as (\n\n\n\nwith\n\n\nfacebook_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__account_report\"\n\n),\n\n\n\ngoogle_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__account_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__account_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__organization_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_value_in_local_currency as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__account_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__advertiser_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id\n\n \n ,cast(ad_account_name as TEXT) as account_name\n\n \n ,cast(swipes as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_purchases_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__account_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversion as float) as conversions\n\n ,cast(total_conversion_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__advertiser_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__account_report\"\n\n),\n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__account_report\"\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'reddit_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(null as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(total_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__account_report\"\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n), base as (\n\n select *\n from __dbt__cte__int_ad_reporting__account_report\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n \n\n\n\n\n\n from base\n group by 1,2,3,4,5\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.ad_reporting.int_ad_reporting__account_report", "sql": " __dbt__cte__int_ad_reporting__account_report as (\n\n\n\nwith\n\n\nfacebook_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__account_report\"\n\n),\n\n\n\ngoogle_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__account_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__account_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__organization_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_value_in_local_currency as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__account_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__advertiser_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id\n\n \n ,cast(ad_account_name as TEXT) as account_name\n\n \n ,cast(swipes as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_purchases_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__account_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversion as float) as conversions\n\n ,cast(total_conversion_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__advertiser_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__account_report\"\n\n),\n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__account_report\"\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'reddit_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(null as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(total_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__account_report\"\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.ad_reporting__ad_group_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "ad_reporting__ad_group_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__ad_group_report.sql", "original_file_path": "models/ad_reporting__ad_group_report.sql", "unique_id": "model.ad_reporting.ad_reporting__ad_group_report", "fqn": ["ad_reporting", "ad_reporting__ad_group_report"], "alias": "ad_reporting__ad_group_report", "checksum": {"name": "sha256", "checksum": "5c0b5972fa79e21e67f7d5d0ff510424b54604dc214e1b978d22bc45b6b5b51d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents daily metrics by ad group, campaign and account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID representing the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The count of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The monetary value of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.1276002, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__ad_group_report\"", "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__ad_group_report') }}\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n {{ ad_reporting_persist_pass_through_columns(pass_through_variable='ad_reporting__ad_group_passthrough_metrics', transform = 'sum', alias_fields=['conversions', 'conversions_value']) }}\n\n from base\n {{ dbt_utils.group_by(9) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "int_ad_reporting__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.ad_reporting_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__ad_group_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__ad_group_report.sql", "compiled": true, "compiled_code": "\n\n\nwith __dbt__cte__int_ad_reporting__ad_group_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__ad_group_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__ad_group_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__ad_group_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as ad_group_id\n\n \n ,cast(campaign_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_group_id as TEXT) as campaign_id\n\n \n ,cast(campaign_group_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_value_in_local_currency as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__campaign_report\"\n\n),\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_set_id as TEXT) as ad_group_id\n\n \n ,cast(ad_set_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__ad_set_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__ad_group_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id\n\n \n ,cast(ad_account_name as TEXT) as account_name\n\n \n ,cast(ad_squad_id as TEXT) as ad_group_id\n\n \n ,cast(ad_squad_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(swipes as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_purchases_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__ad_squad_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversion as float) as conversions\n\n ,cast(total_conversion_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__ad_group_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(line_item_id as TEXT) as ad_group_id\n\n \n ,cast(line_item_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__line_item_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__ad_group_report\"\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'reddit_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(null as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(total_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__ad_group_report\"\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n), base as (\n\n select *\n from __dbt__cte__int_ad_reporting__ad_group_report\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n \n\n\n\n\n\n from base\n group by 1,2,3,4,5,6,7,8,9\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.ad_reporting.int_ad_reporting__ad_group_report", "sql": " __dbt__cte__int_ad_reporting__ad_group_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__ad_group_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__ad_group_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__ad_group_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as ad_group_id\n\n \n ,cast(campaign_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_group_id as TEXT) as campaign_id\n\n \n ,cast(campaign_group_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_value_in_local_currency as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__campaign_report\"\n\n),\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_set_id as TEXT) as ad_group_id\n\n \n ,cast(ad_set_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__ad_set_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__ad_group_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id\n\n \n ,cast(ad_account_name as TEXT) as account_name\n\n \n ,cast(ad_squad_id as TEXT) as ad_group_id\n\n \n ,cast(ad_squad_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(swipes as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_purchases_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__ad_squad_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversion as float) as conversions\n\n ,cast(total_conversion_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__ad_group_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(line_item_id as TEXT) as ad_group_id\n\n \n ,cast(line_item_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__line_item_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__ad_group_report\"\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'reddit_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(null as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(total_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__ad_group_report\"\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.ad_reporting__search_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "ad_reporting__search_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__search_report.sql", "original_file_path": "models/ad_reporting__search_report.sql", "unique_id": "model.ad_reporting.ad_reporting__search_report", "fqn": ["ad_reporting", "ad_reporting__search_report"], "alias": "ad_reporting__search_report", "checksum": {"name": "sha256", "checksum": "a3cd00192d6a714c01cd73ee9d91fc00d0f73ee125e14113422a0f239754c3d0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents daily metrics by search query, ad group, campaign and account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID representing the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID representing the keyword, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The keyword text.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_query": {"name": "search_query", "description": "The search query text.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_match_type": {"name": "search_match_type", "description": "The search match type associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The count of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The monetary value of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.130293, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__search_report\"", "raw_code": "{% if var('apple_search_ads__using_search_terms', True) %}\n {% set include_list = ['amazon_ads', 'apple_search_ads', 'microsoft_ads'] %}\n{% else %}\n {% set include_list = ['amazon_ads', 'microsoft_ads'] %}\n{% endif %}\n\n{% set enabled_packages = get_enabled_packages(include=include_list)%}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__search_report') }}\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n keyword_id,\n keyword_text,\n search_query,\n search_match_type,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n {{ ad_reporting_persist_pass_through_columns(pass_through_variable='ad_reporting__search_passthrough_metrics', transform = 'sum', alias_fields=['conversions', 'conversions_value']) }}\n\n from base\n {{ dbt_utils.group_by(13) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "int_ad_reporting__search_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.ad_reporting_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__search_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__search_report.sql", "compiled": true, "compiled_code": "\n \n\n\n\n\n\nwith __dbt__cte__int_ad_reporting__search_report as (\n\n \n\n\n\n\n\nwith \n\nmicrosoft_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(keyword_name as TEXT) as keyword_text\n\n \n ,cast(match_type as TEXT) as search_match_type\n\n \n ,cast(search_query as TEXT) as search_query\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__search_report\"\n\n), \n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(keyword_text as TEXT) as keyword_text\n\n \n ,cast(match_type as TEXT) as search_match_type\n\n \n ,cast(search_term_text as TEXT) as search_query\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__search_term_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(keyword_text as TEXT) as keyword_text\n\n \n ,cast(match_type as TEXT) as search_match_type\n\n \n ,cast(search_term as TEXT) as search_query\n\n \n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__search_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from microsoft_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n), base as (\n\n select *\n from __dbt__cte__int_ad_reporting__search_report\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n keyword_id,\n keyword_text,\n search_query,\n search_match_type,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n \n\n\n\n\n\n from base\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.ad_reporting.int_ad_reporting__search_report", "sql": " __dbt__cte__int_ad_reporting__search_report as (\n\n \n\n\n\n\n\nwith \n\nmicrosoft_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(keyword_name as TEXT) as keyword_text\n\n \n ,cast(match_type as TEXT) as search_match_type\n\n \n ,cast(search_query as TEXT) as search_query\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__search_report\"\n\n), \n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(keyword_text as TEXT) as keyword_text\n\n \n ,cast(match_type as TEXT) as search_match_type\n\n \n ,cast(search_term_text as TEXT) as search_query\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__search_term_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(keyword_text as TEXT) as keyword_text\n\n \n ,cast(match_type as TEXT) as search_match_type\n\n \n ,cast(search_term as TEXT) as search_query\n\n \n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__search_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from microsoft_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.ad_reporting__ad_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "ad_reporting__ad_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__ad_report.sql", "original_file_path": "models/ad_reporting__ad_report.sql", "unique_id": "model.ad_reporting.ad_reporting__ad_report", "fqn": ["ad_reporting", "ad_reporting__ad_report"], "alias": "ad_reporting__ad_report", "checksum": {"name": "sha256", "checksum": "e6b430f3190b08e886e772e6e0a64656688e5834eba257d80c1ad1e756bba2bb"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents daily metrics by ad, ad group, campaign and account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID representing the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID representing the ad, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the ad, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The count of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The monetary value of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.12824, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__ad_report\"", "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__ad_report') }}\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n ad_id,\n ad_name,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n \n {{ ad_reporting_persist_pass_through_columns(pass_through_variable='ad_reporting__ad_passthrough_metrics', transform = 'sum', alias_fields=['conversions', 'conversions_value']) }}\n\n from base\n {{ dbt_utils.group_by(11) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "int_ad_reporting__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.ad_reporting_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__ad_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__ad_report.sql", "compiled": true, "compiled_code": "\n\n\nwith __dbt__cte__int_ad_reporting__ad_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__ad_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__ad_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__ad_report\"\n\n),\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_set_id as TEXT) as ad_group_id\n\n \n ,cast(ad_set_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__ad_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as ad_group_id\n\n \n ,cast(campaign_name as TEXT) as ad_group_name\n\n \n ,cast(creative_id as TEXT) as ad_id\n\n \n ,cast(null as TEXT) as ad_name\n\n \n ,cast(campaign_group_id as TEXT) as campaign_id\n\n \n ,cast(campaign_group_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_value_in_local_currency as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__creative_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(pin_promotion_id as TEXT) as ad_id\n\n \n ,cast(pin_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__pin_promotion_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id\n\n \n ,cast(ad_account_name as TEXT) as account_name\n\n \n ,cast(null as TEXT) as ad_group_id\n\n \n ,cast(null as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(null as TEXT) as campaign_id\n\n \n ,cast(null as TEXT) as campaign_name\n\n \n ,cast(swipes as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_purchases_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__ad_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversion as float) as conversions\n\n ,cast(total_conversion_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__ad_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(line_item_id as TEXT) as ad_group_id\n\n \n ,cast(line_item_name as TEXT) as ad_group_name\n\n \n ,cast(promoted_tweet_id as TEXT) as ad_id\n\n \n ,cast(tweet_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__promoted_tweet_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(advertised_asin as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__ad_report\"\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'reddit_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(null as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(total_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__ad_report\"\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n), base as (\n\n select *\n from __dbt__cte__int_ad_reporting__ad_report\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n ad_id,\n ad_name,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n \n \n\n\n\n\n\n from base\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.ad_reporting.int_ad_reporting__ad_report", "sql": " __dbt__cte__int_ad_reporting__ad_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__ad_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__ad_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__ad_report\"\n\n),\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_set_id as TEXT) as ad_group_id\n\n \n ,cast(ad_set_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__ad_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as ad_group_id\n\n \n ,cast(campaign_name as TEXT) as ad_group_name\n\n \n ,cast(creative_id as TEXT) as ad_id\n\n \n ,cast(null as TEXT) as ad_name\n\n \n ,cast(campaign_group_id as TEXT) as campaign_id\n\n \n ,cast(campaign_group_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_value_in_local_currency as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__creative_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(pin_promotion_id as TEXT) as ad_id\n\n \n ,cast(pin_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__pin_promotion_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id\n\n \n ,cast(ad_account_name as TEXT) as account_name\n\n \n ,cast(null as TEXT) as ad_group_id\n\n \n ,cast(null as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(null as TEXT) as campaign_id\n\n \n ,cast(null as TEXT) as campaign_name\n\n \n ,cast(swipes as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_purchases_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__ad_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversion as float) as conversions\n\n ,cast(total_conversion_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__ad_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(line_item_id as TEXT) as ad_group_id\n\n \n ,cast(line_item_name as TEXT) as ad_group_name\n\n \n ,cast(promoted_tweet_id as TEXT) as ad_id\n\n \n ,cast(tweet_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__promoted_tweet_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(advertised_asin as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__ad_report\"\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'reddit_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(null as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(total_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__ad_report\"\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.ad_reporting__url_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "ad_reporting__url_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__url_report.sql", "original_file_path": "models/ad_reporting__url_report.sql", "unique_id": "model.ad_reporting.ad_reporting__url_report", "fqn": ["ad_reporting", "ad_reporting__url_report"], "alias": "ad_reporting__url_report", "checksum": {"name": "sha256", "checksum": "7c8639ff09989134503970ae52f1be403409a4ebc28fe5abced5f93000c4945f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents daily metrics by URL (and if applicable, URL UTM parameters), ad group, campaign and account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID representing the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base url of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The count of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The monetary value of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.1310961, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__url_report\"", "raw_code": "{% set enabled_packages = get_enabled_packages(exclude=['amazon_ads', 'apple_search_ads']) %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__url_report') }}\n),\n\naggregated as (\n \n select\n source_relation,\n date_day, \n platform,\n account_id, \n account_name, \n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n base_url,\n url_host,\n url_path,\n utm_source,\n utm_medium,\n utm_campaign,\n utm_content,\n utm_term,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n {{ ad_reporting_persist_pass_through_columns(pass_through_variable='ad_reporting__ad_passthrough_metrics', transform = 'sum', alias_fields=['conversions', 'conversions_value']) }}\n\n from base\n {{ dbt_utils.group_by(17) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "int_ad_reporting__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.ad_reporting_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__url_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__url_report.sql", "compiled": true, "compiled_code": "\n\n\nwith __dbt__cte__int_ad_reporting__url_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__url_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__url_report\"\n\n),\n\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_set_id as TEXT) as ad_group_id\n\n \n ,cast(ad_set_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__url_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as ad_group_id\n\n \n ,cast(campaign_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_group_id as TEXT) as campaign_id\n\n \n ,cast(campaign_group_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_value_in_local_currency as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__url_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__url_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id\n\n \n ,cast(ad_account_name as TEXT) as account_name\n\n \n ,cast(ad_squad_id as TEXT) as ad_group_id\n\n \n ,cast(ad_squad_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(swipes as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_purchases_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__url_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversion as float) as conversions\n\n ,cast(total_conversion_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__url_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(line_item_id as TEXT) as ad_group_id\n\n \n ,cast(line_item_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__url_report\"\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'reddit_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(null as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(total_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__url_report\"\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n), base as (\n\n select *\n from __dbt__cte__int_ad_reporting__url_report\n),\n\naggregated as (\n \n select\n source_relation,\n date_day, \n platform,\n account_id, \n account_name, \n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n base_url,\n url_host,\n url_path,\n utm_source,\n utm_medium,\n utm_campaign,\n utm_content,\n utm_term,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n \n\n\n\n\n\n from base\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.ad_reporting.int_ad_reporting__url_report", "sql": " __dbt__cte__int_ad_reporting__url_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__url_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__url_report\"\n\n),\n\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_set_id as TEXT) as ad_group_id\n\n \n ,cast(ad_set_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__url_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as ad_group_id\n\n \n ,cast(campaign_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_group_id as TEXT) as campaign_id\n\n \n ,cast(campaign_group_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_value_in_local_currency as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__url_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__url_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id\n\n \n ,cast(ad_account_name as TEXT) as account_name\n\n \n ,cast(ad_squad_id as TEXT) as ad_group_id\n\n \n ,cast(ad_squad_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(swipes as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_purchases_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__url_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversion as float) as conversions\n\n ,cast(total_conversion_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__url_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(line_item_id as TEXT) as ad_group_id\n\n \n ,cast(line_item_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__url_report\"\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'reddit_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(null as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(total_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__url_report\"\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.ad_reporting__keyword_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "ad_reporting__keyword_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__keyword_report.sql", "original_file_path": "models/ad_reporting__keyword_report.sql", "unique_id": "model.ad_reporting.ad_reporting__keyword_report", "fqn": ["ad_reporting", "ad_reporting__keyword_report"], "alias": "ad_reporting__keyword_report", "checksum": {"name": "sha256", "checksum": "ed5e69f41036f0af7af5037ebe26b0456a3dca8ff9b775c919d18f1c35156bb2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents daily metrics by keyword, ad group, campaign and account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "The ad platform associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID representing the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID representing the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the ad group, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID representing the keyword, if present in the source data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The keyword text.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_match_type": {"name": "keyword_match_type", "description": "The keyword match type associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The count of impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The cost of the ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The count of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The monetary value of attributed conversion events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://models/ad_reporting_models.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.129466, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__keyword_report\"", "raw_code": "{% set include_list = ['amazon_ads', 'apple_search_ads', 'google_ads', 'microsoft_ads'] %}\n{% do include_list.append('pinterest_ads') if var('pinterest__using_keywords', true) %}\n{% do include_list.append('twitter_ads') if var('twitter_ads__using_keywords', true) %}\n\n{% set enabled_packages = get_enabled_packages(include=include_list)%}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__keyword_report') }}\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n keyword_id,\n keyword_text,\n keyword_match_type,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n {{ ad_reporting_persist_pass_through_columns(pass_through_variable='ad_reporting__keyword_passthrough_metrics', transform = 'sum', alias_fields=['conversions', 'conversions_value']) }}\n\n from base\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom aggregated", "language": "sql", "refs": [{"name": "int_ad_reporting__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.ad_reporting_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.ad_reporting.int_ad_reporting__keyword_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__keyword_report.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\nwith __dbt__cte__int_ad_reporting__keyword_report as (\n\n\n\n\n\n\n\nwith\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(match_type as TEXT) as keyword_match_type\n\n \n ,cast(keyword_text as TEXT) as keyword_text\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__keyword_report\"\n\n),\n\n\n\ngoogle_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(criterion_id as TEXT) as keyword_id\n\n \n ,cast(keyword_match_type as TEXT) as keyword_match_type\n\n \n ,cast(keyword_text as TEXT) as keyword_text\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__keyword_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(match_type as TEXT) as keyword_match_type\n\n \n ,cast(keyword_name as TEXT) as keyword_text\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__keyword_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(match_type as TEXT) as keyword_match_type\n\n \n ,cast(keyword_value as TEXT) as keyword_text\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__keyword_report\"\n\n),\n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(line_item_id as TEXT) as ad_group_id\n\n \n ,cast(line_item_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(null as TEXT) as keyword_match_type\n\n \n ,cast(keyword as TEXT) as keyword_text\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__keyword_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(match_type as TEXT) as keyword_match_type\n\n \n ,cast(keyword_text as TEXT) as keyword_text\n\n \n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__keyword_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from twitter_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n), base as (\n\n select *\n from __dbt__cte__int_ad_reporting__keyword_report\n),\n\naggregated as (\n \n select\n source_relation,\n date_day,\n platform,\n account_id,\n account_name,\n campaign_id,\n campaign_name,\n ad_group_id,\n ad_group_name,\n keyword_id,\n keyword_text,\n keyword_match_type,\n sum(clicks) as clicks,\n sum(impressions) as impressions,\n sum(spend) as spend,\n sum(conversions) as conversions,\n sum(conversions_value) as conversions_value\n\n \n\n\n\n\n\n from base\n group by 1,2,3,4,5,6,7,8,9,10,11,12\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.ad_reporting.int_ad_reporting__keyword_report", "sql": " __dbt__cte__int_ad_reporting__keyword_report as (\n\n\n\n\n\n\n\nwith\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(match_type as TEXT) as keyword_match_type\n\n \n ,cast(keyword_text as TEXT) as keyword_text\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__keyword_report\"\n\n),\n\n\n\ngoogle_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(criterion_id as TEXT) as keyword_id\n\n \n ,cast(keyword_match_type as TEXT) as keyword_match_type\n\n \n ,cast(keyword_text as TEXT) as keyword_text\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__keyword_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(match_type as TEXT) as keyword_match_type\n\n \n ,cast(keyword_name as TEXT) as keyword_text\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__keyword_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(match_type as TEXT) as keyword_match_type\n\n \n ,cast(keyword_value as TEXT) as keyword_text\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__keyword_report\"\n\n),\n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(line_item_id as TEXT) as ad_group_id\n\n \n ,cast(line_item_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(null as TEXT) as keyword_match_type\n\n \n ,cast(keyword as TEXT) as keyword_text\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__keyword_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(match_type as TEXT) as keyword_match_type\n\n \n ,cast(keyword_text as TEXT) as keyword_text\n\n \n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__keyword_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from twitter_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.metricflow_time_spine": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "metricflow_time_spine", "resource_type": "model", "package_name": "ad_reporting", "path": "semantic_models/metricflow_time_spine.sql", "original_file_path": "models/semantic_models/metricflow_time_spine.sql", "unique_id": "model.ad_reporting.metricflow_time_spine", "fqn": ["ad_reporting", "semantic_models", "metricflow_time_spine"], "alias": "metricflow_time_spine", "checksum": {"name": "sha256", "checksum": "3ef63bfa18fab3a99886837087ab3d7437762f51276881f7100dd0f785a1a2b0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.820548, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"metricflow_time_spine\"", "raw_code": "{{ config(enabled=var('ad_reporting__metricflow_time_spine_enabled', True)) }}\nwith \n\ndays as (\n {{ dbt_date.get_base_dates(n_dateparts=365*10, datepart=\"day\") }}\n\n),\n\ncast_to_date as (\n\n select \n cast(date_day as date) as date_day\n \n from days\n\n)\n\nselect * from cast_to_date", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_date.get_base_dates"], "nodes": []}, "compiled_path": "target/compiled/ad_reporting/models/semantic_models/metricflow_time_spine.sql", "compiled": true, "compiled_code": "\nwith \n\ndays as (\n \n with date_spine as\n(\n\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 3651\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n \n\n cast(cast(\n cast(now() as timestamp)\n at time zone 'UTC' at time zone 'America/Los_Angeles' as timestamp\n) as date) + ((interval '1 day') * (-3650))\n\n + ((interval '1 day') * ((row_number() over (order by 1) - 1)))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast(\n\n cast(cast(\n cast(now() as timestamp)\n at time zone 'UTC' at time zone 'America/Los_Angeles' as timestamp\n) as date) + ((interval '1 day') * (1))\n\n as date)\n\n)\n\nselect * from filtered\n\n\n\n)\nselect\n cast(d.date_day as timestamp) as date_day\nfrom\n date_spine d\n\n\n\n),\n\ncast_to_date as (\n\n select \n cast(date_day as date) as date_day\n \n from days\n\n)\n\nselect * from cast_to_date", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.int_ad_reporting__campaign_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "int_ad_reporting__campaign_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__campaign_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__campaign_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__campaign_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__campaign_report"], "alias": "int_ad_reporting__campaign_report", "checksum": {"name": "sha256", "checksum": "d54ef05109b2fcfb296112a16b142d911c0456b1c744304d4b9f78803f1fb3cb"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "ephemeral", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.8472981, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['facebook_ads', 'google_ads', 'microsoft_ads'] %}\n{% if package in enabled_packages %}\n{{ package }} as (\n {{ get_query(\n platform=package,\n report_type='campaign',\n relation=ref(package ~ '__campaign_report')\n ) }}\n),\n{% endif %}\n{% endfor %}\n\n{% if 'apple_search_ads' in enabled_packages %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='campaign', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'clicks': 'taps',\n 'conversions_value': 'null'\n },\n relation=ref('apple_search_ads__campaign_report')\n ) }}\n),\n{% endif %}\n\n{% if 'linkedin_ads' in enabled_packages %}\nlinkedin_ads as (\n\n {{ get_query(\n platform='linkedin_ads', \n report_type='campaign', \n field_mapping={\n 'campaign_id': 'campaign_group_id',\n 'campaign_name': 'campaign_group_name',\n 'spend': 'cost',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_value_in_local_currency'\n },\n relation=ref('linkedin_ads__campaign_group_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='campaign', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_value'\n },\n relation=ref('pinterest_ads__campaign_report')\n ) }}\n),\n{% endif %}\n\n{% if 'snapchat_ads' in enabled_packages %}\nsnapchat_ads as (\n\n {{ get_query(\n platform='snapchat_ads', \n report_type='campaign', \n field_mapping={\n 'account_id': 'ad_account_id',\n 'account_name': 'ad_account_name',\n 'clicks':'swipes',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_purchases_value'\n },\n relation=ref('snapchat_ads__campaign_report')\n ) }}\n), \n{% endif %}\n\n{% if 'tiktok_ads' in enabled_packages %}\ntiktok_ads as (\n\n {{ get_query(\n platform='tiktok_ads', \n report_type='campaign', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'conversion',\n 'conversions_value': 'total_conversion_value'\n },\n relation=ref('tiktok_ads__campaign_report')\n ) }}\n), \n{% endif %}\n\n{% if 'twitter_ads' in enabled_packages %}\ntwitter_ads as (\n\n {{ get_query(\n platform='twitter_ads', \n report_type='campaign', \n field_mapping={\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_sale_amount'\n },\n relation=ref('twitter_ads__campaign_report')\n ) }}\n),\n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='campaign', \n field_mapping={\n 'spend': 'cost',\n 'conversions': 'purchases_30_d',\n 'conversions_value': 'sales_30_d'\n },\n relation=ref('amazon_ads__campaign_report')\n ) }}\n), \n{% endif %}\n\n{% if 'reddit_ads' in enabled_packages %}\nreddit_ads as (\n\n {{ get_query(\n platform='reddit_ads', \n report_type='campaign', \n field_mapping={\n 'account_name': 'null',\n 'conversions_value': 'total_value'\n },\n relation=ref('reddit_ads__campaign_report')\n ) }}\n),\n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [{"name": "facebook_ads__campaign_report", "package": null, "version": null}, {"name": "google_ads__campaign_report", "package": null, "version": null}, {"name": "microsoft_ads__campaign_report", "package": null, "version": null}, {"name": "apple_search_ads__campaign_report", "package": null, "version": null}, {"name": "linkedin_ads__campaign_group_report", "package": null, "version": null}, {"name": "pinterest_ads__campaign_report", "package": null, "version": null}, {"name": "snapchat_ads__campaign_report", "package": null, "version": null}, {"name": "tiktok_ads__campaign_report", "package": null, "version": null}, {"name": "twitter_ads__campaign_report", "package": null, "version": null}, {"name": "amazon_ads__campaign_report", "package": null, "version": null}, {"name": "reddit_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.facebook_ads.facebook_ads__campaign_report", "model.google_ads.google_ads__campaign_report", "model.microsoft_ads.microsoft_ads__campaign_report", "model.apple_search_ads.apple_search_ads__campaign_report", "model.linkedin.linkedin_ads__campaign_group_report", "model.pinterest.pinterest_ads__campaign_report", "model.snapchat_ads.snapchat_ads__campaign_report", "model.tiktok_ads.tiktok_ads__campaign_report", "model.twitter_ads.twitter_ads__campaign_report", "model.amazon_ads.amazon_ads__campaign_report", "model.reddit_ads.reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__campaign_report.sql", "compiled": true, "compiled_code": "\n\n\nwith\n\n\nfacebook_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__campaign_report\"\n\n),\n\n\n\ngoogle_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__campaign_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__campaign_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__campaign_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_group_id as TEXT) as campaign_id\n\n \n ,cast(campaign_group_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_value_in_local_currency as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__campaign_group_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__campaign_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id\n\n \n ,cast(ad_account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(swipes as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_purchases_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__campaign_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversion as float) as conversions\n\n ,cast(total_conversion_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__campaign_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__campaign_report\"\n\n),\n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__campaign_report\"\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'reddit_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(null as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(total_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__campaign_report\"\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.int_ad_reporting__keyword_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "int_ad_reporting__keyword_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__keyword_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__keyword_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__keyword_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__keyword_report"], "alias": "int_ad_reporting__keyword_report", "checksum": {"name": "sha256", "checksum": "10d15fa0e0b3d15dff46fa72e0ccea0b0e7261b67f50b9bcf8581e1a8174a63a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "ephemeral", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.8929229, "relation_name": null, "raw_code": "{% set include_list = ['amazon_ads', 'apple_search_ads', 'google_ads', 'microsoft_ads'] %}\n{% do include_list.append('pinterest_ads') if var('pinterest__using_keywords', true) %}\n{% do include_list.append('twitter_ads') if var('twitter_ads__using_keywords', true) %}\n\n{% set enabled_packages = get_enabled_packages(include=include_list)%}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% if 'apple_search_ads' in enabled_packages %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='keyword', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'keyword_match_type': 'match_type',\n 'clicks': 'taps',\n 'conversions_value': 'null'\n },\n relation=ref('apple_search_ads__keyword_report')\n ) }}\n),\n{% endif %}\n\n{% if 'google_ads' in enabled_packages %}\ngoogle_ads as (\n\n {{ get_query(\n platform='google_ads', \n report_type='keyword', \n field_mapping={\n 'keyword_id': 'criterion_id',\n },\n relation=ref('google_ads__keyword_report')\n ) }}\n),\n{% endif %}\n\n{% if 'microsoft_ads' in enabled_packages %}\nmicrosoft_ads as (\n\n {{ get_query(\n platform='microsoft_ads', \n report_type='keyword', \n field_mapping={\n 'keyword_text': 'keyword_name',\n 'keyword_match_type': 'match_type'\n },\n relation=ref('microsoft_ads__keyword_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages and var('pinterest__using_keywords', True) %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='keyword', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'keyword_text': 'keyword_value',\n 'keyword_match_type': 'match_type',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_value'\n },\n relation=ref('pinterest_ads__keyword_report')\n ) }}\n),\n{% endif %}\n\n{% if 'twitter_ads' in enabled_packages and var('twitter_ads__using_keywords', True) %}\ntwitter_ads as (\n\n {{ get_query(\n platform='twitter_ads', \n report_type='keyword', \n field_mapping={\n 'ad_group_id': 'line_item_id',\n 'ad_group_name': 'line_item_name',\n 'keyword_id': 'keyword_id',\n 'keyword_text': 'keyword',\n 'keyword_match_type': 'null',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_sale_amount'\n },\n relation=ref('twitter_ads__keyword_report')\n ) }}\n), \n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='keyword', \n field_mapping={\n 'spend': 'cost',\n 'keyword_match_type': 'match_type',\n 'conversions': 'purchases_30_d',\n 'conversions_value': 'sales_30_d'\n },\n relation=ref('amazon_ads__keyword_report')\n ) }}\n), \n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [{"name": "apple_search_ads__keyword_report", "package": null, "version": null}, {"name": "google_ads__keyword_report", "package": null, "version": null}, {"name": "microsoft_ads__keyword_report", "package": null, "version": null}, {"name": "pinterest_ads__keyword_report", "package": null, "version": null}, {"name": "twitter_ads__keyword_report", "package": null, "version": null}, {"name": "amazon_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.apple_search_ads.apple_search_ads__keyword_report", "model.google_ads.google_ads__keyword_report", "model.microsoft_ads.microsoft_ads__keyword_report", "model.pinterest.pinterest_ads__keyword_report", "model.twitter_ads.twitter_ads__keyword_report", "model.amazon_ads.amazon_ads__keyword_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__keyword_report.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\nwith\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(match_type as TEXT) as keyword_match_type\n\n \n ,cast(keyword_text as TEXT) as keyword_text\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__keyword_report\"\n\n),\n\n\n\ngoogle_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(criterion_id as TEXT) as keyword_id\n\n \n ,cast(keyword_match_type as TEXT) as keyword_match_type\n\n \n ,cast(keyword_text as TEXT) as keyword_text\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__keyword_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(match_type as TEXT) as keyword_match_type\n\n \n ,cast(keyword_name as TEXT) as keyword_text\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__keyword_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(match_type as TEXT) as keyword_match_type\n\n \n ,cast(keyword_value as TEXT) as keyword_text\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__keyword_report\"\n\n),\n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(line_item_id as TEXT) as ad_group_id\n\n \n ,cast(line_item_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(null as TEXT) as keyword_match_type\n\n \n ,cast(keyword as TEXT) as keyword_text\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__keyword_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(match_type as TEXT) as keyword_match_type\n\n \n ,cast(keyword_text as TEXT) as keyword_text\n\n \n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__keyword_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from twitter_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.int_ad_reporting__ad_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "int_ad_reporting__ad_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__ad_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__ad_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__ad_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__ad_report"], "alias": "int_ad_reporting__ad_report", "checksum": {"name": "sha256", "checksum": "5a374047e32274dbbd8ee80949dfb38885d7e51a3ee5a46637a9a43077c9480a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "ephemeral", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.9114869, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['google_ads', 'microsoft_ads'] %}\n{% if package in enabled_packages %}\n{{ package }} as (\n {{ get_query(\n platform=package,\n report_type='ad',\n relation=ref(package ~ '__ad_report')\n ) }}\n),\n{% endif %}\n{% endfor %}\n\n{% if 'apple_search_ads' in enabled_packages %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='ad', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'clicks': 'taps',\n 'conversions_value': 'null'\n },\n relation=ref('apple_search_ads__ad_report')\n ) }}\n),\n{% endif %}\n\n{% if 'facebook_ads' in enabled_packages %}\nfacebook_ads as (\n\n {{ get_query(\n platform='facebook_ads', \n report_type='ad', \n field_mapping={\n 'ad_group_id': 'ad_set_id',\n 'ad_group_name': 'ad_set_name'\n },\n relation=ref('facebook_ads__ad_report')\n ) }}\n),\n{% endif %}\n\n{% if 'linkedin_ads' in enabled_packages %}\nlinkedin_ads as (\n\n {{ get_query(\n platform='linkedin_ads', \n report_type='ad', \n field_mapping={\n 'campaign_id': 'campaign_group_id',\n 'campaign_name': 'campaign_group_name',\n 'ad_group_id': 'campaign_id',\n 'ad_group_name': 'campaign_name',\n 'ad_id': 'creative_id',\n 'ad_name': 'null',\n 'spend': 'cost',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_value_in_local_currency'\n },\n relation=ref('linkedin_ads__creative_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='ad', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'ad_id': 'pin_promotion_id',\n 'ad_name': 'pin_name',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_value'\n },\n relation=ref('pinterest_ads__pin_promotion_report')\n ) }}\n),\n{% endif %}\n\n{% if 'snapchat_ads' in enabled_packages %}\nsnapchat_ads as (\n\n {{ get_query(\n platform='snapchat_ads', \n report_type='ad', \n field_mapping={\n 'account_id': 'ad_account_id',\n 'account_name': 'ad_account_name',\n 'campaign_id': 'null',\n 'campaign_name': 'null',\n 'ad_group_id': 'null',\n 'ad_group_name': 'null',\n 'clicks':'swipes',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_purchases_value'\n },\n relation=ref('snapchat_ads__ad_report')\n ) }}\n), \n{% endif %}\n\n{% if 'tiktok_ads' in enabled_packages %}\ntiktok_ads as (\n\n {{ get_query(\n platform='tiktok_ads', \n report_type='ad', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'conversion',\n 'conversions_value': 'total_conversion_value'\n },\n relation=ref('tiktok_ads__ad_report')\n ) }}\n), \n{% endif %}\n\n{% if 'twitter_ads' in enabled_packages %}\ntwitter_ads as (\n\n {{ get_query(\n platform='twitter_ads', \n report_type='ad', \n field_mapping={\n 'ad_group_id': 'line_item_id',\n 'ad_group_name': 'line_item_name',\n 'ad_id': 'promoted_tweet_id',\n 'ad_name': 'tweet_name',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_sale_amount'\n },\n relation=ref('twitter_ads__promoted_tweet_report')\n ) }}\n), \n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='ad', \n field_mapping={\n 'spend': 'cost',\n 'ad_name': 'advertised_asin',\n 'conversions': 'purchases_30_d',\n 'conversions_value': 'sales_30_d'\n },\n relation=ref('amazon_ads__ad_report')\n ) }}\n), \n{% endif %}\n\n{% if 'reddit_ads' in enabled_packages %}\nreddit_ads as (\n\n {{ get_query(\n platform='reddit_ads', \n report_type='ad', \n field_mapping={\n 'account_name': 'null',\n 'conversions_value': 'total_value'\n },\n relation=ref('reddit_ads__ad_report')\n ) }}\n),\n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [{"name": "google_ads__ad_report", "package": null, "version": null}, {"name": "microsoft_ads__ad_report", "package": null, "version": null}, {"name": "apple_search_ads__ad_report", "package": null, "version": null}, {"name": "facebook_ads__ad_report", "package": null, "version": null}, {"name": "linkedin_ads__creative_report", "package": null, "version": null}, {"name": "pinterest_ads__pin_promotion_report", "package": null, "version": null}, {"name": "snapchat_ads__ad_report", "package": null, "version": null}, {"name": "tiktok_ads__ad_report", "package": null, "version": null}, {"name": "twitter_ads__promoted_tweet_report", "package": null, "version": null}, {"name": "amazon_ads__ad_report", "package": null, "version": null}, {"name": "reddit_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.google_ads.google_ads__ad_report", "model.microsoft_ads.microsoft_ads__ad_report", "model.apple_search_ads.apple_search_ads__ad_report", "model.facebook_ads.facebook_ads__ad_report", "model.linkedin.linkedin_ads__creative_report", "model.pinterest.pinterest_ads__pin_promotion_report", "model.snapchat_ads.snapchat_ads__ad_report", "model.tiktok_ads.tiktok_ads__ad_report", "model.twitter_ads.twitter_ads__promoted_tweet_report", "model.amazon_ads.amazon_ads__ad_report", "model.reddit_ads.reddit_ads__ad_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__ad_report.sql", "compiled": true, "compiled_code": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__ad_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__ad_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__ad_report\"\n\n),\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_set_id as TEXT) as ad_group_id\n\n \n ,cast(ad_set_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__ad_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as ad_group_id\n\n \n ,cast(campaign_name as TEXT) as ad_group_name\n\n \n ,cast(creative_id as TEXT) as ad_id\n\n \n ,cast(null as TEXT) as ad_name\n\n \n ,cast(campaign_group_id as TEXT) as campaign_id\n\n \n ,cast(campaign_group_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_value_in_local_currency as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__creative_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(pin_promotion_id as TEXT) as ad_id\n\n \n ,cast(pin_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__pin_promotion_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id\n\n \n ,cast(ad_account_name as TEXT) as account_name\n\n \n ,cast(null as TEXT) as ad_group_id\n\n \n ,cast(null as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(null as TEXT) as campaign_id\n\n \n ,cast(null as TEXT) as campaign_name\n\n \n ,cast(swipes as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_purchases_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__ad_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversion as float) as conversions\n\n ,cast(total_conversion_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__ad_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(line_item_id as TEXT) as ad_group_id\n\n \n ,cast(line_item_name as TEXT) as ad_group_name\n\n \n ,cast(promoted_tweet_id as TEXT) as ad_id\n\n \n ,cast(tweet_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__promoted_tweet_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(advertised_asin as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__ad_report\"\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'reddit_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(null as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(ad_id as TEXT) as ad_id\n\n \n ,cast(ad_name as TEXT) as ad_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(total_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__ad_report\"\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.int_ad_reporting__account_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "int_ad_reporting__account_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__account_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__account_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__account_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__account_report"], "alias": "int_ad_reporting__account_report", "checksum": {"name": "sha256", "checksum": "386b13517d9ce9596b528d434b9aefe60c8f975cce039e6d61533e0f9e815f44"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "ephemeral", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.939713, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['facebook_ads', 'google_ads', 'microsoft_ads'] %}\n{% if package in enabled_packages %}\n{{ package }} as (\n {{ get_query(\n platform=package,\n report_type='account',\n relation=ref(package ~ '__account_report')\n ) }}\n),\n{% endif %}\n{% endfor %}\n\n{% if 'apple_search_ads' in enabled_packages %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='account', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'clicks': 'taps',\n 'conversions_value': 'null'\n },\n relation=ref('apple_search_ads__organization_report')\n ) }}\n),\n{% endif %}\n\n{% if 'linkedin_ads' in enabled_packages %}\nlinkedin_ads as (\n\n {{ get_query(\n platform='linkedin_ads', \n report_type='account', \n field_mapping={\n 'spend': 'cost',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_value_in_local_currency'\n },\n relation=ref('linkedin_ads__account_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='account', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_value'\n },\n relation=ref('pinterest_ads__advertiser_report')\n ) }}\n),\n{% endif %}\n\n{% if 'snapchat_ads' in enabled_packages %}\nsnapchat_ads as (\n\n {{ get_query(\n platform='snapchat_ads', \n report_type='account', \n field_mapping={\n 'account_id': 'ad_account_id',\n 'account_name': 'ad_account_name',\n 'clicks':'swipes',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_purchases_value'\n },\n relation=ref('snapchat_ads__account_report')\n ) }}\n), \n{% endif %}\n\n{% if 'tiktok_ads' in enabled_packages %}\ntiktok_ads as (\n\n {{ get_query(\n platform='tiktok_ads', \n report_type='account', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'conversion',\n 'conversions_value': 'total_conversion_value'\n },\n relation=ref('tiktok_ads__advertiser_report')\n ) }}\n), \n{% endif %}\n\n{% if 'twitter_ads' in enabled_packages %}\ntwitter_ads as (\n\n {{ get_query(\n platform='twitter_ads', \n report_type='account', \n field_mapping={\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_sale_amount'\n },\n relation=ref('twitter_ads__account_report')\n ) }}\n),\n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='account', \n field_mapping={\n 'spend': 'cost',\n 'conversions': 'purchases_30_d',\n 'conversions_value': 'sales_30_d'\n },\n relation=ref('amazon_ads__account_report')\n ) }}\n), \n{% endif %}\n\n{% if 'reddit_ads' in enabled_packages %}\nreddit_ads as (\n\n {{ get_query(\n platform='reddit_ads', \n report_type='account', \n field_mapping={\n 'account_name': 'null',\n 'conversions_value': 'total_value'\n },\n relation=ref('reddit_ads__account_report')\n ) }}\n),\n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [{"name": "facebook_ads__account_report", "package": null, "version": null}, {"name": "google_ads__account_report", "package": null, "version": null}, {"name": "microsoft_ads__account_report", "package": null, "version": null}, {"name": "apple_search_ads__organization_report", "package": null, "version": null}, {"name": "linkedin_ads__account_report", "package": null, "version": null}, {"name": "pinterest_ads__advertiser_report", "package": null, "version": null}, {"name": "snapchat_ads__account_report", "package": null, "version": null}, {"name": "tiktok_ads__advertiser_report", "package": null, "version": null}, {"name": "twitter_ads__account_report", "package": null, "version": null}, {"name": "amazon_ads__account_report", "package": null, "version": null}, {"name": "reddit_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.facebook_ads.facebook_ads__account_report", "model.google_ads.google_ads__account_report", "model.microsoft_ads.microsoft_ads__account_report", "model.apple_search_ads.apple_search_ads__organization_report", "model.linkedin.linkedin_ads__account_report", "model.pinterest.pinterest_ads__advertiser_report", "model.snapchat_ads.snapchat_ads__account_report", "model.tiktok_ads.tiktok_ads__advertiser_report", "model.twitter_ads.twitter_ads__account_report", "model.amazon_ads.amazon_ads__account_report", "model.reddit_ads.reddit_ads__account_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__account_report.sql", "compiled": true, "compiled_code": "\n\n\nwith\n\n\nfacebook_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__account_report\"\n\n),\n\n\n\ngoogle_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__account_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__account_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__organization_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_value_in_local_currency as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__account_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__advertiser_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id\n\n \n ,cast(ad_account_name as TEXT) as account_name\n\n \n ,cast(swipes as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_purchases_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__account_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversion as float) as conversions\n\n ,cast(total_conversion_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__advertiser_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__account_report\"\n\n),\n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__account_report\"\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'reddit_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(null as TEXT) as account_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(total_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__account_report\"\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.int_ad_reporting__url_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "int_ad_reporting__url_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__url_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__url_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__url_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__url_report"], "alias": "int_ad_reporting__url_report", "checksum": {"name": "sha256", "checksum": "c63f2f7ced76a775e88dcbd14c6a40b18cfd4597438584de7e9e93353f635fc7"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "ephemeral", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.9597208, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages(exclude=['amazon_ads', 'apple_search_ads']) %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['google_ads', 'microsoft_ads'] %}\n{% if package in enabled_packages %}\n{{ package }} as (\n {{ get_query(\n platform=package,\n report_type='url',\n relation=ref(package ~ '__url_report')\n ) }}\n),\n{% endif %}\n{% endfor %}\n\n{% if 'facebook_ads' in enabled_packages %}\nfacebook_ads as (\n\n {{ get_query(\n platform='facebook_ads', \n report_type='url', \n field_mapping={\n 'ad_group_id': 'ad_set_id',\n 'ad_group_name': 'ad_set_name'\n },\n relation=ref('facebook_ads__url_report')\n ) }}\n),\n{% endif %}\n\n{% if 'linkedin_ads' in enabled_packages %}\nlinkedin_ads as (\n\n {{ get_query(\n platform='linkedin_ads', \n report_type='url', \n field_mapping={\n 'campaign_id': 'campaign_group_id',\n 'campaign_name': 'campaign_group_name',\n 'ad_group_id': 'campaign_id',\n 'ad_group_name': 'campaign_name',\n 'spend': 'cost',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_value_in_local_currency'\n },\n relation=ref('linkedin_ads__url_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='url', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_value'\n },\n relation=ref('pinterest_ads__url_report')\n ) }}\n),\n{% endif %}\n\n{% if 'snapchat_ads' in enabled_packages %}\nsnapchat_ads as (\n\n {{ get_query(\n platform='snapchat_ads', \n report_type='url', \n field_mapping={\n 'account_id': 'ad_account_id',\n 'account_name': 'ad_account_name',\n 'ad_group_id': 'ad_squad_id',\n 'ad_group_name': 'ad_squad_name',\n 'clicks':'swipes',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_purchases_value'\n },\n relation=ref('snapchat_ads__url_report')\n ) }}\n), \n{% endif %}\n\n{% if 'tiktok_ads' in enabled_packages %}\ntiktok_ads as (\n\n {{ get_query(\n platform='tiktok_ads', \n report_type='url', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'conversion',\n 'conversions_value': 'total_conversion_value'\n },\n relation=ref('tiktok_ads__url_report')\n ) }}\n), \n{% endif %}\n\n{% if 'twitter_ads' in enabled_packages %}\ntwitter_ads as (\n\n {{ get_query(\n platform='twitter_ads', \n report_type='url', \n field_mapping={\n 'ad_group_id': 'line_item_id',\n 'ad_group_name': 'line_item_name',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_sale_amount'\n },\n relation=ref('twitter_ads__url_report')\n ) }}\n), \n{% endif %}\n\n{% if 'reddit_ads' in enabled_packages %}\nreddit_ads as (\n\n {{ get_query(\n platform='reddit_ads', \n report_type='url', \n field_mapping={\n 'account_name': 'null',\n 'conversions_value': 'total_value'\n },\n relation=ref('reddit_ads__url_report')\n ) }}\n),\n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [{"name": "google_ads__url_report", "package": null, "version": null}, {"name": "microsoft_ads__url_report", "package": null, "version": null}, {"name": "facebook_ads__url_report", "package": null, "version": null}, {"name": "linkedin_ads__url_report", "package": null, "version": null}, {"name": "pinterest_ads__url_report", "package": null, "version": null}, {"name": "snapchat_ads__url_report", "package": null, "version": null}, {"name": "tiktok_ads__url_report", "package": null, "version": null}, {"name": "twitter_ads__url_report", "package": null, "version": null}, {"name": "reddit_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.google_ads.google_ads__url_report", "model.microsoft_ads.microsoft_ads__url_report", "model.facebook_ads.facebook_ads__url_report", "model.linkedin.linkedin_ads__url_report", "model.pinterest.pinterest_ads__url_report", "model.snapchat_ads.snapchat_ads__url_report", "model.tiktok_ads.tiktok_ads__url_report", "model.twitter_ads.twitter_ads__url_report", "model.reddit_ads.reddit_ads__url_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__url_report.sql", "compiled": true, "compiled_code": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__url_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__url_report\"\n\n),\n\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_set_id as TEXT) as ad_group_id\n\n \n ,cast(ad_set_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__url_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as ad_group_id\n\n \n ,cast(campaign_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_group_id as TEXT) as campaign_id\n\n \n ,cast(campaign_group_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_value_in_local_currency as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__url_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__url_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id\n\n \n ,cast(ad_account_name as TEXT) as account_name\n\n \n ,cast(ad_squad_id as TEXT) as ad_group_id\n\n \n ,cast(ad_squad_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(swipes as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_purchases_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__url_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversion as float) as conversions\n\n ,cast(total_conversion_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__url_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(line_item_id as TEXT) as ad_group_id\n\n \n ,cast(line_item_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__url_report\"\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'reddit_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(null as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(base_url as TEXT) as base_url\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(total_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n ,cast(url_host as TEXT) as url_host\n\n \n ,cast(url_path as TEXT) as url_path\n\n \n ,cast(utm_campaign as TEXT) as utm_campaign\n\n \n ,cast(utm_content as TEXT) as utm_content\n\n \n ,cast(utm_medium as TEXT) as utm_medium\n\n \n ,cast(utm_source as TEXT) as utm_source\n\n \n ,cast(utm_term as TEXT) as utm_term\n\n \n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__url_report\"\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.int_ad_reporting__search_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "int_ad_reporting__search_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__search_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__search_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__search_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__search_report"], "alias": "int_ad_reporting__search_report", "checksum": {"name": "sha256", "checksum": "89d080b46075eaae86954ae399972727c202e3620f34445d71ef8f3519a5c272"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "ephemeral", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462183.988551, "relation_name": null, "raw_code": "{% if var('apple_search_ads__using_search_terms', True) %}\n {% set include_list = ['amazon_ads', 'apple_search_ads', 'microsoft_ads'] %}\n{% else %}\n {% set include_list = ['amazon_ads', 'microsoft_ads'] %}\n{% endif %}\n\n{% set enabled_packages = get_enabled_packages(include=include_list)%}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith \n{% if 'microsoft_ads' in enabled_packages %}\nmicrosoft_ads as (\n\n {{ get_query(\n platform='microsoft_ads', \n report_type='search', \n field_mapping={\n 'keyword_text': 'keyword_name',\n 'search_match_type': 'match_type'\n },\n relation=ref('microsoft_ads__search_report')\n ) }}\n), \n{% endif %}\n\n{% if 'apple_search_ads' in enabled_packages and var('apple_search_ads__using_search_terms', True) %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='search', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'search_match_type': 'match_type',\n 'search_query': 'search_term_text',\n 'clicks': 'taps',\n 'conversions_value': 'null'\n },\n relation=ref('apple_search_ads__search_term_report')\n ) }}\n), \n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='search', \n field_mapping={\n 'spend': 'cost',\n 'search_match_type': 'match_type',\n 'search_query': 'search_term',\n 'conversions': 'purchases_30_d',\n 'conversions_value': 'sales_30_d'\n },\n relation=ref('amazon_ads__search_report')\n ) }}\n), \n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [{"name": "microsoft_ads__search_report", "package": null, "version": null}, {"name": "apple_search_ads__search_term_report", "package": null, "version": null}, {"name": "amazon_ads__search_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.microsoft_ads.microsoft_ads__search_report", "model.apple_search_ads.apple_search_ads__search_term_report", "model.amazon_ads.amazon_ads__search_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__search_report.sql", "compiled": true, "compiled_code": "\n \n\n\n\n\n\nwith \n\nmicrosoft_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(keyword_name as TEXT) as keyword_text\n\n \n ,cast(match_type as TEXT) as search_match_type\n\n \n ,cast(search_query as TEXT) as search_query\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__search_report\"\n\n), \n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(keyword_text as TEXT) as keyword_text\n\n \n ,cast(match_type as TEXT) as search_match_type\n\n \n ,cast(search_term_text as TEXT) as search_query\n\n \n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__search_term_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id\n\n \n ,cast(keyword_text as TEXT) as keyword_text\n\n \n ,cast(match_type as TEXT) as search_match_type\n\n \n ,cast(search_term as TEXT) as search_query\n\n \n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__search_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from microsoft_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.ad_reporting.int_ad_reporting__ad_group_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "int_ad_reporting__ad_group_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__ad_group_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__ad_group_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__ad_group_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__ad_group_report"], "alias": "int_ad_reporting__ad_group_report", "checksum": {"name": "sha256", "checksum": "85c938fe91856abac43c8f055fda63c30d4242f9ec5f14ffef6a8eccc1c2ab52"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "ephemeral", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462184.0003278, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['google_ads', 'microsoft_ads'] %}\n{% if package in enabled_packages %}\n{{ package }} as (\n {{ get_query(\n platform=package,\n report_type='ad_group',\n relation=ref(package ~ '__ad_group_report')\n ) }}\n),\n{% endif %}\n{% endfor %}\n\n{% if 'apple_search_ads' in enabled_packages %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='ad_group', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'clicks': 'taps',\n 'conversions_value': 'null'\n },\n relation=ref('apple_search_ads__ad_group_report')\n ) }}\n),\n{% endif %}\n\n{% if 'linkedin_ads' in enabled_packages %}\nlinkedin_ads as (\n\n {{ get_query(\n platform='linkedin_ads', \n report_type='ad_group', \n field_mapping={\n 'campaign_id': 'campaign_group_id',\n 'campaign_name': 'campaign_group_name',\n 'ad_group_id': 'campaign_id',\n 'ad_group_name': 'campaign_name',\n 'spend': 'cost',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_value_in_local_currency'\n },\n relation=ref('linkedin_ads__campaign_report')\n ) }}\n),\n{% endif %}\n\n{% if 'facebook_ads' in enabled_packages %}\nfacebook_ads as (\n\n {{ get_query(\n platform='facebook_ads', \n report_type='ad_group', \n field_mapping={\n 'ad_group_id': 'ad_set_id',\n 'ad_group_name': 'ad_set_name'\n },\n relation=ref('facebook_ads__ad_set_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='ad_group', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_value'\n },\n relation=ref('pinterest_ads__ad_group_report')\n ) }}\n),\n{% endif %}\n\n{% if 'snapchat_ads' in enabled_packages %}\nsnapchat_ads as (\n\n {{ get_query(\n platform='snapchat_ads', \n report_type='ad_group', \n field_mapping={\n 'account_id': 'ad_account_id',\n 'account_name': 'ad_account_name',\n 'ad_group_id': 'ad_squad_id',\n 'ad_group_name': 'ad_squad_name',\n 'clicks':'swipes',\n 'conversions': 'total_conversions',\n 'conversions_value': 'conversion_purchases_value'\n },\n relation=ref('snapchat_ads__ad_squad_report')\n ) }}\n), \n{% endif %}\n\n{% if 'tiktok_ads' in enabled_packages %}\ntiktok_ads as (\n\n {{ get_query(\n platform='tiktok_ads', \n report_type='ad_group', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'conversions': 'conversion',\n 'conversions_value': 'total_conversion_value'\n },\n relation=ref('tiktok_ads__ad_group_report')\n ) }}\n), \n{% endif %}\n\n{% if 'twitter_ads' in enabled_packages %}\ntwitter_ads as (\n\n {{ get_query(\n platform='twitter_ads', \n report_type='ad_group', \n field_mapping={\n 'ad_group_id': 'line_item_id',\n 'ad_group_name': 'line_item_name',\n 'conversions': 'total_conversions',\n 'conversions_value': 'total_conversions_sale_amount'\n },\n relation=ref('twitter_ads__line_item_report')\n ) }}\n), \n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='ad_group', \n field_mapping={\n 'spend': 'cost',\n 'conversions': 'purchases_30_d',\n 'conversions_value': 'sales_30_d'\n },\n relation=ref('amazon_ads__ad_group_report')\n ) }}\n), \n{% endif %}\n\n{% if 'reddit_ads' in enabled_packages %}\nreddit_ads as (\n\n {{ get_query(\n platform='reddit_ads', \n report_type='ad_group', \n field_mapping={\n 'account_name': 'null',\n 'conversions_value': 'total_value'\n },\n relation=ref('reddit_ads__ad_group_report')\n ) }}\n),\n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [{"name": "google_ads__ad_group_report", "package": null, "version": null}, {"name": "microsoft_ads__ad_group_report", "package": null, "version": null}, {"name": "apple_search_ads__ad_group_report", "package": null, "version": null}, {"name": "linkedin_ads__campaign_report", "package": null, "version": null}, {"name": "facebook_ads__ad_set_report", "package": null, "version": null}, {"name": "pinterest_ads__ad_group_report", "package": null, "version": null}, {"name": "snapchat_ads__ad_squad_report", "package": null, "version": null}, {"name": "tiktok_ads__ad_group_report", "package": null, "version": null}, {"name": "twitter_ads__line_item_report", "package": null, "version": null}, {"name": "amazon_ads__ad_group_report", "package": null, "version": null}, {"name": "reddit_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.google_ads.google_ads__ad_group_report", "model.microsoft_ads.microsoft_ads__ad_group_report", "model.apple_search_ads.apple_search_ads__ad_group_report", "model.linkedin.linkedin_ads__campaign_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.pinterest.pinterest_ads__ad_group_report", "model.snapchat_ads.snapchat_ads__ad_squad_report", "model.tiktok_ads.tiktok_ads__ad_group_report", "model.twitter_ads.twitter_ads__line_item_report", "model.amazon_ads.amazon_ads__ad_group_report", "model.reddit_ads.reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__ad_group_report.sql", "compiled": true, "compiled_code": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__ad_group_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__ad_group_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id\n\n \n ,cast(organization_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(taps as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(null as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__ad_group_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(campaign_id as TEXT) as ad_group_id\n\n \n ,cast(campaign_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_group_id as TEXT) as campaign_id\n\n \n ,cast(campaign_group_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_value_in_local_currency as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__campaign_report\"\n\n),\n\n\n\nfacebook_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_set_id as TEXT) as ad_group_id\n\n \n ,cast(ad_set_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__ad_set_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__ad_group_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id\n\n \n ,cast(ad_account_name as TEXT) as account_name\n\n \n ,cast(ad_squad_id as TEXT) as ad_group_id\n\n \n ,cast(ad_squad_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(swipes as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(conversion_purchases_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__ad_squad_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id\n\n \n ,cast(advertiser_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversion as float) as conversions\n\n ,cast(total_conversion_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__ad_group_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(line_item_id as TEXT) as ad_group_id\n\n \n ,cast(line_item_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(total_conversions as float) as conversions\n\n ,cast(total_conversions_sale_amount as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__line_item_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(account_name as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(purchases_30_d as float) as conversions\n\n ,cast(sales_30_d as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__ad_group_report\"\n\n), \n\n\n\nreddit_ads as (\n\n select \n source_relation,\n \n date(date_day)\n as date_day,\n cast( 'reddit_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id\n\n \n ,cast(null as TEXT) as account_name\n\n \n ,cast(ad_group_id as TEXT) as ad_group_id\n\n \n ,cast(ad_group_name as TEXT) as ad_group_name\n\n \n ,cast(campaign_id as TEXT) as campaign_id\n\n \n ,cast(campaign_name as TEXT) as campaign_name\n\n \n ,cast(clicks as integer) as clicks\n\n ,cast(conversions as float) as conversions\n\n ,cast(total_value as float) as conversions_value\n\n ,cast(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__ad_group_report\"\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__campaign_history", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__campaign_history.sql", "original_file_path": "models/stg_apple_search_ads__campaign_history.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__campaign_history"], "alias": "stg_apple_search_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "cf87e851472f1f4b6b9388f991665435a0ca61cc9f4566a850324e0649d25dfc"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of a campaign in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "Timestamp of when the campaign object was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "The designated ad group start time (ad group with the earliest start time associated with this campaign).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "The designated campaign end time (ad group with the latest start time associated with this campaign).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the campaign, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.2596931, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__campaign_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n modification_time as modified_at,\n organization_id,\n name as campaign_name,\n id as campaign_id,\n status as campaign_status,\n start_time as start_at,\n end_time as end_at,\n row_number() over (partition by source_relation, id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n modification_time\n \n as \n \n modification_time\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as integer) as \n \n organization_id\n \n , \n \n \n start_time\n \n as \n \n start_time\n \n, \n \n \n status\n \n as \n \n status\n \n\n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n modification_time as modified_at,\n organization_id,\n name as campaign_name,\n id as campaign_id,\n status as campaign_status,\n start_time as start_at,\n end_time as end_at,\n row_number() over (partition by source_relation, id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__ad_report", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__ad_report.sql", "original_file_path": "models/stg_apple_search_ads__ad_report.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_report"], "alias": "stg_apple_search_ads__ad_report", "checksum": {"name": "sha256", "checksum": "b46a0e405e468987533c679fd6a23602258167a5b38a63f673637e43ee6f72c6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of an ad in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.259202, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__ad_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__ad_report_tmp')),\n staging_columns=get_ad_level_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n campaign_id,\n ad_group_id,\n ad_id,\n conversions,\n impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n {{ apple_search_ads_fill_pass_through_columns(\n pass_through_fields=var('apple_search_ads__ad_passthrough_metrics'),\n except=['conversions']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_report_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__ad_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_ad_level_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.apple_search_ads_source.apple_search_ads_fill_pass_through_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n cast(null as integer) as \n \n conversions\n \n , \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n local_spend_amount\n \n as \n \n local_spend_amount\n \n, \n \n \n local_spend_currency\n \n as \n \n local_spend_currency\n \n, \n \n \n new_downloads\n \n as \n \n new_downloads\n \n, \n \n \n redownloads\n \n as \n \n redownloads\n \n, \n \n \n taps\n \n as \n \n taps\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n campaign_id,\n ad_group_id,\n ad_id,\n conversions,\n impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__campaign_report", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__campaign_report.sql", "original_file_path": "models/stg_apple_search_ads__campaign_report.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__campaign_report"], "alias": "stg_apple_search_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "641440ae70a473f061ecec5d6819022f5d8cc45ccaf7365384bf00e7ebc645fb"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a campaign in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.260254, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__campaign_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__campaign_report_tmp')),\n staging_columns=get_campaign_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n id as campaign_id,\n conversions,\n impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n {{ apple_search_ads_fill_pass_through_columns(\n pass_through_fields=var('apple_search_ads__campaign_passthrough_metrics'),\n except=['conversions']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_report_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__campaign_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_campaign_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.apple_search_ads_source.apple_search_ads_fill_pass_through_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n date\n \n as \n \n date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n local_spend_amount\n \n as \n \n local_spend_amount\n \n, \n \n \n local_spend_currency\n \n as \n \n local_spend_currency\n \n, \n \n \n new_downloads\n \n as \n \n new_downloads\n \n, \n \n \n redownloads\n \n as \n \n redownloads\n \n, \n \n \n taps\n \n as \n \n taps\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n id as campaign_id,\n conversions,\n impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__organization": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__organization", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__organization.sql", "original_file_path": "models/stg_apple_search_ads__organization.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__organization"], "alias": "stg_apple_search_ads__organization", "checksum": {"name": "sha256", "checksum": "b233ec35efb63603abc18a08f0e33f27b01682958dd5b92daeef270dc80e6d63"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents an organization in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Specified currency for respective organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payment_model": {"name": "payment_model", "description": "Values include 'LOC', 'PAYG' or (payment method hasn't been set).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "Organization default timezone; values can be ORTZ or UTC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.261705, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__organization\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__organization_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__organization_tmp')),\n staging_columns=get_organization_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as organization_id,\n currency,\n payment_model,\n name as organization_name,\n time_zone\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__organization_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__organization_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__organization_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__organization.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__organization_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n payment_model\n \n as \n \n payment_model\n \n, \n \n \n time_zone\n \n as \n \n time_zone\n \n\n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as organization_id,\n currency,\n payment_model,\n name as organization_name,\n time_zone\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__keyword_report", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__keyword_report.sql", "original_file_path": "models/stg_apple_search_ads__keyword_report.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__keyword_report"], "alias": "stg_apple_search_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "ab1e46d16ea4b7360a89480e29b11892a880d9848eb28bfffbf2712f313cae1a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a keyword in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.261302, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__keyword_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__keyword_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__keyword_report_tmp')),\n staging_columns=get_keyword_report_columns()\n )\n }} \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n id as keyword_id,\n conversions,\n impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n {{ apple_search_ads_fill_pass_through_columns(\n pass_through_fields=var('apple_search_ads__keyword_passthrough_metrics'),\n except=['conversions']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_report_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__keyword_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_keyword_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.apple_search_ads_source.apple_search_ads_fill_pass_through_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__keyword_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n date\n \n as \n \n date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n local_spend_amount\n \n as \n \n local_spend_amount\n \n, \n \n \n local_spend_currency\n \n as \n \n local_spend_currency\n \n, \n \n \n new_downloads\n \n as \n \n new_downloads\n \n, \n \n \n redownloads\n \n as \n \n redownloads\n \n, \n \n \n taps\n \n as \n \n taps\n \n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n id as keyword_id,\n conversions,\n impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__keyword_history", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__keyword_history.sql", "original_file_path": "models/stg_apple_search_ads__keyword_history.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__keyword_history"], "alias": "stg_apple_search_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "99b60037c3445a6fd43917ae2631a04e99f8c9b782c8f7c853a297ec63634365"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of a keyword in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "Timestamp of when the keyword object was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount": {"name": "bid_amount", "description": "The bid amount to display your ad for the matching text value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_currency": {"name": "bid_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; EXACT or BROAD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the keyword, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The word or phrase to match in user searches, to show respective ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.2607949, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__keyword_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__keyword_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__keyword_history_tmp')),\n staging_columns=get_keyword_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n modification_time as modified_at,\n campaign_id,\n ad_group_id,\n id as keyword_id,\n bid_amount, \n bid_currency,\n match_type,\n status as keyword_status,\n text as keyword_text,\n row_number() over (partition by source_relation, id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_history_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__keyword_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_keyword_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__keyword_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__keyword_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n bid_amount\n \n as \n \n bid_amount\n \n, \n \n \n bid_currency\n \n as \n \n bid_currency\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n match_type\n \n as \n \n match_type\n \n, \n \n \n modification_time\n \n as \n \n modification_time\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n text\n \n as \n \n text\n \n\n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n modification_time as modified_at,\n campaign_id,\n ad_group_id,\n id as keyword_id,\n bid_amount, \n bid_currency,\n match_type,\n status as keyword_status,\n text as keyword_text,\n row_number() over (partition by source_relation, id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__search_term_report", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__search_term_report.sql", "original_file_path": "models/stg_apple_search_ads__search_term_report.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__search_term_report"], "alias": "stg_apple_search_ads__search_term_report", "checksum": {"name": "sha256", "checksum": "59cd9346ce077a69ea058c49b55aa975a6831bfdb7ed548824095aa3257653d6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a search term in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "A Fivetran internal unique id that helps us avoid duplicate rows in primary keyless tables.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_format": {"name": "ad_format", "description": "Format of creative set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount": {"name": "bid_amount", "description": "The bid amount to display your ad for the matching text value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_currency": {"name": "bid_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The word or phrase to match in user searches, to show respective ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_display_status": {"name": "keyword_display_status", "description": "The keyword display status can either be ACTIVE or PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; values include EXACT, BROAD or AUTO.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_term_source": {"name": "search_term_source", "description": "The search term source can either be TARGETED or AUTO; if this value is AUTO so will match_type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_term_text": {"name": "search_term_text", "description": "The word or phrase to match of user searches.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.262651, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__search_term_report\"", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__apple_search_ads_enabled','apple_search_ads__using_search_terms'])) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__search_term_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__search_term_report_tmp')),\n staging_columns=get_search_term_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n _fivetran_id,\n campaign_id,\n ad_group_id,\n ad_group_name,\n bid_amount_amount as bid_amount,\n bid_amount_currency as bid_currency,\n keyword as keyword_text,\n keyword_display_status,\n keyword_id,\n local_spend_amount as spend,\n local_spend_currency as currency,\n match_type,\n search_term_source,\n search_term_text,\n conversions,\n impressions,\n taps,\n new_downloads,\n redownloads\n\n {{ apple_search_ads_fill_pass_through_columns(\n pass_through_fields=var('apple_search_ads__search_term_passthrough_metrics'),\n except=['conversions']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__search_term_report_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__search_term_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.apple_search_ads_source.get_search_term_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.apple_search_ads_source.apple_search_ads_fill_pass_through_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__search_term_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__search_term_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n ad_group_deleted\n \n as \n \n ad_group_deleted\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_group_name\n \n as \n \n ad_group_name\n \n, \n \n \n bid_amount_amount\n \n as \n \n bid_amount_amount\n \n, \n \n \n bid_amount_currency\n \n as \n \n bid_amount_currency\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n deleted\n \n as \n \n deleted\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n keyword\n \n as \n \n keyword\n \n, \n \n \n keyword_display_status\n \n as \n \n keyword_display_status\n \n, \n \n \n keyword_id\n \n as \n \n keyword_id\n \n, \n \n \n local_spend_amount\n \n as \n \n local_spend_amount\n \n, \n \n \n local_spend_currency\n \n as \n \n local_spend_currency\n \n, \n \n \n match_type\n \n as \n \n match_type\n \n, \n \n \n new_downloads\n \n as \n \n new_downloads\n \n, \n \n \n redownloads\n \n as \n \n redownloads\n \n, \n \n \n search_term_source\n \n as \n \n search_term_source\n \n, \n \n \n search_term_text\n \n as \n \n search_term_text\n \n, \n \n \n taps\n \n as \n \n taps\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date as date_day,\n _fivetran_id,\n campaign_id,\n ad_group_id,\n ad_group_name,\n bid_amount_amount as bid_amount,\n bid_amount_currency as bid_currency,\n keyword as keyword_text,\n keyword_display_status,\n keyword_id,\n local_spend_amount as spend,\n local_spend_currency as currency,\n match_type,\n search_term_source,\n search_term_text,\n conversions,\n impressions,\n taps,\n new_downloads,\n redownloads\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__ad_group_history", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__ad_group_history.sql", "original_file_path": "models/stg_apple_search_ads__ad_group_history.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_group_history"], "alias": "stg_apple_search_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "506727e27e2ca88cb56ff327e32c30d3dd812ff5f440ef512c6e81a0da3a8e09"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of an ad group in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "Timestamp of when the ad group object was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating whether record was the most recent instance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "The designated ad group start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "The designated ad group end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad group, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.2575428, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_group_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__ad_group_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__ad_group_history_tmp')),\n staging_columns=get_ad_group_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n modification_time as modified_at,\n organization_id,\n campaign_id,\n name as ad_group_name,\n id as ad_group_id,\n status as ad_group_status,\n start_time as start_at,\n end_time as end_at,\n row_number() over (partition by source_relation, id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_history_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__ad_group_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_group_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n modification_time\n \n as \n \n modification_time\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n start_time\n \n as \n \n start_time\n \n, \n \n \n status\n \n as \n \n status\n \n\n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n modification_time as modified_at,\n organization_id,\n campaign_id,\n name as ad_group_name,\n id as ad_group_id,\n status as ad_group_status,\n start_time as start_at,\n end_time as end_at,\n row_number() over (partition by source_relation, id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__ad_history", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__ad_history.sql", "original_file_path": "models/stg_apple_search_ads__ad_history.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_history"], "alias": "stg_apple_search_ads__ad_history", "checksum": {"name": "sha256", "checksum": "59401bbef57eb6428506a14f747a483f3ce8de6e0182042d7729d47360988777"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of an ad in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of when ad was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_at": {"name": "modified_at", "description": "Timestamp of when the ad object was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad name associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_status": {"name": "ad_status", "description": "The current status of the ad, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.258625, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__ad_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__ad_history_tmp')),\n staging_columns=get_ad_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n creation_time as created_at,\n modification_time as modified_at,\n org_id as organization_id,\n campaign_id,\n ad_group_id,\n name as ad_name,\n id as ad_id,\n status as ad_status, \n row_number() over (partition by source_relation, id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_history_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__ad_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n creation_time\n \n as \n \n creation_time\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n modification_time\n \n as \n \n modification_time\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n org_id\n \n as \n \n org_id\n \n, \n \n \n status\n \n as \n \n status\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n creation_time as created_at,\n modification_time as modified_at,\n org_id as organization_id,\n campaign_id,\n ad_group_id,\n name as ad_name,\n id as ad_id,\n status as ad_status, \n row_number() over (partition by source_relation, id order by modification_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__ad_group_report", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__ad_group_report.sql", "original_file_path": "models/stg_apple_search_ads__ad_group_report.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_group_report"], "alias": "stg_apple_search_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "072887dc0e7a6b537e803797dee0f2923c8b0728336058c88616a8634669441e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of an ad group in Apple Search Ads.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The sum of costs associated with the number of impressions served. Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "apple_search_ads_source://models/stg_apple_search_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.258118, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_group_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_apple_search_ads__ad_group_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_apple_search_ads__ad_group_report_tmp')),\n staging_columns=get_ad_group_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='apple_search_ads_union_schemas', \n union_database_variable='apple_search_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n date as date_day, \n ad_group_id,\n conversions,\n impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n {{ apple_search_ads_fill_pass_through_columns(\n pass_through_fields=var('apple_search_ads__ad_group_passthrough_metrics'),\n except=['conversions']) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_report_tmp", "package": null, "version": null}, {"name": "stg_apple_search_ads__ad_group_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.apple_search_ads_source.get_ad_group_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.apple_search_ads_source.apple_search_ads_fill_pass_through_columns"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_group_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n conversions\n \n as \n \n conversions\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n local_spend_amount\n \n as \n \n local_spend_amount\n \n, \n \n \n local_spend_currency\n \n as \n \n local_spend_currency\n \n, \n \n \n new_downloads\n \n as \n \n new_downloads\n \n, \n \n \n redownloads\n \n as \n \n redownloads\n \n, \n \n \n taps\n \n as \n \n taps\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n date as date_day, \n ad_group_id,\n conversions,\n impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__search_term_report_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__search_term_report_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__search_term_report_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__search_term_report_tmp"], "alias": "stg_apple_search_ads__search_term_report_tmp", "checksum": {"name": "sha256", "checksum": "ba8f14842a785d58b6d7fe87dd97dadb8d465b4d664c741ff9f155d26e441f98"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.158633, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__search_term_report_tmp\"", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__apple_search_ads_enabled','apple_search_ads__using_search_terms'])) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='search_term_report', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='search_term_report',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "search_term_report"], ["apple_search_ads", "search_term_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__search_term_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"apple_search_search_term_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__campaign_history_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__campaign_history_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__campaign_history_tmp"], "alias": "stg_apple_search_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "50ad5431afadc41fd2ac44ae3d3b537569847eeb1337ee6a3f723e82e56af2f4"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.162834, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='campaign_history',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "campaign_history"], ["apple_search_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.campaign_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"apple_search_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__keyword_history_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__keyword_history_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__keyword_history_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__keyword_history_tmp"], "alias": "stg_apple_search_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "11e2783dba2d250108147d990fb80e6b81b0c91b31282aca51503ca1da046929"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.1676002, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__keyword_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='keyword_history', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='keyword_history',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "keyword_history"], ["apple_search_ads", "keyword_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.keyword_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__keyword_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"apple_search_keyword_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__ad_group_history_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_group_history_tmp"], "alias": "stg_apple_search_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "1ebb96d598941a8df4cc01b34631e680a29c5848061118bd8aeb50d38176fe82"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.171715, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_group_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_history', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='ad_group_history',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "ad_group_history"], ["apple_search_ads", "ad_group_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_group_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"apple_search_ad_group_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__ad_group_report_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__ad_group_report_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__ad_group_report_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_group_report_tmp"], "alias": "stg_apple_search_ads__ad_group_report_tmp", "checksum": {"name": "sha256", "checksum": "de715af391f83c6f3e3c6a8db68eea41d518132d6181b47374f77b19c361ec3a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.175856, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_group_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_report', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='ad_group_report',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "ad_group_report"], ["apple_search_ads", "ad_group_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_group_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"apple_search_ad_group_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__ad_history_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__ad_history_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_history_tmp"], "alias": "stg_apple_search_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "339b9f08a3079cc4f1f294ab18d2f09649088a6c66d0e35ed991dface81bbbf2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.1806169, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_history', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='ad_history',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "ad_history"], ["apple_search_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"apple_search_ad_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__campaign_report_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__campaign_report_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__campaign_report_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__campaign_report_tmp"], "alias": "stg_apple_search_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "079b4d56f722020bc4ef117e0db51cb6a7ddff8fd053b9e2c7e0a44db7638ccf"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.184662, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_report', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='campaign_report',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "campaign_report"], ["apple_search_ads", "campaign_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__campaign_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"apple_search_campaign_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__organization_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__organization_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__organization_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__organization_tmp"], "alias": "stg_apple_search_ads__organization_tmp", "checksum": {"name": "sha256", "checksum": "77bc227601bcfaeaa4440c48650f8c60f57d0bdd13a7c015691526a20ed415e7"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.1888242, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__organization_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='organization', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='organization',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "organization"], ["apple_search_ads", "organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.organization"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__organization_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"apple_search_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__keyword_report_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__keyword_report_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__keyword_report_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__keyword_report_tmp"], "alias": "stg_apple_search_ads__keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "2b294b2897c4557862281af0a6001621d35796ee6b030ef5d7f313f825fb4778"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.192929, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__keyword_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='keyword_report', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='keyword_report',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "keyword_report"], ["apple_search_ads", "keyword_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__keyword_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"apple_search_keyword_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_apple_search_ads__ad_report_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__ad_report_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__ad_report_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_report_tmp"], "alias": "stg_apple_search_ads__ad_report_tmp", "checksum": {"name": "sha256", "checksum": "4d29c298edb0146e12d72cf1533f11aaf23ecde0817beb9aaf93794358305d8b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.1978219, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__apple_search_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_level_report', \n database_variable='apple_search_ads_database', \n schema_variable='apple_search_ads_schema', \n default_database=target.database,\n default_schema='apple_search_ads',\n default_variable='ad_level_report',\n union_schema_variable='apple_search_ads_union_schemas',\n union_database_variable='apple_search_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["apple_search_ads", "ad_level_report"], ["apple_search_ads", "ad_level_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_level_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"apple_search_ad_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__pin_promotion_history", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__pin_promotion_history.sql", "original_file_path": "models/stg_pinterest_ads__pin_promotion_history.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "fqn": ["pinterest_source", "stg_pinterest_ads__pin_promotion_history"], "alias": "stg_pinterest_ads__pin_promotion_history", "checksum": {"name": "sha256", "checksum": "f332df6e2cfe2ec53d6fa0df46b56fc890a5a59a86ee65f778e63a6681a7768b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of a Pinterest Pin promotion.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "Pin promotion ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Pin promotion ad group ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Pin creation time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "destination_url": {"name": "destination_url", "description": "Pin destination URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_name": {"name": "pin_name", "description": "Pin promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_id": {"name": "pin_id", "description": "Original pin ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_status": {"name": "pin_status", "description": "The status of the Pin promotion. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_type": {"name": "creative_type", "description": "The creative type. \nOne of \"APP\", \"APP_VIDEO\", \"BOARD\", \"CAROUSEL\", \"CINEMATIC\", \"COMMERCE\", \"MAX_VIDEO\", \"NATIVE_VIDEO\", \"REGULAR\", \n\"SEARCH_PROMINENCE\", \"SEARCH_PROMINENCE_CAROUSEL\", \"SHOPPING\", \"SHOP_THE_PIN\", \"THIRD_PARTY\", or \"VIDEO\".\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `destination_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.3669498, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__pin_promotion_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_pinterest_ads__pin_promotion_history_tmp') }}\n), \n\nfields as (\n\n select\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__pin_promotion_history_tmp')),\n staging_columns=get_pin_promotion_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation,\n cast(id as {{ dbt.type_string() }}) as pin_promotion_id,\n cast(ad_account_id as {{ dbt.type_string() }}) as advertiser_id,\n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n created_time as created_at,\n destination_url,\n {{ dbt.split_part('destination_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('destination_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('destination_url') }} as url_path,\n {{ pinterest_source.pinterest_ads_extract_url_parameter('destination_url', 'utm_source') }} as utm_source,\n {{ pinterest_source.pinterest_ads_extract_url_parameter('destination_url', 'utm_medium') }} as utm_medium,\n {{ pinterest_source.pinterest_ads_extract_url_parameter('destination_url', 'utm_campaign') }} as utm_campaign,\n {{ pinterest_source.pinterest_ads_extract_url_parameter('destination_url', 'utm_content') }} as utm_content,\n {{ pinterest_source.pinterest_ads_extract_url_parameter('destination_url', 'utm_term') }} as utm_term,\n name as pin_name,\n cast(pin_id as {{ dbt.type_string() }}) as pin_id,\n status as pin_status,\n creative_type,\n _fivetran_synced,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_history_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__pin_promotion_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_pin_promotion_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.pinterest_source.pinterest_ads_extract_url_parameter"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__pin_promotion_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__pin_promotion_history_tmp\"\n), \n\nfields as (\n\n select\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_account_id\n \n as \n \n ad_account_id\n \n, \n cast(null as TEXT) as \n \n android_deep_link\n \n , \n cast(null as TEXT) as \n \n click_tracking_url\n \n , \n \n \n created_time\n \n as \n \n created_time\n \n, \n \n \n creative_type\n \n as \n \n creative_type\n \n, \n \n \n destination_url\n \n as \n \n destination_url\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as TEXT) as \n \n ios_deep_link\n \n , \n cast(null as boolean) as \n \n is_pin_deleted\n \n , \n cast(null as boolean) as \n \n is_removable\n \n , \n \n \n name\n \n as \n \n name\n \n, \n \n \n pin_id\n \n as \n \n pin_id\n \n, \n cast(null as TEXT) as \n \n review_status\n \n , \n \n \n status\n \n as \n \n status\n \n, \n cast(null as timestamp) as \n \n updated_time\n \n , \n cast(null as TEXT) as \n \n view_tracking_url\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation,\n cast(id as TEXT) as pin_promotion_id,\n cast(ad_account_id as TEXT) as advertiser_id,\n cast(ad_group_id as TEXT) as ad_group_id,\n created_time as created_at,\n destination_url,\n \n\n \n \n\n split_part(\n destination_url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n destination_url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_source,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n destination_url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_medium,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n destination_url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_campaign,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n destination_url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_content,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n destination_url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_term,\n name as pin_name,\n cast(pin_id as TEXT) as pin_id,\n status as pin_status,\n creative_type,\n _fivetran_synced,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__keyword_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__keyword_report", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__keyword_report.sql", "original_file_path": "models/stg_pinterest_ads__keyword_report.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report", "fqn": ["pinterest_source", "stg_pinterest_ads__keyword_report"], "alias": "stg_pinterest_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "e0fd8970e50779e2657bdce8dc63db39130e68f2febccb56f715047f77e552ff"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of Keywords by ad group, campaign, and advertiser.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of paid and earned impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of paid and earned clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.371723, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__keyword_report\"", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__pinterest_ads_enabled','pinterest__using_keywords'])) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_pinterest_ads__keyword_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__keyword_report_tmp')),\n staging_columns=get_keyword_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n {{ dbt.date_trunc('day', 'date') }} as date_day,\n cast(keyword_id as {{dbt.type_string() }}) as keyword_id,\n cast(pin_promotion_id as {{dbt.type_string() }}) as pin_promotion_id,\n cast(ad_group_id as {{dbt.type_string() }}) as ad_group_id,\n ad_group_name,\n ad_group_status,\n cast(campaign_id as {{dbt.type_string() }}) as campaign_id,\n cast(advertiser_id as {{dbt.type_string() }}) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n {{ pinterest_ads_fill_pass_through_columns(pass_through_fields=var('pinterest__keyword_report_passthrough_metrics'), except=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__keyword_report_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__keyword_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.pinterest_source.get_keyword_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_string", "macro.pinterest_source.pinterest_ads_fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__keyword_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_group_name\n \n as \n \n ad_group_name\n \n, \n \n \n ad_group_status\n \n as \n \n ad_group_status\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clickthrough_1\n \n as \n \n clickthrough_1\n \n, \n \n \n clickthrough_2\n \n as \n \n clickthrough_2\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impression_1\n \n as \n \n impression_1\n \n, \n \n \n impression_2\n \n as \n \n impression_2\n \n, \n \n \n keyword_id\n \n as \n \n keyword_id\n \n, \n \n \n pin_promotion_id\n \n as \n \n pin_promotion_id\n \n, \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n, \n \n \n total_conversions\n \n as \n \n total_conversions\n \n, \n \n \n total_conversions_quantity\n \n as \n \n total_conversions_quantity\n \n, \n \n \n total_conversions_value_in_micro_dollar\n \n as \n \n total_conversions_value_in_micro_dollar\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n date_trunc('day', date) as date_day,\n cast(keyword_id as TEXT) as keyword_id,\n cast(pin_promotion_id as TEXT) as pin_promotion_id,\n cast(ad_group_id as TEXT) as ad_group_id,\n ad_group_name,\n ad_group_status,\n cast(campaign_id as TEXT) as campaign_id,\n cast(advertiser_id as TEXT) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n \t\n\n\t\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__ad_group_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__ad_group_report", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__ad_group_report.sql", "original_file_path": "models/stg_pinterest_ads__ad_group_report.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report", "fqn": ["pinterest_source", "stg_pinterest_ads__ad_group_report"], "alias": "stg_pinterest_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "2ec8dc6491c3bb049b4e8c31061eae0dc827815504af8c27823f4db4b787a735"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Pinterest Ad Groups by campaign and advertiser.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of paid and earned impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of paid and earned clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.368187, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__ad_group_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_pinterest_ads__ad_group_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__ad_group_report_tmp')),\n staging_columns=get_ad_group_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n {{ dbt.date_trunc('day', 'date') }} as date_day,\n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n ad_group_name,\n ad_group_status,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n cast(advertiser_id as {{ dbt.type_string() }}) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n {{ pinterest_ads_fill_pass_through_columns(pass_through_fields=var('pinterest__ad_group_report_passthrough_metrics'), except=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__ad_group_report_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__ad_group_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_ad_group_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_string", "macro.pinterest_source.pinterest_ads_fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__ad_group_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_group_name\n \n as \n \n ad_group_name\n \n, \n \n \n ad_group_status\n \n as \n \n ad_group_status\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clickthrough_1\n \n as \n \n clickthrough_1\n \n, \n \n \n clickthrough_2\n \n as \n \n clickthrough_2\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impression_1\n \n as \n \n impression_1\n \n, \n \n \n impression_2\n \n as \n \n impression_2\n \n, \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n, \n \n \n total_conversions\n \n as \n \n total_conversions\n \n, \n \n \n total_conversions_quantity\n \n as \n \n total_conversions_quantity\n \n, \n \n \n total_conversions_value_in_micro_dollar\n \n as \n \n total_conversions_value_in_micro_dollar\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date_trunc('day', date) as date_day,\n cast(ad_group_id as TEXT) as ad_group_id,\n ad_group_name,\n ad_group_status,\n cast(campaign_id as TEXT) as campaign_id,\n cast(advertiser_id as TEXT) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n \t\n\n\t\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__campaign_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__campaign_history", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__campaign_history.sql", "original_file_path": "models/stg_pinterest_ads__campaign_history.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history", "fqn": ["pinterest_source", "stg_pinterest_ads__campaign_history"], "alias": "stg_pinterest_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "00af637f4a5c16ec8a38a5904849f00aeb221c03d60d20462296fba86e38ea88"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of a Pinterest Campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Campaign creation time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of the Campaign. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_ad_group_budget_in_micro_currency": {"name": "default_ad_group_budget_in_micro_currency", "description": "When transitioning from campaign budget optimization to non-campaign budget optimization, the default_ad_group_budget_in_micro_currency will propagate to each child ad groups daily budget. Unit is micro currency of the associated advertiser account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_automated_campaign": {"name": "is_automated_campaign", "description": "Specifies whether the campaign was created in the automated campaign flow", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_campaign_budget_optimization": {"name": "is_campaign_budget_optimization", "description": "Determines if a campaign automatically generate ad-group level budgets given a campaign budget to maximize campaign outcome. When transitioning from non-cbo to cbo, all previous child ad group budget will be cleared.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_flexible_daily_budgets": {"name": "is_flexible_daily_budgets", "description": "Determine if a campaign has flexible daily budgets setup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.366074, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__campaign_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_pinterest_ads__campaign_history_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as campaign_id,\n name as campaign_name,\n cast(advertiser_id as {{ dbt.type_string() }}) as advertiser_id,\n default_ad_group_budget_in_micro_currency,\n is_automated_campaign,\n is_campaign_budget_optimization,\n is_flexible_daily_budgets,\n status as campaign_status,\n _fivetran_synced,\n created_time as created_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__campaign_history_tmp\"\n), \n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_time\n \n as \n \n created_time\n \n, \n \n \n default_ad_group_budget_in_micro_currency\n \n as \n \n default_ad_group_budget_in_micro_currency\n \n, \n \n \n is_automated_campaign\n \n as \n \n is_automated_campaign\n \n, \n \n \n is_campaign_budget_optimization\n \n as \n \n is_campaign_budget_optimization\n \n, \n \n \n is_flexible_daily_budgets\n \n as \n \n is_flexible_daily_budgets\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n status\n \n as \n \n status\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n cast(id as TEXT) as campaign_id,\n name as campaign_name,\n cast(advertiser_id as TEXT) as advertiser_id,\n default_ad_group_budget_in_micro_currency,\n is_automated_campaign,\n is_campaign_budget_optimization,\n is_flexible_daily_budgets,\n status as campaign_status,\n _fivetran_synced,\n created_time as created_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__advertiser_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__advertiser_report", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__advertiser_report.sql", "original_file_path": "models/stg_pinterest_ads__advertiser_report.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report", "fqn": ["pinterest_source", "stg_pinterest_ads__advertiser_report"], "alias": "stg_pinterest_ads__advertiser_report", "checksum": {"name": "sha256", "checksum": "632e5acad3e353ccb0e2fae5df7c8766d649c7b08cf79f7f8fd36c6e1f77c101"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of an Advertiser.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of paid and earned impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of paid and earned clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.369696, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_pinterest_ads__advertiser_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__advertiser_report_tmp')),\n staging_columns=get_advertiser_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n {{ dbt.date_trunc('day', 'date') }} as date_day,\n cast(advertiser_id as {{ dbt.type_string() }}) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n {{ pinterest_ads_fill_pass_through_columns(pass_through_fields=var('pinterest__advertiser_report_passthrough_metrics'), except=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__advertiser_report_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__advertiser_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_advertiser_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_string", "macro.pinterest_source.pinterest_ads_fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__advertiser_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n clickthrough_1\n \n as \n \n clickthrough_1\n \n, \n \n \n clickthrough_2\n \n as \n \n clickthrough_2\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impression_1\n \n as \n \n impression_1\n \n, \n \n \n impression_2\n \n as \n \n impression_2\n \n, \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n, \n \n \n total_conversions\n \n as \n \n total_conversions\n \n, \n \n \n total_conversions_quantity\n \n as \n \n total_conversions_quantity\n \n, \n \n \n total_conversions_value_in_micro_dollar\n \n as \n \n total_conversions_value_in_micro_dollar\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date_trunc('day', date) as date_day,\n cast(advertiser_id as TEXT) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n \t\n\n\t\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__advertiser_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__advertiser_history", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__advertiser_history.sql", "original_file_path": "models/stg_pinterest_ads__advertiser_history.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history", "fqn": ["pinterest_source", "stg_pinterest_ads__advertiser_history"], "alias": "stg_pinterest_ads__advertiser_history", "checksum": {"name": "sha256", "checksum": "172e61a04061ed75217b9bf92c644bab628aa3151d02fd2706d3c9a1019fb4b2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of an advertiser.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country code where the advertiser is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of when a record was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code which the advertiser is set up using.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when a record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owner_username": {"name": "owner_username", "description": "Advertiser's username.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owner_user_id": {"name": "owner_user_id", "description": "Unique identifier of the owner user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_permissions": {"name": "advertiser_permissions", "description": "The permissions associated with this account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.36917, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_pinterest_ads__advertiser_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__advertiser_history_tmp')),\n staging_columns=get_advertiser_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_string() }}) as advertiser_id,\n name as advertiser_name,\n country,\n created_time as created_at,\n currency as currency_code,\n owner_user_id,\n owner_username,\n advertiser_permissions, -- permissions was renamed in macro\n updated_time as updated_at,\n row_number() over (partition by source_relation, id order by updated_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__advertiser_history_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__advertiser_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_advertiser_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__advertiser_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n created_time\n \n as \n \n created_time\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n owner_user_id\n \n as \n \n owner_user_id\n \n, \n \n \n owner_username\n \n as \n \n owner_username\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n \n \n \"permissions\"\n \n \n \n as advertiser_permissions , \n \n \n updated_time\n \n as \n \n updated_time\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as TEXT) as advertiser_id,\n name as advertiser_name,\n country,\n created_time as created_at,\n currency as currency_code,\n owner_user_id,\n owner_username,\n advertiser_permissions, -- permissions was renamed in macro\n updated_time as updated_at,\n row_number() over (partition by source_relation, id order by updated_time desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__campaign_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__campaign_report", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__campaign_report.sql", "original_file_path": "models/stg_pinterest_ads__campaign_report.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report", "fqn": ["pinterest_source", "stg_pinterest_ads__campaign_report"], "alias": "stg_pinterest_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "7a086bf3f4aa50eb5319dc6011562d60ba66ad6987df1fe74fb86a618add08fd"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of Campaigns by advertiser.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of paid and earned impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of paid and earned clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.3703208, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__campaign_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_pinterest_ads__campaign_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__campaign_report_tmp')),\n staging_columns=get_campaign_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n {{ dbt.date_trunc('day', 'date') }} as date_day,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n campaign_name,\n campaign_status,\n cast(advertiser_id as {{ dbt.type_string() }}) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n {{ pinterest_ads_fill_pass_through_columns(pass_through_fields=var('pinterest__campaign_report_passthrough_metrics'), except=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__campaign_report_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__campaign_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_campaign_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_string", "macro.pinterest_source.pinterest_ads_fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__campaign_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n campaign_name\n \n as \n \n campaign_name\n \n, \n \n \n campaign_status\n \n as \n \n campaign_status\n \n, \n \n \n clickthrough_1\n \n as \n \n clickthrough_1\n \n, \n \n \n clickthrough_2\n \n as \n \n clickthrough_2\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impression_1\n \n as \n \n impression_1\n \n, \n \n \n impression_2\n \n as \n \n impression_2\n \n, \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n, \n \n \n total_conversions\n \n as \n \n total_conversions\n \n, \n \n \n total_conversions_quantity\n \n as \n \n total_conversions_quantity\n \n, \n \n \n total_conversions_value_in_micro_dollar\n \n as \n \n total_conversions_value_in_micro_dollar\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date_trunc('day', date) as date_day,\n cast(campaign_id as TEXT) as campaign_id,\n campaign_name,\n campaign_status,\n cast(advertiser_id as TEXT) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n \t\n\n\t\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__keyword_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__keyword_history", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__keyword_history.sql", "original_file_path": "models/stg_pinterest_ads__keyword_history.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history", "fqn": ["pinterest_source", "stg_pinterest_ads__keyword_history"], "alias": "stg_pinterest_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "bd2857f388430b3e0f87c20391c03e8e73bfd16f4c6b48cc692ae3720ac71716"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Keyword.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_value": {"name": "keyword_value", "description": "The text value that makes upd the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "The unique identifier of the record within the Fivetran synced table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "archived": {"name": "archived", "description": "Boolean indicating if the keyword is archived.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid": {"name": "bid", "description": "Bid amount set for the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of match the keyword is tied to. Either Exact or Broad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_type": {"name": "parent_type", "description": "Identifier of what grain the parent type is. Ad group or campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.371063, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__keyword_history\"", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__pinterest_ads_enabled','pinterest__using_keywords'])) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_pinterest_ads__keyword_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__keyword_history_tmp')),\n staging_columns=get_keyword_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n cast(id as {{ dbt.type_string() }}) as keyword_id,\n value as keyword_value,\n _fivetran_id,\n _fivetran_synced,\n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n cast(advertiser_id as {{ dbt.type_string() }}) as advertiser_id,\n archived,\n bid,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n match_type,\n parent_type,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__keyword_history_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__keyword_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.pinterest_source.get_keyword_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__keyword_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__keyword_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n archived\n \n as \n \n archived\n \n, \n \n \n bid\n \n as \n \n bid\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n match_type\n \n as \n \n match_type\n \n, \n \n \n parent_type\n \n as \n \n parent_type\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n cast(id as TEXT) as keyword_id,\n value as keyword_value,\n _fivetran_id,\n _fivetran_synced,\n cast(ad_group_id as TEXT) as ad_group_id,\n cast(advertiser_id as TEXT) as advertiser_id,\n archived,\n bid,\n cast(campaign_id as TEXT) as campaign_id,\n match_type,\n parent_type,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__pin_promotion_report", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__pin_promotion_report.sql", "original_file_path": "models/stg_pinterest_ads__pin_promotion_report.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report", "fqn": ["pinterest_source", "stg_pinterest_ads__pin_promotion_report"], "alias": "stg_pinterest_ads__pin_promotion_report", "checksum": {"name": "sha256", "checksum": "2086f32f8c8e762309c732c2695b062a86a3d471e9a5b76ae0d51ade2259f59d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of a Pinterest Pin promotion by ad group, campaign, and advertiser.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of paid and earned impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of paid and earned clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value": {"name": "total_conversions_value", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.367538, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__pin_promotion_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_pinterest_ads__pin_promotion_report_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__pin_promotion_report_tmp')),\n staging_columns=get_pin_promotion_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n {{ dbt.date_trunc('day', 'date') }} as date_day,\n cast(pin_promotion_id as {{ dbt.type_string() }}) as pin_promotion_id,\n cast(ad_group_id as {{ dbt.type_string() }}) as ad_group_id,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n cast(advertiser_id as {{ dbt.type_string() }}) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n {{ pinterest_ads_fill_pass_through_columns(pass_through_fields=var('pinterest__pin_promotion_report_passthrough_metrics'), except=['total_conversions','total_conversions_quantity','total_conversions_value']) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_report_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__pin_promotion_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_pin_promotion_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_string", "macro.pinterest_source.pinterest_ads_fill_pass_through_columns"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__pin_promotion_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__pin_promotion_report_tmp\"\n), \n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clickthrough_1\n \n as \n \n clickthrough_1\n \n, \n \n \n clickthrough_2\n \n as \n \n clickthrough_2\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impression_1\n \n as \n \n impression_1\n \n, \n \n \n impression_2\n \n as \n \n impression_2\n \n, \n \n \n pin_promotion_id\n \n as \n \n pin_promotion_id\n \n, \n \n \n spend_in_micro_dollar\n \n as \n \n spend_in_micro_dollar\n \n, \n \n \n total_conversions\n \n as \n \n total_conversions\n \n, \n \n \n total_conversions_quantity\n \n as \n \n total_conversions_quantity\n \n, \n \n \n total_conversions_value_in_micro_dollar\n \n as \n \n total_conversions_value_in_micro_dollar\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n date_trunc('day', date) as date_day,\n cast(pin_promotion_id as TEXT) as pin_promotion_id,\n cast(ad_group_id as TEXT) as ad_group_id,\n cast(campaign_id as TEXT) as campaign_id,\n cast(advertiser_id as TEXT) as advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n coalesce(spend_in_micro_dollar, 0) / 1000000.0 as spend,\n coalesce(total_conversions, 0) as total_conversions,\n coalesce(total_conversions_quantity, 0) as total_conversions_quantity,\n coalesce(total_conversions_value_in_micro_dollar, 0) / 1000000.0 as total_conversions_value\n\n \t\n\n\t\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__ad_group_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__ad_group_history", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__ad_group_history.sql", "original_file_path": "models/stg_pinterest_ads__ad_group_history.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history", "fqn": ["pinterest_source", "stg_pinterest_ads__ad_group_history"], "alias": "stg_pinterest_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "5f6f1558bca7394219bbf6d8413bd96ee307456a68790f263fede49f2ece9699"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of a Pinterest Ad Group.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Parent Campaign ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Ad group creation time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "The status of the Ad group. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Ad group start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "Ad group end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pacing_delivery_type": {"name": "pacing_delivery_type", "description": "Ad group pacing delivery type. With ACCELERATED, an ad group budget is spent as fast as possible. With STANDARD, an ad group budget is spent smoothly over a day. When using CBO, only the STANDARD pacing delivery type is allowed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement_group": {"name": "placement_group", "description": "The placement group. \"ALL\", \"SEARCH\", \"BROWSE\", or \"OTHER\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary_status": {"name": "summary_status", "description": "Summary status. \"RUNNING\", \"PAUSED\", \"NOT_STARTED\", \"COMPLETED\", \"ADVERTISER_DISABLED\", \"ARCHIVED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether the record is the most recent version of the object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.3648078, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__ad_group_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_pinterest_ads__ad_group_history_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_pinterest_ads__ad_group_history_tmp')),\n staging_columns=get_ad_group_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='pinterest_ads_union_schemas', \n union_database_variable='pinterest_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n cast(id as {{ dbt.type_string() }}) as ad_group_id,\n name as ad_group_name,\n status as ad_group_status,\n ad_account_id as advertiser_id,\n _fivetran_synced,\n cast(campaign_id as {{ dbt.type_string() }}) as campaign_id,\n created_time as created_at,\n end_time,\n pacing_delivery_type,\n placement_group,\n start_time,\n summary_status,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_pinterest_ads__ad_group_history_tmp", "package": null, "version": null}, {"name": "stg_pinterest_ads__ad_group_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__ad_group_history_tmp\"\n), \n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n created_time\n \n as \n \n created_time\n \n, \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n ad_account_id\n \n as \n \n ad_account_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n pacing_delivery_type\n \n as \n \n pacing_delivery_type\n \n, \n \n \n placement_group\n \n as \n \n placement_group\n \n, \n \n \n start_time\n \n as \n \n start_time\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n summary_status\n \n as \n \n summary_status\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n cast(id as TEXT) as ad_group_id,\n name as ad_group_name,\n status as ad_group_status,\n ad_account_id as advertiser_id,\n _fivetran_synced,\n cast(campaign_id as TEXT) as campaign_id,\n created_time as created_at,\n end_time,\n pacing_delivery_type,\n placement_group,\n start_time,\n summary_status,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__advertiser_history_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__advertiser_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__advertiser_history_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__advertiser_history_tmp"], "alias": "stg_pinterest_ads__advertiser_history_tmp", "checksum": {"name": "sha256", "checksum": "a2ce2fe6b2e2a39b3646cfb4ff6b6e845cb005ca800bc5e0922ae10a0f2ccd94"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.323308, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='advertiser_history', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='advertiser_history',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "advertiser_history"], ["pinterest_ads", "advertiser_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.advertiser_history"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__advertiser_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"pinterest_advertiser_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__pin_promotion_report_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__pin_promotion_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__pin_promotion_report_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__pin_promotion_report_tmp"], "alias": "stg_pinterest_ads__pin_promotion_report_tmp", "checksum": {"name": "sha256", "checksum": "9f6c8a0b9894f99694a0e4142e5b72f34485a45f383bf4084350cf263a26014a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.327449, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__pin_promotion_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='pin_promotion_report', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='pin_promotion_report',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "pin_promotion_report"], ["pinterest_ads", "pin_promotion_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__pin_promotion_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"pinterest_pin_promotion_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__campaign_report_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__campaign_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__campaign_report_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__campaign_report_tmp"], "alias": "stg_pinterest_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "50609e4c23e33bce27f935335676f1f0ebd16492fe25c606cfa9ec302e2e21b0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.332022, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__campaign_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_report', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='campaign_report',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "campaign_report"], ["pinterest_ads", "campaign_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.campaign_report"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__campaign_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"pinterest_campaign_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__advertiser_report_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__advertiser_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__advertiser_report_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__advertiser_report_tmp"], "alias": "stg_pinterest_ads__advertiser_report_tmp", "checksum": {"name": "sha256", "checksum": "a7297248e185b437b709ed0eec64dd9396da5b4c3ecdaaaf59c327fd0ac28a43"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.336166, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='advertiser_report', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='advertiser_report',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "advertiser_report"], ["pinterest_ads", "advertiser_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.advertiser_report"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__advertiser_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"pinterest_advertiser_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__keyword_report_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__keyword_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__keyword_report_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__keyword_report_tmp"], "alias": "stg_pinterest_ads__keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "c949f15fd9b7c17fc69798d726a3e63ad593c1082773e65dd71af35759adad06"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.3402398, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__keyword_report_tmp\"", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__pinterest_ads_enabled','pinterest__using_keywords'])) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='keyword_report', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='keyword_report',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "keyword_report"], ["pinterest_ads", "keyword_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.keyword_report"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__keyword_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"pinterest_keyword_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__ad_group_report_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__ad_group_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__ad_group_report_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__ad_group_report_tmp"], "alias": "stg_pinterest_ads__ad_group_report_tmp", "checksum": {"name": "sha256", "checksum": "3f38d38f9f0e9829dd273c9474522a0169f3c56370549e0e075f68f2c70b49d0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.3444421, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__ad_group_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_report', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='ad_group_report',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "ad_group_report"], ["pinterest_ads", "ad_group_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.ad_group_report"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__ad_group_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"pinterest_ad_group_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__keyword_history_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__keyword_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__keyword_history_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__keyword_history_tmp"], "alias": "stg_pinterest_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "cdf3cfa62d51175f9189eaa61f9f6eaee83884889ee6ac4519a201b8a9dbba8d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.349139, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__keyword_history_tmp\"", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__pinterest_ads_enabled','pinterest__using_keywords'])) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='keyword_history', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='keyword_history',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "keyword_history"], ["pinterest_ads", "keyword_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.keyword_history"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__keyword_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"pinterest_keyword_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__campaign_history_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__campaign_history_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__campaign_history_tmp"], "alias": "stg_pinterest_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "5b6a9bf5837ebc2d4dd159a63d807e8503355c2bc0208c98cb7454f098d76b0b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.353338, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__campaign_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='campaign_history',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "campaign_history"], ["pinterest_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.campaign_history"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"pinterest_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__ad_group_history_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__ad_group_history_tmp"], "alias": "stg_pinterest_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "c58c95342635ea532e6f961b98253dd897bd040cd06617dd49ec756901ae2465"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.357399, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__ad_group_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_group_history', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='ad_group_history',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "ad_group_history"], ["pinterest_ads", "ad_group_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.ad_group_history"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"pinterest_ad_group_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_pinterest_ads__pin_promotion_history_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__pin_promotion_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__pin_promotion_history_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__pin_promotion_history_tmp"], "alias": "stg_pinterest_ads__pin_promotion_history_tmp", "checksum": {"name": "sha256", "checksum": "38631435f1df88a8bd411c1092b0f92574d90bc030f6b16b359203bd93e77e5c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.361991, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__pin_promotion_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__pinterest_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='pin_promotion_history', \n database_variable='pinterest_database', \n schema_variable='pinterest_schema', \n default_database=target.database,\n default_schema='pinterest_ads',\n default_variable='pin_promotion_history',\n union_schema_variable='pinterest_ads_union_schemas',\n union_database_variable='pinterest_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["pinterest_ads", "pin_promotion_history"], ["pinterest_ads", "pin_promotion_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.pinterest_source.pinterest_ads.pin_promotion_history"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__pin_promotion_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"pinterest_pin_promotion_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__campaign_report_hourly", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__campaign_report_hourly.sql", "original_file_path": "models/stg_tiktok_ads__campaign_report_hourly.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__campaign_report_hourly"], "alias": "stg_tiktok_ads__campaign_report_hourly", "checksum": {"name": "sha256", "checksum": "208f93b3697ff421e31eed25966457f4aa3672d3d4eae4134ae2f06382576c92"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represent data for each campaign for each hour.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign id", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_conversion": {"name": "cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_play_actions": {"name": "video_play_actions", "description": "The number of times your video starts to play. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_rate": {"name": "conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play": {"name": "average_video_play", "description": "The average time your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play_per_user": {"name": "average_video_play_per_user", "description": "The average time per user your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits the ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of new followers that were gained within 1 day of a user seeing a paid ad. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The estimated total amount of money you've spent on your campaign, ad group or ad during its schedule.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.462229, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__campaign_report_hourly\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__campaign_report_hourly_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__campaign_report_hourly_tmp')),\n staging_columns=get_campaign_report_hourly_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='tiktok_ads_union_schemas', \n union_database_variable='tiktok_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n campaign_id,\n cast(stat_time_hour as {{ dbt.type_timestamp() }}) as stat_time_hour,\n cpc, \n cpm,\n ctr,\n coalesce(impressions, 0) as impressions,\n coalesce(clicks, 0) as clicks, \n coalesce(spend, 0) as spend, \n reach,\n coalesce(conversion, 0) as conversion,\n cost_per_conversion,\n conversion_rate,\n coalesce(likes, 0) as likes,\n coalesce(comments, 0) as comments,\n coalesce(shares, 0) as shares,\n coalesce(profile_visits, 0) as profile_visits,\n coalesce(follows, 0) as follows,\n coalesce(video_play_actions, 0) as video_play_actions,\n coalesce(video_watched_2_s, 0) as video_watched_2_s,\n coalesce(video_watched_6_s, 0) as video_watched_6_s,\n coalesce(video_views_p_25, 0) as video_views_p_25,\n coalesce(video_views_p_50, 0) as video_views_p_50,\n coalesce(video_views_p_75, 0) as video_views_p_75,\n average_video_play,\n average_video_play_per_user,\n coalesce(real_time_conversion, 0) as real_time_conversion,\n coalesce(total_purchase_value, 0) as total_purchase_value,\n coalesce(total_sales_lead_value, 0) as total_sales_lead_value\n\n {{ tiktok_ads_fill_pass_through_columns(pass_through_fields=var('tiktok_ads__campaign_hourly_passthrough_metrics'), except_fields=[\"real_time_conversion\", \"total_purchase_value\", \"total_sales_lead_value\"]) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_tiktok_ads__campaign_report_hourly_tmp", "package": null, "version": null}, {"name": "stg_tiktok_ads__campaign_report_hourly_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_campaign_report_hourly_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.tiktok_ads_source.tiktok_ads_fill_pass_through_columns"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__campaign_report_hourly.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__campaign_report_hourly_tmp\"\n), \n\nfields as (\n\n select\n \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n average_video_play\n \n as \n \n average_video_play\n \n, \n \n \n average_video_play_per_user\n \n as \n \n average_video_play_per_user\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n conversion\n \n as \n \n conversion\n \n, \n \n \n conversion_rate\n \n as \n \n conversion_rate\n \n, \n \n \n cost_per_conversion\n \n as \n \n cost_per_conversion\n \n, \n \n \n cpc\n \n as \n \n cpc\n \n, \n \n \n cpm\n \n as \n \n cpm\n \n, \n \n \n ctr\n \n as \n \n ctr\n \n, \n \n \n follows\n \n as \n \n follows\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n likes\n \n as \n \n likes\n \n, \n \n \n profile_visits\n \n as \n \n profile_visits\n \n, \n \n \n reach\n \n as \n \n reach\n \n, \n \n \n real_time_conversion\n \n as \n \n real_time_conversion\n \n, \n \n \n shares\n \n as \n \n shares\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n stat_time_hour\n \n as \n \n stat_time_hour\n \n, \n \n \n total_purchase_value\n \n as \n \n total_purchase_value\n \n, \n \n \n total_sales_lead_value\n \n as \n \n total_sales_lead_value\n \n, \n \n \n video_play_actions\n \n as \n \n video_play_actions\n \n, \n \n \n video_views_p_25\n \n as \n \n video_views_p_25\n \n, \n \n \n video_views_p_50\n \n as \n \n video_views_p_50\n \n, \n \n \n video_views_p_75\n \n as \n \n video_views_p_75\n \n, \n \n \n video_watched_2_s\n \n as \n \n video_watched_2_s\n \n, \n \n \n video_watched_6_s\n \n as \n \n video_watched_6_s\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n campaign_id,\n cast(stat_time_hour as timestamp) as stat_time_hour,\n cpc, \n cpm,\n ctr,\n coalesce(impressions, 0) as impressions,\n coalesce(clicks, 0) as clicks, \n coalesce(spend, 0) as spend, \n reach,\n coalesce(conversion, 0) as conversion,\n cost_per_conversion,\n conversion_rate,\n coalesce(likes, 0) as likes,\n coalesce(comments, 0) as comments,\n coalesce(shares, 0) as shares,\n coalesce(profile_visits, 0) as profile_visits,\n coalesce(follows, 0) as follows,\n coalesce(video_play_actions, 0) as video_play_actions,\n coalesce(video_watched_2_s, 0) as video_watched_2_s,\n coalesce(video_watched_6_s, 0) as video_watched_6_s,\n coalesce(video_views_p_25, 0) as video_views_p_25,\n coalesce(video_views_p_50, 0) as video_views_p_50,\n coalesce(video_views_p_75, 0) as video_views_p_75,\n average_video_play,\n average_video_play_per_user,\n coalesce(real_time_conversion, 0) as real_time_conversion,\n coalesce(total_purchase_value, 0) as total_purchase_value,\n coalesce(total_sales_lead_value, 0) as total_sales_lead_value\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__ad_group_report_hourly", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__ad_group_report_hourly.sql", "original_file_path": "models/stg_tiktok_ads__ad_group_report_hourly.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_group_report_hourly"], "alias": "stg_tiktok_ads__ad_group_report_hourly", "checksum": {"name": "sha256", "checksum": "176d0f532828a1268a4ace344809b4734dd7beb8e7b8ea901d94e7d1d5a20f97"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents data for each ad group for each hour.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group id", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_conversion": {"name": "cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_play_actions": {"name": "video_play_actions", "description": "The number of times your video starts to play. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_rate": {"name": "conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play": {"name": "average_video_play", "description": "The average time your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play_per_user": {"name": "average_video_play_per_user", "description": "The average time per user your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits the ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of new followers that were gained within 1 day of a user seeing a paid ad. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The estimated total amount of money you've spent on your campaign, ad group or ad during its schedule.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.461268, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_group_report_hourly\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__ad_group_report_hourly_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__ad_group_report_hourly_tmp')),\n staging_columns=get_ad_group_report_hourly_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='tiktok_ads_union_schemas', \n union_database_variable='tiktok_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n adgroup_id as ad_group_id,\n cast(stat_time_hour as {{ dbt.type_timestamp() }}) as stat_time_hour, \n cpc, \n cpm, \n ctr, \n coalesce(impressions, 0) as impressions,\n coalesce(clicks, 0) as clicks, \n coalesce(spend, 0) as spend, \n coalesce(reach, 0) as reach, \n coalesce(conversion, 0) as conversion, \n cost_per_conversion, \n conversion_rate, \n coalesce(likes, 0) as likes,\n coalesce(comments, 0) as comments,\n coalesce(shares, 0) as shares,\n coalesce(profile_visits, 0) as profile_visits,\n coalesce(follows, 0) as follows,\n coalesce(video_play_actions, 0) as video_play_actions,\n coalesce(video_watched_2_s, 0) as video_watched_2_s,\n coalesce(video_watched_6_s, 0) as video_watched_6_s,\n coalesce(video_views_p_25, 0) as video_views_p_25,\n coalesce(video_views_p_50, 0) as video_views_p_50,\n coalesce(video_views_p_75, 0) as video_views_p_75,\n average_video_play, \n average_video_play_per_user,\n coalesce(real_time_conversion, 0) as real_time_conversion,\n coalesce(total_purchase_value, 0) as total_purchase_value,\n coalesce(total_sales_lead_value, 0) as total_sales_lead_value\n\n {{ tiktok_ads_fill_pass_through_columns(pass_through_fields=var('tiktok_ads__ad_group_hourly_passthrough_metrics'), except_fields=[\"real_time_conversion\", \"total_purchase_value\", \"total_sales_lead_value\"]) }}\n\n from fields\n) \n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_group_report_hourly_tmp", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_group_report_hourly_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_group_report_hourly_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.tiktok_ads_source.tiktok_ads_fill_pass_through_columns"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_group_report_hourly.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_group_report_hourly_tmp\"\n), \n\nfields as (\n\n select\n \n \n \n adgroup_id\n \n as \n \n adgroup_id\n \n, \n \n \n average_video_play\n \n as \n \n average_video_play\n \n, \n \n \n average_video_play_per_user\n \n as \n \n average_video_play_per_user\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n conversion\n \n as \n \n conversion\n \n, \n \n \n conversion_rate\n \n as \n \n conversion_rate\n \n, \n \n \n cost_per_conversion\n \n as \n \n cost_per_conversion\n \n, \n \n \n cpc\n \n as \n \n cpc\n \n, \n \n \n cpm\n \n as \n \n cpm\n \n, \n \n \n ctr\n \n as \n \n ctr\n \n, \n \n \n follows\n \n as \n \n follows\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n likes\n \n as \n \n likes\n \n, \n \n \n profile_visits\n \n as \n \n profile_visits\n \n, \n \n \n reach\n \n as \n \n reach\n \n, \n \n \n real_time_conversion\n \n as \n \n real_time_conversion\n \n, \n \n \n shares\n \n as \n \n shares\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n stat_time_hour\n \n as \n \n stat_time_hour\n \n, \n \n \n total_purchase_value\n \n as \n \n total_purchase_value\n \n, \n \n \n total_sales_lead_value\n \n as \n \n total_sales_lead_value\n \n, \n \n \n video_play_actions\n \n as \n \n video_play_actions\n \n, \n \n \n video_views_p_25\n \n as \n \n video_views_p_25\n \n, \n \n \n video_views_p_50\n \n as \n \n video_views_p_50\n \n, \n \n \n video_views_p_75\n \n as \n \n video_views_p_75\n \n, \n \n \n video_watched_2_s\n \n as \n \n video_watched_2_s\n \n, \n \n \n video_watched_6_s\n \n as \n \n video_watched_6_s\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n adgroup_id as ad_group_id,\n cast(stat_time_hour as timestamp) as stat_time_hour, \n cpc, \n cpm, \n ctr, \n coalesce(impressions, 0) as impressions,\n coalesce(clicks, 0) as clicks, \n coalesce(spend, 0) as spend, \n coalesce(reach, 0) as reach, \n coalesce(conversion, 0) as conversion, \n cost_per_conversion, \n conversion_rate, \n coalesce(likes, 0) as likes,\n coalesce(comments, 0) as comments,\n coalesce(shares, 0) as shares,\n coalesce(profile_visits, 0) as profile_visits,\n coalesce(follows, 0) as follows,\n coalesce(video_play_actions, 0) as video_play_actions,\n coalesce(video_watched_2_s, 0) as video_watched_2_s,\n coalesce(video_watched_6_s, 0) as video_watched_6_s,\n coalesce(video_views_p_25, 0) as video_views_p_25,\n coalesce(video_views_p_50, 0) as video_views_p_50,\n coalesce(video_views_p_75, 0) as video_views_p_75,\n average_video_play, \n average_video_play_per_user,\n coalesce(real_time_conversion, 0) as real_time_conversion,\n coalesce(total_purchase_value, 0) as total_purchase_value,\n coalesce(total_sales_lead_value, 0) as total_sales_lead_value\n\n \n\n\n\n\n\n from fields\n) \n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__ad_group_history", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__ad_group_history.sql", "original_file_path": "models/stg_tiktok_ads__ad_group_history.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_group_history"], "alias": "stg_tiktok_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "6a81fc82a9d9dd239daf78746fc82bedc4e03ac67ae6a1229dcbaa6a7b0673d3"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents data for each ad group.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "action_categories": {"name": "action_categories", "description": "IDs of the action categories (behaviors) that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The Ad group's campaign ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "action_days": {"name": "action_days", "description": "Action days", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name. Character limit is 512 and cannot contain emoji.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_groups": {"name": "age_groups", "description": "Age groups you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget": {"name": "budget", "description": "Ad budget. Returns 0.0 when Campaign Budget Optimization (budget_optimize_switch) is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Display name of ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "interest_category": {"name": "interest_category", "description": "Interest classification. If the interest is specified, users that do not meet interest target will be excluded during delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "frequency, together with frequency_schedule, controls how often people see your ad (only available for REACH ads). For example, frequency = 2 frequency_schedule = 3 means \"show ads no more than twice every 3 day\".\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency_schedule": {"name": "frequency_schedule", "description": "frequency, together with frequency, controls how often people see your ad (only available for REACH ads).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "landing_page_url": {"name": "landing_page_url", "description": "Landing page URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "languages": {"name": "languages", "description": "Codes of the languages that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Whether record is the most recent one for this particular grain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.458142, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_group_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__ad_group_history_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__ad_group_history_tmp')),\n staging_columns=get_ad_group_history_columns()\n )\n }}\n\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='tiktok_ads_union_schemas', \n union_database_variable='tiktok_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation,\n adgroup_id as ad_group_id,\n cast(updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n advertiser_id,\n campaign_id,\n action_days,\n action_categories,\n adgroup_name as ad_group_name,\n age_groups,\n audience_type,\n budget,\n category,\n display_name,\n interest_category_v_2 as interest_category,\n frequency,\n frequency_schedule,\n gender,\n languages, \n landing_page_url,\n row_number() over (partition by source_relation, adgroup_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_group_history_tmp", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_group_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_group_history_tmp\"\n), \n\nfields as (\n\n select\n \n \n \n action_days\n \n as \n \n action_days\n \n, \n \n \n adgroup_id\n \n as \n \n adgroup_id\n \n, \n \n \n adgroup_name\n \n as \n \n adgroup_name\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n audience_type\n \n as \n \n audience_type\n \n, \n \n \n budget\n \n as \n \n budget\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n category\n \n as \n \n category\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n frequency_schedule\n \n as \n \n frequency_schedule\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n landing_page_url\n \n as \n \n landing_page_url\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n interest_category_v_2\n \n as \n \n interest_category_v_2\n \n, \n \n \n action_categories\n \n as \n \n action_categories\n \n, \n \n \n age_groups\n \n as \n \n age_groups\n \n, \n \n \n languages\n \n as \n \n languages\n \n\n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation,\n adgroup_id as ad_group_id,\n cast(updated_at as timestamp) as updated_at,\n advertiser_id,\n campaign_id,\n action_days,\n action_categories,\n adgroup_name as ad_group_name,\n age_groups,\n audience_type,\n budget,\n category,\n display_name,\n interest_category_v_2 as interest_category,\n frequency,\n frequency_schedule,\n gender,\n languages, \n landing_page_url,\n row_number() over (partition by source_relation, adgroup_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__ad_report_hourly", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__ad_report_hourly.sql", "original_file_path": "models/stg_tiktok_ads__ad_report_hourly.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_report_hourly"], "alias": "stg_tiktok_ads__ad_report_hourly", "checksum": {"name": "sha256", "checksum": "172f3488132a484da97603092812ea7438e6c454b19a09492466f775cf189f17"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents data for each ad for each hour.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad id", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_conversion": {"name": "cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_play_actions": {"name": "video_play_actions", "description": "The number of times your video starts to play. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_rate": {"name": "conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play": {"name": "average_video_play", "description": "The average time your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play_per_user": {"name": "average_video_play_per_user", "description": "The average time per user your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits the ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of new followers that were gained within 1 day of a user seeing a paid ad. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The estimated total amount of money you've spent on your campaign, ad group or ad during its schedule.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.460325, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_report_hourly\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__ad_report_hourly_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__ad_report_hourly_tmp')),\n staging_columns=get_ad_report_hourly_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='tiktok_ads_union_schemas', \n union_database_variable='tiktok_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n ad_id, \n cast(stat_time_hour as {{ dbt.type_timestamp() }}) as stat_time_hour, \n cpc, \n cpm, \n ctr, \n coalesce(impressions, 0) as impressions,\n coalesce(clicks, 0) as clicks, \n coalesce(spend, 0) as spend, \n reach, \n coalesce(conversion, 0) as conversion,\n cost_per_conversion, \n conversion_rate, \n coalesce(likes, 0) as likes,\n coalesce(comments, 0) as comments,\n coalesce(shares, 0) as shares,\n coalesce(profile_visits, 0) as profile_visits,\n coalesce(follows, 0) as follows,\n coalesce(video_play_actions, 0) as video_play_actions,\n coalesce(video_watched_2_s, 0) as video_watched_2_s,\n coalesce(video_watched_6_s, 0) as video_watched_6_s,\n coalesce(video_views_p_25, 0) as video_views_p_25,\n coalesce(video_views_p_50, 0) as video_views_p_50,\n coalesce(video_views_p_75, 0) as video_views_p_75,\n average_video_play, \n average_video_play_per_user,\n coalesce(real_time_conversion, 0) as real_time_conversion,\n coalesce(total_purchase_value, 0) as total_purchase_value,\n coalesce(total_sales_lead_value, 0) as total_sales_lead_value\n\n {{ tiktok_ads_fill_pass_through_columns(pass_through_fields=var('tiktok_ads__ad_hourly_passthrough_metrics'), except_fields=[\"real_time_conversion\", \"total_purchase_value\", \"total_sales_lead_value\"]) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_report_hourly_tmp", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_report_hourly_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_report_hourly_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.tiktok_ads_source.tiktok_ads_fill_pass_through_columns"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_report_hourly.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_report_hourly_tmp\"\n), \n\nfields as (\n\n select\n \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n average_video_play\n \n as \n \n average_video_play\n \n, \n \n \n average_video_play_per_user\n \n as \n \n average_video_play_per_user\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n conversion\n \n as \n \n conversion\n \n, \n \n \n conversion_rate\n \n as \n \n conversion_rate\n \n, \n \n \n cost_per_conversion\n \n as \n \n cost_per_conversion\n \n, \n \n \n cpc\n \n as \n \n cpc\n \n, \n \n \n cpm\n \n as \n \n cpm\n \n, \n \n \n ctr\n \n as \n \n ctr\n \n, \n \n \n follows\n \n as \n \n follows\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n likes\n \n as \n \n likes\n \n, \n \n \n profile_visits\n \n as \n \n profile_visits\n \n, \n \n \n real_time_conversion\n \n as \n \n real_time_conversion\n \n, \n \n \n reach\n \n as \n \n reach\n \n, \n \n \n shares\n \n as \n \n shares\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n stat_time_hour\n \n as \n \n stat_time_hour\n \n, \n \n \n total_purchase_value\n \n as \n \n total_purchase_value\n \n, \n \n \n total_sales_lead_value\n \n as \n \n total_sales_lead_value\n \n, \n \n \n video_play_actions\n \n as \n \n video_play_actions\n \n, \n \n \n video_views_p_25\n \n as \n \n video_views_p_25\n \n, \n \n \n video_views_p_50\n \n as \n \n video_views_p_50\n \n, \n \n \n video_views_p_75\n \n as \n \n video_views_p_75\n \n, \n \n \n video_watched_2_s\n \n as \n \n video_watched_2_s\n \n, \n \n \n video_watched_6_s\n \n as \n \n video_watched_6_s\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n ad_id, \n cast(stat_time_hour as timestamp) as stat_time_hour, \n cpc, \n cpm, \n ctr, \n coalesce(impressions, 0) as impressions,\n coalesce(clicks, 0) as clicks, \n coalesce(spend, 0) as spend, \n reach, \n coalesce(conversion, 0) as conversion,\n cost_per_conversion, \n conversion_rate, \n coalesce(likes, 0) as likes,\n coalesce(comments, 0) as comments,\n coalesce(shares, 0) as shares,\n coalesce(profile_visits, 0) as profile_visits,\n coalesce(follows, 0) as follows,\n coalesce(video_play_actions, 0) as video_play_actions,\n coalesce(video_watched_2_s, 0) as video_watched_2_s,\n coalesce(video_watched_6_s, 0) as video_watched_6_s,\n coalesce(video_views_p_25, 0) as video_views_p_25,\n coalesce(video_views_p_50, 0) as video_views_p_50,\n coalesce(video_views_p_75, 0) as video_views_p_75,\n average_video_play, \n average_video_play_per_user,\n coalesce(real_time_conversion, 0) as real_time_conversion,\n coalesce(total_purchase_value, 0) as total_purchase_value,\n coalesce(total_sales_lead_value, 0) as total_sales_lead_value\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__advertiser", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__advertiser.sql", "original_file_path": "models/stg_tiktok_ads__advertiser.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__advertiser"], "alias": "stg_tiktok_ads__advertiser", "checksum": {"name": "sha256", "checksum": "f8b5e247fa25556620ed659ae7de05e559ffbfa05cd0788c583bd3ae4256b401"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents data for each advertiser.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "address": {"name": "address", "description": "Advertiser address information", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Account available balance", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company": {"name": "company", "description": "Advertiser's company name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contacter": {"name": "contacter", "description": "Contact Person", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The advertiser's country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "create_time": {"name": "create_time", "description": "Advertiser's create time", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Type of currency used by advertisers", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Brand description, i.e. promotional content", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email": {"name": "email", "description": "Advertiser contact email, desensitised data", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "industry": {"name": "industry", "description": "Advertiser industry category", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "Language used by advertisers", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "license_no": {"name": "license_no", "description": "License number", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "license_url": {"name": "license_url", "description": "License preview address, the link is valid for an hour by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_name": {"name": "advertiser_name", "description": "Advertiser name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cellphone_number": {"name": "cellphone_number", "description": "Contact mobile number, desensitised data", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "telephone_number": {"name": "telephone_number", "description": "Fixed phone number, desensitised data", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Ad account time zone including GMT offset", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.457182, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__advertiser\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__advertiser_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__advertiser_tmp')),\n staging_columns=get_advertiser_columns()\n )\n }}\n\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='tiktok_ads_union_schemas', \n union_database_variable='tiktok_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as advertiser_id, \n address, \n balance, \n company, \n contacter, \n country, \n currency, \n description, \n email, \n industry, \n language,\n name as advertiser_name, \n coalesce(cellphone_number, phone_number) as cellphone_number, \n coalesce(telephone_number, telephone) as telephone_number,\n timezone\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_tiktok_ads__advertiser_tmp", "package": null, "version": null}, {"name": "stg_tiktok_ads__advertiser_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_advertiser_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__advertiser.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__advertiser_tmp\"\n), \n\nfields as (\n\n select\n \n \n \n address\n \n as \n \n address\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n cellphone_number\n \n as \n \n cellphone_number\n \n, \n \n \n company\n \n as \n \n company\n \n, \n \n \n contacter\n \n as \n \n contacter\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n industry\n \n as \n \n industry\n \n, \n \n \n language\n \n as \n \n language\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as TEXT) as \n \n phone_number\n \n , \n cast(null as TEXT) as \n \n telephone\n \n , \n \n \n telephone_number\n \n as \n \n telephone_number\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n\n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as advertiser_id, \n address, \n balance, \n company, \n contacter, \n country, \n currency, \n description, \n email, \n industry, \n language,\n name as advertiser_name, \n coalesce(cellphone_number, phone_number) as cellphone_number, \n coalesce(telephone_number, telephone) as telephone_number,\n timezone\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__ad_history", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__ad_history.sql", "original_file_path": "models/stg_tiktok_ads__ad_history.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_history"], "alias": "stg_tiktok_ads__ad_history", "checksum": {"name": "sha256", "checksum": "366a9f7f32faff70cbb98e3a4f4280c023c0913c956fe2890bacefbb13e0674c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents data for each ad.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `landing page url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad Name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "call_to_action": {"name": "call_to_action", "description": "Call to action values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_tracking_url": {"name": "click_tracking_url", "description": "Click monitoring URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_tracking_url": {"name": "impression_tracking_url", "description": "Display monitoring URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "landing_page_url": {"name": "landing_page_url", "description": "Landing page URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `landing_page_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `landing_page_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `landing_page_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `landing_page_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `landing_page_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `landing_page_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `landing_page_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Whether record is the most recent one for this particular grain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.458875, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__ad_history_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__ad_history_tmp')),\n staging_columns=get_ad_history_columns()\n )\n }}\n\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='tiktok_ads_union_schemas', \n union_database_variable='tiktok_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n ad_id,\n cast(updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n adgroup_id as ad_group_id,\n advertiser_id,\n campaign_id,\n ad_name,\n call_to_action,\n click_tracking_url,\n impression_tracking_url,\n {{ dbt.split_part('landing_page_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('landing_page_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('landing_page_url') }} as url_path,\n {{ tiktok_ads_source.tiktok_ads_extract_url_parameter('landing_page_url', 'utm_source') }} as utm_source,\n {{ tiktok_ads_source.tiktok_ads_extract_url_parameter('landing_page_url', 'utm_medium') }} as utm_medium,\n {{ tiktok_ads_source.tiktok_ads_extract_url_parameter('landing_page_url', 'utm_campaign') }} as utm_campaign,\n {{ tiktok_ads_source.tiktok_ads_extract_url_parameter('landing_page_url', 'utm_content') }} as utm_content,\n {{ tiktok_ads_source.tiktok_ads_extract_url_parameter('landing_page_url', 'utm_term') }} as utm_term,\n landing_page_url,\n row_number() over (partition by source_relation, ad_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_history_tmp", "package": null, "version": null}, {"name": "stg_tiktok_ads__ad_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.tiktok_ads_source.tiktok_ads_extract_url_parameter"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_history_tmp\"\n), \n\nfields as (\n\n select\n \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n ad_name\n \n as \n \n ad_name\n \n, \n \n \n adgroup_id\n \n as \n \n adgroup_id\n \n, \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n call_to_action\n \n as \n \n call_to_action\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n click_tracking_url\n \n as \n \n click_tracking_url\n \n, \n \n \n impression_tracking_url\n \n as \n \n impression_tracking_url\n \n, \n \n \n landing_page_url\n \n as \n \n landing_page_url\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n ad_id,\n cast(updated_at as timestamp) as updated_at,\n adgroup_id as ad_group_id,\n advertiser_id,\n campaign_id,\n ad_name,\n call_to_action,\n click_tracking_url,\n impression_tracking_url,\n \n\n \n \n\n split_part(\n landing_page_url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n landing_page_url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_source,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n landing_page_url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_medium,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n landing_page_url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_campaign,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n landing_page_url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_content,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n landing_page_url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_term,\n landing_page_url,\n row_number() over (partition by source_relation, ad_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__campaign_history", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__campaign_history.sql", "original_file_path": "models/stg_tiktok_ads__campaign_history.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__campaign_history"], "alias": "stg_tiktok_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "3ea23a6b39aec6781f4fc1d4d47bf74f479ef708034d3e04be8125c4d26c2e36"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents data for each campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_type": {"name": "campaign_type", "description": "Campaign Type, indicates the campaign is a regular campaign or iOS 14 campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "split_test_variable": {"name": "split_test_variable", "description": "Split Test variables. Optional values; TARGETING, BIDDING_OPTIMIZATION , CREATIVE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Whether record is the most recent one for this particular grain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "tiktok_ads_source://models/stg_tiktok_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.4593449, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__campaign_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__campaign_history_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='tiktok_ads_union_schemas', \n union_database_variable='tiktok_ads_union_databases') \n }}\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n campaign_id,\n cast(updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n advertiser_id,\n campaign_name,\n campaign_type,\n split_test_variable,\n row_number() over (partition by source_relation, campaign_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_tiktok_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_tiktok_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__campaign_history_tmp\"\n), \n\nfields as (\n\n select\n \n \n \n advertiser_id\n \n as \n \n advertiser_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n cast(null as TEXT) as \n \n campaign_name\n \n , \n cast(null as TEXT) as \n \n campaign_type\n \n , \n cast(null as TEXT) as \n \n split_test_variable\n \n , \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n), \n\nfinal as (\n\n select\n source_relation, \n campaign_id,\n cast(updated_at as timestamp) as updated_at,\n advertiser_id,\n campaign_name,\n campaign_type,\n split_test_variable,\n row_number() over (partition by source_relation, campaign_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__ad_report_hourly_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__ad_report_hourly_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__ad_report_hourly_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_report_hourly_tmp"], "alias": "stg_tiktok_ads__ad_report_hourly_tmp", "checksum": {"name": "sha256", "checksum": "d814023272131a2935e529ce3d3cd8f97e28bcc142b27f0cbf8cc281889b9400"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462184.504952, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_report_hourly_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_report_hourly', \n database_variable='tiktok_ads_database', \n schema_variable='tiktok_ads_schema', \n default_database=target.database,\n default_schema='tiktok_ads',\n default_variable='ad_report_hourly',\n union_schema_variable='tiktok_ads_union_schemas',\n union_database_variable='tiktok_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["tiktok_ads", "ad_report_hourly"], ["tiktok_ads", "ad_report_hourly"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.tiktok_ads_source.tiktok_ads.ad_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_report_hourly_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"tiktok_ad_report_hourly_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__ad_history_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__ad_history_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_history_tmp"], "alias": "stg_tiktok_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "d302caf66e9dae0aa86dd7a4bd5dc2d494246f66ca1b3017fa941135d4fcfb07"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462184.509143, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_history', \n database_variable='tiktok_ads_database', \n schema_variable='tiktok_ads_schema', \n default_database=target.database,\n default_schema='tiktok_ads',\n default_variable='ad_history',\n union_schema_variable='tiktok_ads_union_schemas',\n union_database_variable='tiktok_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["tiktok_ads", "ad_history"], ["tiktok_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.tiktok_ads_source.tiktok_ads.ad_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"tiktok_ad_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__ad_group_history_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_group_history_tmp"], "alias": "stg_tiktok_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "500dc2e29e27a02a4f259d87063cf556d69b605a34d43eab7d6a5cf4fc18f303"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462184.513248, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_group_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='adgroup_history', \n database_variable='tiktok_ads_database', \n schema_variable='tiktok_ads_schema', \n default_database=target.database,\n default_schema='tiktok_ads',\n default_variable='adgroup_history',\n union_schema_variable='tiktok_ads_union_schemas',\n union_database_variable='tiktok_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["tiktok_ads", "adgroup_history"], ["tiktok_ads", "adgroup_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.tiktok_ads_source.tiktok_ads.adgroup_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"tiktok_adgroup_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__campaign_report_hourly_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__campaign_report_hourly_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__campaign_report_hourly_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__campaign_report_hourly_tmp"], "alias": "stg_tiktok_ads__campaign_report_hourly_tmp", "checksum": {"name": "sha256", "checksum": "2ba1f021a1b7d5713f191cd109e848d506dd1f5551997483d3359859452c3e5a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462184.518045, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__campaign_report_hourly_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_report_hourly', \n database_variable='tiktok_ads_database', \n schema_variable='tiktok_ads_schema', \n default_database=target.database,\n default_schema='tiktok_ads',\n default_variable='campaign_report_hourly',\n union_schema_variable='tiktok_ads_union_schemas',\n union_database_variable='tiktok_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["tiktok_ads", "campaign_report_hourly"], ["tiktok_ads", "campaign_report_hourly"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.tiktok_ads_source.tiktok_ads.campaign_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__campaign_report_hourly_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"tiktok_campaign_report_hourly_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__ad_group_report_hourly_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__ad_group_report_hourly_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__ad_group_report_hourly_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_group_report_hourly_tmp"], "alias": "stg_tiktok_ads__ad_group_report_hourly_tmp", "checksum": {"name": "sha256", "checksum": "487acd70d5715c9f881780bc93c5cb4f011c4fa651ca7182d3109fbf7f0be055"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462184.52212, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_group_report_hourly_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='adgroup_report_hourly', \n database_variable='tiktok_ads_database', \n schema_variable='tiktok_ads_schema', \n default_database=target.database,\n default_schema='tiktok_ads',\n default_variable='adgroup_report_hourly',\n union_schema_variable='tiktok_ads_union_schemas',\n union_database_variable='tiktok_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["tiktok_ads", "adgroup_report_hourly"], ["tiktok_ads", "adgroup_report_hourly"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_group_report_hourly_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"tiktok_adgroup_report_hourly_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__campaign_history_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__campaign_history_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__campaign_history_tmp"], "alias": "stg_tiktok_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "d03040995c56c71b1e8348a27eaf677b13e3d2d5e6c8220ee0aa7dc283ce0396"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462184.526197, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__campaign_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='tiktok_ads_database', \n schema_variable='tiktok_ads_schema', \n default_database=target.database,\n default_schema='tiktok_ads',\n default_variable='campaign_history',\n union_schema_variable='tiktok_ads_union_schemas',\n union_database_variable='tiktok_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["tiktok_ads", "campaign_history"], ["tiktok_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.tiktok_ads_source.tiktok_ads.campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"tiktok_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_tiktok_ads__advertiser_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__advertiser_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__advertiser_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__advertiser_tmp"], "alias": "stg_tiktok_ads__advertiser_tmp", "checksum": {"name": "sha256", "checksum": "5e7939bfa9f2faf4d8b83626a7fb9e43bbbe764da901a724dcb7041ad87f796e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462184.530886, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__advertiser_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='advertiser', \n database_variable='tiktok_ads_database', \n schema_variable='tiktok_ads_schema', \n default_database=target.database,\n default_schema='tiktok_ads',\n default_variable='advertiser',\n union_schema_variable='tiktok_ads_union_schemas',\n union_database_variable='tiktok_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["tiktok_ads", "advertiser"], ["tiktok_ads", "advertiser"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.tiktok_ads_source.tiktok_ads.advertiser"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__advertiser_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"tiktok_advertiser_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_actions", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__basic_ad_actions.sql", "original_file_path": "models/stg_facebook_ads__basic_ad_actions.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions", "fqn": ["facebook_ads_source", "stg_facebook_ads__basic_ad_actions"], "alias": "stg_facebook_ads__basic_ad_actions", "checksum": {"name": "sha256", "checksum": "e818ceb4efda63d0e63702e250b413f316697daf8dfb47a8ed1851b7488bc5fa"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily conversion performance of an ad in Facebook. This is the prebuilt `basic_ad` report broken down by `action_type`. Include more conversion value metrics by configuring the `facebook_ads__basic_ad_actions_passthrough_metrics` variable.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "action_type": {"name": "action_type", "description": "The kind of actions taken on your ad, Page, app or event after your ad was served to someone, even if they didn't click on it. Action types include Page likes, app installs, conversions, event responses and more. Actions prepended by app_custom_event come from mobile app events and actions prepended by offsite_conversion come from the Facebook Pixel.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the reported performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Conversion metric value using the default attribution window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.504937, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad_actions\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_facebook_ads__basic_ad_actions_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_facebook_ads__basic_ad_actions_tmp')),\n staging_columns=get_basic_ad_actions_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='facebook_ads_union_schemas', \n union_database_variable='facebook_ads_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n lower(action_type) as action_type,\n cast(ad_id as {{ dbt.type_bigint() }}) as ad_id,\n date as date_day,\n cast(coalesce(value, 0) as {{ dbt.type_float() }}) as conversions\n\n {{ facebook_ads_fill_pass_through_columns(var('facebook_ads__basic_ad_actions_passthrough_metrics')) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad_actions_tmp", "package": null, "version": null}, {"name": "stg_facebook_ads__basic_ad_actions_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_basic_ad_actions_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_bigint", "macro.dbt.type_float", "macro.facebook_ads_source.facebook_ads_fill_pass_through_columns"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__basic_ad_actions.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad_actions_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n action_type\n \n as \n \n action_type\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n lower(action_type) as action_type,\n cast(ad_id as bigint) as ad_id,\n date as date_day,\n cast(coalesce(value, 0) as float) as conversions\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__basic_ad": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__basic_ad.sql", "original_file_path": "models/stg_facebook_ads__basic_ad.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad", "fqn": ["facebook_ads_source", "stg_facebook_ads__basic_ad"], "alias": "stg_facebook_ads__basic_ad", "checksum": {"name": "sha256", "checksum": "c34825894fe1dfad9fdad1646831f7e43739a2f725193f88f2b06741665c9a1c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily performance of an ad in Facebook.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of the ad the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "Name of the ad set the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the reported performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of people who saw any content from your Page or about your Page. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The average number of times each person saw your ad; it is calculated as impressions divided by reach.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.504427, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_facebook_ads__basic_ad_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_facebook_ads__basic_ad_tmp')),\n staging_columns=get_basic_ad_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='facebook_ads_union_schemas', \n union_database_variable='facebook_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_id as {{ dbt.type_bigint() }}) as ad_id,\n ad_name,\n adset_name as ad_set_name,\n date as date_day,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n impressions,\n coalesce(inline_link_clicks,0) as clicks,\n spend\n\n {# \n Reach and Frequency are not included in downstream models by default, though they are included in the staging model.\n The below ensures that users can add Reach and Frequency to downstream models with the `facebook_ads__basic_ad_passthrough_metrics` variable\n while avoiding duplicate column errors.\n #}\n {%- set check = [] %}\n {%- for field in var('facebook_ads__basic_ad_passthrough_metrics') -%}\n {%- set field_name = field.alias|default(field.name)|lower %}\n {% if field_name in ['reach', 'frequency'] %}\n {% do check.append(field_name) %}\n {% endif %}\n {%- endfor %}\n\n {%- for metric in ['reach', 'frequency'] -%}\n {% if metric not in check %}\n , {{ metric }}\n {% endif %}\n {%- endfor %}\n\n {{ fivetran_utils.fill_pass_through_columns('facebook_ads__basic_ad_passthrough_metrics') }}\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad_tmp", "package": null, "version": null}, {"name": "stg_facebook_ads__basic_ad_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_basic_ad_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_bigint", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__basic_ad.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n cast(null as TEXT) as \n \n ad_name\n \n , \n cast(null as TEXT) as \n \n adset_name\n \n , \n \n \n date\n \n as \n \n date\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n inline_link_clicks\n \n as \n \n inline_link_clicks\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n cast(null as integer) as \n \n reach\n \n , \n cast(null as float) as \n \n frequency\n \n \n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(ad_id as bigint) as ad_id,\n ad_name,\n adset_name as ad_set_name,\n date as date_day,\n cast(account_id as bigint) as account_id,\n impressions,\n coalesce(inline_link_clicks,0) as clicks,\n spend\n\n \n , reach\n \n , frequency\n \n\n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_action_values", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__basic_ad_action_values.sql", "original_file_path": "models/stg_facebook_ads__basic_ad_action_values.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values", "fqn": ["facebook_ads_source", "stg_facebook_ads__basic_ad_action_values"], "alias": "stg_facebook_ads__basic_ad_action_values", "checksum": {"name": "sha256", "checksum": "efdeed5a778c5ce9558dd31aff4e95cb35d64b260b58eb271cf9c31f4a008118"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the daily conversion values associated with an ad in Facebook. This is the prebuilt `basic_ad` report broken down by `action_type` and `action_values` Include more conversion value metrics by configuring the `facebook_ads__basic_ad_action_values_passthrough_metrics` variable.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "action_type": {"name": "action_type", "description": "The kind of actions taken on your ad, Page, app or event after your ad was served to someone, even if they didn't click on it. Action types include Page likes, app installs, conversions, event responses and more. Actions prepended by app_custom_event come from mobile app events and actions prepended by offsite_conversion come from the Facebook Pixel.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the reported performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "Monetary value associated with the conversion action using the default attribution window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.505302, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad_action_values\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_facebook_ads__basic_ad_action_values_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_facebook_ads__basic_ad_action_values_tmp')),\n staging_columns=get_basic_ad_action_values_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='facebook_ads_union_schemas', \n union_database_variable='facebook_ads_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n lower(action_type) as action_type,\n cast(ad_id as {{ dbt.type_bigint() }}) as ad_id,\n date as date_day,\n cast(coalesce(value, 0) as {{ dbt.type_float() }}) as conversions_value\n\n {{ facebook_ads_fill_pass_through_columns(var('facebook_ads__basic_ad_action_values_passthrough_metrics')) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad_action_values_tmp", "package": null, "version": null}, {"name": "stg_facebook_ads__basic_ad_action_values_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_basic_ad_action_values_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_bigint", "macro.dbt.type_float", "macro.facebook_ads_source.facebook_ads_fill_pass_through_columns"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__basic_ad_action_values.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad_action_values_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n action_type\n \n as \n \n action_type\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n lower(action_type) as action_type,\n cast(ad_id as bigint) as ad_id,\n date as date_day,\n cast(coalesce(value, 0) as float) as conversions_value\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__creative_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__creative_history", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__creative_history.sql", "original_file_path": "models/stg_facebook_ads__creative_history.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history", "fqn": ["facebook_ads_source", "stg_facebook_ads__creative_history"], "alias": "stg_facebook_ads__creative_history", "checksum": {"name": "sha256", "checksum": "d142201b0fd0aa56c22825ff8cfecee3a40846d787bced4347f9a6a8005ac13f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table reflects a Facebook creative.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "Unique record identifier", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "Unique ID for an ad creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Ad account ID for the account this ad creative belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_name": {"name": "creative_name", "description": "Name of this ad creative as seen in the ad account's library.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_tags": {"name": "url_tags", "description": "A set of query string parameters which will replace or be appended to urls clicked from page post ads, message of the post, and canvas app install creatives only.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Indicates whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_link": {"name": "page_link", "description": "Link for the page.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_page_link": {"name": "template_page_link", "description": "URL destination of Facebook dynamic ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "asset_feed_spec_link_urls": {"name": "asset_feed_spec_link_urls", "description": "Link to the asset feed spec", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_child_attachments": {"name": "object_story_link_data_child_attachments", "description": "Link of the object story child attachments", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_caption": {"name": "object_story_link_data_caption", "description": "Link of the object story caption", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_description": {"name": "object_story_link_data_description", "description": "Link of the object story description", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_link": {"name": "object_story_link_data_link", "description": "Link of the object story link", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_message": {"name": "object_story_link_data_message", "description": "Link of the object story message", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_app_link_spec_ios": {"name": "template_app_link_spec_ios", "description": "Link of the object story spec for ios", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_app_link_spec_ipad": {"name": "template_app_link_spec_ipad", "description": "Link of the template app spec for ipad", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_app_link_spec_android": {"name": "template_app_link_spec_android", "description": "Link of the template app for android", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_app_link_spec_iphone": {"name": "template_app_link_spec_iphone", "description": "Link of the template app for iphone", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.5038831, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__creative_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_facebook_ads__creative_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_facebook_ads__creative_history_tmp')),\n staging_columns=get_creative_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='facebook_ads_union_schemas', \n union_database_variable='facebook_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n _fivetran_id,\n _fivetran_synced,\n cast(id as {{ dbt.type_bigint() }}) as creative_id,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n name as creative_name,\n page_link,\n template_page_link,\n url_tags,\n asset_feed_spec_link_urls,\n object_story_link_data_child_attachments,\n object_story_link_data_caption, \n object_story_link_data_description, \n object_story_link_data_link, \n object_story_link_data_message,\n template_app_link_spec_ios,\n template_app_link_spec_ipad,\n template_app_link_spec_android,\n template_app_link_spec_iphone,\n case when id is null and _fivetran_synced is null \n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by _fivetran_synced desc) end = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_facebook_ads__creative_history_tmp", "package": null, "version": null}, {"name": "stg_facebook_ads__creative_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_creative_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__creative_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__creative_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n page_link\n \n as \n \n page_link\n \n, \n \n \n template_page_link\n \n as \n \n template_page_link\n \n, \n \n \n url_tags\n \n as \n \n url_tags\n \n, \n \n \n asset_feed_spec_link_urls\n \n as \n \n asset_feed_spec_link_urls\n \n, \n \n \n object_story_link_data_child_attachments\n \n as \n \n object_story_link_data_child_attachments\n \n, \n \n \n object_story_link_data_caption\n \n as \n \n object_story_link_data_caption\n \n, \n \n \n object_story_link_data_description\n \n as \n \n object_story_link_data_description\n \n, \n \n \n object_story_link_data_link\n \n as \n \n object_story_link_data_link\n \n, \n \n \n object_story_link_data_message\n \n as \n \n object_story_link_data_message\n \n, \n cast(null as TEXT) as \n \n template_app_link_spec_android\n \n , \n \n \n template_app_link_spec_ios\n \n as \n \n template_app_link_spec_ios\n \n, \n cast(null as TEXT) as \n \n template_app_link_spec_ipad\n \n , \n cast(null as TEXT) as \n \n template_app_link_spec_iphone\n \n \n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n _fivetran_id,\n _fivetran_synced,\n cast(id as bigint) as creative_id,\n cast(account_id as bigint) as account_id,\n name as creative_name,\n page_link,\n template_page_link,\n url_tags,\n asset_feed_spec_link_urls,\n object_story_link_data_child_attachments,\n object_story_link_data_caption, \n object_story_link_data_description, \n object_story_link_data_link, \n object_story_link_data_message,\n template_app_link_spec_ios,\n template_app_link_spec_ipad,\n template_app_link_spec_android,\n template_app_link_spec_iphone,\n case when id is null and _fivetran_synced is null \n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by _fivetran_synced desc) end = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__campaign_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__campaign_history", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__campaign_history.sql", "original_file_path": "models/stg_facebook_ads__campaign_history.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history", "fqn": ["facebook_ads_source", "stg_facebook_ads__campaign_history"], "alias": "stg_facebook_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "6b57397a47e657006bdb39472b92fd97f4144a7a28bd7912e99f3ca5bd65af7e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table reflects a Facebook campaign.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this campaign belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record. All records should have this value set to True given we filter on it.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The time the campaign was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "Timestamp of designated campaign start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "Timestamp of designated campaign end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "lifetime_budget": {"name": "lifetime_budget", "description": "Lifetime budget of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.5012548, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__campaign_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_facebook_ads__campaign_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_facebook_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='facebook_ads_union_schemas', \n union_database_variable='facebook_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n updated_time as updated_at,\n created_time as created_at,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n cast(id as {{ dbt.type_bigint() }}) as campaign_id,\n name as campaign_name,\n start_time as start_at,\n stop_time as end_at,\n status,\n daily_budget,\n lifetime_budget,\n budget_remaining,\n case when id is null and updated_time is null \n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by updated_time desc) end = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_facebook_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_facebook_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__campaign_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n updated_time\n \n as \n \n updated_time\n \n, \n cast(null as timestamp) as \n \n created_time\n \n , \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as timestamp) as \n \n start_time\n \n , \n cast(null as timestamp) as \n \n stop_time\n \n , \n cast(null as TEXT) as \n \n status\n \n , \n cast(null as integer) as \n \n daily_budget\n \n , \n cast(null as integer) as \n \n lifetime_budget\n \n , \n cast(null as float) as \n \n budget_remaining\n \n \n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n updated_time as updated_at,\n created_time as created_at,\n cast(account_id as bigint) as account_id,\n cast(id as bigint) as campaign_id,\n name as campaign_name,\n start_time as start_at,\n stop_time as end_at,\n status,\n daily_budget,\n lifetime_budget,\n budget_remaining,\n case when id is null and updated_time is null \n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by updated_time desc) end = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__account_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__account_history", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__account_history.sql", "original_file_path": "models/stg_facebook_ads__account_history.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history", "fqn": ["facebook_ads_source", "stg_facebook_ads__account_history"], "alias": "stg_facebook_ads__account_history", "checksum": {"name": "sha256", "checksum": "090302a3b7cb43a4b919fba99fb66060ac7581e1c9f0deb432cd30dec10d0084"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table reflects a Facebook ad account.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record. All records should have this value set to True given we filter on it.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_status": {"name": "account_status", "description": "Current status of account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_country_code": {"name": "business_country_code", "description": "Country code of business associated to account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The time account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency associated with account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone_name": {"name": "timezone_name", "description": "Timezone associated with account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.49946, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__account_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_facebook_ads__account_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_facebook_ads__account_history_tmp')),\n staging_columns=get_account_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='facebook_ads_union_schemas', \n union_database_variable='facebook_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as {{ dbt.type_bigint() }}) as account_id,\n _fivetran_synced,\n name as account_name,\n account_status,\n business_country_code,\n created_time as created_at,\n currency,\n timezone_name,\n case when id is null and _fivetran_synced is null \n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by _fivetran_synced desc) end = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_facebook_ads__account_history_tmp", "package": null, "version": null}, {"name": "stg_facebook_ads__account_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__account_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__account_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as TEXT) as \n \n account_status\n \n , \n cast(null as TEXT) as \n \n business_country_code\n \n , \n cast(null as timestamp) as \n \n created_time\n \n , \n cast(null as TEXT) as \n \n currency\n \n , \n cast(null as TEXT) as \n \n timezone_name\n \n \n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n cast(id as bigint) as account_id,\n _fivetran_synced,\n name as account_name,\n account_status,\n business_country_code,\n created_time as created_at,\n currency,\n timezone_name,\n case when id is null and _fivetran_synced is null \n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by _fivetran_synced desc) end = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__ad_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__ad_history", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__ad_history.sql", "original_file_path": "models/stg_facebook_ads__ad_history.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history", "fqn": ["facebook_ads_source", "stg_facebook_ads__ad_history"], "alias": "stg_facebook_ads__ad_history", "checksum": {"name": "sha256", "checksum": "40418e511a752db37c4a7ecb979055df2a640d712f87ecd445f1ca63c0e07b6c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table reflects a Facebook ad.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of this ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "ID of the ad set that contains the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Ad campaign that contains this ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the ad creative to be used by this ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record. All records should have this value set to True given we filter on it.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_domain": {"name": "conversion_domain", "description": "The domain you've configured the ad to convert to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.5000162, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_facebook_ads__ad_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_facebook_ads__ad_history_tmp')),\n staging_columns=get_ad_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='facebook_ads_union_schemas', \n union_database_variable='facebook_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n updated_time as updated_at,\n cast(id as {{ dbt.type_bigint() }}) as ad_id,\n name as ad_name,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n cast(ad_set_id as {{ dbt.type_bigint() }}) as ad_set_id, \n cast(campaign_id as {{ dbt.type_bigint() }}) as campaign_id,\n cast(creative_id as {{ dbt.type_bigint() }}) as creative_id,\n conversion_domain,\n case when id is null and updated_time is null \n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by updated_time desc) end = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_facebook_ads__ad_history_tmp", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n updated_time\n \n as \n \n updated_time\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_set_id\n \n as \n \n ad_set_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n creative_id\n \n as \n \n creative_id\n \n, \n cast(null as TEXT) as \n \n conversion_domain\n \n \n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n updated_time as updated_at,\n cast(id as bigint) as ad_id,\n name as ad_name,\n cast(account_id as bigint) as account_id,\n cast(ad_set_id as bigint) as ad_set_id, \n cast(campaign_id as bigint) as campaign_id,\n cast(creative_id as bigint) as creative_id,\n conversion_domain,\n case when id is null and updated_time is null \n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by updated_time desc) end = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__ad_set_history", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__ad_set_history.sql", "original_file_path": "models/stg_facebook_ads__ad_set_history.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "fqn": ["facebook_ads_source", "stg_facebook_ads__ad_set_history"], "alias": "stg_facebook_ads__ad_set_history", "checksum": {"name": "sha256", "checksum": "7e5b24c05a2a4c8b51820fdfdab5ed9e63f89f9192b9c5863fe654e1c519a508"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table reflects a Facebook ad set.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "The ID of the ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad set belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Ad campaign that contains this ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_name": {"name": "ad_set_name", "description": "The name of the ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record. All records should have this value set to True given we filter on it.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_at": {"name": "start_at", "description": "Timestamp of designated ad set start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_at": {"name": "end_at", "description": "Timestamp of designated ad set end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_strategy": {"name": "bid_strategy", "description": "Bid strategy values are - 'LOWEST_COST_WITHOUT_CAP', 'LOWEST_COST_WITH_BID_CAP', 'COST_CAP', 'LOWEST_COST_WITH_MIN_ROAS'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization_goal": {"name": "optimization_goal", "description": "The optimization goal this ad set is using. Possible values defined [here](https://developers.facebook.com/docs/marketing-api/reference/ad-campaign/#fields).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads_source://models/stg_facebook_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.500633, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_set_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_facebook_ads__ad_set_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_facebook_ads__ad_set_history_tmp')),\n staging_columns=get_ad_set_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='facebook_ads_union_schemas', \n union_database_variable='facebook_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n updated_time as updated_at,\n cast(id as {{ dbt.type_bigint() }}) as ad_set_id,\n name as ad_set_name,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n cast(campaign_id as {{ dbt.type_bigint() }}) as campaign_id,\n start_time as start_at,\n end_time as end_at,\n bid_strategy,\n daily_budget,\n budget_remaining,\n status,\n optimization_goal,\n case when id is null and updated_time is null\n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by updated_time desc) end = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_facebook_ads__ad_set_history_tmp", "package": null, "version": null}, {"name": "stg_facebook_ads__ad_set_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_ad_set_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__ad_set_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_set_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n updated_time\n \n as \n \n updated_time\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n cast(null as timestamp) as \n \n start_time\n \n , \n cast(null as timestamp) as \n \n end_time\n \n , \n cast(null as TEXT) as \n \n bid_strategy\n \n , \n cast(null as integer) as \n \n daily_budget\n \n , \n cast(null as integer) as \n \n budget_remaining\n \n , \n cast(null as TEXT) as \n \n status\n \n , \n cast(null as TEXT) as \n \n optimization_goal\n \n \n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n updated_time as updated_at,\n cast(id as bigint) as ad_set_id,\n name as ad_set_name,\n cast(account_id as bigint) as account_id,\n cast(campaign_id as bigint) as campaign_id,\n start_time as start_at,\n end_time as end_at,\n bid_strategy,\n daily_budget,\n budget_remaining,\n status,\n optimization_goal,\n case when id is null and updated_time is null\n then row_number() over (partition by source_relation order by source_relation)\n else row_number() over (partition by source_relation, id order by updated_time desc) end = 1 as is_most_recent_record\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__ad_set_history_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__ad_set_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__ad_set_history_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__ad_set_history_tmp"], "alias": "stg_facebook_ads__ad_set_history_tmp", "checksum": {"name": "sha256", "checksum": "c0ef5a352e6b9daecaee96291b7775cfb97efd9566417662f459b886be819d5f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.655057, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_set_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_set_history', \n database_variable='facebook_ads_database', \n schema_variable='facebook_ads_schema', \n default_database=target.database,\n default_schema='facebook_ads',\n default_variable='ad_set_history',\n union_schema_variable='facebook_ads_union_schemas',\n union_database_variable='facebook_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["facebook_ads", "ad_set_history"], ["facebook_ads", "ad_set_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.facebook_ads_source.facebook_ads.ad_set_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__ad_set_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"facebook_ads_ad_set_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__basic_ad_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__basic_ad_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__basic_ad_tmp"], "alias": "stg_facebook_ads__basic_ad_tmp", "checksum": {"name": "sha256", "checksum": "7b566dd6bd0639942bbb87ea9beaecf76cc79ef570ca120f6689d2e26a7a3a5e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.659775, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='basic_ad', \n database_variable='facebook_ads_database', \n schema_variable='facebook_ads_schema', \n default_database=target.database,\n default_schema='facebook_ads',\n default_variable='basic_ad',\n union_schema_variable='facebook_ads_union_schemas',\n union_database_variable='facebook_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["facebook_ads", "basic_ad"], ["facebook_ads", "basic_ad"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.facebook_ads_source.facebook_ads.basic_ad"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__basic_ad_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"facebook_ads_basic_ad_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__ad_history_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__ad_history_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__ad_history_tmp"], "alias": "stg_facebook_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "a92e7e17eff0e7ac71e8465dfac58f2f54c4e42e9e2b2bd733f1db25ae9e8ee9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.663866, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_history', \n database_variable='facebook_ads_database', \n schema_variable='facebook_ads_schema', \n default_database=target.database,\n default_schema='facebook_ads',\n default_variable='ad_history',\n union_schema_variable='facebook_ads_union_schemas',\n union_database_variable='facebook_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["facebook_ads", "ad_history"], ["facebook_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.facebook_ads_source.facebook_ads.ad_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"facebook_ads_ad_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__campaign_history_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__campaign_history_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__campaign_history_tmp"], "alias": "stg_facebook_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "39e7995fdba2bbfa5a72903a60c486a18cdb73122ba447b2bbd1f01bd1c05dea"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.667933, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__campaign_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='facebook_ads_database', \n schema_variable='facebook_ads_schema', \n default_database=target.database,\n default_schema='facebook_ads',\n default_variable='campaign_history',\n union_schema_variable='facebook_ads_union_schemas',\n union_database_variable='facebook_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["facebook_ads", "campaign_history"], ["facebook_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.facebook_ads_source.facebook_ads.campaign_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"facebook_ads_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_actions_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__basic_ad_actions_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__basic_ad_actions_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__basic_ad_actions_tmp"], "alias": "stg_facebook_ads__basic_ad_actions_tmp", "checksum": {"name": "sha256", "checksum": "2325ada772c4afb4eba45dd65cf56ede4b7fafb9d30b7f95b2ae61b263ac089b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.6726809, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad_actions_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='basic_ad_actions', \n database_variable='facebook_ads_database', \n schema_variable='facebook_ads_schema', \n default_database=target.database,\n default_schema='facebook_ads',\n default_variable='basic_ad_actions',\n union_schema_variable='facebook_ads_union_schemas',\n union_database_variable='facebook_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["facebook_ads", "basic_ad_actions"], ["facebook_ads", "basic_ad_actions"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.facebook_ads_source.facebook_ads.basic_ad_actions"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__basic_ad_actions_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"facebook_ads_basic_ad_actions_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__creative_history_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__creative_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__creative_history_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__creative_history_tmp"], "alias": "stg_facebook_ads__creative_history_tmp", "checksum": {"name": "sha256", "checksum": "d2796e42711b748555b1d084124977d08b3677ca01ab8f9de0a58b591cf0d7c4"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.6767502, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__creative_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='creative_history', \n database_variable='facebook_ads_database', \n schema_variable='facebook_ads_schema', \n default_database=target.database,\n default_schema='facebook_ads',\n default_variable='creative_history',\n union_schema_variable='facebook_ads_union_schemas',\n union_database_variable='facebook_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["facebook_ads", "creative_history"], ["facebook_ads", "creative_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.facebook_ads_source.facebook_ads.creative_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__creative_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"facebook_ads_creative_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__basic_ad_action_values_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__basic_ad_action_values_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__basic_ad_action_values_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__basic_ad_action_values_tmp"], "alias": "stg_facebook_ads__basic_ad_action_values_tmp", "checksum": {"name": "sha256", "checksum": "01445e306be93b60909269c837857546f810e43701e36e7125c815a5da4f96f6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.6808681, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad_action_values_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='basic_ad_action_values', \n database_variable='facebook_ads_database', \n schema_variable='facebook_ads_schema', \n default_database=target.database,\n default_schema='facebook_ads',\n default_variable='basic_ad_action_values',\n union_schema_variable='facebook_ads_union_schemas',\n union_database_variable='facebook_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["facebook_ads", "basic_ad_action_values"], ["facebook_ads", "basic_ad_action_values"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.facebook_ads_source.facebook_ads.basic_ad_action_values"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__basic_ad_action_values_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"facebook_ads_basic_ad_action_values_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.facebook_ads_source.stg_facebook_ads__account_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_facebook_ads__account_history_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__account_history_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__account_history_tmp"], "alias": "stg_facebook_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "061b8efffc7a131b462f62eb989472f03f2ff34002aac20195c73309079737dd"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.6849222, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__account_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__facebook_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_history', \n database_variable='facebook_ads_database', \n schema_variable='facebook_ads_schema', \n default_database=target.database,\n default_schema='facebook_ads',\n default_variable='account_history',\n union_schema_variable='facebook_ads_union_schemas',\n union_database_variable='facebook_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["facebook_ads", "account_history"], ["facebook_ads", "account_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.facebook_ads_source.facebook_ads.account_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__account_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"facebook_ads_account_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_squad_hourly_report", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__ad_squad_hourly_report.sql", "original_file_path": "models/stg_snapchat_ads__ad_squad_hourly_report.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_squad_hourly_report"], "alias": "stg_snapchat_ads__ad_squad_hourly_report", "checksum": {"name": "sha256", "checksum": "366d99f92ec72fab32286b8910ec70cba3cdcf165b35698dc4012e42a20debce"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a historic version of an ad in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "ID of the ad squad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_hour": {"name": "date_hour", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_1": {"name": "attachment_quartile_1", "description": "Number of times your Long Form Video was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_2": {"name": "attachment_quartile_2", "description": "Number of times your Long Form Video was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_3": {"name": "attachment_quartile_3", "description": "Number of times your Long Form Video was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_total_view_time": {"name": "attachment_total_view_time", "description": "Total time Snapchatters spent on the attachment (HH:MM:SS)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_view_completion": {"name": "attachment_view_completion", "description": "The number of times your Long Form Video was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_time": {"name": "screen_time", "description": "The number of milli seconds spent watching your ad across all paid impressions. Screen time starts recording as soon as the media is fully rendered on the device and the autoplay video starts", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views": {"name": "video_views", "description": "The number of times your video was watched at least 2 seconds or swiped up, whichever comes first", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_completion": {"name": "view_completion", "description": "The number of times your video ad was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_time": {"name": "view_time", "description": "The number of milli seconds spent watching your ad across all users reached.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes for an ad in the hour of the record. Swipes are when your ad was swiped up on or the CTA was tapped to view the attachment below.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases attributed to an ad in the hour of the record (in Ad Account's currency, converted from microcurrency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases attributed an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.5690691, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_squad_hourly_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__ad_squad_hourly_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__ad_squad_hourly_report_tmp')),\n staging_columns=get_ad_squad_hourly_report_columns()\n )\n }} \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n ad_squad_id,\n cast (date as {{ dbt.type_timestamp() }}) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes,\n coalesce(cast(conversion_purchases_value as {{ dbt.type_float() }}), 0) / 1000000.0 as conversion_purchases_value\n\n {% for conversion in var('snapchat_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {{ snapchat_ads_fill_pass_through_columns(pass_through_fields=var('snapchat_ads__ad_squad_hourly_passthrough_metrics'), except=(var('snapchat_ads__conversion_fields') + ['conversion_purchases_value'])) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_squad_hourly_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_bigint", "macro.snapchat_ads_source.snapchat_ads_fill_pass_through_columns"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_squad_hourly_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_squad_hourly_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_squad_id\n \n as \n \n ad_squad_id\n \n, \n \n \n attachment_quartile_1\n \n as \n \n attachment_quartile_1\n \n, \n \n \n attachment_quartile_2\n \n as \n \n attachment_quartile_2\n \n, \n \n \n attachment_quartile_3\n \n as \n \n attachment_quartile_3\n \n, \n \n \n attachment_total_view_time_millis\n \n as \n \n attachment_total_view_time_millis\n \n, \n \n \n attachment_view_completion\n \n as \n \n attachment_view_completion\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n quartile_1\n \n as \n \n quartile_1\n \n, \n \n \n quartile_2\n \n as \n \n quartile_2\n \n, \n \n \n quartile_3\n \n as \n \n quartile_3\n \n, \n \n \n saves\n \n as \n \n saves\n \n, \n \n \n screen_time_millis\n \n as \n \n screen_time_millis\n \n, \n \n \n shares\n \n as \n \n shares\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n swipes\n \n as \n \n swipes\n \n, \n \n \n video_views\n \n as \n \n video_views\n \n, \n \n \n view_completion\n \n as \n \n view_completion\n \n, \n \n \n view_time_millis\n \n as \n \n view_time_millis\n \n, \n \n \n conversion_purchases_value\n \n as \n \n conversion_purchases_value\n \n, \n \n \n conversion_purchases\n \n as \n \n conversion_purchases\n \n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n ad_squad_id,\n cast (date as timestamp) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes,\n coalesce(cast(conversion_purchases_value as float), 0) / 1000000.0 as conversion_purchases_value\n\n \n , coalesce(cast(conversion_purchases as bigint), 0) as conversion_purchases\n \n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__ad_history.sql", "original_file_path": "models/stg_snapchat_ads__ad_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_history"], "alias": "stg_snapchat_ads__ad_history", "checksum": {"name": "sha256", "checksum": "c5e6d8190a234277e68501aa96b048452931369da6556021b43dfea818a276cf"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a historic version of an ad in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the related ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the ad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.5663948, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__ad_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__ad_history_tmp')),\n staging_columns=get_ad_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_id,\n name as ad_name,\n cast (created_at as {{ dbt.type_timestamp() }}) as created_at,\n ad_squad_id,\n creative_id,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_history_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_squad_id\n \n as \n \n ad_squad_id\n \n, \n cast(null as timestamp) as \n \n created_at\n \n , \n \n \n creative_id\n \n as \n \n creative_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as timestamp) as \n \n updated_at\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_id,\n name as ad_name,\n cast (created_at as timestamp) as created_at,\n ad_squad_id,\n creative_id,\n cast (_fivetran_synced as timestamp) as _fivetran_synced,\n cast (updated_at as timestamp) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_squad_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__ad_squad_history.sql", "original_file_path": "models/stg_snapchat_ads__ad_squad_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_squad_history"], "alias": "stg_snapchat_ads__ad_squad_history", "checksum": {"name": "sha256", "checksum": "52dd01aacf5296607f2cd01a15942b091ddf6b9df5b230e11eaf8bc8305e9994"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a historic version of an ad squad in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_name": {"name": "ad_squad_name", "description": "The name of the ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.568274, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_squad_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__ad_squad_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__ad_squad_history_tmp')),\n staging_columns=get_ad_squad_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_squad_id,\n name as ad_squad_name,\n cast (created_at as {{ dbt.type_timestamp() }}) as created_at,\n campaign_id,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_history_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_squad_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_squad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_squad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_squad_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n cast(null as timestamp) as \n \n created_at\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as timestamp) as \n \n updated_at\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_squad_id,\n name as ad_squad_name,\n cast (created_at as timestamp) as created_at,\n campaign_id,\n cast (_fivetran_synced as timestamp) as _fivetran_synced,\n cast (updated_at as timestamp) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_hourly_report", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__ad_hourly_report.sql", "original_file_path": "models/stg_snapchat_ads__ad_hourly_report.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_hourly_report"], "alias": "stg_snapchat_ads__ad_hourly_report", "checksum": {"name": "sha256", "checksum": "f5f1902a449bf2f7e8f5452586d5768cf5f0234925fc0ec085327e07eaaf7b4f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents an hourly performance summary for an ad in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad that the report relates to in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_hour": {"name": "date_hour", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_1": {"name": "attachment_quartile_1", "description": "Number of times your Long Form Video was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_2": {"name": "attachment_quartile_2", "description": "Number of times your Long Form Video was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_3": {"name": "attachment_quartile_3", "description": "Number of times your Long Form Video was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_total_view_time": {"name": "attachment_total_view_time", "description": "Total time Snapchatters spent on the attachment (HH:MM:SS)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_view_completion": {"name": "attachment_view_completion", "description": "The number of times your Long Form Video was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_time": {"name": "screen_time", "description": "The number of milli seconds spent watching your ad across all paid impressions. Screen time starts recording as soon as the media is fully rendered on the device and the autoplay video starts", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views": {"name": "video_views", "description": "The number of times your video was watched at least 2 seconds or swiped up, whichever comes first", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_completion": {"name": "view_completion", "description": "The number of times your video ad was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_time": {"name": "view_time", "description": "The number of milli seconds spent watching your ad across all users reached.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend for an ad in the hour of the record converted from micros.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases attributed to an ad in the hour of the record (in Ad Account's currency, converted from microcurrency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases attributed an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.567799, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_hourly_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__ad_hourly_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__ad_hourly_report_tmp')),\n staging_columns=get_ad_hourly_report_columns()\n )\n }} \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n ad_id,\n cast (date as {{ dbt.type_timestamp() }}) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes,\n coalesce(cast(conversion_purchases_value as {{ dbt.type_float() }}), 0) / 1000000.0 as conversion_purchases_value\n\n {% for conversion in var('snapchat_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {{ snapchat_ads_fill_pass_through_columns(pass_through_fields=var('snapchat_ads__ad_hourly_passthrough_metrics'), except=(var('snapchat_ads__conversion_fields') + ['conversion_purchases_value'])) }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_hourly_report_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_hourly_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_hourly_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_bigint", "macro.snapchat_ads_source.snapchat_ads_fill_pass_through_columns"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_hourly_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_hourly_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n cast(null as numeric(28,6)) as \n \n attachment_quartile_1\n \n , \n cast(null as numeric(28,6)) as \n \n attachment_quartile_2\n \n , \n cast(null as numeric(28,6)) as \n \n attachment_quartile_3\n \n , \n cast(null as numeric(28,6)) as \n \n attachment_total_view_time_millis\n \n , \n cast(null as numeric(28,6)) as \n \n attachment_view_completion\n \n , \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n cast(null as numeric(28,6)) as \n \n quartile_1\n \n , \n cast(null as numeric(28,6)) as \n \n quartile_2\n \n , \n cast(null as numeric(28,6)) as \n \n quartile_3\n \n , \n cast(null as numeric(28,6)) as \n \n saves\n \n , \n cast(null as numeric(28,6)) as \n \n screen_time_millis\n \n , \n cast(null as numeric(28,6)) as \n \n shares\n \n , \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n swipes\n \n as \n \n swipes\n \n, \n cast(null as numeric(28,6)) as \n \n video_views\n \n , \n cast(null as numeric(28,6)) as \n \n view_completion\n \n , \n cast(null as numeric(28,6)) as \n \n view_time_millis\n \n , \n \n \n conversion_purchases_value\n \n as \n \n conversion_purchases_value\n \n, \n \n \n conversion_purchases\n \n as \n \n conversion_purchases\n \n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n ad_id,\n cast (date as timestamp) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes,\n coalesce(cast(conversion_purchases_value as float), 0) / 1000000.0 as conversion_purchases_value\n\n \n , coalesce(cast(conversion_purchases as bigint), 0) as conversion_purchases\n \n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__creative_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__creative_history.sql", "original_file_path": "models/stg_snapchat_ads__creative_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__creative_history"], "alias": "stg_snapchat_ads__creative_history", "checksum": {"name": "sha256", "checksum": "ee8a3cbc842df2f1f73d35d75566cbc3ab7e56056cad04dab1c98fa1f6853113"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a historic version of a creative in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the creative in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_name": {"name": "creative_name", "description": "The name of the creative in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related ad account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url": {"name": "url", "description": "The URL of the creative if the creative is of type 'web view'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.5709682, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__creative_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__creative_history_tmp')),\n staging_columns=get_creative_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as creative_id,\n cast (created_at as {{ dbt.type_timestamp() }}) as created_at,\n ad_account_id,\n name as creative_name,\n web_view_url as url,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) =1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__creative_history_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__creative_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_creative_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__creative_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_account_id\n \n as \n \n ad_account_id\n \n, \n cast(null as timestamp) as \n \n created_at\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as timestamp) as \n \n updated_at\n \n , \n \n \n web_view_url\n \n as \n \n web_view_url\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as creative_id,\n cast (created_at as timestamp) as created_at,\n ad_account_id,\n name as creative_name,\n web_view_url as url,\n cast (_fivetran_synced as timestamp) as _fivetran_synced,\n cast (updated_at as timestamp) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) =1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__creative_url_tag_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__creative_url_tag_history.sql", "original_file_path": "models/stg_snapchat_ads__creative_url_tag_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__creative_url_tag_history"], "alias": "stg_snapchat_ads__creative_url_tag_history", "checksum": {"name": "sha256", "checksum": "92851f4b67f728a6845faca7a8f94e2851808a2fe430259b5fb8534a6212bd32"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a URL paramter key-value pair for a creative in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "param_key": {"name": "param_key", "description": "The URL parameter key, i.e. UTM_SOURCE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "param_value": {"name": "param_value", "description": "The URL parameter value, i.e. Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.5716548, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_url_tag_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__creative_url_tag_history_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__creative_url_tag_history_tmp')),\n staging_columns=get_creative_url_tag_history_columns()\n )\n }}\n \n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n creative_id,\n key as param_key,\n value as param_value,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by source_relation, creative_id, key order by updated_at desc) =1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__creative_url_tag_history_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__creative_url_tag_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_creative_url_tag_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__creative_url_tag_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_url_tag_history_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n creative_id\n \n as \n \n creative_id\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n creative_id,\n key as param_key,\n value as param_value,\n cast (updated_at as timestamp) as updated_at,\n row_number() over (partition by source_relation, creative_id, key order by updated_at desc) =1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_account_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__ad_account_history.sql", "original_file_path": "models/stg_snapchat_ads__ad_account_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_account_history"], "alias": "stg_snapchat_ads__ad_account_history", "checksum": {"name": "sha256", "checksum": "038466c7ae703d4c445eb0cfb1847ae4282b0f9cdf77f9d9ec4553befcba1ee0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a historic version of an ad account in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_name": {"name": "ad_account_name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser": {"name": "advertiser", "description": "Name of advertiser", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency used by account", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Account timezone", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.565886, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_account_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__ad_account_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__ad_account_history_tmp')),\n staging_columns=get_ad_account_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_account_id,\n name as ad_account_name,\n cast (created_at as {{ dbt.type_timestamp() }}) as created_at,\n advertiser, \n currency,\n timezone,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_account_history_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__ad_account_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_account_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_account_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as TEXT) as \n \n advertiser\n \n , \n cast(null as timestamp) as \n \n created_at\n \n , \n cast(null as TEXT) as \n \n currency\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as TEXT) as \n \n timezone\n \n , \n cast(null as TEXT) as \n \n type\n \n , \n cast(null as timestamp) as \n \n updated_at\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n id as ad_account_id,\n name as ad_account_name,\n cast (created_at as timestamp) as created_at,\n advertiser, \n currency,\n timezone,\n cast (_fivetran_synced as timestamp) as _fivetran_synced,\n cast (updated_at as timestamp) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__campaign_hourly_report", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__campaign_hourly_report.sql", "original_file_path": "models/stg_snapchat_ads__campaign_hourly_report.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__campaign_hourly_report"], "alias": "stg_snapchat_ads__campaign_hourly_report", "checksum": {"name": "sha256", "checksum": "b1f47ef69d58e570592e47fd4ed9874ddf3044ff816b8f21cb99b0418a32b63d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a historic version of an ad in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "ID of campaign", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_hour": {"name": "date_hour", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_1": {"name": "attachment_quartile_1", "description": "Number of times your Long Form Video was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_2": {"name": "attachment_quartile_2", "description": "Number of times your Long Form Video was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_3": {"name": "attachment_quartile_3", "description": "Number of times your Long Form Video was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_total_view_time": {"name": "attachment_total_view_time", "description": "Total time Snapchatters spent on the attachment (HH:MM:SS)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_view_completion": {"name": "attachment_view_completion", "description": "The number of times your Long Form Video was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_time": {"name": "screen_time", "description": "The number of milli seconds spent watching your ad across all paid impressions. Screen time starts recording as soon as the media is fully rendered on the device and the autoplay video starts", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views": {"name": "video_views", "description": "The number of times your video was watched at least 2 seconds or swiped up, whichever comes first", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_completion": {"name": "view_completion", "description": "The number of times your video ad was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_time": {"name": "view_time", "description": "The number of milli seconds spent watching your ad across all users reached.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes for an ad in the hour of the record. Swipes are when your ad was swiped up on or the CTA was tapped to view the attachment below.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases attributed to an ad in the hour of the record (in Ad Account's currency, converted from microcurrency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases attributed an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.570307, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__campaign_hourly_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__campaign_hourly_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__campaign_hourly_report_tmp')),\n staging_columns=get_campaign_hourly_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n campaign_id,\n cast (date as {{ dbt.type_timestamp() }}) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes,\n coalesce(cast(conversion_purchases_value as {{ dbt.type_float() }}), 0) / 1000000.0 as conversion_purchases_value\n\n {% for conversion in var('snapchat_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {{ snapchat_ads_fill_pass_through_columns(pass_through_fields=var('snapchat_ads__campaign_hourly_report_passthrough_metrics'), except=(var('snapchat_ads__conversion_fields') + ['conversion_purchases_value'])) }}\n \n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_hourly_report_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__campaign_hourly_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_campaign_hourly_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_bigint", "macro.snapchat_ads_source.snapchat_ads_fill_pass_through_columns"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__campaign_hourly_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__campaign_hourly_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n attachment_quartile_1\n \n as \n \n attachment_quartile_1\n \n, \n \n \n attachment_quartile_2\n \n as \n \n attachment_quartile_2\n \n, \n \n \n attachment_quartile_3\n \n as \n \n attachment_quartile_3\n \n, \n \n \n attachment_total_view_time_millis\n \n as \n \n attachment_total_view_time_millis\n \n, \n \n \n attachment_view_completion\n \n as \n \n attachment_view_completion\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n quartile_1\n \n as \n \n quartile_1\n \n, \n \n \n quartile_2\n \n as \n \n quartile_2\n \n, \n \n \n quartile_3\n \n as \n \n quartile_3\n \n, \n \n \n saves\n \n as \n \n saves\n \n, \n \n \n screen_time_millis\n \n as \n \n screen_time_millis\n \n, \n \n \n shares\n \n as \n \n shares\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n swipes\n \n as \n \n swipes\n \n, \n \n \n video_views\n \n as \n \n video_views\n \n, \n \n \n view_completion\n \n as \n \n view_completion\n \n, \n \n \n view_time_millis\n \n as \n \n view_time_millis\n \n, \n \n \n conversion_purchases_value\n \n as \n \n conversion_purchases_value\n \n, \n \n \n conversion_purchases\n \n as \n \n conversion_purchases\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n campaign_id,\n cast (date as timestamp) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes,\n coalesce(cast(conversion_purchases_value as float), 0) / 1000000.0 as conversion_purchases_value\n\n \n , coalesce(cast(conversion_purchases as bigint), 0) as conversion_purchases\n \n\n \n\n\n\n\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__campaign_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__campaign_history.sql", "original_file_path": "models/stg_snapchat_ads__campaign_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__campaign_history"], "alias": "stg_snapchat_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "4bdc0a822494f1f1b1806407151746864f0cd31ca0393d54517cc1431dfef5f1"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents a historic version of a campaign in Snapchat.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The id of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related ad account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean representing whether a record is the most recent version of that record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.569539, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__campaign_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_snapchat_ads__campaign_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_snapchat_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='snapchat_ads_union_schemas', \n union_database_variable='snapchat_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n id as campaign_id,\n ad_account_id,\n cast (created_at as {{ dbt.type_timestamp() }}) as created_at,\n name as campaign_name,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_snapchat_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__campaign_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_account_id\n \n as \n \n ad_account_id\n \n, \n cast(null as timestamp) as \n \n created_at\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as timestamp) as \n \n updated_at\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n id as campaign_id,\n ad_account_id,\n cast (created_at as timestamp) as created_at,\n name as campaign_name,\n cast (_fivetran_synced as timestamp) as _fivetran_synced,\n cast (updated_at as timestamp) as updated_at,\n row_number() over (partition by source_relation, id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__creative_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__creative_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__creative_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__creative_history_tmp"], "alias": "stg_snapchat_ads__creative_history_tmp", "checksum": {"name": "sha256", "checksum": "af71368261d6f41a42e53d8d3522dbd7c2343ef32d5d518c0740024944b005e8"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.790943, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='creative_history', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='creative_history',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "creative_history"], ["snapchat_ads", "creative_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.creative_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__creative_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"snapchat_creative_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_account_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__ad_account_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__ad_account_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_account_history_tmp"], "alias": "stg_snapchat_ads__ad_account_history_tmp", "checksum": {"name": "sha256", "checksum": "ecb8114190d4e6ac289124eb4588c540a426e1d449caa958ad34bd4a7e3bf6a9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.79508, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_account_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_account_history', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='ad_account_history',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "ad_account_history"], ["snapchat_ads", "ad_account_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_account_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_account_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"snapchat_ad_account_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_hourly_report_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__ad_hourly_report_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__ad_hourly_report_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_hourly_report_tmp"], "alias": "stg_snapchat_ads__ad_hourly_report_tmp", "checksum": {"name": "sha256", "checksum": "6c656f5f35626e2da5fb5eb5c84ec8c6a92e99832407708ed55bd0de7e5df50e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.799145, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_hourly_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_hourly_report', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='ad_hourly_report',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "ad_hourly_report"], ["snapchat_ads", "ad_hourly_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_hourly_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"snapchat_ad_hourly_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__creative_url_tag_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__creative_url_tag_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__creative_url_tag_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__creative_url_tag_history_tmp"], "alias": "stg_snapchat_ads__creative_url_tag_history_tmp", "checksum": {"name": "sha256", "checksum": "9d7c3b09ee4cdd1b50bd4d9dcaa83506d4b92c886601a9a5b3d3eb3d64c87cb2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.803936, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_url_tag_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='creative_url_tag_history', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='creative_url_tag_history',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "creative_url_tag_history"], ["snapchat_ads", "creative_url_tag_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.creative_url_tag_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__creative_url_tag_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"snapchat_creative_url_tag_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__ad_squad_hourly_report_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__ad_squad_hourly_report_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_squad_hourly_report_tmp"], "alias": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "checksum": {"name": "sha256", "checksum": "95586bdee0fc83cd072ec0e9e53e5468e3fc125b6421d2eb7434e636c7dde0ea"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.808033, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_squad_hourly_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_squad_hourly_report', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='ad_squad_hourly_report',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "ad_squad_hourly_report"], ["snapchat_ads", "ad_squad_hourly_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_squad_hourly_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"snapchat_ad_squad_hourly_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__campaign_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__campaign_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__campaign_history_tmp"], "alias": "stg_snapchat_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "77443d363898105f0e8102998dc2e60b0ba612a50f0f0db676f7c77ed9c5de5c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.812191, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__campaign_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='campaign_history',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "campaign_history"], ["snapchat_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"snapchat_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__ad_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_history_tmp"], "alias": "stg_snapchat_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "ff60fd4ced1d85ba518f5a0c3566e10aed80c9201c78e51d2e95e24e814a8610"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.816913, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_history', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='ad_history',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "ad_history"], ["snapchat_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"snapchat_ad_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__ad_squad_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__ad_squad_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__ad_squad_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_squad_history_tmp"], "alias": "stg_snapchat_ads__ad_squad_history_tmp", "checksum": {"name": "sha256", "checksum": "7dd4147d6b7ee617b048090525b4578398c85fd40fb4f509efbbdefb89ed16ba"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.820981, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_squad_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='ad_squad_history', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='ad_squad_history',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "ad_squad_history"], ["snapchat_ads", "ad_squad_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_squad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_squad_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"snapchat_ad_squad_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_snapchat_ads__campaign_hourly_report_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__campaign_hourly_report_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__campaign_hourly_report_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__campaign_hourly_report_tmp"], "alias": "stg_snapchat_ads__campaign_hourly_report_tmp", "checksum": {"name": "sha256", "checksum": "25c22f93768af7aedb92b425ebe2b5756b624690741a7f333e3b2d4e5b677f66"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true}, "created_at": 1734462184.825151, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__campaign_hourly_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_hourly_report', \n database_variable='snapchat_ads_database', \n schema_variable='snapchat_ads_schema', \n default_database=target.database,\n default_schema='snapchat_ads',\n default_variable='campaign_hourly_report',\n union_schema_variable='snapchat_ads_union_schemas',\n union_database_variable='snapchat_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["snapchat_ads", "campaign_hourly_report"], ["snapchat_ads", "campaign_hourly_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.snapchat_ads_source.snapchat_ads.campaign_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__campaign_hourly_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"snapchat_campaign_hourly_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads.microsoft_ads__ad_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "microsoft_ads__ad_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__ad_report.sql", "original_file_path": "models/microsoft_ads__ad_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__ad_report", "fqn": ["microsoft_ads", "microsoft_ads__ad_report"], "alias": "microsoft_ads__ad_report", "checksum": {"name": "sha256", "checksum": "9ab2be3f666c45f4c183fab5bfbff379aaa6e143a346f80b749322313247d75a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by ad, ad group, campaign, account, ad type, device os, device type, network and currency code.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the corresponding ad; `title_part_1` is used as the ad name as a proxy as one is not provided by the data source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_type": {"name": "ad_type", "description": "The ad type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/adtype?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.667915, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__ad_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_performance_daily_report') }}\n\n), \n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n ads.type as ad_type,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n {{ microsoft_ads_persist_pass_through_columns(pass_through_variable='microsoft_ads__ad_passthrough_metrics', transform='sum', coalesce_with=0, exclude_fields=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }} \n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(15) }}\n\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_daily_report", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__campaign_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads.microsoft_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_daily_report\"\n\n), \n\nads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_history\"\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_history\"\n where is_most_recent_record = True\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n ads.type as ad_type,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n \n\n\n\n \n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15\n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads.microsoft_ads__ad_group_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "microsoft_ads__ad_group_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__ad_group_report.sql", "original_file_path": "models/microsoft_ads__ad_group_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__ad_group_report", "fqn": ["microsoft_ads", "microsoft_ads__ad_group_report"], "alias": "microsoft_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "9a03d39aa95ed0fda64c4052dd7641689a44d3fdf7235e6bf06e8416bc08b229"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by ad group, campaign, account, device os, device type, network and currency code.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.666683, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__ad_group_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_group_performance_daily_report') }}\n\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value, \n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n {{ microsoft_ads_persist_pass_through_columns(pass_through_variable='microsoft_ads__ad_group_passthrough_metrics', transform='sum', coalesce_with=0, exclude_fields=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }} \n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_group_daily_report", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__campaign_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads.microsoft_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_group_daily_report\"\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_history\"\n where is_most_recent_record = True\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value, \n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n \n\n\n\n \n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads.microsoft_ads__keyword_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "microsoft_ads__keyword_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__keyword_report.sql", "original_file_path": "models/microsoft_ads__keyword_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__keyword_report", "fqn": ["microsoft_ads", "microsoft_ads__keyword_report"], "alias": "microsoft_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "b3d9ca770493b5a98c2f683c09218bfaafdf1401417adf8a963e85a19b267d43"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by keyword, ad, ad group, campaign, account, device os, device type, network and currency code.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the corresponding ad; `title_part_1` is used as the ad name as a proxy as one is not provided by the data source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_name": {"name": "keyword_name", "description": "The keyword(s) associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "The match type associated with this record; values contain but may not be limited to 'Broad', 'Exact', 'Phrase'. Please refer to Microsoft Ad's [documentation](https://help.ads.microsoft.com/#apex/ads/en/50822/1).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.6696231, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__keyword_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('keyword_performance_daily_report') }}\n\n), \n\nkeywords as (\n\n select *\n from {{ var('keyword_history') }}\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n keywords.keyword_name,\n report.keyword_id,\n keywords.match_type,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n {{ microsoft_ads_persist_pass_through_columns(pass_through_variable='microsoft_ads__keyword_passthrough_metrics', transform='sum', coalesce_with=0, exclude_fields=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }}\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join keywords\n on report.keyword_id = keywords.keyword_id\n and report.source_relation = keywords.source_relation\n {{ dbt_utils.group_by(17) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_microsoft_ads__keyword_daily_report", "package": null, "version": null}, {"name": "stg_microsoft_ads__keyword_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__campaign_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads.microsoft_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__keyword_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__keyword_daily_report\"\n\n), \n\nkeywords as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__keyword_history\"\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_history\"\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_history\"\n where is_most_recent_record = True\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n keywords.keyword_name,\n report.keyword_id,\n keywords.match_type,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n \n\n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join keywords\n on report.keyword_id = keywords.keyword_id\n and report.source_relation = keywords.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads.microsoft_ads__url_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "microsoft_ads__url_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__url_report.sql", "original_file_path": "models/microsoft_ads__url_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__url_report", "fqn": ["microsoft_ads", "microsoft_ads__url_report"], "alias": "microsoft_ads__url_report", "checksum": {"name": "sha256", "checksum": "f2929bd4705ce31c1cb5480fd545d01957a60c926e05f1d019916250a1a950b6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by ad, ad group, campaign, account, ad type, device os, device type, network, currency code, url and utm parameters.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the corresponding ad; `title_part_1` is used as the ad name as a proxy as one is not provided by the data source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `final_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `final_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `final_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The site that sent traffic to your page. Microsoft Advertising sets this to Bing; extracted from the `final_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "Which channel was used. Microsoft Advertising sets this to cp; extracted from the `final_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "Which campaign the keyword came from; extracted from the `final_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "Which ad group the keyword came from; extracted from the `final_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "Which keyword brought people to your website; extracted from the `final_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.6713622, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__url_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_performance_daily_report') }}\n\n), \n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n {{ dbt.split_part('ads.final_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('ads.final_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('ads.final_url') }} as url_path,\n\n {% if var('microsoft_ads_auto_tagging_enabled', false) %}\n\n coalesce( {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_source') }} , 'Bing') as utm_source,\n coalesce( {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_medium') }}, 'cpc') as utm_medium,\n coalesce( {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_campaign') }}, campaigns.campaign_name) as utm_campaign,\n coalesce( {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_content') }}, ad_groups.ad_group_name) as utm_content,\n {% else %}\n\n {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_source') }} as utm_source,\n {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_medium') }} as utm_medium,\n {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_campaign') }} as utm_campaign,\n {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_content') }} as utm_content,\n {% endif %}\n\n {{ microsoft_ads.microsoft_ads_extract_url_parameter('ads.final_url', 'utm_term') }} as utm_term,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n {{ microsoft_ads_persist_pass_through_columns(pass_through_variable='microsoft_ads__ad_passthrough_metrics', transform='sum', coalesce_with=0, exclude_fields=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }}\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(22) }}\n), \n\nfiltered as (\n\n select * \n from joined\n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where base_url is not null\n {% endif %}\n)\n\nselect *\nfrom filtered", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_daily_report", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__campaign_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.microsoft_ads.microsoft_ads_extract_url_parameter", "macro.microsoft_ads.microsoft_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_daily_report\"\n\n), \n\nads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_history\"\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_history\"\n where is_most_recent_record = True\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n \n\n \n \n\n split_part(\n ads.final_url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n\n \n\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n ads.final_url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_source,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n ads.final_url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_medium,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n ads.final_url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_campaign,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n ads.final_url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_content,\n \n\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n ads.final_url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_term,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n \n\n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22\n), \n\nfiltered as (\n\n select * \n from joined\n\n \n where base_url is not null\n \n)\n\nselect *\nfrom filtered", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads.microsoft_ads__account_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "microsoft_ads__account_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__account_report.sql", "original_file_path": "models/microsoft_ads__account_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__account_report", "fqn": ["microsoft_ads", "microsoft_ads__account_report"], "alias": "microsoft_ads__account_report", "checksum": {"name": "sha256", "checksum": "0bf353a8b549dda43f1b8f70b4fb29e669a02451e74df1f3545b637d5bdc9e82"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by account, account timezone, device os, device type, network and currency code.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_timezone": {"name": "account_timezone", "description": "The time zone associated with this account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.665953, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__account_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('account_performance_daily_report') }}\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n)\n\n, joined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n accounts.time_zone as account_timezone,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions\n -- all_conversion_value is not available for the account_report\n\n {{ microsoft_ads_persist_pass_through_columns(pass_through_variable='microsoft_ads__account_passthrough_metrics', transform='sum', coalesce_with=0, exclude_fields=['conversions_value', 'conversions', 'all_conversions']) }} \n \n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n {{ dbt_utils.group_by(9) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_microsoft_ads__account_daily_report", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads.microsoft_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_daily_report\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_history\"\n where is_most_recent_record = True\n)\n\n, joined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n accounts.time_zone as account_timezone,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions\n -- all_conversion_value is not available for the account_report\n\n \n\n\n\n \n \n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n group by 1,2,3,4,5,6,7,8,9\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads.microsoft_ads__search_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "microsoft_ads__search_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__search_report.sql", "original_file_path": "models/microsoft_ads__search_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__search_report", "fqn": ["microsoft_ads", "microsoft_ads__search_report"], "alias": "microsoft_ads__search_report", "checksum": {"name": "sha256", "checksum": "936f8257dc71900348fb32fa38e9aab8ef0a9b347163a56a0a2795dfbf9fd51e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by search query, keyword, ad, ad group, campaign, account, device os, device type and network.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "The name of the corresponding ad; `title_part_1` is used as the ad name as a proxy as one is not provided by the data source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_name": {"name": "keyword_name", "description": "The keyword(s) associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "The match type associated with this record; values contain but may not be limited to 'Broad', 'Exact', 'Phrase'. Please refer to Microsoft Ad's [documentation](https://help.ads.microsoft.com/#apex/ads/en/50822/1).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_query": {"name": "search_query", "description": "The search query string associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.6704278, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__search_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('search_performance_daily_report') }}\n\n), \n\nkeywords as (\n\n select *\n from {{ var('keyword_history') }}\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from {{ var('ad_history') }}\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n report.keyword_id,\n keywords.keyword_name,\n coalesce(report.delivered_match_type, report.bid_match_type) as match_type,\n report.search_query,\n report.device_os,\n report.device_type,\n report.network,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n {{ microsoft_ads_persist_pass_through_columns(pass_through_variable='microsoft_ads__search_passthrough_metrics', transform='sum', coalesce_with=0, exclude_fields=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }}\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join keywords\n on report.keyword_id = keywords.keyword_id\n and report.source_relation = keywords.source_relation\n {{ dbt_utils.group_by(17) }}\n\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_microsoft_ads__search_daily_report", "package": null, "version": null}, {"name": "stg_microsoft_ads__keyword_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__ad_group_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__campaign_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads.microsoft_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__keyword_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__search_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__search_daily_report\"\n\n), \n\nkeywords as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__keyword_history\"\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_history\"\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_history\"\n where is_most_recent_record = True\n\n), \n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n report.keyword_id,\n keywords.keyword_name,\n coalesce(report.delivered_match_type, report.bid_match_type) as match_type,\n report.search_query,\n report.device_os,\n report.device_type,\n report.network,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n \n\n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n and report.source_relation = ads.source_relation\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n and report.source_relation = ad_groups.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join keywords\n on report.keyword_id = keywords.keyword_id\n and report.source_relation = keywords.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17\n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.microsoft_ads.microsoft_ads__campaign_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "microsoft_ads__campaign_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__campaign_report.sql", "original_file_path": "models/microsoft_ads__campaign_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__campaign_report", "fqn": ["microsoft_ads", "microsoft_ads__campaign_report"], "alias": "microsoft_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "6efb3d54a8a5e3d94744cf3ff1f9bd26e8aa2cb16a651dfdd042556cadefde3b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by campaign, account, campaign type, campaign timezone, campaign status, device os, device type, network and currency code.\n", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_type": {"name": "campaign_type", "description": "The campaign type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaigntype?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_timezone": {"name": "campaign_timezone", "description": "The time zone associated with this campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "The status of this campaign; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaignstatus?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_value": {"name": "all_conversions_value", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1734462186.66879, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__campaign_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__microsoft_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('campaign_performance_daily_report') }}\n\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from {{ var('account_history') }}\n where is_most_recent_record = True\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n campaigns.type as campaign_type,\n campaigns.time_zone as campaign_timezone,\n campaigns.status as campaign_status,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n {{ microsoft_ads_persist_pass_through_columns(pass_through_variable='microsoft_ads__campaign_passthrough_metrics', transform='sum', coalesce_with=0, exclude_fields=['conversions', 'conversions_value', 'all_conversions', 'all_conversions_value']) }} \n\n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n {{ dbt_utils.group_by(13) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_microsoft_ads__campaign_daily_report", "package": null, "version": null}, {"name": "stg_microsoft_ads__campaign_history", "package": null, "version": null}, {"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.microsoft_ads.microsoft_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__campaign_daily_report\"\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_history\"\n where is_most_recent_record = True\n),\n\njoined as (\n\n select\n report.source_relation,\n report.date_day,\n accounts.account_name,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n campaigns.type as campaign_type,\n campaigns.time_zone as campaign_timezone,\n campaigns.status as campaign_status,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.conversions) as conversions,\n sum(report.conversions_value) as conversions_value,\n sum(report.all_conversions) as all_conversions,\n sum(report.all_conversions_value) as all_conversions_value\n\n \n\n\n\n \n\n from report\n left join accounts\n on report.account_id = accounts.account_id\n and report.source_relation = accounts.source_relation\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n and report.source_relation = campaigns.source_relation\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__line_item_keywords_report", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__line_item_keywords_report.sql", "original_file_path": "models/stg_twitter_ads__line_item_keywords_report.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report", "fqn": ["twitter_ads_source", "stg_twitter_ads__line_item_keywords_report"], "alias": "stg_twitter_ads__line_item_keywords_report", "checksum": {"name": "sha256", "checksum": "5f8d6ba198bbbf3cdd762092909736b75ffd723ad235c91862ca7e693ccfcb1f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the performance of a line item (ad group) and keyword combination on a given day, for its placement in Twitter.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique key of the table built from the combination of 'account_id', 'line_item_id','segment', and 'placement' fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend for the line item + keyword on that day, in micros and in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the line item + keyword on that day in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the line item + keyword on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the line item + keyword on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item + keyword on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword": {"name": "keyword", "description": "The keyword whose performance is being tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.729047, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_keywords_report\"", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__twitter_ads_enabled','twitter_ads__using_keywords'])) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_twitter_ads__line_item_keywords_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__line_item_keywords_report_tmp')),\n staging_columns=get_line_item_keywords_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n {{ dbt.date_trunc('day', 'date') }} as date_day,\n {{ dbt_utils.generate_surrogate_key(['account_id', 'line_item_id','segment','placement']) }} as keyword_id,\n account_id,\n line_item_id,\n segment as keyword,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n {% for conversion in var('twitter_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {% for conversion_value in var('twitter_ads__conversion_sale_amount_fields', []) %}\n , coalesce(cast({{ conversion_value }} as {{ dbt.type_float() }}), 0) as {{ conversion_value }}\n {% endfor %}\n\n {{ twitter_ads_fill_pass_through_columns(pass_through_fields=var('twitter_ads__line_item_keywords_report_passthrough_metrics'), except=(var('twitter_ads__conversion_fields') + var('twitter_ads__conversion_sale_amount_fields'))) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_keywords_report_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__line_item_keywords_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.twitter_ads_source.get_line_item_keywords_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_bigint", "macro.dbt.type_float", "macro.twitter_ads_source.twitter_ads_fill_pass_through_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__line_item_keywords_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_keywords_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n billed_charge_local_micro\n \n as \n \n billed_charge_local_micro\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n line_item_id\n \n as \n \n line_item_id\n \n, \n \n \n placement\n \n as \n \n placement\n \n, \n \n \n segment\n \n as \n \n segment\n \n, \n \n \n url_clicks\n \n as \n \n url_clicks\n \n, \n \n \n conversion_purchases_metric\n \n as \n \n conversion_purchases_metric\n \n, \n \n \n conversion_custom_metric\n \n as \n \n conversion_custom_metric\n \n, \n \n \n conversion_purchases_sale_amount\n \n as \n \n conversion_purchases_sale_amount\n \n, \n \n \n conversion_custom_sale_amount\n \n as \n \n conversion_custom_sale_amount\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date_trunc('day', date) as date_day,\n md5(cast(coalesce(cast(account_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(line_item_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(segment as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(placement as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as keyword_id,\n account_id,\n line_item_id,\n segment as keyword,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n \n , coalesce(cast(conversion_purchases_metric as bigint), 0) as conversion_purchases_metric\n \n , coalesce(cast(conversion_custom_metric as bigint), 0) as conversion_custom_metric\n \n\n \n , coalesce(cast(conversion_purchases_sale_amount as float), 0) as conversion_purchases_sale_amount\n \n , coalesce(cast(conversion_custom_sale_amount as float), 0) as conversion_custom_sale_amount\n \n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__campaign_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__campaign_report", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__campaign_report.sql", "original_file_path": "models/stg_twitter_ads__campaign_report.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report", "fqn": ["twitter_ads_source", "stg_twitter_ads__campaign_report"], "alias": "stg_twitter_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "fc0eac20bcf65ef622f9abfb5f8fa263501773568e628524b620ee15cc33dd2a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the performance of an ad campaign on a given day, for its placement in Twitter.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend for the campaign on that day, in micros and in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the campaign on that day in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the campaign on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the campaign on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the campaign on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.7277231, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_twitter_ads__campaign_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__campaign_report_tmp')),\n staging_columns=get_campaign_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n {{ dbt.date_trunc('day', 'date') }} as date_day,\n account_id,\n campaign_id,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n\n {% for conversion in var('twitter_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {% for conversion_value in var('twitter_ads__conversion_sale_amount_fields', []) %}\n , coalesce(cast({{ conversion_value }} as {{ dbt.type_float() }}), 0) as {{ conversion_value }}\n {% endfor %}\n\n {{ twitter_ads_fill_pass_through_columns(pass_through_fields=var('twitter_ads__campaign_report_passthrough_metrics'), except=(var('twitter_ads__conversion_fields') + var('twitter_ads__conversion_sale_amount_fields'))) }}\n \n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_report_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__campaign_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_campaign_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_bigint", "macro.dbt.type_float", "macro.twitter_ads_source.twitter_ads_fill_pass_through_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n billed_charge_local_micro\n \n as \n \n billed_charge_local_micro\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n placement\n \n as \n \n placement\n \n, \n \n \n url_clicks\n \n as \n \n url_clicks\n \n, \n \n \n conversion_purchases_metric\n \n as \n \n conversion_purchases_metric\n \n, \n \n \n conversion_custom_metric\n \n as \n \n conversion_custom_metric\n \n, \n \n \n conversion_purchases_sale_amount\n \n as \n \n conversion_purchases_sale_amount\n \n, \n \n \n conversion_custom_sale_amount\n \n as \n \n conversion_custom_sale_amount\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date_trunc('day', date) as date_day,\n account_id,\n campaign_id,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n\n \n , coalesce(cast(conversion_purchases_metric as bigint), 0) as conversion_purchases_metric\n \n , coalesce(cast(conversion_custom_metric as bigint), 0) as conversion_custom_metric\n \n\n \n , coalesce(cast(conversion_purchases_sale_amount as float), 0) as conversion_purchases_sale_amount\n \n , coalesce(cast(conversion_custom_sale_amount as float), 0) as conversion_custom_sale_amount\n \n\n \n\n\n\n\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__line_item_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__line_item_history", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__line_item_history.sql", "original_file_path": "models/stg_twitter_ads__line_item_history.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history", "fqn": ["twitter_ads_source", "stg_twitter_ads__line_item_history"], "alias": "stg_twitter_ads__line_item_history", "checksum": {"name": "sha256", "checksum": "6bdccb9ab0772580e1e772008744702ded368e3ba3de6c8b6d4fdad4ad159dce"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of each line item. The versions can be differentiated by the updated_at timestamp.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_domain": {"name": "advertiser_domain", "description": "The website domain for this advertiser, without the protocol specification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_user_id": {"name": "advertiser_user_id", "description": "The Twitter user identifier for the handle promoting the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "automatically_select_bid": {"name": "automatically_select_bid", "description": "Whether automatically optimize bidding is enabled based on daily budget and campaign flight dates.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount_local_micro": {"name": "bid_amount_local_micro", "description": "The bid amount to be associated with this line item, in micros.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_type": {"name": "bid_type", "description": "The bidding mechanism.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_unit": {"name": "bid_unit", "description": "The bid unit for this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "charge_by": {"name": "charge_by", "description": "The unit to charge this line item by.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_source": {"name": "creative_source", "description": "The source of the creatives for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency in which metrics will be reported.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "The timestamp at which the line item will stop being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The campaign objective for this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization": {"name": "optimization", "description": "The optimization setting to use with this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_web_event_tag": {"name": "primary_web_event_tag", "description": "The identifier of the primary web event tag. Allows more accurate tracking of engagements for the campaign pertaining to this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "product_type": {"name": "product_type", "description": "The type of promoted product that this line item will contain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "The timestamp at which the line item will start being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "target_cpa_local_micro": {"name": "target_cpa_local_micro", "description": "The target cost per acquisition for the line item, in micros.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_budget_amount_local_micro": {"name": "total_budget_amount_local_micro", "description": "The total budget amount to be allocated to the line item, in micros.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Whether the record is the most latest version for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount": {"name": "bid_amount", "description": "The bid amount to be associated with this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_budget_amount": {"name": "total_budget_amount", "description": "The total budget amount to be allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "target_cpa": {"name": "target_cpa", "description": "The target cost per acquisition for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.725046, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith source as (\n\n select *\n from {{ ref('stg_twitter_ads__line_item_history_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__line_item_history_tmp')),\n staging_columns=get_line_item_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n advertiser_domain,\n advertiser_user_id,\n automatically_select_bid,\n bid_amount_local_micro,\n bid_type,\n bid_unit,\n campaign_id,\n charge_by,\n created_at as created_timestamp,\n creative_source,\n currency,\n deleted as is_deleted,\n end_time as end_timestamp,\n entity_status,\n id as line_item_id,\n name,\n objective,\n optimization,\n primary_web_event_tag,\n product_type,\n start_time as start_timestamp,\n target_cpa_local_micro,\n total_budget_amount_local_micro,\n updated_at as updated_timestamp,\n round(bid_amount_local_micro / 1000000.0,2) as bid_amount,\n round(total_budget_amount_local_micro / 1000000.0,2) as total_budget_amount,\n round(target_cpa_local_micro / 1000000.0,2) as target_cpa,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_history_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__line_item_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_line_item_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__line_item_history.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_history_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n advertiser_domain\n \n as \n \n advertiser_domain\n \n, \n \n \n advertiser_user_id\n \n as \n \n advertiser_user_id\n \n, \n \n \n automatically_select_bid\n \n as \n \n automatically_select_bid\n \n, \n \n \n bid_amount_local_micro\n \n as \n \n bid_amount_local_micro\n \n, \n \n \n bid_type\n \n as \n \n bid_type\n \n, \n \n \n bid_unit\n \n as \n \n bid_unit\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n charge_by\n \n as \n \n charge_by\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n creative_source\n \n as \n \n creative_source\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n deleted\n \n as \n \n deleted\n \n, \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n entity_status\n \n as \n \n entity_status\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n objective\n \n as \n \n objective\n \n, \n \n \n optimization\n \n as \n \n optimization\n \n, \n \n \n primary_web_event_tag\n \n as \n \n primary_web_event_tag\n \n, \n \n \n product_type\n \n as \n \n product_type\n \n, \n \n \n start_time\n \n as \n \n start_time\n \n, \n \n \n target_cpa_local_micro\n \n as \n \n target_cpa_local_micro\n \n, \n \n \n total_budget_amount_local_micro\n \n as \n \n total_budget_amount_local_micro\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n advertiser_domain,\n advertiser_user_id,\n automatically_select_bid,\n bid_amount_local_micro,\n bid_type,\n bid_unit,\n campaign_id,\n charge_by,\n created_at as created_timestamp,\n creative_source,\n currency,\n deleted as is_deleted,\n end_time as end_timestamp,\n entity_status,\n id as line_item_id,\n name,\n objective,\n optimization,\n primary_web_event_tag,\n product_type,\n start_time as start_timestamp,\n target_cpa_local_micro,\n total_budget_amount_local_micro,\n updated_at as updated_timestamp,\n round(bid_amount_local_micro / 1000000.0,2) as bid_amount,\n round(total_budget_amount_local_micro / 1000000.0,2) as total_budget_amount,\n round(target_cpa_local_micro / 1000000.0,2) as target_cpa,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__line_item_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__line_item_report", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__line_item_report.sql", "original_file_path": "models/stg_twitter_ads__line_item_report.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report", "fqn": ["twitter_ads_source", "stg_twitter_ads__line_item_report"], "alias": "stg_twitter_ads__line_item_report", "checksum": {"name": "sha256", "checksum": "15efdf532386a2b1acc4ec9968746429c418ac909ec4f3a2a2e2bab0b8a5ab7e"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the performance of a line item (ad group) on a given day, for its placement in Twitter.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend for the line item on that day, in micros and in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the line item on that day in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the line item on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the line item on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.728364, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_twitter_ads__line_item_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__line_item_report_tmp')),\n staging_columns=get_line_item_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n {{ dbt.date_trunc('day', 'date') }} as date_day,\n account_id,\n line_item_id,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n {% for conversion in var('twitter_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {% for conversion_value in var('twitter_ads__conversion_sale_amount_fields', []) %}\n , coalesce(cast({{ conversion_value }} as {{ dbt.type_float() }}), 0) as {{ conversion_value }}\n {% endfor %}\n\n {{ twitter_ads_fill_pass_through_columns(pass_through_fields=var('twitter_ads__line_item_report_passthrough_metrics'), except=(var('twitter_ads__conversion_fields') + var('twitter_ads__conversion_sale_amount_fields'))) }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_report_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__line_item_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_line_item_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_bigint", "macro.dbt.type_float", "macro.twitter_ads_source.twitter_ads_fill_pass_through_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__line_item_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n billed_charge_local_micro\n \n as \n \n billed_charge_local_micro\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n line_item_id\n \n as \n \n line_item_id\n \n, \n \n \n placement\n \n as \n \n placement\n \n, \n \n \n url_clicks\n \n as \n \n url_clicks\n \n, \n \n \n conversion_purchases_metric\n \n as \n \n conversion_purchases_metric\n \n, \n \n \n conversion_custom_metric\n \n as \n \n conversion_custom_metric\n \n, \n \n \n conversion_purchases_sale_amount\n \n as \n \n conversion_purchases_sale_amount\n \n, \n \n \n conversion_custom_sale_amount\n \n as \n \n conversion_custom_sale_amount\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n date_trunc('day', date) as date_day,\n account_id,\n line_item_id,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n \n , coalesce(cast(conversion_purchases_metric as bigint), 0) as conversion_purchases_metric\n \n , coalesce(cast(conversion_custom_metric as bigint), 0) as conversion_custom_metric\n \n\n \n , coalesce(cast(conversion_purchases_sale_amount as float), 0) as conversion_purchases_sale_amount\n \n , coalesce(cast(conversion_custom_sale_amount as float), 0) as conversion_custom_sale_amount\n \n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__campaign_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__campaign_history", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__campaign_history.sql", "original_file_path": "models/stg_twitter_ads__campaign_history.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history", "fqn": ["twitter_ads_source", "stg_twitter_ads__campaign_history"], "alias": "stg_twitter_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "1f9de910b8d359fe35781260fb5bb8287868b0d5e2bb02063f6d884677ba8320"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of each campaign. The versions can be differentiated by the updated_at timestamp.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency all metrics for the account are set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_amount_local_micro": {"name": "daily_budget_amount_local_micro", "description": "The daily budget amount to be allocated to the campaign, in micros. The currency associated with the specified funding instrument will be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duration_in_days": {"name": "duration_in_days", "description": "The time period within which the frequency_cap is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "The time the campaign will end", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency_cap": {"name": "frequency_cap", "description": "The maximum number of times an ad could be delivered to a user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_servable": {"name": "is_servable", "description": "Whether the campaign is in a state to be actively served to users.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_standard_delivery": {"name": "is_standard_delivery", "description": "Whether standard delivery is enabled (vs accelerated delivery).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "The time the campaign will start.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_budget_amount_local_micro": {"name": "total_budget_amount_local_micro", "description": "The total budget amount to be allocated to the campaign, in micros.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Whether the record is the most latest version for the campaign", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Reference to the funding instrument.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_amount": {"name": "daily_budget_amount", "description": "The daily budget amount to be allocated to the campaign. The currency associated with the specified funding instrument will be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_budget_amount": {"name": "total_budget_amount", "description": "The total budget amount to be allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.724097, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith source as (\n\n select *\n from {{ ref('stg_twitter_ads__campaign_history_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n account_id,\n created_at as created_timestamp,\n currency,\n daily_budget_amount_local_micro,\n deleted as is_deleted,\n duration_in_days,\n end_time as end_timestamp,\n entity_status,\n frequency_cap,\n funding_instrument_id,\n id as campaign_id,\n name as campaign_name,\n servable as is_servable,\n standard_delivery as is_standard_delivery,\n start_time as start_timestamp,\n total_budget_amount_local_micro,\n updated_at as updated_timestamp,\n round(daily_budget_amount_local_micro / 1000000.0,2) as daily_budget_amount,\n round(total_budget_amount_local_micro / 1000000.0,2) as total_budget_amount,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_history_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__campaign_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_history_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n daily_budget_amount_local_micro\n \n as \n \n daily_budget_amount_local_micro\n \n, \n \n \n deleted\n \n as \n \n deleted\n \n, \n \n \n duration_in_days\n \n as \n \n duration_in_days\n \n, \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n entity_status\n \n as \n \n entity_status\n \n, \n \n \n frequency_cap\n \n as \n \n frequency_cap\n \n, \n \n \n funding_instrument_id\n \n as \n \n funding_instrument_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n servable\n \n as \n \n servable\n \n, \n \n \n standard_delivery\n \n as \n \n standard_delivery\n \n, \n \n \n start_time\n \n as \n \n start_time\n \n, \n \n \n total_budget_amount_local_micro\n \n as \n \n total_budget_amount_local_micro\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n account_id,\n created_at as created_timestamp,\n currency,\n daily_budget_amount_local_micro,\n deleted as is_deleted,\n duration_in_days,\n end_time as end_timestamp,\n entity_status,\n frequency_cap,\n funding_instrument_id,\n id as campaign_id,\n name as campaign_name,\n servable as is_servable,\n standard_delivery as is_standard_delivery,\n start_time as start_timestamp,\n total_budget_amount_local_micro,\n updated_at as updated_timestamp,\n round(daily_budget_amount_local_micro / 1000000.0,2) as daily_budget_amount,\n round(total_budget_amount_local_micro / 1000000.0,2) as total_budget_amount,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__promoted_tweet_report", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__promoted_tweet_report.sql", "original_file_path": "models/stg_twitter_ads__promoted_tweet_report.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "fqn": ["twitter_ads_source", "stg_twitter_ads__promoted_tweet_report"], "alias": "stg_twitter_ads__promoted_tweet_report", "checksum": {"name": "sha256", "checksum": "a150a091d0ac8c76e0d3c1030cf2c9031086daaac5e25df654535a58e08c24f2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents the performance of a promoted tweet on a given day, in the tweet's defined placement.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_micro": {"name": "spend_micro", "description": "The spend (in micros) for the promoted tweet on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend for the promoted tweet on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the promoted tweet on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the promoted tweet on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "promoted_tweet_id": {"name": "promoted_tweet_id", "description": "The ID of the related promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the promoted tweet on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.7261791, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith source as (\n\n select *\n from {{ ref('stg_twitter_ads__promoted_tweet_report_tmp') }}\n\n),\n\nrenamed as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__promoted_tweet_report_tmp')),\n staging_columns=get_promoted_tweet_report_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from source\n\n), spend_calc as (\n\n select\n source_relation,\n {{ dbt.date_trunc('day', 'date') }} as date_day,\n account_id,\n promoted_tweet_id,\n placement,\n clicks as clicks,\n impressions as impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks as url_clicks\n\n {% for conversion in var('twitter_ads__conversion_fields', []) %}\n , coalesce(cast({{ conversion }} as {{ dbt.type_bigint() }}), 0) as {{ conversion }}\n {% endfor %}\n\n {% for conversion_value in var('twitter_ads__conversion_sale_amount_fields', []) %}\n , coalesce(cast({{ conversion_value }} as {{ dbt.type_float() }}), 0) as {{ conversion_value }}\n {% endfor %}\n\n {{ twitter_ads_fill_pass_through_columns(pass_through_fields=var('twitter_ads__promoted_tweet_report_passthrough_metrics'), except=(var('twitter_ads__conversion_fields') + var('twitter_ads__conversion_sale_amount_fields'))) }}\n\n from renamed\n\n)\n\nselect * from spend_calc", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_report_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__promoted_tweet_report_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_promoted_tweet_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.date_trunc", "macro.dbt.type_bigint", "macro.dbt.type_float", "macro.twitter_ads_source.twitter_ads_fill_pass_through_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__promoted_tweet_report.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_report_tmp\"\n\n),\n\nrenamed as (\n\n select\n \n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n billed_charge_local_micro\n \n as \n \n billed_charge_local_micro\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n placement\n \n as \n \n placement\n \n, \n \n \n promoted_tweet_id\n \n as \n \n promoted_tweet_id\n \n, \n \n \n url_clicks\n \n as \n \n url_clicks\n \n, \n cast(null as TEXT) as \n \n conversion_purchases_metric\n \n , \n cast(null as TEXT) as \n \n conversion_custom_metric\n \n , \n cast(null as TEXT) as \n \n conversion_purchases_sale_amount\n \n , \n cast(null as TEXT) as \n \n conversion_custom_sale_amount\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from source\n\n), spend_calc as (\n\n select\n source_relation,\n date_trunc('day', date) as date_day,\n account_id,\n promoted_tweet_id,\n placement,\n clicks as clicks,\n impressions as impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks as url_clicks\n\n \n , coalesce(cast(conversion_purchases_metric as bigint), 0) as conversion_purchases_metric\n \n , coalesce(cast(conversion_custom_metric as bigint), 0) as conversion_custom_metric\n \n\n \n , coalesce(cast(conversion_purchases_sale_amount as float), 0) as conversion_purchases_sale_amount\n \n , coalesce(cast(conversion_custom_sale_amount as float), 0) as conversion_custom_sale_amount\n \n\n \n\n\n\n\n\n from renamed\n\n)\n\nselect * from spend_calc", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__tweet": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__tweet", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__tweet.sql", "original_file_path": "models/stg_twitter_ads__tweet.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet", "fqn": ["twitter_ads_source", "stg_twitter_ads__tweet"], "alias": "stg_twitter_ads__tweet", "checksum": {"name": "sha256", "checksum": "a9e49949675961027a786f0c10f358ab6d9261c9d45894002b5ee14c77a9dfc6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a tweet, promoted or not.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "Unique identifier of the tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "If provided, the non-public title of the tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_text": {"name": "full_text", "description": "Full text of the tweet's content.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "Two-letter language code of the tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.729472, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__tweet\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_twitter_ads__tweet_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__tweet_tmp')),\n staging_columns=get_tweet_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n id as tweet_id,\n name,\n full_text,\n lang as language\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_twitter_ads__tweet_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__tweet_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_tweet_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__tweet.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__tweet_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n full_text\n \n as \n \n full_text\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n lang\n \n as \n \n lang\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n source_relation, \n account_id,\n id as tweet_id,\n name,\n full_text,\n lang as language\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__account_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__account_history", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__account_history.sql", "original_file_path": "models/stg_twitter_ads__account_history.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history", "fqn": ["twitter_ads_source", "stg_twitter_ads__account_history"], "alias": "stg_twitter_ads__account_history", "checksum": {"name": "sha256", "checksum": "e8b3ecfb0c54ca3f8e3f3dd502fa32336821143b89422d7b1cfdfca530ef145b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of each account. The versions can be differentiated by the updated_at timestamp.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_id": {"name": "business_id", "description": "The ID of the related business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_name": {"name": "business_name", "description": "The name of the related business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "industry_type": {"name": "industry_type", "description": "The industry of the accounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The timezone the account is set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone_switched_timestamp": {"name": "timezone_switched_timestamp", "description": "The timestamp the account's timezone was last changed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Whether the record is the most latest version for the account", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "salt": {"name": "salt", "description": "The random encryption key used to hash data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.723352, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__account_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith source as (\n\n select *\n from {{ ref('stg_twitter_ads__account_history_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__account_history_tmp')),\n staging_columns=get_account_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n approval_status,\n business_id,\n business_name,\n created_at as created_timestamp,\n deleted as is_deleted,\n id as account_id,\n industry_type,\n name,\n salt,\n timezone,\n timezone_switch_at as timezone_switched_timestamp,\n updated_at as updated_timestamp,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "language": "sql", "refs": [{"name": "stg_twitter_ads__account_history_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__account_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__account_history_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__account_history.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__account_history_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n approval_status\n \n as \n \n approval_status\n \n, \n \n \n business_id\n \n as \n \n business_id\n \n, \n \n \n business_name\n \n as \n \n business_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deleted\n \n as \n \n deleted\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n industry_type\n \n as \n \n industry_type\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n salt\n \n as \n \n salt\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n timezone_switch_at\n \n as \n \n timezone_switch_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n approval_status,\n business_id,\n business_name,\n created_at as created_timestamp,\n deleted as is_deleted,\n id as account_id,\n industry_type,\n name,\n salt,\n timezone,\n timezone_switch_at as timezone_switched_timestamp,\n updated_at as updated_timestamp,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_latest_version\n \n from fields \n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__tweet_url": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__tweet_url", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__tweet_url.sql", "original_file_path": "models/stg_twitter_ads__tweet_url.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url", "fqn": ["twitter_ads_source", "stg_twitter_ads__tweet_url"], "alias": "stg_twitter_ads__tweet_url", "checksum": {"name": "sha256", "checksum": "4490abbbf995f838c47d4482a71b9afe33f3689ca0e38ee1cc842a52611e5e75"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a URL used in a tweet.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The URL as it will be displayed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expanded_url": {"name": "expanded_url", "description": "The fully expanded URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "The index of the URL within the tweet (ie if there are multiple URLs)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "indices": {"name": "indices", "description": "The start and end point of where the URL is placed in the tweet text.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the related tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url": {"name": "url", "description": "The 't.co' shortened URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `expanded_url`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.727092, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__tweet_url\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith source as (\n\n select *\n from {{ ref('stg_twitter_ads__tweet_url_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__tweet_url_tmp')),\n staging_columns=get_tweet_url_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n display_url,\n expanded_url,\n index,\n indices,\n tweet_id,\n url,\n {{ dbt.split_part('expanded_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('expanded_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('expanded_url') }} as url_path,\n {{ twitter_ads_source.twitter_ads_extract_url_parameter('expanded_url', 'utm_source') }} as utm_source,\n {{ twitter_ads_source.twitter_ads_extract_url_parameter('expanded_url', 'utm_medium') }} as utm_medium,\n {{ twitter_ads_source.twitter_ads_extract_url_parameter('expanded_url', 'utm_campaign') }} as utm_campaign,\n {{ twitter_ads_source.twitter_ads_extract_url_parameter('expanded_url', 'utm_content') }} as utm_content,\n {{ twitter_ads_source.twitter_ads_extract_url_parameter('expanded_url', 'utm_term') }} as utm_term\n \n from fields\n\n)\n\nselect * from final", "language": "sql", "refs": [{"name": "stg_twitter_ads__tweet_url_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__tweet_url_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_tweet_url_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.split_part", "macro.dbt_utils.get_url_host", "macro.dbt_utils.get_url_path", "macro.twitter_ads_source.twitter_ads_extract_url_parameter"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__tweet_url.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__tweet_url_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n display_url\n \n as \n \n display_url\n \n, \n \n \n expanded_url\n \n as \n \n expanded_url\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n indices\n \n as \n \n indices\n \n, \n \n \n tweet_id\n \n as \n \n tweet_id\n \n, \n \n \n url\n \n as \n \n url\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n display_url,\n expanded_url,\n index,\n indices,\n tweet_id,\n url,\n \n\n \n \n\n split_part(\n expanded_url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n expanded_url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_source,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n expanded_url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_medium,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n expanded_url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_campaign,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n expanded_url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_content,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n expanded_url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_term\n \n from fields\n\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__promoted_tweet_history", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__promoted_tweet_history.sql", "original_file_path": "models/stg_twitter_ads__promoted_tweet_history.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "fqn": ["twitter_ads_source", "stg_twitter_ads__promoted_tweet_history"], "alias": "stg_twitter_ads__promoted_tweet_history", "checksum": {"name": "sha256", "checksum": "238f57903743ca6d0e855f633c322444dae9fdecc8fb6d8e2a29c6dd898ae6c8"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a version of each promoted tweet. The versions can be differentiated by the updated_at timestamp.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "promoted_tweet_id": {"name": "promoted_tweet_id", "description": "The ID of the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the related tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "Whether the record is the most latest version for the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads_source://models/stg_twitter_ads.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.725543, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_history\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith source as (\n\n select *\n from {{ ref('stg_twitter_ads__promoted_tweet_history_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_twitter_ads__promoted_tweet_history_tmp')),\n staging_columns=get_promoted_tweet_history_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='twitter_ads_union_schemas', \n union_database_variable='twitter_ads_union_databases') \n }}\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n approval_status,\n created_at as created_timestamp,\n deleted as is_deleted,\n entity_status,\n id as promoted_tweet_id,\n line_item_id,\n tweet_id,\n updated_at as updated_timestamp,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_latest_version\n from fields \n)\n\nselect * from final", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_history_tmp", "package": null, "version": null}, {"name": "stg_twitter_ads__promoted_tweet_history_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_promoted_tweet_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__promoted_tweet_history.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_history_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n approval_status\n \n as \n \n approval_status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deleted\n \n as \n \n deleted\n \n, \n \n \n entity_status\n \n as \n \n entity_status\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n line_item_id\n \n as \n \n line_item_id\n \n, \n \n \n tweet_id\n \n as \n \n tweet_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from source\n\n), \n\nfinal as (\n\n select\n source_relation,\n approval_status,\n created_at as created_timestamp,\n deleted as is_deleted,\n entity_status,\n id as promoted_tweet_id,\n line_item_id,\n tweet_id,\n updated_at as updated_timestamp,\n row_number() over (partition by source_relation, id order by updated_at desc) = 1 as is_latest_version\n from fields \n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__tweet_url_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__tweet_url_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__tweet_url_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__tweet_url_tmp"], "alias": "stg_twitter_ads__tweet_url_tmp", "checksum": {"name": "sha256", "checksum": "fe9950ae15f4480ffacb71ca05b667af4207203c118b162b32b307c7423fbaac"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.050553, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__tweet_url_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='tweet_url', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='tweet_url',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "tweet_url"], ["twitter_ads", "tweet_url"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.tweet_url"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__tweet_url_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"twitter_tweet_url_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__tweet_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__tweet_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__tweet_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__tweet_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__tweet_tmp"], "alias": "stg_twitter_ads__tweet_tmp", "checksum": {"name": "sha256", "checksum": "e1376dd27eb0a23992062c992dfc2c549638ab402c368930ef36270b21ea20e6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.054699, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__tweet_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='tweet', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='tweet',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "tweet"], ["twitter_ads", "tweet"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.tweet"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__tweet_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"twitter_tweet_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__promoted_tweet_report_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__promoted_tweet_report_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__promoted_tweet_report_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__promoted_tweet_report_tmp"], "alias": "stg_twitter_ads__promoted_tweet_report_tmp", "checksum": {"name": "sha256", "checksum": "c6350469f47f1d64f903dd1c7544df64a2cba610a4f96a05e02b1cbedcdee5ea"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.059401, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='promoted_tweet_report', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='promoted_tweet_report',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "promoted_tweet_report"], ["twitter_ads", "promoted_tweet_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__promoted_tweet_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"twitter_promoted_tweet_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__line_item_history_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__line_item_history_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__line_item_history_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__line_item_history_tmp"], "alias": "stg_twitter_ads__line_item_history_tmp", "checksum": {"name": "sha256", "checksum": "c28894c4d5f5a040352f53dda215bf6255e3101148c160d1eaeefa7ccb032f5f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.063585, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='line_item_history', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='line_item_history',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "line_item_history"], ["twitter_ads", "line_item_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.line_item_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__line_item_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"twitter_line_item_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__campaign_report_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__campaign_report_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__campaign_report_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__campaign_report_tmp"], "alias": "stg_twitter_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "53e768ae1259e656223ec5ff0a7e0980d2e5d1802b1787e32761569de90a2821"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.067683, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_report', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='campaign_report',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "campaign_report"], ["twitter_ads", "campaign_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.campaign_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__campaign_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"twitter_campaign_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__campaign_history_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__campaign_history_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__campaign_history_tmp"], "alias": "stg_twitter_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "931bd1d7044cb5dc38f0976471bcfafd6ca46142d2d22d2caba968b5c1e4d418"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.071834, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='campaign_history', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='campaign_history',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "campaign_history"], ["twitter_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.campaign_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"twitter_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__line_item_keywords_report_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__line_item_keywords_report_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__line_item_keywords_report_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__line_item_keywords_report_tmp"], "alias": "stg_twitter_ads__line_item_keywords_report_tmp", "checksum": {"name": "sha256", "checksum": "ce070a872d9a55d22f19622fe5b373bb0ed9256912943481fae8dc13f62fc6cb"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.076652, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_keywords_report_tmp\"", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__twitter_ads_enabled','twitter_ads__using_keywords'])) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='line_item_keywords_report', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='line_item_keywords_report',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "line_item_keywords_report"], ["twitter_ads", "line_item_keywords_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.line_item_keywords_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__line_item_keywords_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"twitter_line_item_keywords_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__line_item_report_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__line_item_report_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__line_item_report_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__line_item_report_tmp"], "alias": "stg_twitter_ads__line_item_report_tmp", "checksum": {"name": "sha256", "checksum": "39ef530f4dbe147a6e9816670be7df4ab36a7fa211079092d1360edb4b23fa2f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.080794, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_report_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='line_item_report', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='line_item_report',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "line_item_report"], ["twitter_ads", "line_item_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.line_item_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__line_item_report_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"twitter_line_item_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__account_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__account_history_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__account_history_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__account_history_tmp"], "alias": "stg_twitter_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "3434c0ca9dd5fbb61f4227552660234452f56807b259d7eb09aca34cde54c5a9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.084906, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__account_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='account_history', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='account_history',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "account_history"], ["twitter_ads", "account_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.account_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__account_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"twitter_account_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "stg_twitter_ads__promoted_tweet_history_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__promoted_tweet_history_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__promoted_tweet_history_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__promoted_tweet_history_tmp"], "alias": "stg_twitter_ads__promoted_tweet_history_tmp", "checksum": {"name": "sha256", "checksum": "0eabeab3709379e124896ece68025723a1f2906b5cc9e5ea00ad448732c5fac1"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"materialized": "view", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462185.0896351, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_history_tmp\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='promoted_tweet_history', \n database_variable='twitter_ads_database', \n schema_variable='twitter_ads_schema', \n default_database=target.database,\n default_schema='twitter_ads',\n default_variable='promoted_tweet_history',\n union_schema_variable='twitter_ads_union_schemas',\n union_database_variable='twitter_ads_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["twitter_ads", "promoted_tweet_history"], ["twitter_ads", "promoted_tweet_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.twitter_ads_source.twitter_ads.promoted_tweet_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__promoted_tweet_history_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"zz_ad_reporting\".\"twitter_promoted_tweet_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin.linkedin_ads__campaign_group_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "linkedin_ads__campaign_group_report", "resource_type": "model", "package_name": "linkedin", "path": "linkedin_ads__campaign_group_report.sql", "original_file_path": "models/linkedin_ads__campaign_group_report.sql", "unique_id": "model.linkedin.linkedin_ads__campaign_group_report", "fqn": ["linkedin", "linkedin_ads__campaign_group_report"], "alias": "linkedin_ads__campaign_group_report", "checksum": {"name": "sha256", "checksum": "046636ec2288476b7c27c03f5ac84a558330fe3bd2bb42fc90a1b88a33983cec"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the campaign group level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the campaign group was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_backfilled": {"name": "is_backfilled", "description": "Flag that denotes whether the campaign group was created organically or to backfill existing campaigns. This is a read-only field set by the system. Default = false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_start_at": {"name": "run_schedule_start_at", "description": "Represents the inclusive (greater than or equal to) date when to start running the associated campaigns under this campaign group. This field is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_end_at": {"name": "run_schedule_end_at", "description": "Represents the exclusive (strictly less than) date when to stop running the associated campaigns under this campaign group. If this field is unset, it indicates an open range with no end date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of campaign group. Possible values are: ACTIVE - Denotes that the campaign group is capable of serving ads, subject to run date and budget limitations (as well as any other limitations at the account or campaign level). ARCHIVED - Denotes that the campaign group is presently inactive, and should mostly be hidden in the UI until un-archived. CANCELLED - Denotes that the campaign group has been permanently canceled and cannot be reactivated. Not a settable status. DRAFT - Denotes that the campaign group is in a preliminary state and should temporarily not be served. PAUSED - Denotes that the campaign group meets all requirements to be served, but temporarily should not be. PENDING_DELETION - Denotes that the campaign group has been requested to be deleted that is currently pending. REMOVED - Denoted that the campaign group was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The ISO 4217 currency code of the account, such as 'USD' for United States Dollar (default).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency, on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `linkedin_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin://models/linkedin.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.783077, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__campaign_group_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith campaign_group as (\n\n select *\n from {{ var('campaign_group_history') }}\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\naccount as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nreport as (\n\n select *,\n {% if var('linkedin_ads__conversion_fields', none) %}\n {{ var('linkedin_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_analytics_by_campaign') }}\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n campaign_group.campaign_group_id,\n campaign_group.campaign_group_name,\n account.account_id,\n account.account_name,\n campaign_group.status,\n account.currency,\n campaign_group.is_backfilled,\n campaign_group.run_schedule_start_at,\n campaign_group.run_schedule_end_at,\n campaign_group.last_modified_at,\n campaign_group.created_at,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency\n\n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='linkedin_ads__campaign_passthrough_metrics', exclude_fields=['conversion_value_in_local_currency']) }}\n\n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__campaign_passthrough_metrics', transform='sum', exclude_fields=['conversion_value_in_local_currency']) }}\n\n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n and campaign.source_relation = campaign_group.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n {{ dbt_utils.group_by(13) }}\n\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_group_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__account_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__ad_analytics_by_campaign", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin.linkedin_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__campaign_history", "model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin/models/linkedin_ads__campaign_group_report.sql", "compiled": true, "compiled_code": "\n\nwith campaign_group as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__account_history\"\n where is_latest_version\n),\n\nreport as (\n\n select *,\n \n external_website_conversions + one_click_leads as total_conversions\n \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__ad_analytics_by_campaign\"\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n campaign_group.campaign_group_id,\n campaign_group.campaign_group_name,\n account.account_id,\n account.account_name,\n campaign_group.status,\n account.currency,\n campaign_group.is_backfilled,\n campaign_group.run_schedule_start_at,\n campaign_group.run_schedule_end_at,\n campaign_group.last_modified_at,\n campaign_group.created_at,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency\n\n \n\n\n\n \n \n\n\n\n \n\n\n\n \n \n \n \n , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\n \n\n \n \n \n \n , sum(coalesce(one_click_leads, 0)) as one_click_leads\n \n\n \n\n\n\n\n \n\n\n\n\n\n \n\n\n\n\n\n\n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n and campaign.source_relation = campaign_group.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin.linkedin_ads__creative_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "linkedin_ads__creative_report", "resource_type": "model", "package_name": "linkedin", "path": "linkedin_ads__creative_report.sql", "original_file_path": "models/linkedin_ads__creative_report.sql", "unique_id": "model.linkedin.linkedin_ads__creative_report", "fqn": ["linkedin", "linkedin_ads__creative_report"], "alias": "linkedin_ads__creative_report", "checksum": {"name": "sha256", "checksum": "7a2e8c8e090c01e759354274e67241cdcc85eee9e1672317d726bea4dcf43027"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the creative level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "A label for the creative's campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Unique internal ID representing the creative's campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "Unique internal ID representing the creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the creative was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_status": {"name": "creative_status", "description": "ACTIVE - Creative creation is complete and creative is available for review and serve.\nPAUSED - Creative creation is complete and creative is current, but should temporarily not be served. This status is not valid upon creation.\nDRAFT - Creative creation is incomplete and may still be edited.\nARCHIVED - Creative creation is complete, but creative should not be served and should be separated from non-archived creatives in any UI.\nCANCELED - Creative is permanently canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_uri": {"name": "click_uri", "description": "The URL where the member should be redirected to, on clicking the text ad or spotlight ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_uri_type": {"name": "click_uri_type", "description": "Will either be `text_ad`, `spotlight`, or `null` to indicate the origin of the click_uri.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_status": {"name": "campaign_group_status", "description": "Status of campaign's campaign group. Possible values are: ACTIVE - Denotes that the campaign group is capable of serving ads, subject to run date and budget limitations (as well as any other limitations at the account or campaign level). ARCHIVED - Denotes that the campaign group is presently inactive, and should mostly be hidden in the UI until un-archived. CANCELLED - Denotes that the campaign group has been permanently canceled and cannot be reactivated. Not a settable status. DRAFT - Denotes that the campaign group is in a preliminary state and should temporarily not be served. PAUSED - Denotes that the campaign group meets all requirements to be served, but temporarily should not be. PENDING_DELETION - Denotes that the campaign group has been requested to be deleted that is currently pending. REMOVED - Denoted that the campaign group was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "ACTIVE - Denotes that the campaign is fully servable.\nPAUSED - Denotes that the campaign meets all requirements to be served, but temporarily should not be.\nARCHIVED - Denotes that the campaign is presently inactive, and should mostly be hidden in the UI until un-archived.\nCOMPLETED - Denotes that the campaign has reached a specified budgetary or chronological limit.\nCANCELED - Denotes that the campaign has been permanently canceled, such as when an advertising account is permanently closed.\nDRAFT - Denotes that the campaign is still being edited and not eligible for serving. Some validation will be postponed until the campaign is activated.\nPENDING_DELETION - Denotes that the campaign has been requested to be deleted that is currently pending.\nREMOVED - Denotes that the campaign was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The ISO 4217 currency code of the account, such as 'USD' for United States Dollar (default).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency, on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `linkedin_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin://models/linkedin.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.784087, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__creative_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith creative as (\n\n select *\n from {{ var('creative_history') }}\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from {{ var('campaign_group_history') }}\n where is_latest_version\n),\n\naccount as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nreport as (\n\n select *,\n {% if var('linkedin_ads__conversion_fields', none) %}\n {{ var('linkedin_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_analytics_by_creative') }}\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.creative_id,\n campaign.campaign_id,\n campaign.campaign_name,\n campaign_group.campaign_group_id,\n campaign_group.campaign_group_name,\n account.account_id,\n account.account_name,\n creative.click_uri,\n creative.click_uri_type,\n creative.status as creative_status,\n campaign.status as campaign_status,\n campaign_group.status as campaign_group_status,\n account.currency,\n creative.last_modified_at,\n creative.created_at,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency \n\n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='linkedin_ads__creative_passthrough_metrics', exclude_fields=['conversion_value_in_local_currency']) }}\n\n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__creative_passthrough_metrics', transform='sum', exclude_fields=['conversion_value_in_local_currency']) }}\n\n from report \n left join creative \n on report.creative_id = creative.creative_id\n and report.source_relation = creative.source_relation\n left join campaign \n on creative.campaign_id = campaign.campaign_id\n and creative.source_relation = campaign.source_relation\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n and campaign.source_relation = campaign_group.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n {{ dbt_utils.group_by(17) }}\n\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_linkedin_ads__creative_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_group_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__account_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__ad_analytics_by_creative", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin.linkedin_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history", "model.linkedin_source.stg_linkedin_ads__campaign_history", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"]}, "compiled_path": "target/compiled/linkedin/models/linkedin_ads__creative_report.sql", "compiled": true, "compiled_code": "\n\nwith creative as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__creative_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__account_history\"\n where is_latest_version\n),\n\nreport as (\n\n select *,\n \n external_website_conversions + one_click_leads as total_conversions\n \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__ad_analytics_by_creative\"\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.creative_id,\n campaign.campaign_id,\n campaign.campaign_name,\n campaign_group.campaign_group_id,\n campaign_group.campaign_group_name,\n account.account_id,\n account.account_name,\n creative.click_uri,\n creative.click_uri_type,\n creative.status as creative_status,\n campaign.status as campaign_status,\n campaign_group.status as campaign_group_status,\n account.currency,\n creative.last_modified_at,\n creative.created_at,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency \n\n \n\n\n\n \n \n\n\n\n \n\n\n\n \n \n \n \n , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\n \n\n \n \n \n \n , sum(coalesce(one_click_leads, 0)) as one_click_leads\n \n\n \n\n\n\n\n \n\n\n\n\n\n \n\n\n\n\n\n\n from report \n left join creative \n on report.creative_id = creative.creative_id\n and report.source_relation = creative.source_relation\n left join campaign \n on creative.campaign_id = campaign.campaign_id\n and creative.source_relation = campaign.source_relation\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n and campaign.source_relation = campaign_group.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin.linkedin_ads__campaign_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "linkedin_ads__campaign_report", "resource_type": "model", "package_name": "linkedin", "path": "linkedin_ads__campaign_report.sql", "original_file_path": "models/linkedin_ads__campaign_report.sql", "unique_id": "model.linkedin.linkedin_ads__campaign_report", "fqn": ["linkedin", "linkedin_ads__campaign_report"], "alias": "linkedin_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "9bdee6ae45df533c3a41615a7db398921a119a2c42150879063172e30d824005"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the campaign level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "A label for the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Unique internal ID representing the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_status": {"name": "campaign_group_status", "description": "Status of campaign's campaign group. Possible values are: ACTIVE - Denotes that the campaign group is capable of serving ads, subject to run date and budget limitations (as well as any other limitations at the account or campaign level). ARCHIVED - Denotes that the campaign group is presently inactive, and should mostly be hidden in the UI until un-archived. CANCELLED - Denotes that the campaign group has been permanently canceled and cannot be reactivated. Not a settable status. DRAFT - Denotes that the campaign group is in a preliminary state and should temporarily not be served. PAUSED - Denotes that the campaign group meets all requirements to be served, but temporarily should not be. PENDING_DELETION - Denotes that the campaign group has been requested to be deleted that is currently pending. REMOVED - Denoted that the campaign group was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the campaign was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_audience_expansion_enabled": {"name": "is_audience_expansion_enabled", "description": "Boolean (default=false) representing whether Audience Expansion is enabled for the campaign provides query expansion for certain targeting criteria.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_type": {"name": "cost_type", "description": "CPM - Cost per thousand advertising impressions. If type=SPONSORED_INMAILS; cost per send(CPS) is measured as CPM x 1000.\nCPC- Cost per individual click on the associated link.\nCPV- Cost per view for video ads.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_selection": {"name": "creative_selection", "description": "ROUND_ROBIN - Rotate through available creatives to serve them as evenly as possible.\nOPTIMIZED (default) - Bias selection taking into account such as expected performance. Not available for Message and Conversation Ads (type=SPONSORED_INMAILS).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_amount": {"name": "daily_budget_amount", "description": "Maximum amount to spend per day UTC. The amount of money as a real number string.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_currency_code": {"name": "daily_budget_currency_code", "description": "ISO currency code. The currency must match that of the parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "format": {"name": "format", "description": "The ad format on the campaign level. See https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads/campaign-formats?view=li-lms-2022-07", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "locale_country": {"name": "locale_country", "description": "Locale of the campaign. An uppercase two-letter country code as defined by ISO-3166.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "locale_language": {"name": "locale_language", "description": "Locale of the campaign. A lowercase two-letter language code as defined by ISO-639.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective_type": {"name": "objective_type", "description": "Campaign Objective type values. Click [here](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ad-budget-pricing-type-combinations?view=li-lms-2022-07) for Campaign Objective descriptions. One of: - BRAND_AWARENESS - ENGAGEMENT - JOB_APPLICANTS - LEAD_GENERATION - WEBSITE_CONVERSIONS - WEBSITE_VISITS - VIDEO_VIEWS\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_offsite_delivery_enabled": {"name": "is_offsite_delivery_enabled", "description": "Boolean indicating if this campaign to allowed to be served on the LinkedIn Audience Network to extend the reach of your campaign by delivering ads beyond the LinkedIn feed to members on third-party apps and sites.\t(default will be \"True\" from June 30, 2022)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization_target_type": {"name": "optimization_target_type", "description": "Determines how this campaign is optimized for spending. If this is not set, there is no optimization. Refer to the documentation here. Default = 'NONE'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_start_at": {"name": "run_schedule_start_at", "description": "Scheduled date range to run associated creatives. The start date must be non-null. Represents the inclusive (greater than or equal to) value in which to start the range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_end_at": {"name": "run_schedule_end_at", "description": "Scheduled date range to run associated creatives. The start date must be non-null. Represents the exclusive (strictly less than) value in which to end the range, if provided.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "ACTIVE - Denotes that the campaign is fully servable.\nPAUSED - Denotes that the campaign meets all requirements to be served, but temporarily should not be.\nARCHIVED - Denotes that the campaign is presently inactive, and should mostly be hidden in the UI until un-archived.\nCOMPLETED - Denotes that the campaign has reached a specified budgetary or chronological limit.\nCANCELED - Denotes that the campaign has been permanently canceled, such as when an advertising account is permanently closed.\nDRAFT - Denotes that the campaign is still being edited and not eligible for serving. Some validation will be postponed until the campaign is activated.\nPENDING_DELETION - Denotes that the campaign has been requested to be deleted that is currently pending.\nREMOVED - Denotes that the campaign was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "TEXT_AD - Text-based ads that show up in the right column or top of the page on LinkedIn.\nSPONSORED_UPDATES - Native ads that promote a company's content updates in the LinkedIn feed.\nSPONSORED_INMAILS - Personalized messages with a call-to-action button delivered to a LinkedIn's member inbox.\nDYNAMIC - Ads that are dynamically personalized.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "This value is used as one of the following: amount to bid (for manual bidding), amount which is the target cost (for target cost bidding) per click, impression, or other event depending on the pricing model, or cost cap (for cost cap bidding). The amount of money as a real number string. The amount should be non-negative if the bidding strategy is manual, target cost, or cost cap bidding. The default is 0 with the currency code set to match that of the associated account.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Amount to bid per click, impression, or other event depending on the pricing model. The default is 0 with the currency code set to match that of the associated account. ISO currency code.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The ISO 4217 currency code of the account, such as 'USD' for United States Dollar (default).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency, on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `linkedin_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin://models/linkedin.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.78233, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__campaign_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith campaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from {{ var('campaign_group_history') }}\n where is_latest_version\n),\n\naccount as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nreport as (\n\n select *,\n {% if var('linkedin_ads__conversion_fields', none) %}\n {{ var('linkedin_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_analytics_by_campaign') }}\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.campaign_id,\n campaign.campaign_name,\n campaign.version_tag,\n campaign_group.campaign_group_id,\n campaign_group.campaign_group_name,\n account.account_id,\n account.account_name,\n campaign.status as campaign_status,\n campaign_group.status as campaign_group_status,\n campaign.type,\n campaign.cost_type,\n campaign.creative_selection,\n campaign.daily_budget_amount,\n campaign.daily_budget_currency_code,\n campaign.unit_cost_amount,\n campaign.unit_cost_currency_code,\n account.currency,\n campaign.format,\n campaign.locale_country,\n campaign.locale_language,\n campaign.objective_type,\n campaign.optimization_target_type,\n campaign.is_audience_expansion_enabled,\n campaign.is_offsite_delivery_enabled,\n campaign.run_schedule_start_at,\n campaign.run_schedule_end_at,\n campaign.last_modified_at,\n campaign.created_at,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency\n\n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='linkedin_ads__campaign_passthrough_metrics', exclude_fields=['conversion_value_in_local_currency']) }}\n \n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__campaign_passthrough_metrics', transform='sum', exclude_fields=['conversion_value_in_local_currency']) }}\n\n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n and campaign.source_relation = campaign_group.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n {{ dbt_utils.group_by(30) }}\n\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_group_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__account_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__ad_analytics_by_campaign", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin.linkedin_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin/models/linkedin_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith campaign as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__account_history\"\n where is_latest_version\n),\n\nreport as (\n\n select *,\n \n external_website_conversions + one_click_leads as total_conversions\n \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__ad_analytics_by_campaign\"\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n report.campaign_id,\n campaign.campaign_name,\n campaign.version_tag,\n campaign_group.campaign_group_id,\n campaign_group.campaign_group_name,\n account.account_id,\n account.account_name,\n campaign.status as campaign_status,\n campaign_group.status as campaign_group_status,\n campaign.type,\n campaign.cost_type,\n campaign.creative_selection,\n campaign.daily_budget_amount,\n campaign.daily_budget_currency_code,\n campaign.unit_cost_amount,\n campaign.unit_cost_currency_code,\n account.currency,\n campaign.format,\n campaign.locale_country,\n campaign.locale_language,\n campaign.objective_type,\n campaign.optimization_target_type,\n campaign.is_audience_expansion_enabled,\n campaign.is_offsite_delivery_enabled,\n campaign.run_schedule_start_at,\n campaign.run_schedule_end_at,\n campaign.last_modified_at,\n campaign.created_at,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency\n\n \n\n\n\n \n \n\n\n\n \n\n\n\n \n \n \n \n , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\n \n\n \n \n \n \n , sum(coalesce(one_click_leads, 0)) as one_click_leads\n \n\n \n\n\n\n \n \n\n\n\n\n\n \n\n\n\n\n\n\n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n and campaign.source_relation = campaign_group.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin.linkedin_ads__account_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "linkedin_ads__account_report", "resource_type": "model", "package_name": "linkedin", "path": "linkedin_ads__account_report.sql", "original_file_path": "models/linkedin_ads__account_report.sql", "unique_id": "model.linkedin.linkedin_ads__account_report", "fqn": ["linkedin", "linkedin_ads__account_report"], "alias": "linkedin_ads__account_report", "checksum": {"name": "sha256", "checksum": "5f2ac8dcbb1c7c2ccfd1032e9d8398a38c7c2a1ec3272f4871dbb464188c1982"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The ISO 4217 currency code of the account, such as 'USD' for United States Dollar (default).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "ACTIVE - Account is active; this is the default state\nCANCELLED - Account has been permanently cancelled\nDRAFT - Account is in draft status, meaning it's not yet fully set up and it is not serving\nPENDING_DELETION - Denotes that the account has been requested to be deleted that is currently pending\nREMOVED - Denotes that the account was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "BUSINESS - This is the only value allowed when creating accounts through the API.\nENTERPRISE - This value cannot be used to create accounts through the API and is reserved for accounts created by LinkedIn's internal ad operations systems.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency, on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `linkedin_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin://models/linkedin.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.7810419, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__account_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith account as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\nreport as (\n\n select *,\n {% if var('linkedin_ads__conversion_fields', none) %}\n {{ var('linkedin_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_analytics_by_campaign') }}\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n account.account_id,\n account.account_name,\n account.version_tag,\n account.currency,\n account.status,\n account.type,\n account.last_modified_at,\n account.created_at,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency\n\n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='linkedin_ads__campaign_passthrough_metrics', exclude_fields=['conversion_value_in_local_currency']) }}\n \n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__campaign_passthrough_metrics', transform='sum', exclude_fields=['conversion_value_in_local_currency']) }}\n\n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n {{ dbt_utils.group_by(10) }}\n\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_linkedin_ads__account_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__ad_analytics_by_campaign", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin.linkedin_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__campaign_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin/models/linkedin_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith account as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__account_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\nreport as (\n\n select *,\n \n external_website_conversions + one_click_leads as total_conversions\n \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__ad_analytics_by_campaign\"\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n account.account_id,\n account.account_name,\n account.version_tag,\n account.currency,\n account.status,\n account.type,\n account.last_modified_at,\n account.created_at,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency\n\n \n\n\n\n \n \n\n\n\n \n\n\n\n \n \n \n \n , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\n \n\n \n \n \n \n , sum(coalesce(one_click_leads, 0)) as one_click_leads\n \n\n \n\n\n\n \n \n\n\n\n\n\n \n\n\n\n\n\n\n from report \n left join campaign \n on report.campaign_id = campaign.campaign_id\n and report.source_relation = campaign.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.linkedin.linkedin_ads__url_report": {"database": "postgres", "schema": "zz_ad_reporting_ad_reporting_dev", "name": "linkedin_ads__url_report", "resource_type": "model", "package_name": "linkedin", "path": "linkedin_ads__url_report.sql", "original_file_path": "models/linkedin_ads__url_report.sql", "unique_id": "model.linkedin.linkedin_ads__url_report", "fqn": ["linkedin", "linkedin_ads__url_report"], "alias": "linkedin_ads__url_report", "checksum": {"name": "sha256", "checksum": "4052a7d4a636e401cf253b01aa241f72a6e77f6a767b59e894345ad4ff679f6a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the url level.", "columns": {"source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "A label for the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost of the ads in the local currency or USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_name": {"name": "campaign_group_name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "Unique internal ID representing the creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_uri": {"name": "click_uri", "description": "The URL where the member should be redirected to, on clicking the text ad or spotlight ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_uri_type": {"name": "click_uri_type", "description": "Will either be `text_ad`, `spotlight`, or `null` to indicate the origin of the click_uri.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_source": {"name": "utm_source", "description": "The utm_source parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_medium": {"name": "utm_medium", "description": "The utm_medium parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "The utm_campaign parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "The utm_content parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "The utm_term parameter of the ad, extracted from the `click_uri`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The ISO 4217 currency code of the account, such as 'USD' for United States Dollar (default).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "A label for the creative's campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Unique internal ID representing the creative's campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency, on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "The total conversions being brought in the conversion fields you select in your `linkedin_ads__conversion_fields`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "linkedin://models/linkedin.yml", "build_path": null, "unrendered_config": {"materialized": "table", "schema": "ad_reporting_{{ var('directed_schema','dev') }}", "enabled": true}, "created_at": 1734462186.7849972, "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__url_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith creative as (\n\n select *\n from {{ var('creative_history') }}\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from {{ var('campaign_group_history') }}\n where is_latest_version\n),\n\naccount as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nreport as (\n\n select *,\n {% if var('linkedin_ads__conversion_fields', none) %}\n {{ var('linkedin_ads__conversion_fields') | join(' + ') }} as total_conversions\n {% else %}\n 0 as total_conversions\n {% endif %}\n from {{ var('ad_analytics_by_creative') }}\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n creative.click_uri,\n creative.click_uri_type,\n creative.base_url,\n creative.url_host,\n creative.url_path,\n creative.utm_source,\n creative.utm_medium,\n creative.utm_campaign,\n creative.utm_content,\n creative.utm_term,\n report.creative_id,\n campaign.campaign_id,\n campaign.campaign_name,\n campaign_group.campaign_group_id,\n campaign_group.campaign_group_name,\n account.account_id,\n account.account_name,\n account.currency,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency\n\n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__conversion_fields', transform='sum', coalesce_with=0, except_variable='linkedin_ads__creative_passthrough_metrics', exclude_fields=['conversion_value_in_local_currency']) }}\n\n {{ linkedin_ads_persist_pass_through_columns(pass_through_variable='linkedin_ads__creative_passthrough_metrics', transform='sum', exclude_fields=['conversion_value_in_local_currency']) }}\n\n from report \n left join creative \n on report.creative_id = creative.creative_id\n and report.source_relation = creative.source_relation\n left join campaign \n on creative.campaign_id = campaign.campaign_id\n and creative.source_relation = campaign.source_relation\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n and campaign.source_relation = campaign_group.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where creative.click_uri is not null\n {% endif %}\n\n {{ dbt_utils.group_by(20) }}\n\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_linkedin_ads__creative_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__campaign_group_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__account_history", "package": null, "version": null}, {"name": "stg_linkedin_ads__ad_analytics_by_creative", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin.linkedin_ads_persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history", "model.linkedin_source.stg_linkedin_ads__campaign_history", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"]}, "compiled_path": "target/compiled/linkedin/models/linkedin_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith creative as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__creative_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__account_history\"\n where is_latest_version\n),\n\nreport as (\n\n select *,\n \n external_website_conversions + one_click_leads as total_conversions\n \n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__ad_analytics_by_creative\"\n),\n\nfinal as (\n\n select \n report.source_relation,\n report.date_day,\n creative.click_uri,\n creative.click_uri_type,\n creative.base_url,\n creative.url_host,\n creative.url_path,\n creative.utm_source,\n creative.utm_medium,\n creative.utm_campaign,\n creative.utm_content,\n creative.utm_term,\n report.creative_id,\n campaign.campaign_id,\n campaign.campaign_name,\n campaign_group.campaign_group_id,\n campaign_group.campaign_group_name,\n account.account_id,\n account.account_name,\n account.currency,\n sum(report.total_conversions) as total_conversions,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.cost) as cost,\n sum(coalesce(report.conversion_value_in_local_currency, 0)) as conversion_value_in_local_currency\n\n \n\n\n\n \n \n\n\n\n \n\n\n\n \n \n \n \n , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\n \n\n \n \n \n \n , sum(coalesce(one_click_leads, 0)) as one_click_leads\n \n\n \n\n\n\n\n \n\n\n\n\n\n \n\n\n\n\n\n\n from report \n left join creative \n on report.creative_id = creative.creative_id\n and report.source_relation = creative.source_relation\n left join campaign \n on creative.campaign_id = campaign.campaign_id\n and creative.source_relation = campaign.source_relation\n left join campaign_group\n on campaign.campaign_group_id = campaign_group.campaign_group_id\n and campaign.source_relation = campaign_group.source_relation\n left join account \n on campaign.account_id = account.account_id\n and campaign.source_relation = account.source_relation\n\n \n where creative.click_uri is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_microsoft_ads__account_history_account_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__account_history_account_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__account_history_account_id"], "alias": "not_null_stg_microsoft_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.318552, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__account_history_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_history\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_microsoft_ads__account_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__account_history')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_source_relation__account_id__modified_at.c32440cfcf": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_source_relation__account_id__modified_at", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_fd0c684a99c865caaa2ba98ca9bf539c.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_source_relation__account_id__modified_at.c32440cfcf", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_source_relation__account_id__modified_at"], "alias": "dbt_utils_unique_combination_o_fd0c684a99c865caaa2ba98ca9bf539c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd0c684a99c865caaa2ba98ca9bf539c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd0c684a99c865caaa2ba98ca9bf539c"}, "created_at": 1734462185.31969, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd0c684a99c865caaa2ba98ca9bf539c\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_fd0c684a99c865caaa2ba98ca9bf539c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, modified_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_history\"\n group by source_relation, account_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__account_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__account_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__account_history')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_microsoft_ads__account_daily_report_account_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__account_daily_report_account_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__account_daily_report_account_id"], "alias": "not_null_stg_microsoft_ads__account_daily_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.331684, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__account_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__account_daily_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_daily_report\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_microsoft_ads__account_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__account_daily_report')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.38a7aa3e12": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_24fc92b66d79de757c43a6e173150686.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.38a7aa3e12", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other"], "alias": "dbt_utils_unique_combination_o_24fc92b66d79de757c43a6e173150686", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_24fc92b66d79de757c43a6e173150686", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_24fc92b66d79de757c43a6e173150686"}, "created_at": 1734462185.3326879, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_24fc92b66d79de757c43a6e173150686\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__account_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_24fc92b66d79de757c43a6e173150686.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, device_os, device_type, network, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__account_daily_report\"\n group by source_relation, date_day, account_id, device_os, device_type, network, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__account_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "device_os", "device_type", "network", "currency_code", "ad_distribution", "bid_match_type", "delivered_match_type", "top_vs_other"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__account_daily_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_microsoft_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_microsoft_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.335089, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_group_history\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_microsoft_ads__ad_group_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_group_history')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_source_relation__ad_group_id__modified_at.f2ed2b82b0": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_source_relation__ad_group_id__modified_at", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_4bccb1798d57535f6f2f7ad9f2a0aca8.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_source_relation__ad_group_id__modified_at.f2ed2b82b0", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_source_relation__ad_group_id__modified_at"], "alias": "dbt_utils_unique_combination_o_4bccb1798d57535f6f2f7ad9f2a0aca8", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4bccb1798d57535f6f2f7ad9f2a0aca8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4bccb1798d57535f6f2f7ad9f2a0aca8"}, "created_at": 1734462185.3360798, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4bccb1798d57535f6f2f7ad9f2a0aca8\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_4bccb1798d57535f6f2f7ad9f2a0aca8.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, modified_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_group_history\"\n group by source_relation, ad_group_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__ad_group_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.3e03e6eff7": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.3e03e6eff7", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id"], "alias": "not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.338937, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_group_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_group_daily_report\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_microsoft_ads__ad_group_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_group_daily_report')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.3825c46fa1": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_0902115b2621a174738ffb2c9c30fd29.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.3825c46fa1", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other"], "alias": "dbt_utils_unique_combination_o_0902115b2621a174738ffb2c9c30fd29", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0902115b2621a174738ffb2c9c30fd29", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0902115b2621a174738ffb2c9c30fd29"}, "created_at": 1734462185.3399491, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0902115b2621a174738ffb2c9c30fd29\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_group_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_0902115b2621a174738ffb2c9c30fd29.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_group_daily_report\"\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__ad_group_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "device_os", "device_type", "network", "language", "currency_code", "ad_distribution", "bid_match_type", "delivered_match_type", "top_vs_other"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_group_daily_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_microsoft_ads__ad_history_ad_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_history_ad_id"], "alias": "not_null_stg_microsoft_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.342389, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_history\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_microsoft_ads__ad_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_history')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_source_relation__ad_id__modified_at.2eb6255160": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_source_relation__ad_id__modified_at", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_36f20424137d25e995b09c1bddfcce89.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_source_relation__ad_id__modified_at.2eb6255160", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_source_relation__ad_id__modified_at"], "alias": "dbt_utils_unique_combination_o_36f20424137d25e995b09c1bddfcce89", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_36f20424137d25e995b09c1bddfcce89", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_36f20424137d25e995b09c1bddfcce89"}, "created_at": 1734462185.34337, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_36f20424137d25e995b09c1bddfcce89\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_36f20424137d25e995b09c1bddfcce89.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, modified_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_history\"\n group by source_relation, ad_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__ad_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_history')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_microsoft_ads__ad_daily_report_ad_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_daily_report_ad_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_daily_report_ad_id"], "alias": "not_null_stg_microsoft_ads__ad_daily_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.3457432, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_daily_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_daily_report\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_microsoft_ads__ad_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_daily_report')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.b6f971641a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_afb39c900eb4e18f43cfee06db282632.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.b6f971641a", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other"], "alias": "dbt_utils_unique_combination_o_afb39c900eb4e18f43cfee06db282632", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_afb39c900eb4e18f43cfee06db282632", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_afb39c900eb4e18f43cfee06db282632"}, "created_at": 1734462185.3467462, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_afb39c900eb4e18f43cfee06db282632\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__ad_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_afb39c900eb4e18f43cfee06db282632.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__ad_daily_report\"\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__ad_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "ad_id", "device_os", "device_type", "network", "language", "currency_code", "ad_distribution", "bid_match_type", "delivered_match_type", "top_vs_other"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__ad_daily_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_microsoft_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__campaign_history_campaign_id"], "alias": "not_null_stg_microsoft_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.349117, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_microsoft_ads__campaign_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__campaign_history')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_source_relation__campaign_id__modified_at.56da51b12d": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_source_relation__campaign_id__modified_at", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_a9206f441502e8d379d26b48adcc646a.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_source_relation__campaign_id__modified_at.56da51b12d", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_source_relation__campaign_id__modified_at"], "alias": "dbt_utils_unique_combination_o_a9206f441502e8d379d26b48adcc646a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a9206f441502e8d379d26b48adcc646a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a9206f441502e8d379d26b48adcc646a"}, "created_at": 1734462185.3500931, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a9206f441502e8d379d26b48adcc646a\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_a9206f441502e8d379d26b48adcc646a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, modified_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__campaign_history\"\n group by source_relation, campaign_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__campaign_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_microsoft_ads__campaign_daily_report_campaign_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__campaign_daily_report_campaign_id"], "alias": "not_null_stg_microsoft_ads__campaign_daily_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.352449, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__campaign_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__campaign_daily_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_microsoft_ads__campaign_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__campaign_daily_report')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other__budget_association_status__budget_name__budget_status.f7a5fd8430": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other__budget_association_status__budget_name__budget_status", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_2ccebec14519a7e01ea4724718f83222.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other__budget_association_status__budget_name__budget_status.f7a5fd8430", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other__budget_association_status__budget_name__budget_status"], "alias": "dbt_utils_unique_combination_o_2ccebec14519a7e01ea4724718f83222", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2ccebec14519a7e01ea4724718f83222", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2ccebec14519a7e01ea4724718f83222"}, "created_at": 1734462185.353447, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2ccebec14519a7e01ea4724718f83222\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__campaign_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_2ccebec14519a7e01ea4724718f83222.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, device_os, device_type, network, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other, budget_association_status, budget_name, budget_status\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__campaign_daily_report\"\n group by source_relation, date_day, account_id, campaign_id, device_os, device_type, network, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other, budget_association_status, budget_name, budget_status\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__campaign_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "device_os", "device_type", "network", "currency_code", "ad_distribution", "bid_match_type", "delivered_match_type", "top_vs_other", "budget_association_status", "budget_name", "budget_status"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__campaign_daily_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_microsoft_ads__keyword_history_keyword_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__keyword_history_keyword_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__keyword_history_keyword_id"], "alias": "not_null_stg_microsoft_ads__keyword_history_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.355825, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__keyword_history_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__keyword_history\"\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_microsoft_ads__keyword_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__keyword_history')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_source_relation__keyword_id__modified_at.5b0ba5f522": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_source_relation__keyword_id__modified_at", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_3d684e3f5d593598c7dfd5dec44ebf4d.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_source_relation__keyword_id__modified_at.5b0ba5f522", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_source_relation__keyword_id__modified_at"], "alias": "dbt_utils_unique_combination_o_3d684e3f5d593598c7dfd5dec44ebf4d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3d684e3f5d593598c7dfd5dec44ebf4d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3d684e3f5d593598c7dfd5dec44ebf4d"}, "created_at": 1734462185.3568041, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3d684e3f5d593598c7dfd5dec44ebf4d\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_3d684e3f5d593598c7dfd5dec44ebf4d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, keyword_id, modified_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__keyword_history\"\n group by source_relation, keyword_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__keyword_history", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "keyword_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__keyword_history')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_microsoft_ads__keyword_daily_report_keyword_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__keyword_daily_report_keyword_id"], "alias": "not_null_stg_microsoft_ads__keyword_daily_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.359157, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__keyword_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__keyword_daily_report\"\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_microsoft_ads__keyword_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__keyword_daily_report')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.e55a075940": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_b9d274ec4831da0d0e2b1b588084170b.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.e55a075940", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other"], "alias": "dbt_utils_unique_combination_o_b9d274ec4831da0d0e2b1b588084170b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b9d274ec4831da0d0e2b1b588084170b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b9d274ec4831da0d0e2b1b588084170b"}, "created_at": 1734462185.3601542, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b9d274ec4831da0d0e2b1b588084170b\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__keyword_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_b9d274ec4831da0d0e2b1b588084170b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__keyword_daily_report\"\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, device_os, device_type, network, language, currency_code, ad_distribution, bid_match_type, delivered_match_type, top_vs_other\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__keyword_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "ad_id", "keyword_id", "device_os", "device_type", "network", "language", "currency_code", "ad_distribution", "bid_match_type", "delivered_match_type", "top_vs_other"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__keyword_daily_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_microsoft_ads__search_daily_report_search_query", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__search_daily_report_search_query.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__search_daily_report_search_query"], "alias": "not_null_stg_microsoft_ads__search_daily_report_search_query", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.362527, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__search_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__search_daily_report_search_query.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__search_daily_report\"\nwhere search_query is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "search_query", "file_key_name": "models.stg_microsoft_ads__search_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_query", "model": "{{ get_where_subquery(ref('stg_microsoft_ads__search_daily_report')) }}"}, "namespace": null}}, "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__language__bid_match_type__delivered_match_type__top_vs_other.97d894068e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__language__bid_match_type__delivered_match_type__top_vs_other", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_a4b41f8430878af32e4031df276d6f5a.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__language__bid_match_type__delivered_match_type__top_vs_other.97d894068e", "fqn": ["microsoft_ads_source", "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__language__bid_match_type__delivered_match_type__top_vs_other"], "alias": "dbt_utils_unique_combination_o_a4b41f8430878af32e4031df276d6f5a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a4b41f8430878af32e4031df276d6f5a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a4b41f8430878af32e4031df276d6f5a"}, "created_at": 1734462185.363529, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a4b41f8430878af32e4031df276d6f5a\") }}", "language": "sql", "refs": [{"name": "stg_microsoft_ads__search_daily_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_a4b41f8430878af32e4031df276d6f5a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, search_query, device_os, device_type, network, language, bid_match_type, delivered_match_type, top_vs_other\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_microsoft_ads__search_daily_report\"\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, search_query, device_os, device_type, network, language, bid_match_type, delivered_match_type, top_vs_other\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_microsoft_ads__search_daily_report", "attached_node": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "ad_id", "keyword_id", "search_query", "device_os", "device_type", "network", "language", "bid_match_type", "delivered_match_type", "top_vs_other"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__search_daily_report')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_tiktok_ads__advertiser_report_date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__advertiser_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99", "fqn": ["tiktok_ads", "not_null_tiktok_ads__advertiser_report_date_day"], "alias": "not_null_tiktok_ads__advertiser_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.3861198, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__advertiser_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__advertiser_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__advertiser_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.tiktok_ads__advertiser_report", "attached_node": "model.tiktok_ads.tiktok_ads__advertiser_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__advertiser_report')) }}"}, "namespace": null}}, "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_tiktok_ads__advertiser_report_advertiser_id", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__advertiser_report_advertiser_id.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce", "fqn": ["tiktok_ads", "not_null_tiktok_ads__advertiser_report_advertiser_id"], "alias": "not_null_tiktok_ads__advertiser_report_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.38713, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__advertiser_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__advertiser_report_advertiser_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__advertiser_report\"\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "advertiser_id", "file_key_name": "models.tiktok_ads__advertiser_report", "attached_node": "model.tiktok_ads.tiktok_ads__advertiser_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('tiktok_ads__advertiser_report')) }}"}, "namespace": null}}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_source_relation__advertiser_id__date_day.1797053b3d": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_source_relation__advertiser_id__date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "dbt_utils_unique_combination_o_140f770f737e1536979813abf05995df.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_source_relation__advertiser_id__date_day.1797053b3d", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_source_relation__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_140f770f737e1536979813abf05995df", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_140f770f737e1536979813abf05995df", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_140f770f737e1536979813abf05995df"}, "created_at": 1734462185.388109, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_140f770f737e1536979813abf05995df\") }}", "language": "sql", "refs": [{"name": "tiktok_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__advertiser_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_140f770f737e1536979813abf05995df.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, advertiser_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__advertiser_report\"\n group by source_relation, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.tiktok_ads__advertiser_report", "attached_node": "model.tiktok_ads.tiktok_ads__advertiser_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__advertiser_report')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_tiktok_ads__ad_report_date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__ad_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_report_date_day"], "alias": "not_null_tiktok_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.390508, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__ad_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.tiktok_ads__ad_report", "attached_node": "model.tiktok_ads.tiktok_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__ad_report')) }}"}, "namespace": null}}, "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_tiktok_ads__ad_report_ad_id", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__ad_report_ad_id.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_report_ad_id"], "alias": "not_null_tiktok_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.391485, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__ad_report\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.tiktok_ads__ad_report", "attached_node": "model.tiktok_ads.tiktok_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('tiktok_ads__ad_report')) }}"}, "namespace": null}}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.c260f4392a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "dbt_utils_unique_combination_o_07c2675cf1cf332b94992557f4d839f4.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.c260f4392a", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_07c2675cf1cf332b94992557f4d839f4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_07c2675cf1cf332b94992557f4d839f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_07c2675cf1cf332b94992557f4d839f4"}, "created_at": 1734462185.392473, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_07c2675cf1cf332b94992557f4d839f4\") }}", "language": "sql", "refs": [{"name": "tiktok_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_07c2675cf1cf332b94992557f4d839f4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, ad_group_id, campaign_id, advertiser_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__ad_report\"\n group by source_relation, ad_id, ad_group_id, campaign_id, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.tiktok_ads__ad_report", "attached_node": "model.tiktok_ads.tiktok_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_tiktok_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__ad_group_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_group_report_date_day"], "alias": "not_null_tiktok_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.394811, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_group_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__ad_group_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.tiktok_ads__ad_group_report", "attached_node": "model.tiktok_ads.tiktok_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__ad_group_report')) }}"}, "namespace": null}}, "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_tiktok_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_group_report_ad_group_id"], "alias": "not_null_tiktok_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.395787, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_group_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.tiktok_ads__ad_group_report", "attached_node": "model.tiktok_ads.tiktok_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('tiktok_ads__ad_group_report')) }}"}, "namespace": null}}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_source_relation__ad_group_id__campaign_id__advertiser_id__date_day.e3850c1634": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_source_relation__ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "dbt_utils_unique_combination_o_d355d65e29e6861aa224ba04f4e7a989.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_source_relation__ad_group_id__campaign_id__advertiser_id__date_day.e3850c1634", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_source_relation__ad_group_id__campaign_id__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_d355d65e29e6861aa224ba04f4e7a989", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d355d65e29e6861aa224ba04f4e7a989", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d355d65e29e6861aa224ba04f4e7a989"}, "created_at": 1734462185.396781, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d355d65e29e6861aa224ba04f4e7a989\") }}", "language": "sql", "refs": [{"name": "tiktok_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_group_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_d355d65e29e6861aa224ba04f4e7a989.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, campaign_id, advertiser_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__ad_group_report\"\n group by source_relation, ad_group_id, campaign_id, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.tiktok_ads__ad_group_report", "attached_node": "model.tiktok_ads.tiktok_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_tiktok_ads__campaign_report_date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__campaign_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836", "fqn": ["tiktok_ads", "not_null_tiktok_ads__campaign_report_date_day"], "alias": "not_null_tiktok_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.399128, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__campaign_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__campaign_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.tiktok_ads__campaign_report", "attached_node": "model.tiktok_ads.tiktok_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__campaign_report')) }}"}, "namespace": null}}, "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_tiktok_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__campaign_report_campaign_id.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8", "fqn": ["tiktok_ads", "not_null_tiktok_ads__campaign_report_campaign_id"], "alias": "not_null_tiktok_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.400106, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__campaign_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.tiktok_ads__campaign_report", "attached_node": "model.tiktok_ads.tiktok_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('tiktok_ads__campaign_report')) }}"}, "namespace": null}}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.98200e9b0f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "dbt_utils_unique_combination_o_0d0d412752932f69c282547f17119363.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.98200e9b0f", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_0d0d412752932f69c282547f17119363", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0d0d412752932f69c282547f17119363", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0d0d412752932f69c282547f17119363"}, "created_at": 1734462185.401149, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0d0d412752932f69c282547f17119363\") }}", "language": "sql", "refs": [{"name": "tiktok_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__campaign_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_0d0d412752932f69c282547f17119363.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, advertiser_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__campaign_report\"\n group by source_relation, campaign_id, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.tiktok_ads__campaign_report", "attached_node": "model.tiktok_ads.tiktok_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_tiktok_ads__url_report_date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__url_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff", "fqn": ["tiktok_ads", "not_null_tiktok_ads__url_report_date_day"], "alias": "not_null_tiktok_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.4034219, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__url_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.tiktok_ads__url_report", "attached_node": "model.tiktok_ads.tiktok_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('tiktok_ads__url_report')) }}"}, "namespace": null}}, "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_tiktok_ads__url_report_ad_id", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__url_report_ad_id.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0", "fqn": ["tiktok_ads", "not_null_tiktok_ads__url_report_ad_id"], "alias": "not_null_tiktok_ads__url_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.404727, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "tiktok_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__url_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__url_report\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.tiktok_ads__url_report", "attached_node": "model.tiktok_ads.tiktok_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('tiktok_ads__url_report')) }}"}, "namespace": null}}, "test.tiktok_ads.not_null_tiktok_ads__url_report_base_url.37afef2e1b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_tiktok_ads__url_report_base_url", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__url_report_base_url.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_base_url.37afef2e1b", "fqn": ["tiktok_ads", "not_null_tiktok_ads__url_report_base_url"], "alias": "not_null_tiktok_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1734462185.4060428, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "tiktok_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__url_report\"\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "base_url", "file_key_name": "models.tiktok_ads__url_report", "attached_node": "model.tiktok_ads.tiktok_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('tiktok_ads__url_report')) }}"}, "namespace": null}}, "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.98153764a3": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "dbt_utils_unique_combination_o_177663ef68046a7cc077e14a1b22e5ec.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.98153764a3", "fqn": ["tiktok_ads", "dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_177663ef68046a7cc077e14a1b22e5ec", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_177663ef68046a7cc077e14a1b22e5ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_177663ef68046a7cc077e14a1b22e5ec"}, "created_at": 1734462185.407362, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_177663ef68046a7cc077e14a1b22e5ec\") }}", "language": "sql", "refs": [{"name": "tiktok_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_177663ef68046a7cc077e14a1b22e5ec.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, ad_group_id, campaign_id, advertiser_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"tiktok_ads__url_report\"\n group by source_relation, ad_id, ad_group_id, campaign_id, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.tiktok_ads__url_report", "attached_node": "model.tiktok_ads.tiktok_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('tiktok_ads__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_twitter_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__campaign_report_campaign_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8", "fqn": ["twitter_ads", "not_null_twitter_ads__campaign_report_campaign_id"], "alias": "not_null_twitter_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.4329531, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.twitter_ads__campaign_report", "attached_node": "model.twitter_ads.twitter_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('twitter_ads__campaign_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_twitter_ads__campaign_report_date_day", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__campaign_report_date_day.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0", "fqn": ["twitter_ads", "not_null_twitter_ads__campaign_report_date_day"], "alias": "not_null_twitter_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.4339619, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__campaign_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.twitter_ads__campaign_report", "attached_node": "model.twitter_ads.twitter_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__campaign_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_twitter_ads__campaign_report_placement", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__campaign_report_placement.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82", "fqn": ["twitter_ads", "not_null_twitter_ads__campaign_report_placement"], "alias": "not_null_twitter_ads__campaign_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.434925, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__campaign_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__campaign_report\"\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "placement", "file_key_name": "models.twitter_ads__campaign_report", "attached_node": "model.twitter_ads.twitter_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__campaign_report')) }}"}, "namespace": null}}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement__account_id.f449ef6d6e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement__account_id", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_02bc64234d213a7d84793c735381a659.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement__account_id.f449ef6d6e", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement__account_id"], "alias": "dbt_utils_unique_combination_o_02bc64234d213a7d84793c735381a659", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_02bc64234d213a7d84793c735381a659", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_02bc64234d213a7d84793c735381a659"}, "created_at": 1734462185.435897, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_02bc64234d213a7d84793c735381a659\") }}", "language": "sql", "refs": [{"name": "twitter_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_02bc64234d213a7d84793c735381a659.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, campaign_id, placement, account_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__campaign_report\"\n group by source_relation, date_day, campaign_id, placement, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.twitter_ads__campaign_report", "attached_node": "model.twitter_ads.twitter_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "campaign_id", "placement", "account_id"], "model": "{{ get_where_subquery(ref('twitter_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_twitter_ads__line_item_report_date_day", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__line_item_report_date_day.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce", "fqn": ["twitter_ads", "not_null_twitter_ads__line_item_report_date_day"], "alias": "not_null_twitter_ads__line_item_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.4383092, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__line_item_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__line_item_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__line_item_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.twitter_ads__line_item_report", "attached_node": "model.twitter_ads.twitter_ads__line_item_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__line_item_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_twitter_ads__line_item_report_line_item_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__line_item_report_line_item_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211", "fqn": ["twitter_ads", "not_null_twitter_ads__line_item_report_line_item_id"], "alias": "not_null_twitter_ads__line_item_report_line_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.439275, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__line_item_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__line_item_report_line_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__line_item_report\"\nwhere line_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "line_item_id", "file_key_name": "models.twitter_ads__line_item_report", "attached_node": "model.twitter_ads.twitter_ads__line_item_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "line_item_id", "model": "{{ get_where_subquery(ref('twitter_ads__line_item_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_twitter_ads__line_item_report_placement", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__line_item_report_placement.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312", "fqn": ["twitter_ads", "not_null_twitter_ads__line_item_report_placement"], "alias": "not_null_twitter_ads__line_item_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.4402308, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__line_item_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__line_item_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__line_item_report\"\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "placement", "file_key_name": "models.twitter_ads__line_item_report", "attached_node": "model.twitter_ads.twitter_ads__line_item_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__line_item_report')) }}"}, "namespace": null}}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement__campaign_id__account_id.f8d7069cba": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement__campaign_id__account_id", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_47a9c1079b38bf350eea56f5375787a1.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement__campaign_id__account_id.f8d7069cba", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement__campaign_id__account_id"], "alias": "dbt_utils_unique_combination_o_47a9c1079b38bf350eea56f5375787a1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_47a9c1079b38bf350eea56f5375787a1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_47a9c1079b38bf350eea56f5375787a1"}, "created_at": 1734462185.441271, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_47a9c1079b38bf350eea56f5375787a1\") }}", "language": "sql", "refs": [{"name": "twitter_ads__line_item_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_47a9c1079b38bf350eea56f5375787a1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, line_item_id, placement, campaign_id, account_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__line_item_report\"\n group by source_relation, date_day, line_item_id, placement, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.twitter_ads__line_item_report", "attached_node": "model.twitter_ads.twitter_ads__line_item_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "line_item_id", "placement", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('twitter_ads__line_item_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_twitter_ads__account_report_date_day", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__account_report_date_day.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846", "fqn": ["twitter_ads", "not_null_twitter_ads__account_report_date_day"], "alias": "not_null_twitter_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.443539, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__account_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__account_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.twitter_ads__account_report", "attached_node": "model.twitter_ads.twitter_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__account_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_twitter_ads__account_report_placement", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__account_report_placement.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194", "fqn": ["twitter_ads", "not_null_twitter_ads__account_report_placement"], "alias": "not_null_twitter_ads__account_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.444591, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__account_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__account_report\"\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "placement", "file_key_name": "models.twitter_ads__account_report", "attached_node": "model.twitter_ads.twitter_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__account_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_twitter_ads__account_report_account_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__account_report_account_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908", "fqn": ["twitter_ads", "not_null_twitter_ads__account_report_account_id"], "alias": "not_null_twitter_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.445555, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__account_report\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.twitter_ads__account_report", "attached_node": "model.twitter_ads.twitter_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('twitter_ads__account_report')) }}"}, "namespace": null}}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_source_relation__date_day__account_id__placement.e6a884489c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__account_report_source_relation__date_day__account_id__placement", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_401facf0c1c1c4844ced62cf4f8e3a9f.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_source_relation__date_day__account_id__placement.e6a884489c", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__account_report_source_relation__date_day__account_id__placement"], "alias": "dbt_utils_unique_combination_o_401facf0c1c1c4844ced62cf4f8e3a9f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_401facf0c1c1c4844ced62cf4f8e3a9f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_401facf0c1c1c4844ced62cf4f8e3a9f"}, "created_at": 1734462185.446526, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_401facf0c1c1c4844ced62cf4f8e3a9f\") }}", "language": "sql", "refs": [{"name": "twitter_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_401facf0c1c1c4844ced62cf4f8e3a9f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, placement\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__account_report\"\n group by source_relation, date_day, account_id, placement\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.twitter_ads__account_report", "attached_node": "model.twitter_ads.twitter_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "placement"], "model": "{{ get_where_subquery(ref('twitter_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_twitter_ads__keyword_report_date_day", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__keyword_report_date_day.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec", "fqn": ["twitter_ads", "not_null_twitter_ads__keyword_report_date_day"], "alias": "not_null_twitter_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.448854, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__keyword_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__keyword_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__keyword_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.twitter_ads__keyword_report", "attached_node": "model.twitter_ads.twitter_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword_id.91efa0a538": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_twitter_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__keyword_report_keyword_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword_id.91efa0a538", "fqn": ["twitter_ads", "not_null_twitter_ads__keyword_report_keyword_id"], "alias": "not_null_twitter_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.449931, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__keyword_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__keyword_report\"\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.twitter_ads__keyword_report", "attached_node": "model.twitter_ads.twitter_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": null}}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_source_relation__date_day__keyword_id__campaign_id.c51ddef475": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_source_relation__date_day__keyword_id__campaign_id", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_407d49ba65eb901e8ced2ed2e754bf53.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_source_relation__date_day__keyword_id__campaign_id.c51ddef475", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_source_relation__date_day__keyword_id__campaign_id"], "alias": "dbt_utils_unique_combination_o_407d49ba65eb901e8ced2ed2e754bf53", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_407d49ba65eb901e8ced2ed2e754bf53", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_407d49ba65eb901e8ced2ed2e754bf53"}, "created_at": 1734462185.450996, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_407d49ba65eb901e8ced2ed2e754bf53\") }}", "language": "sql", "refs": [{"name": "twitter_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__keyword_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_407d49ba65eb901e8ced2ed2e754bf53.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, keyword_id, campaign_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__keyword_report\"\n group by source_relation, date_day, keyword_id, campaign_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.twitter_ads__keyword_report", "attached_node": "model.twitter_ads.twitter_ads__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "keyword_id", "campaign_id"], "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_twitter_ads__promoted_tweet_report_placement", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__promoted_tweet_report_placement.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5", "fqn": ["twitter_ads", "not_null_twitter_ads__promoted_tweet_report_placement"], "alias": "not_null_twitter_ads__promoted_tweet_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.45344, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__promoted_tweet_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__promoted_tweet_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__promoted_tweet_report\"\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "placement", "file_key_name": "models.twitter_ads__promoted_tweet_report", "attached_node": "model.twitter_ads.twitter_ads__promoted_tweet_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e", "fqn": ["twitter_ads", "not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id"], "alias": "not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.454418, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__promoted_tweet_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__promoted_tweet_report\"\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "promoted_tweet_id", "file_key_name": "models.twitter_ads__promoted_tweet_report", "attached_node": "model.twitter_ads.twitter_ads__promoted_tweet_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "promoted_tweet_id", "model": "{{ get_where_subquery(ref('twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f6814a1cc6": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_912850b682f4c24196d3f66e79d2c1e4.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f6814a1cc6", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id"], "alias": "dbt_utils_unique_combination_o_912850b682f4c24196d3f66e79d2c1e4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_912850b682f4c24196d3f66e79d2c1e4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_912850b682f4c24196d3f66e79d2c1e4"}, "created_at": 1734462185.455395, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_912850b682f4c24196d3f66e79d2c1e4\") }}", "language": "sql", "refs": [{"name": "twitter_ads__promoted_tweet_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_912850b682f4c24196d3f66e79d2c1e4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, promoted_tweet_id, placement, line_item_id, campaign_id, account_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__promoted_tweet_report\"\n group by source_relation, date_day, promoted_tweet_id, placement, line_item_id, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.twitter_ads__promoted_tweet_report", "attached_node": "model.twitter_ads.twitter_ads__promoted_tweet_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "promoted_tweet_id", "placement", "line_item_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('twitter_ads__promoted_tweet_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_twitter_ads__url_report_date_day", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__url_report_date_day.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_date_day"], "alias": "not_null_twitter_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.45779, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__url_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.twitter_ads__url_report", "attached_node": "model.twitter_ads.twitter_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('twitter_ads__url_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_twitter_ads__url_report_placement", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__url_report_placement.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_placement"], "alias": "not_null_twitter_ads__url_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.4587562, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__url_report\"\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "placement", "file_key_name": "models.twitter_ads__url_report", "attached_node": "model.twitter_ads.twitter_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('twitter_ads__url_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_twitter_ads__url_report_promoted_tweet_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__url_report_promoted_tweet_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_promoted_tweet_id"], "alias": "not_null_twitter_ads__url_report_promoted_tweet_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.459778, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "twitter_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_promoted_tweet_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__url_report\"\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "promoted_tweet_id", "file_key_name": "models.twitter_ads__url_report", "attached_node": "model.twitter_ads.twitter_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "promoted_tweet_id", "model": "{{ get_where_subquery(ref('twitter_ads__url_report')) }}"}, "namespace": null}}, "test.twitter_ads.not_null_twitter_ads__url_report_base_url.dfd7ab549e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_twitter_ads__url_report_base_url", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__url_report_base_url.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_base_url.dfd7ab549e", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_base_url"], "alias": "not_null_twitter_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1734462185.461067, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "twitter_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__url_report\"\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "base_url", "file_key_name": "models.twitter_ads__url_report", "attached_node": "model.twitter_ads.twitter_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('twitter_ads__url_report')) }}"}, "namespace": null}}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f44851c31f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__url_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_62ddca6ed33b795b69845d9811875899.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f44851c31f", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__url_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id"], "alias": "dbt_utils_unique_combination_o_62ddca6ed33b795b69845d9811875899", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_62ddca6ed33b795b69845d9811875899", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_62ddca6ed33b795b69845d9811875899"}, "created_at": 1734462185.462365, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_62ddca6ed33b795b69845d9811875899\") }}", "language": "sql", "refs": [{"name": "twitter_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_62ddca6ed33b795b69845d9811875899.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, promoted_tweet_id, placement, line_item_id, campaign_id, account_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"twitter_ads__url_report\"\n group by source_relation, date_day, promoted_tweet_id, placement, line_item_id, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.twitter_ads__url_report", "attached_node": "model.twitter_ads.twitter_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "promoted_tweet_id", "placement", "line_item_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('twitter_ads__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads.not_null_reddit_ads__account_report_date_day.7b43e6cb90": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_reddit_ads__account_report_date_day", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__account_report_date_day.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__account_report_date_day.7b43e6cb90", "fqn": ["reddit_ads", "not_null_reddit_ads__account_report_date_day"], "alias": "not_null_reddit_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.52203, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__account_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__account_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__account_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.reddit_ads__account_report", "attached_node": "model.reddit_ads.reddit_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('reddit_ads__account_report')) }}"}, "namespace": null}}, "test.reddit_ads.not_null_reddit_ads__account_report_account_id.16f11188c5": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_reddit_ads__account_report_account_id", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__account_report_account_id.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__account_report_account_id.16f11188c5", "fqn": ["reddit_ads", "not_null_reddit_ads__account_report_account_id"], "alias": "not_null_reddit_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.5230908, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__account_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__account_report\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.reddit_ads__account_report", "attached_node": "model.reddit_ads.reddit_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('reddit_ads__account_report')) }}"}, "namespace": null}}, "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__account_report_source_relation__date_day__account_id__attribution_type__currency__status__time_zone_id.7260e1923b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_reddit_ads__account_report_source_relation__date_day__account_id__attribution_type__currency__status__time_zone_id", "resource_type": "test", "package_name": "reddit_ads", "path": "dbt_utils_unique_combination_o_b01336185716ff7da321a3db6183df78.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__account_report_source_relation__date_day__account_id__attribution_type__currency__status__time_zone_id.7260e1923b", "fqn": ["reddit_ads", "dbt_utils_unique_combination_of_columns_reddit_ads__account_report_source_relation__date_day__account_id__attribution_type__currency__status__time_zone_id"], "alias": "dbt_utils_unique_combination_o_b01336185716ff7da321a3db6183df78", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b01336185716ff7da321a3db6183df78", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b01336185716ff7da321a3db6183df78"}, "created_at": 1734462185.524089, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b01336185716ff7da321a3db6183df78\") }}", "language": "sql", "refs": [{"name": "reddit_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__account_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/dbt_utils_unique_combination_o_b01336185716ff7da321a3db6183df78.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, attribution_type, currency, status, time_zone_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__account_report\"\n group by source_relation, date_day, account_id, attribution_type, currency, status, time_zone_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.reddit_ads__account_report", "attached_node": "model.reddit_ads.reddit_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "attribution_type", "currency", "status", "time_zone_id"], "model": "{{ get_where_subquery(ref('reddit_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads.not_null_reddit_ads__ad_group_report_date_day.6463e6f6f7": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_reddit_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__ad_group_report_date_day.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_group_report_date_day.6463e6f6f7", "fqn": ["reddit_ads", "not_null_reddit_ads__ad_group_report_date_day"], "alias": "not_null_reddit_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.526548, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__ad_group_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.reddit_ads__ad_group_report", "attached_node": "model.reddit_ads.reddit_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('reddit_ads__ad_group_report')) }}"}, "namespace": null}}, "test.reddit_ads.not_null_reddit_ads__ad_group_report_ad_group_id.057bd60604": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_reddit_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_group_report_ad_group_id.057bd60604", "fqn": ["reddit_ads", "not_null_reddit_ads__ad_group_report_ad_group_id"], "alias": "not_null_reddit_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.527543, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.reddit_ads__ad_group_report", "attached_node": "model.reddit_ads.reddit_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('reddit_ads__ad_group_report')) }}"}, "namespace": null}}, "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_source_relation__date_day__account_id__ad_group_id__campaign_id__currency.bd33f1f46d": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_source_relation__date_day__account_id__ad_group_id__campaign_id__currency", "resource_type": "test", "package_name": "reddit_ads", "path": "dbt_utils_unique_combination_o_60946addb3d384a7cc48833998401413.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_source_relation__date_day__account_id__ad_group_id__campaign_id__currency.bd33f1f46d", "fqn": ["reddit_ads", "dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_source_relation__date_day__account_id__ad_group_id__campaign_id__currency"], "alias": "dbt_utils_unique_combination_o_60946addb3d384a7cc48833998401413", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_60946addb3d384a7cc48833998401413", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_60946addb3d384a7cc48833998401413"}, "created_at": 1734462185.5285802, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_60946addb3d384a7cc48833998401413\") }}", "language": "sql", "refs": [{"name": "reddit_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/dbt_utils_unique_combination_o_60946addb3d384a7cc48833998401413.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, ad_group_id, campaign_id, currency\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__ad_group_report\"\n group by source_relation, date_day, account_id, ad_group_id, campaign_id, currency\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.reddit_ads__ad_group_report", "attached_node": "model.reddit_ads.reddit_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "ad_group_id", "campaign_id", "currency"], "model": "{{ get_where_subquery(ref('reddit_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads.not_null_reddit_ads__ad_report_date_day.608b21c69a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_reddit_ads__ad_report_date_day", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__ad_report_date_day.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_report_date_day.608b21c69a", "fqn": ["reddit_ads", "not_null_reddit_ads__ad_report_date_day"], "alias": "not_null_reddit_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.530869, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__ad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__ad_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.reddit_ads__ad_report", "attached_node": "model.reddit_ads.reddit_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('reddit_ads__ad_report')) }}"}, "namespace": null}}, "test.reddit_ads.not_null_reddit_ads__ad_report_ad_id.1da054a14e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_reddit_ads__ad_report_ad_id", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__ad_report_ad_id.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_report_ad_id.1da054a14e", "fqn": ["reddit_ads", "not_null_reddit_ads__ad_report_ad_id"], "alias": "not_null_reddit_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.531921, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__ad_report\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.reddit_ads__ad_report", "attached_node": "model.reddit_ads.reddit_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('reddit_ads__ad_report')) }}"}, "namespace": null}}, "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_source_relation__date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency.8735416c38": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_source_relation__date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency", "resource_type": "test", "package_name": "reddit_ads", "path": "dbt_utils_unique_combination_o_3fb51d3d0fca97ba2ed02d281ce87158.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_source_relation__date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency.8735416c38", "fqn": ["reddit_ads", "dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_source_relation__date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency"], "alias": "dbt_utils_unique_combination_o_3fb51d3d0fca97ba2ed02d281ce87158", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3fb51d3d0fca97ba2ed02d281ce87158", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3fb51d3d0fca97ba2ed02d281ce87158"}, "created_at": 1734462185.532895, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3fb51d3d0fca97ba2ed02d281ce87158\") }}", "language": "sql", "refs": [{"name": "reddit_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/dbt_utils_unique_combination_o_3fb51d3d0fca97ba2ed02d281ce87158.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, ad_id, post_id, account_id, ad_group_id, campaign_id, currency\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__ad_report\"\n group by source_relation, date_day, ad_id, post_id, account_id, ad_group_id, campaign_id, currency\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.reddit_ads__ad_report", "attached_node": "model.reddit_ads.reddit_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "ad_id", "post_id", "account_id", "ad_group_id", "campaign_id", "currency"], "model": "{{ get_where_subquery(ref('reddit_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads.not_null_reddit_ads__campaign_report_date_day.f79cca4131": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_reddit_ads__campaign_report_date_day", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__campaign_report_date_day.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__campaign_report_date_day.f79cca4131", "fqn": ["reddit_ads", "not_null_reddit_ads__campaign_report_date_day"], "alias": "not_null_reddit_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.5352619, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__campaign_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.reddit_ads__campaign_report", "attached_node": "model.reddit_ads.reddit_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('reddit_ads__campaign_report')) }}"}, "namespace": null}}, "test.reddit_ads.not_null_reddit_ads__campaign_report_campaign_id.f5491a0b49": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_reddit_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__campaign_report_campaign_id.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__campaign_report_campaign_id.f5491a0b49", "fqn": ["reddit_ads", "not_null_reddit_ads__campaign_report_campaign_id"], "alias": "not_null_reddit_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.536253, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.reddit_ads__campaign_report", "attached_node": "model.reddit_ads.reddit_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('reddit_ads__campaign_report')) }}"}, "namespace": null}}, "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_source_relation__date_day__account_id__campaign_id__currency.6e74c22669": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_source_relation__date_day__account_id__campaign_id__currency", "resource_type": "test", "package_name": "reddit_ads", "path": "dbt_utils_unique_combination_o_1e774189f0e0880953023d611de76da0.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_source_relation__date_day__account_id__campaign_id__currency.6e74c22669", "fqn": ["reddit_ads", "dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_source_relation__date_day__account_id__campaign_id__currency"], "alias": "dbt_utils_unique_combination_o_1e774189f0e0880953023d611de76da0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1e774189f0e0880953023d611de76da0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1e774189f0e0880953023d611de76da0"}, "created_at": 1734462185.5372338, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1e774189f0e0880953023d611de76da0\") }}", "language": "sql", "refs": [{"name": "reddit_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/dbt_utils_unique_combination_o_1e774189f0e0880953023d611de76da0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, currency\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__campaign_report\"\n group by source_relation, date_day, account_id, campaign_id, currency\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.reddit_ads__campaign_report", "attached_node": "model.reddit_ads.reddit_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "currency"], "model": "{{ get_where_subquery(ref('reddit_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads.not_null_reddit_ads__url_report_date_day.4b0f6363da": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_reddit_ads__url_report_date_day", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__url_report_date_day.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__url_report_date_day.4b0f6363da", "fqn": ["reddit_ads", "not_null_reddit_ads__url_report_date_day"], "alias": "not_null_reddit_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.539575, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__url_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__url_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.reddit_ads__url_report", "attached_node": "model.reddit_ads.reddit_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('reddit_ads__url_report')) }}"}, "namespace": null}}, "test.reddit_ads.not_null_reddit_ads__url_report_ad_id.8ff83da2b0": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_reddit_ads__url_report_ad_id", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__url_report_ad_id.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__url_report_ad_id.8ff83da2b0", "fqn": ["reddit_ads", "not_null_reddit_ads__url_report_ad_id"], "alias": "not_null_reddit_ads__url_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.5405812, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reddit_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__url_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__url_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__url_report\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.reddit_ads__url_report", "attached_node": "model.reddit_ads.reddit_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('reddit_ads__url_report')) }}"}, "namespace": null}}, "test.reddit_ads.not_null_reddit_ads__url_report_base_url.2f585bebcb": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_reddit_ads__url_report_base_url", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__url_report_base_url.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__url_report_base_url.2f585bebcb", "fqn": ["reddit_ads", "not_null_reddit_ads__url_report_base_url"], "alias": "not_null_reddit_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1734462185.541874, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "reddit_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__url_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__url_report\"\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "base_url", "file_key_name": "models.reddit_ads__url_report", "attached_node": "model.reddit_ads.reddit_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('reddit_ads__url_report')) }}"}, "namespace": null}}, "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__url_report_source_relation__date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency.a85ab9beee": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_reddit_ads__url_report_source_relation__date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency", "resource_type": "test", "package_name": "reddit_ads", "path": "dbt_utils_unique_combination_o_4f548ee643249433762b9d91a3f21fe7.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__url_report_source_relation__date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency.a85ab9beee", "fqn": ["reddit_ads", "dbt_utils_unique_combination_of_columns_reddit_ads__url_report_source_relation__date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency"], "alias": "dbt_utils_unique_combination_o_4f548ee643249433762b9d91a3f21fe7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4f548ee643249433762b9d91a3f21fe7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4f548ee643249433762b9d91a3f21fe7"}, "created_at": 1734462185.542937, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4f548ee643249433762b9d91a3f21fe7\") }}", "language": "sql", "refs": [{"name": "reddit_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__url_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/dbt_utils_unique_combination_o_4f548ee643249433762b9d91a3f21fe7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, click_url, ad_id, account_id, ad_group_id, campaign_id, post_id, currency\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"reddit_ads__url_report\"\n group by source_relation, date_day, click_url, ad_id, account_id, ad_group_id, campaign_id, post_id, currency\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.reddit_ads__url_report", "attached_node": "model.reddit_ads.reddit_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "click_url", "ad_id", "account_id", "ad_group_id", "campaign_id", "post_id", "currency"], "model": "{{ get_where_subquery(ref('reddit_ads__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_pinterest_ads__url_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__url_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e", "fqn": ["pinterest", "not_null_pinterest_ads__url_report_date_day"], "alias": "not_null_pinterest_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.5614522, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__url_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.pinterest_ads__url_report", "attached_node": "model.pinterest.pinterest_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__url_report')) }}"}, "namespace": null}}, "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_pinterest_ads__url_report_destination_url", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__url_report_destination_url.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502", "fqn": ["pinterest", "not_null_pinterest_ads__url_report_destination_url"], "alias": "not_null_pinterest_ads__url_report_destination_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1734462185.562801, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "pinterest_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__url_report_destination_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect destination_url\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__url_report\"\nwhere destination_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "destination_url", "file_key_name": "models.pinterest_ads__url_report", "attached_node": "model.pinterest.pinterest_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "destination_url", "model": "{{ get_where_subquery(ref('pinterest_ads__url_report')) }}"}, "namespace": null}}, "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_pinterest_ads__url_report_pin_promotion_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__url_report_pin_promotion_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a", "fqn": ["pinterest", "not_null_pinterest_ads__url_report_pin_promotion_id"], "alias": "not_null_pinterest_ads__url_report_pin_promotion_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.563797, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__url_report_pin_promotion_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__url_report\"\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "pin_promotion_id", "file_key_name": "models.pinterest_ads__url_report", "attached_node": "model.pinterest.pinterest_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "pin_promotion_id", "model": "{{ get_where_subquery(ref('pinterest_ads__url_report')) }}"}, "namespace": null}}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.688d8bd291": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_1eb3dd87aca276c0f056f562ccd97221.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.688d8bd291", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_1eb3dd87aca276c0f056f562ccd97221", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1eb3dd87aca276c0f056f562ccd97221", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1eb3dd87aca276c0f056f562ccd97221"}, "created_at": 1734462185.5651, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_1eb3dd87aca276c0f056f562ccd97221\") }}", "language": "sql", "refs": [{"name": "pinterest_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_1eb3dd87aca276c0f056f562ccd97221.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, pin_promotion_id, ad_group_id, campaign_id, advertiser_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__url_report\"\n group by source_relation, pin_promotion_id, ad_group_id, campaign_id, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.pinterest_ads__url_report", "attached_node": "model.pinterest.pinterest_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "pin_promotion_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_pinterest_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__ad_group_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7", "fqn": ["pinterest", "not_null_pinterest_ads__ad_group_report_date_day"], "alias": "not_null_pinterest_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.5675142, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__ad_group_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.pinterest_ads__ad_group_report", "attached_node": "model.pinterest.pinterest_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__ad_group_report')) }}"}, "namespace": null}}, "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_pinterest_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2", "fqn": ["pinterest", "not_null_pinterest_ads__ad_group_report_ad_group_id"], "alias": "not_null_pinterest_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.568494, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.pinterest_ads__ad_group_report", "attached_node": "model.pinterest.pinterest_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('pinterest_ads__ad_group_report')) }}"}, "namespace": null}}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_source_relation__ad_group_id__advertiser_id__campaign_id__date_day.1fb5fb3f2f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_source_relation__ad_group_id__advertiser_id__campaign_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_b6a9331063d783d04d904e8d31cf62ee.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_source_relation__ad_group_id__advertiser_id__campaign_id__date_day.1fb5fb3f2f", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_source_relation__ad_group_id__advertiser_id__campaign_id__date_day"], "alias": "dbt_utils_unique_combination_o_b6a9331063d783d04d904e8d31cf62ee", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b6a9331063d783d04d904e8d31cf62ee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b6a9331063d783d04d904e8d31cf62ee"}, "created_at": 1734462185.56954, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b6a9331063d783d04d904e8d31cf62ee\") }}", "language": "sql", "refs": [{"name": "pinterest_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_b6a9331063d783d04d904e8d31cf62ee.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, advertiser_id, campaign_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__ad_group_report\"\n group by source_relation, ad_group_id, advertiser_id, campaign_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.pinterest_ads__ad_group_report", "attached_node": "model.pinterest.pinterest_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "advertiser_id", "campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_pinterest_ads__campaign_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__campaign_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf", "fqn": ["pinterest", "not_null_pinterest_ads__campaign_report_date_day"], "alias": "not_null_pinterest_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.5718231, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__campaign_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.pinterest_ads__campaign_report", "attached_node": "model.pinterest.pinterest_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__campaign_report')) }}"}, "namespace": null}}, "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_pinterest_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__campaign_report_campaign_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2", "fqn": ["pinterest", "not_null_pinterest_ads__campaign_report_campaign_id"], "alias": "not_null_pinterest_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.572872, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.pinterest_ads__campaign_report", "attached_node": "model.pinterest.pinterest_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('pinterest_ads__campaign_report')) }}"}, "namespace": null}}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.4da70e098b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_5d10118265a768f932bfac992f42d66e.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.4da70e098b", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_5d10118265a768f932bfac992f42d66e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5d10118265a768f932bfac992f42d66e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5d10118265a768f932bfac992f42d66e"}, "created_at": 1734462185.5738518, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5d10118265a768f932bfac992f42d66e\") }}", "language": "sql", "refs": [{"name": "pinterest_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_5d10118265a768f932bfac992f42d66e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, advertiser_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__campaign_report\"\n group by source_relation, campaign_id, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.pinterest_ads__campaign_report", "attached_node": "model.pinterest.pinterest_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_pinterest_ads__advertiser_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__advertiser_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca", "fqn": ["pinterest", "not_null_pinterest_ads__advertiser_report_date_day"], "alias": "not_null_pinterest_ads__advertiser_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.576202, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__advertiser_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__advertiser_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.pinterest_ads__advertiser_report", "attached_node": "model.pinterest.pinterest_ads__advertiser_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__advertiser_report')) }}"}, "namespace": null}}, "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_pinterest_ads__advertiser_report_advertiser_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__advertiser_report_advertiser_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672", "fqn": ["pinterest", "not_null_pinterest_ads__advertiser_report_advertiser_id"], "alias": "not_null_pinterest_ads__advertiser_report_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.57717, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__advertiser_report_advertiser_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__advertiser_report\"\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "advertiser_id", "file_key_name": "models.pinterest_ads__advertiser_report", "attached_node": "model.pinterest.pinterest_ads__advertiser_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('pinterest_ads__advertiser_report')) }}"}, "namespace": null}}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_source_relation__advertiser_id__date_day.f9cd6d6ce2": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_source_relation__advertiser_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_84d0b35c5596425e44df7ea7c9251b6f.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_source_relation__advertiser_id__date_day.f9cd6d6ce2", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_source_relation__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_84d0b35c5596425e44df7ea7c9251b6f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_84d0b35c5596425e44df7ea7c9251b6f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_84d0b35c5596425e44df7ea7c9251b6f"}, "created_at": 1734462185.578149, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_84d0b35c5596425e44df7ea7c9251b6f\") }}", "language": "sql", "refs": [{"name": "pinterest_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_84d0b35c5596425e44df7ea7c9251b6f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, advertiser_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__advertiser_report\"\n group by source_relation, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.pinterest_ads__advertiser_report", "attached_node": "model.pinterest.pinterest_ads__advertiser_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__advertiser_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_pinterest_ads__keyword_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__keyword_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba", "fqn": ["pinterest", "not_null_pinterest_ads__keyword_report_date_day"], "alias": "not_null_pinterest_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.580792, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__keyword_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__keyword_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.pinterest_ads__keyword_report", "attached_node": "model.pinterest.pinterest_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__keyword_report')) }}"}, "namespace": null}}, "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_pinterest_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__keyword_report_keyword_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198", "fqn": ["pinterest", "not_null_pinterest_ads__keyword_report_keyword_id"], "alias": "not_null_pinterest_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.581776, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__keyword_report\"\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.pinterest_ads__keyword_report", "attached_node": "model.pinterest.pinterest_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('pinterest_ads__keyword_report')) }}"}, "namespace": null}}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_source_relation__keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.a9ce89d1db": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_source_relation__keyword_id__ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_8a3352021be21ec8d48e634bcdf64c62.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_source_relation__keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.a9ce89d1db", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_source_relation__keyword_id__ad_group_id__campaign_id__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_8a3352021be21ec8d48e634bcdf64c62", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8a3352021be21ec8d48e634bcdf64c62", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8a3352021be21ec8d48e634bcdf64c62"}, "created_at": 1734462185.582751, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8a3352021be21ec8d48e634bcdf64c62\") }}", "language": "sql", "refs": [{"name": "pinterest_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_8a3352021be21ec8d48e634bcdf64c62.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, keyword_id, ad_group_id, campaign_id, advertiser_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__keyword_report\"\n group by source_relation, keyword_id, ad_group_id, campaign_id, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.pinterest_ads__keyword_report", "attached_node": "model.pinterest.pinterest_ads__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "keyword_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_pinterest_ads__pin_promotion_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__pin_promotion_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd", "fqn": ["pinterest", "not_null_pinterest_ads__pin_promotion_report_date_day"], "alias": "not_null_pinterest_ads__pin_promotion_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.5851111, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__pin_promotion_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__pin_promotion_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__pin_promotion_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.pinterest_ads__pin_promotion_report", "attached_node": "model.pinterest.pinterest_ads__pin_promotion_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('pinterest_ads__pin_promotion_report')) }}"}, "namespace": null}}, "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_pinterest_ads__pin_promotion_report_pin_promotion_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561", "fqn": ["pinterest", "not_null_pinterest_ads__pin_promotion_report_pin_promotion_id"], "alias": "not_null_pinterest_ads__pin_promotion_report_pin_promotion_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.586081, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "pinterest_ads__pin_promotion_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__pin_promotion_report\"\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "pin_promotion_id", "file_key_name": "models.pinterest_ads__pin_promotion_report", "attached_node": "model.pinterest.pinterest_ads__pin_promotion_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "pin_promotion_id", "model": "{{ get_where_subquery(ref('pinterest_ads__pin_promotion_report')) }}"}, "namespace": null}}, "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.9d2f1ea810": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_df7f606b70c219dd019784cae368fe55.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.9d2f1ea810", "fqn": ["pinterest", "dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day"], "alias": "dbt_utils_unique_combination_o_df7f606b70c219dd019784cae368fe55", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_df7f606b70c219dd019784cae368fe55", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_df7f606b70c219dd019784cae368fe55"}, "created_at": 1734462185.5870662, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_df7f606b70c219dd019784cae368fe55\") }}", "language": "sql", "refs": [{"name": "pinterest_ads__pin_promotion_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_df7f606b70c219dd019784cae368fe55.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, pin_promotion_id, ad_group_id, campaign_id, advertiser_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"pinterest_ads__pin_promotion_report\"\n group by source_relation, pin_promotion_id, ad_group_id, campaign_id, advertiser_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.pinterest_ads__pin_promotion_report", "attached_node": "model.pinterest.pinterest_ads__pin_promotion_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "pin_promotion_id", "ad_group_id", "campaign_id", "advertiser_id", "date_day"], "model": "{{ get_where_subquery(ref('pinterest_ads__pin_promotion_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.not_null_stg_reddit_ads__account_account_id.512f0b8078": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_reddit_ads__account_account_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__account_account_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__account_account_id.512f0b8078", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__account_account_id"], "alias": "not_null_stg_reddit_ads__account_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.621739, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__account", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__account_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_reddit_ads__account", "attached_node": "model.reddit_ads_source.stg_reddit_ads__account", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__account')) }}"}, "namespace": null}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_source_relation__account_id.49d95e2890": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_source_relation__account_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_f0f7e2651cf8e64b74883cb70192e57a.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_source_relation__account_id.49d95e2890", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_source_relation__account_id"], "alias": "dbt_utils_unique_combination_o_f0f7e2651cf8e64b74883cb70192e57a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f0f7e2651cf8e64b74883cb70192e57a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f0f7e2651cf8e64b74883cb70192e57a"}, "created_at": 1734462185.6227741, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f0f7e2651cf8e64b74883cb70192e57a\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__account", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_f0f7e2651cf8e64b74883cb70192e57a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account\"\n group by source_relation, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__account", "attached_node": "model.reddit_ads_source.stg_reddit_ads__account", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__account')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.not_null_stg_reddit_ads__account_report_account_id.1f2a0195de": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_reddit_ads__account_report_account_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__account_report_account_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__account_report_account_id.1f2a0195de", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__account_report_account_id"], "alias": "not_null_stg_reddit_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.625181, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account_report\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_reddit_ads__account_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__account_report')) }}"}, "namespace": null}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_source_relation__account_id__date_day.580653f488": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_source_relation__account_id__date_day", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_5531dd451b69b98013809cc863bc9a19.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_source_relation__account_id__date_day.580653f488", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_source_relation__account_id__date_day"], "alias": "dbt_utils_unique_combination_o_5531dd451b69b98013809cc863bc9a19", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5531dd451b69b98013809cc863bc9a19", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5531dd451b69b98013809cc863bc9a19"}, "created_at": 1734462185.6261609, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5531dd451b69b98013809cc863bc9a19\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_5531dd451b69b98013809cc863bc9a19.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account_report\"\n group by source_relation, account_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__account_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.not_null_stg_reddit_ads__ad_ad_id.40188b63dd": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_reddit_ads__ad_ad_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__ad_ad_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_ad_id.40188b63dd", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__ad_ad_id"], "alias": "not_null_stg_reddit_ads__ad_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.628532, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__ad_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_reddit_ads__ad", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad')) }}"}, "namespace": null}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_source_relation__ad_id.fc4d1b788b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_source_relation__ad_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_824c67529d651166d97ffe5412ba8597.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_source_relation__ad_id.fc4d1b788b", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_source_relation__ad_id"], "alias": "dbt_utils_unique_combination_o_824c67529d651166d97ffe5412ba8597", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_824c67529d651166d97ffe5412ba8597", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_824c67529d651166d97ffe5412ba8597"}, "created_at": 1734462185.62951, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_824c67529d651166d97ffe5412ba8597\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_824c67529d651166d97ffe5412ba8597.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad\"\n group by source_relation, ad_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__ad", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.not_null_stg_reddit_ads__ad_report_ad_id.c4af84b857": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_reddit_ads__ad_report_ad_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__ad_report_ad_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_report_ad_id.c4af84b857", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__ad_report_ad_id"], "alias": "not_null_stg_reddit_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.6318562, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_report\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_reddit_ads__ad_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_report')) }}"}, "namespace": null}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_source_relation__ad_id__date_day.395db62865": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_source_relation__ad_id__date_day", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_635c6e6d8a50e0330f6f4e794a3d8bcd.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_source_relation__ad_id__date_day.395db62865", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_source_relation__ad_id__date_day"], "alias": "dbt_utils_unique_combination_o_635c6e6d8a50e0330f6f4e794a3d8bcd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_635c6e6d8a50e0330f6f4e794a3d8bcd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_635c6e6d8a50e0330f6f4e794a3d8bcd"}, "created_at": 1734462185.632833, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_635c6e6d8a50e0330f6f4e794a3d8bcd\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_635c6e6d8a50e0330f6f4e794a3d8bcd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_report\"\n group by source_relation, ad_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__ad_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_ad_group_id.65795d8dc2": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_reddit_ads__ad_group_ad_group_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__ad_group_ad_group_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_ad_group_id.65795d8dc2", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__ad_group_ad_group_id"], "alias": "not_null_stg_reddit_ads__ad_group_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.635183, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__ad_group_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_reddit_ads__ad_group", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad_group", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_group')) }}"}, "namespace": null}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_source_relation__ad_group_id.942cb72fcc": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_source_relation__ad_group_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_8876489bc385afa0c43f178c6c61421a.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_source_relation__ad_group_id.942cb72fcc", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_source_relation__ad_group_id"], "alias": "dbt_utils_unique_combination_o_8876489bc385afa0c43f178c6c61421a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8876489bc385afa0c43f178c6c61421a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8876489bc385afa0c43f178c6c61421a"}, "created_at": 1734462185.636173, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8876489bc385afa0c43f178c6c61421a\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_8876489bc385afa0c43f178c6c61421a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group\"\n group by source_relation, ad_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__ad_group", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad_group", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_group')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_report_ad_group_id.9836cd084d": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_reddit_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_report_ad_group_id.9836cd084d", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__ad_group_report_ad_group_id"], "alias": "not_null_stg_reddit_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.638518, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_reddit_ads__ad_group_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_group_report')) }}"}, "namespace": null}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_source_relation__ad_group_id__date_day.4aa1f776b5": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_source_relation__ad_group_id__date_day", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_4aca0e68289e671eeb5354c763e34a83.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_source_relation__ad_group_id__date_day.4aa1f776b5", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_source_relation__ad_group_id__date_day"], "alias": "dbt_utils_unique_combination_o_4aca0e68289e671eeb5354c763e34a83", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4aca0e68289e671eeb5354c763e34a83", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4aca0e68289e671eeb5354c763e34a83"}, "created_at": 1734462185.639494, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4aca0e68289e671eeb5354c763e34a83\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_4aca0e68289e671eeb5354c763e34a83.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group_report\"\n group by source_relation, ad_group_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__ad_group_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_campaign_id.f3f24e4682": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_reddit_ads__campaign_campaign_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__campaign_campaign_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_campaign_id.f3f24e4682", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__campaign_campaign_id"], "alias": "not_null_stg_reddit_ads__campaign_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.641836, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__campaign_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_reddit_ads__campaign", "attached_node": "model.reddit_ads_source.stg_reddit_ads__campaign", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__campaign')) }}"}, "namespace": null}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_source_relation__campaign_id.066d3b93f4": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_source_relation__campaign_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_f3db1b159d884ff8f0e3cc8e9853fe4a.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_source_relation__campaign_id.066d3b93f4", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_source_relation__campaign_id"], "alias": "dbt_utils_unique_combination_o_f3db1b159d884ff8f0e3cc8e9853fe4a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f3db1b159d884ff8f0e3cc8e9853fe4a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f3db1b159d884ff8f0e3cc8e9853fe4a"}, "created_at": 1734462185.642825, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f3db1b159d884ff8f0e3cc8e9853fe4a\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_f3db1b159d884ff8f0e3cc8e9853fe4a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign\"\n group by source_relation, campaign_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__campaign", "attached_node": "model.reddit_ads_source.stg_reddit_ads__campaign", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__campaign')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_report_campaign_id.c717612b4f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_reddit_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__campaign_report_campaign_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_report_campaign_id.c717612b4f", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__campaign_report_campaign_id"], "alias": "not_null_stg_reddit_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.6455722, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_reddit_ads__campaign_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__campaign_report')) }}"}, "namespace": null}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_source_relation__campaign_id__date_day.5e87d9d722": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_source_relation__campaign_id__date_day", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_445d2aee4402350dfaac958291b67980.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_source_relation__campaign_id__date_day.5e87d9d722", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_source_relation__campaign_id__date_day"], "alias": "dbt_utils_unique_combination_o_445d2aee4402350dfaac958291b67980", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_445d2aee4402350dfaac958291b67980", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_445d2aee4402350dfaac958291b67980"}, "created_at": 1734462185.646549, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_445d2aee4402350dfaac958291b67980\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_445d2aee4402350dfaac958291b67980.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign_report\"\n group by source_relation, campaign_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__campaign_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_conversions_report_source_relation__account_id__date_day__event_name.bc323b3bbb": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_conversions_report_source_relation__account_id__date_day__event_name", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_a0c7c744d28ead0d916e1910d895fb01.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_conversions_report_source_relation__account_id__date_day__event_name.bc323b3bbb", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_conversions_report_source_relation__account_id__date_day__event_name"], "alias": "dbt_utils_unique_combination_o_a0c7c744d28ead0d916e1910d895fb01", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a0c7c744d28ead0d916e1910d895fb01", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a0c7c744d28ead0d916e1910d895fb01"}, "created_at": 1734462185.6488771, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a0c7c744d28ead0d916e1910d895fb01\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__account_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_a0c7c744d28ead0d916e1910d895fb01.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, date_day, event_name\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__account_conversions_report\"\n group by source_relation, account_id, date_day, event_name\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__account_conversions_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__account_conversions_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "date_day", "event_name"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__account_conversions_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_conversions_report_source_relation__ad_group_id__date_day__event_name.acd1ea8c2b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_conversions_report_source_relation__ad_group_id__date_day__event_name", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_cbbc64d0dca17a652b727ccaf3e27d7b.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_conversions_report_source_relation__ad_group_id__date_day__event_name.acd1ea8c2b", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_conversions_report_source_relation__ad_group_id__date_day__event_name"], "alias": "dbt_utils_unique_combination_o_cbbc64d0dca17a652b727ccaf3e27d7b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cbbc64d0dca17a652b727ccaf3e27d7b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cbbc64d0dca17a652b727ccaf3e27d7b"}, "created_at": 1734462185.65121, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cbbc64d0dca17a652b727ccaf3e27d7b\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_group_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_cbbc64d0dca17a652b727ccaf3e27d7b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, date_day, event_name\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_group_conversions_report\"\n group by source_relation, ad_group_id, date_day, event_name\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__ad_group_conversions_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "date_day", "event_name"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_group_conversions_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_conversions_report_source_relation__ad_id__date_day__event_name.49a6eee2ad": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_conversions_report_source_relation__ad_id__date_day__event_name", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_4129ca0633f10e1b1d388cc5b0a83fa8.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_conversions_report_source_relation__ad_id__date_day__event_name.49a6eee2ad", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_conversions_report_source_relation__ad_id__date_day__event_name"], "alias": "dbt_utils_unique_combination_o_4129ca0633f10e1b1d388cc5b0a83fa8", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4129ca0633f10e1b1d388cc5b0a83fa8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4129ca0633f10e1b1d388cc5b0a83fa8"}, "created_at": 1734462185.6534872, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4129ca0633f10e1b1d388cc5b0a83fa8\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__ad_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_4129ca0633f10e1b1d388cc5b0a83fa8.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, date_day, event_name\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__ad_conversions_report\"\n group by source_relation, ad_id, date_day, event_name\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__ad_conversions_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "date_day", "event_name"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_conversions_report')) }}"}, "namespace": "dbt_utils"}}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_conversions_report_source_relation__campaign_id__date_day__event_name.2ed971ff1b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_conversions_report_source_relation__campaign_id__date_day__event_name", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_1e977a4516fe5e3739111361fb8847ec.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_conversions_report_source_relation__campaign_id__date_day__event_name.2ed971ff1b", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_conversions_report_source_relation__campaign_id__date_day__event_name"], "alias": "dbt_utils_unique_combination_o_1e977a4516fe5e3739111361fb8847ec", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1e977a4516fe5e3739111361fb8847ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1e977a4516fe5e3739111361fb8847ec"}, "created_at": 1734462185.655852, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1e977a4516fe5e3739111361fb8847ec\") }}", "language": "sql", "refs": [{"name": "stg_reddit_ads__campaign_conversions_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_1e977a4516fe5e3739111361fb8847ec.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, date_day, event_name\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_reddit_ads__campaign_conversions_report\"\n group by source_relation, campaign_id, date_day, event_name\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_reddit_ads__campaign_conversions_report", "attached_node": "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "date_day", "event_name"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__campaign_conversions_report')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_google_ads__url_report_base_url", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__url_report_base_url.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72", "fqn": ["google_ads", "not_null_google_ads__url_report_base_url"], "alias": "not_null_google_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1734462185.6742, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "google_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__url_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__url_report\"\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "base_url", "file_key_name": "models.google_ads__url_report", "attached_node": "model.google_ads.google_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('google_ads__url_report')) }}"}, "namespace": null}}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_source_relation__ad_id__ad_group_id__date_day.e11b928273": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__url_report_source_relation__ad_id__ad_group_id__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_31793819eb318c7cfed9606488870cc7.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_source_relation__ad_id__ad_group_id__date_day.e11b928273", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__url_report_source_relation__ad_id__ad_group_id__date_day"], "alias": "dbt_utils_unique_combination_o_31793819eb318c7cfed9606488870cc7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_31793819eb318c7cfed9606488870cc7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_31793819eb318c7cfed9606488870cc7"}, "created_at": 1734462185.675593, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_31793819eb318c7cfed9606488870cc7\") }}", "language": "sql", "refs": [{"name": "google_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__url_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_31793819eb318c7cfed9606488870cc7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, ad_group_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__url_report\"\n group by source_relation, ad_id, ad_group_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.google_ads__url_report", "attached_node": "model.google_ads.google_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_google_ads__account_report_account_id", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__account_report_account_id.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422", "fqn": ["google_ads", "not_null_google_ads__account_report_account_id"], "alias": "not_null_google_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.6779351, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "google_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__account_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__account_report\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.google_ads__account_report", "attached_node": "model.google_ads.google_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('google_ads__account_report')) }}"}, "namespace": null}}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_source_relation__account_id__date_day.8480aa9317": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__account_report_source_relation__account_id__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_4d9f02d60b58ed8cc9cb947e8d47375c.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_source_relation__account_id__date_day.8480aa9317", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__account_report_source_relation__account_id__date_day"], "alias": "dbt_utils_unique_combination_o_4d9f02d60b58ed8cc9cb947e8d47375c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4d9f02d60b58ed8cc9cb947e8d47375c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4d9f02d60b58ed8cc9cb947e8d47375c"}, "created_at": 1734462185.678995, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4d9f02d60b58ed8cc9cb947e8d47375c\") }}", "language": "sql", "refs": [{"name": "google_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__account_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_4d9f02d60b58ed8cc9cb947e8d47375c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__account_report\"\n group by source_relation, account_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.google_ads__account_report", "attached_node": "model.google_ads.google_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_google_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c", "fqn": ["google_ads", "not_null_google_ads__ad_group_report_ad_group_id"], "alias": "not_null_google_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.681283, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "google_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_group_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.google_ads__ad_group_report", "attached_node": "model.google_ads.google_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('google_ads__ad_group_report')) }}"}, "namespace": null}}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_source_relation__ad_group_id__date_day.41d73a32f3": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_source_relation__ad_group_id__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_63eb2f3505db2b25be3a7df012a86231.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_source_relation__ad_group_id__date_day.41d73a32f3", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_source_relation__ad_group_id__date_day"], "alias": "dbt_utils_unique_combination_o_63eb2f3505db2b25be3a7df012a86231", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_63eb2f3505db2b25be3a7df012a86231", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_63eb2f3505db2b25be3a7df012a86231"}, "created_at": 1734462185.682341, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_63eb2f3505db2b25be3a7df012a86231\") }}", "language": "sql", "refs": [{"name": "google_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_group_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_63eb2f3505db2b25be3a7df012a86231.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__ad_group_report\"\n group by source_relation, ad_group_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.google_ads__ad_group_report", "attached_node": "model.google_ads.google_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_google_ads__ad_report_ad_id", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__ad_report_ad_id.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad", "fqn": ["google_ads", "not_null_google_ads__ad_report_ad_id"], "alias": "not_null_google_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.684598, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "google_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__ad_report\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.google_ads__ad_report", "attached_node": "model.google_ads.google_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('google_ads__ad_report')) }}"}, "namespace": null}}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_report_source_relation__ad_id__ad_group_id__date_day.0e82f7e99a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__ad_report_source_relation__ad_id__ad_group_id__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_31f4b2d0e507ccb9dcb70185c67648ae.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_report_source_relation__ad_id__ad_group_id__date_day.0e82f7e99a", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__ad_report_source_relation__ad_id__ad_group_id__date_day"], "alias": "dbt_utils_unique_combination_o_31f4b2d0e507ccb9dcb70185c67648ae", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_31f4b2d0e507ccb9dcb70185c67648ae", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_31f4b2d0e507ccb9dcb70185c67648ae"}, "created_at": 1734462185.68566, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_31f4b2d0e507ccb9dcb70185c67648ae\") }}", "language": "sql", "refs": [{"name": "google_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_31f4b2d0e507ccb9dcb70185c67648ae.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, ad_group_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__ad_report\"\n group by source_relation, ad_id, ad_group_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.google_ads__ad_report", "attached_node": "model.google_ads.google_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_google_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__campaign_report_campaign_id.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e", "fqn": ["google_ads", "not_null_google_ads__campaign_report_campaign_id"], "alias": "not_null_google_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.687932, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "google_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__campaign_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.google_ads__campaign_report", "attached_node": "model.google_ads.google_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('google_ads__campaign_report')) }}"}, "namespace": null}}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__campaign_report_source_relation__campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.29077cbd5e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__campaign_report_source_relation__campaign_id__advertising_channel_type__advertising_channel_subtype__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_96d8e0cfca4a3e2e0fd48dabfc41ee25.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__campaign_report_source_relation__campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.29077cbd5e", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__campaign_report_source_relation__campaign_id__advertising_channel_type__advertising_channel_subtype__date_day"], "alias": "dbt_utils_unique_combination_o_96d8e0cfca4a3e2e0fd48dabfc41ee25", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_96d8e0cfca4a3e2e0fd48dabfc41ee25", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_96d8e0cfca4a3e2e0fd48dabfc41ee25"}, "created_at": 1734462185.688991, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_96d8e0cfca4a3e2e0fd48dabfc41ee25\") }}", "language": "sql", "refs": [{"name": "google_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__campaign_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_96d8e0cfca4a3e2e0fd48dabfc41ee25.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, advertising_channel_type, advertising_channel_subtype, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__campaign_report\"\n group by source_relation, campaign_id, advertising_channel_type, advertising_channel_subtype, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.google_ads__campaign_report", "attached_node": "model.google_ads.google_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "advertising_channel_type", "advertising_channel_subtype", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_google_ads__keyword_report_criterion_id", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__keyword_report_criterion_id.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055", "fqn": ["google_ads", "not_null_google_ads__keyword_report_criterion_id"], "alias": "not_null_google_ads__keyword_report_criterion_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.6912372, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "google_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__keyword_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__keyword_report_criterion_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect criterion_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__keyword_report\"\nwhere criterion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "criterion_id", "file_key_name": "models.google_ads__keyword_report", "attached_node": "model.google_ads.google_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "criterion_id", "model": "{{ get_where_subquery(ref('google_ads__keyword_report')) }}"}, "namespace": null}}, "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_source_relation__ad_group_id__criterion_id__date_day.82605f3acd": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__keyword_report_source_relation__ad_group_id__criterion_id__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_13601ccbee4da22f839911c976dc105f.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_source_relation__ad_group_id__criterion_id__date_day.82605f3acd", "fqn": ["google_ads", "dbt_utils_unique_combination_of_columns_google_ads__keyword_report_source_relation__ad_group_id__criterion_id__date_day"], "alias": "dbt_utils_unique_combination_o_13601ccbee4da22f839911c976dc105f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_13601ccbee4da22f839911c976dc105f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_13601ccbee4da22f839911c976dc105f"}, "created_at": 1734462185.69221, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_13601ccbee4da22f839911c976dc105f\") }}", "language": "sql", "refs": [{"name": "google_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__keyword_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_13601ccbee4da22f839911c976dc105f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, criterion_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"google_ads__keyword_report\"\n group by source_relation, ad_group_id, criterion_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.google_ads__keyword_report", "attached_node": "model.google_ads.google_ads__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "criterion_id", "date_day"], "model": "{{ get_where_subquery(ref('google_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_amazon_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_amazon_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.717489, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__ad_group_history\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_amazon_ads__ad_group_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__ad_group_history')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_source_relation__ad_group_id__last_updated_date.5873194717": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_source_relation__ad_group_id__last_updated_date", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_081d093fe910afe8793a47b1c0c4e4c0.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_source_relation__ad_group_id__last_updated_date.5873194717", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_source_relation__ad_group_id__last_updated_date"], "alias": "dbt_utils_unique_combination_o_081d093fe910afe8793a47b1c0c4e4c0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_081d093fe910afe8793a47b1c0c4e4c0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_081d093fe910afe8793a47b1c0c4e4c0"}, "created_at": 1734462185.718557, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_081d093fe910afe8793a47b1c0c4e4c0\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_081d093fe910afe8793a47b1c0c4e4c0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, last_updated_date\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__ad_group_history\"\n group by source_relation, ad_group_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__ad_group_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_amazon_ads__ad_group_level_report_ad_group_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__ad_group_level_report_ad_group_id"], "alias": "not_null_stg_amazon_ads__ad_group_level_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.7208698, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__ad_group_level_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__ad_group_level_report\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_amazon_ads__ad_group_level_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__ad_group_level_report')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_source_relation__ad_group_id__date_day.180ec0225e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_source_relation__ad_group_id__date_day", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_e922b897539d42aba70496d7bac26e7d.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_source_relation__ad_group_id__date_day.180ec0225e", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_source_relation__ad_group_id__date_day"], "alias": "dbt_utils_unique_combination_o_e922b897539d42aba70496d7bac26e7d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e922b897539d42aba70496d7bac26e7d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e922b897539d42aba70496d7bac26e7d"}, "created_at": 1734462185.721932, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e922b897539d42aba70496d7bac26e7d\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__ad_group_level_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_e922b897539d42aba70496d7bac26e7d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__ad_group_level_report\"\n group by source_relation, ad_group_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__ad_group_level_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__ad_group_level_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_amazon_ads__advertised_product_report_ad_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__advertised_product_report_ad_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__advertised_product_report_ad_id"], "alias": "not_null_stg_amazon_ads__advertised_product_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.724193, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__advertised_product_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__advertised_product_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__advertised_product_report\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_amazon_ads__advertised_product_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__advertised_product_report')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_source_relation__ad_id__date_day.e170148d6c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_source_relation__ad_id__date_day", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_d7f9cbf345eb187052ca5dee9eb30d65.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_source_relation__ad_id__date_day.e170148d6c", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_source_relation__ad_id__date_day"], "alias": "dbt_utils_unique_combination_o_d7f9cbf345eb187052ca5dee9eb30d65", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d7f9cbf345eb187052ca5dee9eb30d65", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d7f9cbf345eb187052ca5dee9eb30d65"}, "created_at": 1734462185.72525, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d7f9cbf345eb187052ca5dee9eb30d65\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__advertised_product_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_d7f9cbf345eb187052ca5dee9eb30d65.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__advertised_product_report\"\n group by source_relation, ad_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__advertised_product_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__advertised_product_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_amazon_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__campaign_history_campaign_id"], "alias": "not_null_stg_amazon_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.727494, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_amazon_ads__campaign_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__campaign_history')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_source_relation__campaign_id__last_updated_date.f58b6293d6": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_source_relation__campaign_id__last_updated_date", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_d2c52c088434839a8e4c14e13249a927.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_source_relation__campaign_id__last_updated_date.f58b6293d6", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_source_relation__campaign_id__last_updated_date"], "alias": "dbt_utils_unique_combination_o_d2c52c088434839a8e4c14e13249a927", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d2c52c088434839a8e4c14e13249a927", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d2c52c088434839a8e4c14e13249a927"}, "created_at": 1734462185.728466, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d2c52c088434839a8e4c14e13249a927\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_d2c52c088434839a8e4c14e13249a927.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, last_updated_date\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_history\"\n group by source_relation, campaign_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__campaign_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_amazon_ads__campaign_level_report_campaign_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__campaign_level_report_campaign_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__campaign_level_report_campaign_id"], "alias": "not_null_stg_amazon_ads__campaign_level_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.7308428, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_level_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__campaign_level_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_level_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_amazon_ads__campaign_level_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__campaign_level_report')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_source_relation__campaign_id__date_day.f6bb472aa5": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_source_relation__campaign_id__date_day", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_a8c1294f589331807ed94a085ea4442e.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_source_relation__campaign_id__date_day.f6bb472aa5", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_source_relation__campaign_id__date_day"], "alias": "dbt_utils_unique_combination_o_a8c1294f589331807ed94a085ea4442e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a8c1294f589331807ed94a085ea4442e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a8c1294f589331807ed94a085ea4442e"}, "created_at": 1734462185.731835, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a8c1294f589331807ed94a085ea4442e\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__campaign_level_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_a8c1294f589331807ed94a085ea4442e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__campaign_level_report\"\n group by source_relation, campaign_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__campaign_level_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__campaign_level_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_amazon_ads__keyword_history_keyword_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__keyword_history_keyword_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__keyword_history_keyword_id"], "alias": "not_null_stg_amazon_ads__keyword_history_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.734178, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__keyword_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__keyword_history_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__keyword_history\"\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_amazon_ads__keyword_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__keyword_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__keyword_history')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_source_relation__keyword_id__last_updated_date.611a8411e0": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_source_relation__keyword_id__last_updated_date", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_9993166b721f655d435b4edd795037c7.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_source_relation__keyword_id__last_updated_date.611a8411e0", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_source_relation__keyword_id__last_updated_date"], "alias": "dbt_utils_unique_combination_o_9993166b721f655d435b4edd795037c7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9993166b721f655d435b4edd795037c7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9993166b721f655d435b4edd795037c7"}, "created_at": 1734462185.735157, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9993166b721f655d435b4edd795037c7\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__keyword_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_9993166b721f655d435b4edd795037c7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, keyword_id, last_updated_date\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__keyword_history\"\n group by source_relation, keyword_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__keyword_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__keyword_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "keyword_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__keyword_history')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_amazon_ads__portfolio_history_portfolio_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__portfolio_history_portfolio_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__portfolio_history_portfolio_id"], "alias": "not_null_stg_amazon_ads__portfolio_history_portfolio_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.737503, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__portfolio_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__portfolio_history_portfolio_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect portfolio_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__portfolio_history\"\nwhere portfolio_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "portfolio_id", "file_key_name": "models.stg_amazon_ads__portfolio_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__portfolio_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "portfolio_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__portfolio_history')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_source_relation__portfolio_id__last_updated_date.e0bb6ee3e0": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_source_relation__portfolio_id__last_updated_date", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_c25df2eeb1122c4477d6aba602f654a0.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_source_relation__portfolio_id__last_updated_date.e0bb6ee3e0", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_source_relation__portfolio_id__last_updated_date"], "alias": "dbt_utils_unique_combination_o_c25df2eeb1122c4477d6aba602f654a0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c25df2eeb1122c4477d6aba602f654a0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c25df2eeb1122c4477d6aba602f654a0"}, "created_at": 1734462185.738506, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c25df2eeb1122c4477d6aba602f654a0\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__portfolio_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_c25df2eeb1122c4477d6aba602f654a0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, portfolio_id, last_updated_date\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__portfolio_history\"\n group by source_relation, portfolio_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__portfolio_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__portfolio_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "portfolio_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__portfolio_history')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_amazon_ads__product_ad_history_ad_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__product_ad_history_ad_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__product_ad_history_ad_id"], "alias": "not_null_stg_amazon_ads__product_ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.741065, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__product_ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__product_ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__product_ad_history\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_amazon_ads__product_ad_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__product_ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__product_ad_history')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_source_relation__ad_id__last_updated_date.90fb8d59e6": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_source_relation__ad_id__last_updated_date", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_d56439b310a40f6e76cd66e4c5e2e585.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_source_relation__ad_id__last_updated_date.90fb8d59e6", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_source_relation__ad_id__last_updated_date"], "alias": "dbt_utils_unique_combination_o_d56439b310a40f6e76cd66e4c5e2e585", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d56439b310a40f6e76cd66e4c5e2e585", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d56439b310a40f6e76cd66e4c5e2e585"}, "created_at": 1734462185.742045, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d56439b310a40f6e76cd66e4c5e2e585\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__product_ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_d56439b310a40f6e76cd66e4c5e2e585.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, last_updated_date\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__product_ad_history\"\n group by source_relation, ad_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__product_ad_history", "attached_node": "model.amazon_ads_source.stg_amazon_ads__product_ad_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__product_ad_history')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_amazon_ads__profile_profile_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__profile_profile_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__profile_profile_id"], "alias": "not_null_stg_amazon_ads__profile_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.787033, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__profile"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__profile_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect profile_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__profile\"\nwhere profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "profile_id", "file_key_name": "models.stg_amazon_ads__profile", "attached_node": "model.amazon_ads_source.stg_amazon_ads__profile", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "profile_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__profile')) }}"}, "namespace": null}}, "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_amazon_ads__targeting_keyword_report_keyword_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__targeting_keyword_report_keyword_id"], "alias": "not_null_stg_amazon_ads__targeting_keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.788034, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__targeting_keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__targeting_keyword_report\"\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_amazon_ads__targeting_keyword_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__targeting_keyword_report')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_source_relation__keyword_id__date_day.4190f2a661": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_source_relation__keyword_id__date_day", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_f4291d49d1c17f6aa8babe0eddf0aaa7.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_source_relation__keyword_id__date_day.4190f2a661", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_source_relation__keyword_id__date_day"], "alias": "dbt_utils_unique_combination_o_f4291d49d1c17f6aa8babe0eddf0aaa7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f4291d49d1c17f6aa8babe0eddf0aaa7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f4291d49d1c17f6aa8babe0eddf0aaa7"}, "created_at": 1734462185.7890759, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f4291d49d1c17f6aa8babe0eddf0aaa7\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__targeting_keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_f4291d49d1c17f6aa8babe0eddf0aaa7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, keyword_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__targeting_keyword_report\"\n group by source_relation, keyword_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__targeting_keyword_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__targeting_keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term"], "alias": "not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe"}, "created_at": 1734462185.791475, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__search_term_ad_keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_term\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__search_term_ad_keyword_report\"\nwhere search_term is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "search_term", "file_key_name": "models.stg_amazon_ads__search_term_ad_keyword_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_term", "model": "{{ get_where_subquery(ref('stg_amazon_ads__search_term_ad_keyword_report')) }}"}, "namespace": null}}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_source_relation__search_term__keyword_id__date_day.00ccbc3eda": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_source_relation__search_term__keyword_id__date_day", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_b887ad48bec1a39219806a1125ea4e30.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_source_relation__search_term__keyword_id__date_day.00ccbc3eda", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_source_relation__search_term__keyword_id__date_day"], "alias": "dbt_utils_unique_combination_o_b887ad48bec1a39219806a1125ea4e30", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b887ad48bec1a39219806a1125ea4e30", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b887ad48bec1a39219806a1125ea4e30"}, "created_at": 1734462185.792545, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b887ad48bec1a39219806a1125ea4e30\") }}", "language": "sql", "refs": [{"name": "stg_amazon_ads__search_term_ad_keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_b887ad48bec1a39219806a1125ea4e30.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, search_term, keyword_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_amazon_ads__search_term_ad_keyword_report\"\n group by source_relation, search_term, keyword_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_amazon_ads__search_term_ad_keyword_report", "attached_node": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "search_term", "keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__search_term_ad_keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id"], "alias": "not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.821905, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__ad_analytics_by_creative", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__ad_analytics_by_creative\"\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "creative_id", "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_creative", "attached_node": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_creative')) }}"}, "namespace": null}}, "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day"], "alias": "not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.822918, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__ad_analytics_by_creative", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__ad_analytics_by_creative\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_creative", "attached_node": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_creative')) }}"}, "namespace": null}}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_source_relation__date_day__creative_id.7b7d839d38": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_source_relation__date_day__creative_id", "resource_type": "test", "package_name": "linkedin_source", "path": "dbt_utils_unique_combination_o_27fe99a89d69bef1d8b10f8babd3a810.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_source_relation__date_day__creative_id.7b7d839d38", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_source_relation__date_day__creative_id"], "alias": "dbt_utils_unique_combination_o_27fe99a89d69bef1d8b10f8babd3a810", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_27fe99a89d69bef1d8b10f8babd3a810", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_27fe99a89d69bef1d8b10f8babd3a810"}, "created_at": 1734462185.8238988, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_27fe99a89d69bef1d8b10f8babd3a810\") }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__ad_analytics_by_creative", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_27fe99a89d69bef1d8b10f8babd3a810.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, creative_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__ad_analytics_by_creative\"\n group by source_relation, date_day, creative_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_creative", "attached_node": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "creative_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_creative')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id"], "alias": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.826265, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__ad_analytics_by_campaign", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__ad_analytics_by_campaign\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_campaign", "attached_node": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_campaign')) }}"}, "namespace": null}}, "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day"], "alias": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.8272362, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__ad_analytics_by_campaign", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__ad_analytics_by_campaign\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_campaign", "attached_node": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_campaign')) }}"}, "namespace": null}}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_source_relation__date_day__campaign_id.41aa0d6322": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_source_relation__date_day__campaign_id", "resource_type": "test", "package_name": "linkedin_source", "path": "dbt_utils_unique_combination_o_ebd2a9cba40b0235f303b2d953035a06.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_source_relation__date_day__campaign_id.41aa0d6322", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_source_relation__date_day__campaign_id"], "alias": "dbt_utils_unique_combination_o_ebd2a9cba40b0235f303b2d953035a06", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ebd2a9cba40b0235f303b2d953035a06", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ebd2a9cba40b0235f303b2d953035a06"}, "created_at": 1734462185.828272, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ebd2a9cba40b0235f303b2d953035a06\") }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__ad_analytics_by_campaign", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_ebd2a9cba40b0235f303b2d953035a06.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, campaign_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__ad_analytics_by_campaign\"\n group by source_relation, date_day, campaign_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_linkedin_ads__ad_analytics_by_campaign", "attached_node": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "campaign_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__ad_analytics_by_campaign')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_linkedin_ads__creative_history_creative_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__creative_history_creative_id.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__creative_history_creative_id"], "alias": "not_null_stg_linkedin_ads__creative_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.830545, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__creative_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__creative_history_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__creative_history\"\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "creative_id", "file_key_name": "models.stg_linkedin_ads__creative_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__creative_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__creative_history')) }}"}, "namespace": null}}, "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_linkedin_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_history_campaign_id"], "alias": "not_null_stg_linkedin_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.831594, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_linkedin_ads__campaign_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_history')) }}"}, "namespace": null}}, "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_linkedin_ads__campaign_history_version_tag", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__campaign_history_version_tag.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_history_version_tag"], "alias": "not_null_stg_linkedin_ads__campaign_history_version_tag", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.832556, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__campaign_history_version_tag.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect version_tag\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_history\"\nwhere version_tag is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "version_tag", "file_key_name": "models.stg_linkedin_ads__campaign_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "version_tag", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_history')) }}"}, "namespace": null}}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_source_relation__version_tag__campaign_id.65ed9cedae": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_source_relation__version_tag__campaign_id", "resource_type": "test", "package_name": "linkedin_source", "path": "dbt_utils_unique_combination_o_037e01e42bcd4895e5b4ed988fe91370.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_source_relation__version_tag__campaign_id.65ed9cedae", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_source_relation__version_tag__campaign_id"], "alias": "dbt_utils_unique_combination_o_037e01e42bcd4895e5b4ed988fe91370", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_037e01e42bcd4895e5b4ed988fe91370", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_037e01e42bcd4895e5b4ed988fe91370"}, "created_at": 1734462185.833531, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_037e01e42bcd4895e5b4ed988fe91370\") }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_037e01e42bcd4895e5b4ed988fe91370.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, version_tag, campaign_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_history\"\n group by source_relation, version_tag, campaign_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_linkedin_ads__campaign_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "version_tag", "campaign_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id"], "alias": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a"}, "created_at": 1734462185.8358872, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a\") }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_group_history\"\nwhere campaign_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_group_id", "file_key_name": "models.stg_linkedin_ads__campaign_group_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_group_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_group_history')) }}"}, "namespace": null}}, "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_linkedin_ads__campaign_group_history_last_modified_at", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_group_history_last_modified_at"], "alias": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd"}, "created_at": 1734462185.8368561, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd\") }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect last_modified_at\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_group_history\"\nwhere last_modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "last_modified_at", "file_key_name": "models.stg_linkedin_ads__campaign_group_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "last_modified_at", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_group_history')) }}"}, "namespace": null}}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_source_relation__last_modified_at__campaign_group_id.4c9f328639": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_source_relation__last_modified_at__campaign_group_id", "resource_type": "test", "package_name": "linkedin_source", "path": "dbt_utils_unique_combination_o_c50e86db2d7fc409fa436dcd11fe4e31.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_source_relation__last_modified_at__campaign_group_id.4c9f328639", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_source_relation__last_modified_at__campaign_group_id"], "alias": "dbt_utils_unique_combination_o_c50e86db2d7fc409fa436dcd11fe4e31", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c50e86db2d7fc409fa436dcd11fe4e31", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c50e86db2d7fc409fa436dcd11fe4e31"}, "created_at": 1734462185.837825, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c50e86db2d7fc409fa436dcd11fe4e31\") }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__campaign_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_c50e86db2d7fc409fa436dcd11fe4e31.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, last_modified_at, campaign_group_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__campaign_group_history\"\n group by source_relation, last_modified_at, campaign_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_linkedin_ads__campaign_group_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "last_modified_at", "campaign_group_id"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__campaign_group_history')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_linkedin_ads__account_history_account_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__account_history_account_id.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__account_history_account_id"], "alias": "not_null_stg_linkedin_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.840163, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__account_history_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__account_history\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_linkedin_ads__account_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__account_history')) }}"}, "namespace": null}}, "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_linkedin_ads__account_history_version_tag", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__account_history_version_tag.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__account_history_version_tag"], "alias": "not_null_stg_linkedin_ads__account_history_version_tag", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.841129, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__account_history_version_tag.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect version_tag\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__account_history\"\nwhere version_tag is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "version_tag", "file_key_name": "models.stg_linkedin_ads__account_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "version_tag", "model": "{{ get_where_subquery(ref('stg_linkedin_ads__account_history')) }}"}, "namespace": null}}, "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_source_relation__account_id__version_tag.c7a0383d8c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_source_relation__account_id__version_tag", "resource_type": "test", "package_name": "linkedin_source", "path": "dbt_utils_unique_combination_o_4ac77ca02713a84c278cce8733000fc1.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_source_relation__account_id__version_tag.c7a0383d8c", "fqn": ["linkedin_source", "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_source_relation__account_id__version_tag"], "alias": "dbt_utils_unique_combination_o_4ac77ca02713a84c278cce8733000fc1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4ac77ca02713a84c278cce8733000fc1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4ac77ca02713a84c278cce8733000fc1"}, "created_at": 1734462185.842091, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4ac77ca02713a84c278cce8733000fc1\") }}", "language": "sql", "refs": [{"name": "stg_linkedin_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_4ac77ca02713a84c278cce8733000fc1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, version_tag\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_linkedin_ads__account_history\"\n group by source_relation, account_id, version_tag\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_linkedin_ads__account_history", "attached_node": "model.linkedin_source.stg_linkedin_ads__account_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "version_tag"], "model": "{{ get_where_subquery(ref('stg_linkedin_ads__account_history')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_amazon_ads__account_report_profile_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__account_report_profile_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66", "fqn": ["amazon_ads", "not_null_amazon_ads__account_report_profile_id"], "alias": "not_null_amazon_ads__account_report_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.867697, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "amazon_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__account_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__account_report_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect profile_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__account_report\"\nwhere profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "profile_id", "file_key_name": "models.amazon_ads__account_report", "attached_node": "model.amazon_ads.amazon_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "profile_id", "model": "{{ get_where_subquery(ref('amazon_ads__account_report')) }}"}, "namespace": null}}, "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_amazon_ads__account_report_account_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__account_report_account_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061", "fqn": ["amazon_ads", "not_null_amazon_ads__account_report_account_id"], "alias": "not_null_amazon_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.86875, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "amazon_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__account_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__account_report\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.amazon_ads__account_report", "attached_node": "model.amazon_ads.amazon_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('amazon_ads__account_report')) }}"}, "namespace": null}}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_source_relation__date_day__profile_id.5ff488055c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__account_report_source_relation__date_day__profile_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_416219fe3044d8d47e223761d365cb57.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_source_relation__date_day__profile_id.5ff488055c", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__account_report_source_relation__date_day__profile_id"], "alias": "dbt_utils_unique_combination_o_416219fe3044d8d47e223761d365cb57", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_416219fe3044d8d47e223761d365cb57", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_416219fe3044d8d47e223761d365cb57"}, "created_at": 1734462185.869728, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_416219fe3044d8d47e223761d365cb57\") }}", "language": "sql", "refs": [{"name": "amazon_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__account_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_416219fe3044d8d47e223761d365cb57.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, profile_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__account_report\"\n group by source_relation, date_day, profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.amazon_ads__account_report", "attached_node": "model.amazon_ads.amazon_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "profile_id"], "model": "{{ get_where_subquery(ref('amazon_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_amazon_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a", "fqn": ["amazon_ads", "not_null_amazon_ads__ad_group_report_ad_group_id"], "alias": "not_null_amazon_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.872143, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "amazon_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__ad_group_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.amazon_ads__ad_group_report", "attached_node": "model.amazon_ads.amazon_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('amazon_ads__ad_group_report')) }}"}, "namespace": null}}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_source_relation__date_day__ad_group_id.9f5387d4e0": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_source_relation__date_day__ad_group_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_e8503e4f9f94438125f72f1d09111a10.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_source_relation__date_day__ad_group_id.9f5387d4e0", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_source_relation__date_day__ad_group_id"], "alias": "dbt_utils_unique_combination_o_e8503e4f9f94438125f72f1d09111a10", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e8503e4f9f94438125f72f1d09111a10", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e8503e4f9f94438125f72f1d09111a10"}, "created_at": 1734462185.873128, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e8503e4f9f94438125f72f1d09111a10\") }}", "language": "sql", "refs": [{"name": "amazon_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__ad_group_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_e8503e4f9f94438125f72f1d09111a10.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, ad_group_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__ad_group_report\"\n group by source_relation, date_day, ad_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.amazon_ads__ad_group_report", "attached_node": "model.amazon_ads.amazon_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "ad_group_id"], "model": "{{ get_where_subquery(ref('amazon_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_amazon_ads__ad_report_ad_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__ad_report_ad_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3", "fqn": ["amazon_ads", "not_null_amazon_ads__ad_report_ad_id"], "alias": "not_null_amazon_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.875499, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "amazon_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__ad_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__ad_report\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.amazon_ads__ad_report", "attached_node": "model.amazon_ads.amazon_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('amazon_ads__ad_report')) }}"}, "namespace": null}}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_source_relation__date_day__ad_id.5c0ccedb91": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_source_relation__date_day__ad_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_83fde40f0388d2e6fb8c9c3244db5f32.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_source_relation__date_day__ad_id.5c0ccedb91", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_source_relation__date_day__ad_id"], "alias": "dbt_utils_unique_combination_o_83fde40f0388d2e6fb8c9c3244db5f32", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_83fde40f0388d2e6fb8c9c3244db5f32", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_83fde40f0388d2e6fb8c9c3244db5f32"}, "created_at": 1734462185.876477, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_83fde40f0388d2e6fb8c9c3244db5f32\") }}", "language": "sql", "refs": [{"name": "amazon_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__ad_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_83fde40f0388d2e6fb8c9c3244db5f32.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, ad_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__ad_report\"\n group by source_relation, date_day, ad_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.amazon_ads__ad_report", "attached_node": "model.amazon_ads.amazon_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "ad_id"], "model": "{{ get_where_subquery(ref('amazon_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_amazon_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__campaign_report_campaign_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c", "fqn": ["amazon_ads", "not_null_amazon_ads__campaign_report_campaign_id"], "alias": "not_null_amazon_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.879223, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "amazon_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__campaign_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.amazon_ads__campaign_report", "attached_node": "model.amazon_ads.amazon_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('amazon_ads__campaign_report')) }}"}, "namespace": null}}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_source_relation__date_day__campaign_id.0fcead4f41": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_source_relation__date_day__campaign_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_fa3819f4bf4290da54c5b88ce0d9dc36.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_source_relation__date_day__campaign_id.0fcead4f41", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_source_relation__date_day__campaign_id"], "alias": "dbt_utils_unique_combination_o_fa3819f4bf4290da54c5b88ce0d9dc36", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fa3819f4bf4290da54c5b88ce0d9dc36", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fa3819f4bf4290da54c5b88ce0d9dc36"}, "created_at": 1734462185.880202, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fa3819f4bf4290da54c5b88ce0d9dc36\") }}", "language": "sql", "refs": [{"name": "amazon_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__campaign_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_fa3819f4bf4290da54c5b88ce0d9dc36.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, campaign_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__campaign_report\"\n group by source_relation, date_day, campaign_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.amazon_ads__campaign_report", "attached_node": "model.amazon_ads.amazon_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "campaign_id"], "model": "{{ get_where_subquery(ref('amazon_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_amazon_ads__portfolio_report_profile_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__portfolio_report_profile_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6", "fqn": ["amazon_ads", "not_null_amazon_ads__portfolio_report_profile_id"], "alias": "not_null_amazon_ads__portfolio_report_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.8825622, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "amazon_ads__portfolio_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__portfolio_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__portfolio_report_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect profile_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__portfolio_report\"\nwhere profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "profile_id", "file_key_name": "models.amazon_ads__portfolio_report", "attached_node": "model.amazon_ads.amazon_ads__portfolio_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "profile_id", "model": "{{ get_where_subquery(ref('amazon_ads__portfolio_report')) }}"}, "namespace": null}}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_source_relation__date_day__portfolio_id.b3bfe4fce4": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_source_relation__date_day__portfolio_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_cbcf46ab6ce03f3dedf83ab5cd9dd622.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_source_relation__date_day__portfolio_id.b3bfe4fce4", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_source_relation__date_day__portfolio_id"], "alias": "dbt_utils_unique_combination_o_cbcf46ab6ce03f3dedf83ab5cd9dd622", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cbcf46ab6ce03f3dedf83ab5cd9dd622", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cbcf46ab6ce03f3dedf83ab5cd9dd622"}, "created_at": 1734462185.883542, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cbcf46ab6ce03f3dedf83ab5cd9dd622\") }}", "language": "sql", "refs": [{"name": "amazon_ads__portfolio_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__portfolio_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_cbcf46ab6ce03f3dedf83ab5cd9dd622.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, portfolio_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__portfolio_report\"\n group by source_relation, date_day, portfolio_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.amazon_ads__portfolio_report", "attached_node": "model.amazon_ads.amazon_ads__portfolio_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "portfolio_id"], "model": "{{ get_where_subquery(ref('amazon_ads__portfolio_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_amazon_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__keyword_report_keyword_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a", "fqn": ["amazon_ads", "not_null_amazon_ads__keyword_report_keyword_id"], "alias": "not_null_amazon_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.885869, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "amazon_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__keyword_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__keyword_report\"\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.amazon_ads__keyword_report", "attached_node": "model.amazon_ads.amazon_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('amazon_ads__keyword_report')) }}"}, "namespace": null}}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_source_relation__date_day__keyword_id.34f042afc1": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_source_relation__date_day__keyword_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_91428774900936bd3a49f04fdde1a93d.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_source_relation__date_day__keyword_id.34f042afc1", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_source_relation__date_day__keyword_id"], "alias": "dbt_utils_unique_combination_o_91428774900936bd3a49f04fdde1a93d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_91428774900936bd3a49f04fdde1a93d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_91428774900936bd3a49f04fdde1a93d"}, "created_at": 1734462185.886843, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_91428774900936bd3a49f04fdde1a93d\") }}", "language": "sql", "refs": [{"name": "amazon_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__keyword_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_91428774900936bd3a49f04fdde1a93d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, keyword_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__keyword_report\"\n group by source_relation, date_day, keyword_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.amazon_ads__keyword_report", "attached_node": "model.amazon_ads.amazon_ads__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "keyword_id"], "model": "{{ get_where_subquery(ref('amazon_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_amazon_ads__search_report_search_term", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__search_report_search_term.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a", "fqn": ["amazon_ads", "not_null_amazon_ads__search_report_search_term"], "alias": "not_null_amazon_ads__search_report_search_term", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.889169, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "amazon_ads__search_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__search_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__search_report_search_term.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_term\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__search_report\"\nwhere search_term is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "search_term", "file_key_name": "models.amazon_ads__search_report", "attached_node": "model.amazon_ads.amazon_ads__search_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_term", "model": "{{ get_where_subquery(ref('amazon_ads__search_report')) }}"}, "namespace": null}}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_source_relation__date_day__search_term__keyword_id.21a027f105": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__search_report_source_relation__date_day__search_term__keyword_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_101099c02761163dd498edf7f610e670.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_source_relation__date_day__search_term__keyword_id.21a027f105", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__search_report_source_relation__date_day__search_term__keyword_id"], "alias": "dbt_utils_unique_combination_o_101099c02761163dd498edf7f610e670", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_101099c02761163dd498edf7f610e670", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_101099c02761163dd498edf7f610e670"}, "created_at": 1734462185.890145, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_101099c02761163dd498edf7f610e670\") }}", "language": "sql", "refs": [{"name": "amazon_ads__search_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__search_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_101099c02761163dd498edf7f610e670.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, search_term, keyword_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"amazon_ads__search_report\"\n group by source_relation, date_day, search_term, keyword_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.amazon_ads__search_report", "attached_node": "model.amazon_ads.amazon_ads__search_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "search_term", "keyword_id"], "model": "{{ get_where_subquery(ref('amazon_ads__search_report')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_facebook_ads__url_report_base_url", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__url_report_base_url.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be", "fqn": ["facebook_ads", "not_null_facebook_ads__url_report_base_url"], "alias": "not_null_facebook_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1734462185.908549, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "facebook_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__url_report\"\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "base_url", "file_key_name": "models.facebook_ads__url_report", "attached_node": "model.facebook_ads.facebook_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('facebook_ads__url_report')) }}"}, "namespace": null}}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.ef8d3469d4": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_850ed029de5e6ff1d32f50b06eaeb4d3.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.ef8d3469d4", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id"], "alias": "dbt_utils_unique_combination_o_850ed029de5e6ff1d32f50b06eaeb4d3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_850ed029de5e6ff1d32f50b06eaeb4d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_850ed029de5e6ff1d32f50b06eaeb4d3"}, "created_at": 1734462185.909958, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_850ed029de5e6ff1d32f50b06eaeb4d3\") }}", "language": "sql", "refs": [{"name": "facebook_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_850ed029de5e6ff1d32f50b06eaeb4d3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_set_id, ad_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__url_report\"\n group by source_relation, date_day, account_id, campaign_id, ad_set_id, ad_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.facebook_ads__url_report", "attached_node": "model.facebook_ads.facebook_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_set_id", "ad_id"], "model": "{{ get_where_subquery(ref('facebook_ads__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_facebook_ads__ad_report_ad_id", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__ad_report_ad_id.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238", "fqn": ["facebook_ads", "not_null_facebook_ads__ad_report_ad_id"], "alias": "not_null_facebook_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.9123578, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "facebook_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__ad_report\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.facebook_ads__ad_report", "attached_node": "model.facebook_ads.facebook_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('facebook_ads__ad_report')) }}"}, "namespace": null}}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.c866a344f6": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_6e4b66137204a720abb9a9c7bc742089.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.c866a344f6", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id"], "alias": "dbt_utils_unique_combination_o_6e4b66137204a720abb9a9c7bc742089", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6e4b66137204a720abb9a9c7bc742089", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6e4b66137204a720abb9a9c7bc742089"}, "created_at": 1734462185.913345, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6e4b66137204a720abb9a9c7bc742089\") }}", "language": "sql", "refs": [{"name": "facebook_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_6e4b66137204a720abb9a9c7bc742089.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_set_id, ad_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__ad_report\"\n group by source_relation, date_day, account_id, campaign_id, ad_set_id, ad_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.facebook_ads__ad_report", "attached_node": "model.facebook_ads.facebook_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_set_id", "ad_id"], "model": "{{ get_where_subquery(ref('facebook_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_facebook_ads__ad_set_report_ad_set_id", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__ad_set_report_ad_set_id.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4", "fqn": ["facebook_ads", "not_null_facebook_ads__ad_set_report_ad_set_id"], "alias": "not_null_facebook_ads__ad_set_report_ad_set_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.915664, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "facebook_ads__ad_set_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_set_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__ad_set_report_ad_set_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_set_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__ad_set_report\"\nwhere ad_set_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_set_id", "file_key_name": "models.facebook_ads__ad_set_report", "attached_node": "model.facebook_ads.facebook_ads__ad_set_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_set_id", "model": "{{ get_where_subquery(ref('facebook_ads__ad_set_report')) }}"}, "namespace": null}}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_source_relation__date_day__account_id__campaign_id__ad_set_id.8707f6bd30": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_source_relation__date_day__account_id__campaign_id__ad_set_id", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_b961bbfa62a03a9958c073786edc4c15.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_source_relation__date_day__account_id__campaign_id__ad_set_id.8707f6bd30", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_source_relation__date_day__account_id__campaign_id__ad_set_id"], "alias": "dbt_utils_unique_combination_o_b961bbfa62a03a9958c073786edc4c15", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b961bbfa62a03a9958c073786edc4c15", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b961bbfa62a03a9958c073786edc4c15"}, "created_at": 1734462185.916638, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b961bbfa62a03a9958c073786edc4c15\") }}", "language": "sql", "refs": [{"name": "facebook_ads__ad_set_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_set_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_b961bbfa62a03a9958c073786edc4c15.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_set_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__ad_set_report\"\n group by source_relation, date_day, account_id, campaign_id, ad_set_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.facebook_ads__ad_set_report", "attached_node": "model.facebook_ads.facebook_ads__ad_set_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_set_id"], "model": "{{ get_where_subquery(ref('facebook_ads__ad_set_report')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_facebook_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__campaign_report_campaign_id.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21", "fqn": ["facebook_ads", "not_null_facebook_ads__campaign_report_campaign_id"], "alias": "not_null_facebook_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.918962, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "facebook_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__campaign_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.facebook_ads__campaign_report", "attached_node": "model.facebook_ads.facebook_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('facebook_ads__campaign_report')) }}"}, "namespace": null}}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_source_relation__date_day__account_id__campaign_id.f97e1afff3": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_source_relation__date_day__account_id__campaign_id", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_f8c57e0e8b2ceeee09e9b03884eb051f.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_source_relation__date_day__account_id__campaign_id.f97e1afff3", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_source_relation__date_day__account_id__campaign_id"], "alias": "dbt_utils_unique_combination_o_f8c57e0e8b2ceeee09e9b03884eb051f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f8c57e0e8b2ceeee09e9b03884eb051f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f8c57e0e8b2ceeee09e9b03884eb051f"}, "created_at": 1734462185.919949, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f8c57e0e8b2ceeee09e9b03884eb051f\") }}", "language": "sql", "refs": [{"name": "facebook_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__campaign_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_f8c57e0e8b2ceeee09e9b03884eb051f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__campaign_report\"\n group by source_relation, date_day, account_id, campaign_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.facebook_ads__campaign_report", "attached_node": "model.facebook_ads.facebook_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id"], "model": "{{ get_where_subquery(ref('facebook_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_facebook_ads__account_report_account_id", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__account_report_account_id.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024", "fqn": ["facebook_ads", "not_null_facebook_ads__account_report_account_id"], "alias": "not_null_facebook_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.922267, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "facebook_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__account_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__account_report\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.facebook_ads__account_report", "attached_node": "model.facebook_ads.facebook_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('facebook_ads__account_report')) }}"}, "namespace": null}}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_source_relation__date_day__account_id.bf8a017de1": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__account_report_source_relation__date_day__account_id", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_6e8a815205ee0246fa9dad45a7c74067.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_source_relation__date_day__account_id.bf8a017de1", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__account_report_source_relation__date_day__account_id"], "alias": "dbt_utils_unique_combination_o_6e8a815205ee0246fa9dad45a7c74067", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6e8a815205ee0246fa9dad45a7c74067", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6e8a815205ee0246fa9dad45a7c74067"}, "created_at": 1734462185.923248, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6e8a815205ee0246fa9dad45a7c74067\") }}", "language": "sql", "refs": [{"name": "facebook_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__account_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_6e8a815205ee0246fa9dad45a7c74067.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__account_report\"\n group by source_relation, date_day, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.facebook_ads__account_report", "attached_node": "model.facebook_ads.facebook_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id"], "model": "{{ get_where_subquery(ref('facebook_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_facebook_ads__url_tags__fivetran_id", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__url_tags__fivetran_id.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3", "fqn": ["facebook_ads", "not_null_facebook_ads__url_tags__fivetran_id"], "alias": "not_null_facebook_ads__url_tags__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.925597, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "facebook_ads__url_tags", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_tags"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__url_tags__fivetran_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__url_tags\"\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_id", "file_key_name": "models.facebook_ads__url_tags", "attached_node": "model.facebook_ads.facebook_ads__url_tags", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('facebook_ads__url_tags')) }}"}, "namespace": null}}, "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags_source_relation___fivetran_id__key__type.c65de59dec": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__url_tags_source_relation___fivetran_id__key__type", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_0edcd43a1d9ada73ae05d9299e782956.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags_source_relation___fivetran_id__key__type.c65de59dec", "fqn": ["facebook_ads", "dbt_utils_unique_combination_of_columns_facebook_ads__url_tags_source_relation___fivetran_id__key__type"], "alias": "dbt_utils_unique_combination_o_0edcd43a1d9ada73ae05d9299e782956", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0edcd43a1d9ada73ae05d9299e782956", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0edcd43a1d9ada73ae05d9299e782956"}, "created_at": 1734462185.926571, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0edcd43a1d9ada73ae05d9299e782956\") }}", "language": "sql", "refs": [{"name": "facebook_ads__url_tags", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_tags"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_0edcd43a1d9ada73ae05d9299e782956.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, _fivetran_id, key, type\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"facebook_ads__url_tags\"\n group by source_relation, _fivetran_id, key, type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.facebook_ads__url_tags", "attached_node": "model.facebook_ads.facebook_ads__url_tags", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "_fivetran_id", "key", "type"], "model": "{{ get_where_subquery(ref('facebook_ads__url_tags')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_snapchat_ads__account_report_date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__account_report_date_day.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260", "fqn": ["snapchat_ads", "not_null_snapchat_ads__account_report_date_day"], "alias": "not_null_snapchat_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.942831, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__account_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__account_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__account_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.snapchat_ads__account_report", "attached_node": "model.snapchat_ads.snapchat_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__account_report')) }}"}, "namespace": null}}, "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_snapchat_ads__account_report_ad_account_id", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__account_report_ad_account_id.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b", "fqn": ["snapchat_ads", "not_null_snapchat_ads__account_report_ad_account_id"], "alias": "not_null_snapchat_ads__account_report_ad_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "WARN", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "WARN"}, "created_at": 1734462185.9440289, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\") }}", "language": "sql", "refs": [{"name": "snapchat_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__account_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__account_report_ad_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__account_report\"\nwhere ad_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_account_id", "file_key_name": "models.snapchat_ads__account_report", "attached_node": "model.snapchat_ads.snapchat_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_account_id", "model": "{{ get_where_subquery(ref('snapchat_ads__account_report')) }}"}, "namespace": null}}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_source_relation__ad_account_id__date_day.654a687cf1": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_source_relation__ad_account_id__date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "dbt_utils_unique_combination_o_214c2bcb5ae73bd8026704ca3c8449e8.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_source_relation__ad_account_id__date_day.654a687cf1", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_source_relation__ad_account_id__date_day"], "alias": "dbt_utils_unique_combination_o_214c2bcb5ae73bd8026704ca3c8449e8", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_214c2bcb5ae73bd8026704ca3c8449e8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_214c2bcb5ae73bd8026704ca3c8449e8"}, "created_at": 1734462185.945021, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_214c2bcb5ae73bd8026704ca3c8449e8\") }}", "language": "sql", "refs": [{"name": "snapchat_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__account_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_214c2bcb5ae73bd8026704ca3c8449e8.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_account_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__account_report\"\n group by source_relation, ad_account_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.snapchat_ads__account_report", "attached_node": "model.snapchat_ads.snapchat_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_account_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_snapchat_ads__ad_report_date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__ad_report_date_day.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_report_date_day"], "alias": "not_null_snapchat_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.94737, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__ad_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.snapchat_ads__ad_report", "attached_node": "model.snapchat_ads.snapchat_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__ad_report')) }}"}, "namespace": null}}, "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_snapchat_ads__ad_report_ad_id", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__ad_report_ad_id.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_report_ad_id"], "alias": "not_null_snapchat_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.94834, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__ad_report\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.snapchat_ads__ad_report", "attached_node": "model.snapchat_ads.snapchat_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('snapchat_ads__ad_report')) }}"}, "namespace": null}}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_source_relation__ad_id__date_day.9116e93fba": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_source_relation__ad_id__date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "dbt_utils_unique_combination_o_aee83389914e2784af892d88888b08c1.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_source_relation__ad_id__date_day.9116e93fba", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_source_relation__ad_id__date_day"], "alias": "dbt_utils_unique_combination_o_aee83389914e2784af892d88888b08c1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_aee83389914e2784af892d88888b08c1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_aee83389914e2784af892d88888b08c1"}, "created_at": 1734462185.94931, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_aee83389914e2784af892d88888b08c1\") }}", "language": "sql", "refs": [{"name": "snapchat_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_aee83389914e2784af892d88888b08c1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__ad_report\"\n group by source_relation, ad_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.snapchat_ads__ad_report", "attached_node": "model.snapchat_ads.snapchat_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_snapchat_ads__campaign_report_date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__campaign_report_date_day.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b", "fqn": ["snapchat_ads", "not_null_snapchat_ads__campaign_report_date_day"], "alias": "not_null_snapchat_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.951734, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__campaign_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__campaign_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.snapchat_ads__campaign_report", "attached_node": "model.snapchat_ads.snapchat_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__campaign_report')) }}"}, "namespace": null}}, "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_snapchat_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__campaign_report_campaign_id.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac", "fqn": ["snapchat_ads", "not_null_snapchat_ads__campaign_report_campaign_id"], "alias": "not_null_snapchat_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.952702, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__campaign_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.snapchat_ads__campaign_report", "attached_node": "model.snapchat_ads.snapchat_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('snapchat_ads__campaign_report')) }}"}, "namespace": null}}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_source_relation__campaign_id__date_day.557487ad6a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_source_relation__campaign_id__date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "dbt_utils_unique_combination_o_e2e52096c5d2adfdd8022dda67d2eefb.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_source_relation__campaign_id__date_day.557487ad6a", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_source_relation__campaign_id__date_day"], "alias": "dbt_utils_unique_combination_o_e2e52096c5d2adfdd8022dda67d2eefb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e2e52096c5d2adfdd8022dda67d2eefb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e2e52096c5d2adfdd8022dda67d2eefb"}, "created_at": 1734462185.953791, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e2e52096c5d2adfdd8022dda67d2eefb\") }}", "language": "sql", "refs": [{"name": "snapchat_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__campaign_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_e2e52096c5d2adfdd8022dda67d2eefb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__campaign_report\"\n group by source_relation, campaign_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.snapchat_ads__campaign_report", "attached_node": "model.snapchat_ads.snapchat_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_snapchat_ads__ad_squad_report_date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__ad_squad_report_date_day.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_squad_report_date_day"], "alias": "not_null_snapchat_ads__ad_squad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.9561658, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__ad_squad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_squad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_squad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__ad_squad_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.snapchat_ads__ad_squad_report", "attached_node": "model.snapchat_ads.snapchat_ads__ad_squad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__ad_squad_report')) }}"}, "namespace": null}}, "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_snapchat_ads__ad_squad_report_ad_squad_id", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__ad_squad_report_ad_squad_id.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_squad_report_ad_squad_id"], "alias": "not_null_snapchat_ads__ad_squad_report_ad_squad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.957221, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__ad_squad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_squad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_squad_report_ad_squad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__ad_squad_report\"\nwhere ad_squad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_squad_id", "file_key_name": "models.snapchat_ads__ad_squad_report", "attached_node": "model.snapchat_ads.snapchat_ads__ad_squad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_squad_id", "model": "{{ get_where_subquery(ref('snapchat_ads__ad_squad_report')) }}"}, "namespace": null}}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_source_relation__ad_squad_id__date_day.b1a26a5bb4": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_source_relation__ad_squad_id__date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "dbt_utils_unique_combination_o_aae226efcde859f979c893443d7e72e3.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_source_relation__ad_squad_id__date_day.b1a26a5bb4", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_source_relation__ad_squad_id__date_day"], "alias": "dbt_utils_unique_combination_o_aae226efcde859f979c893443d7e72e3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_aae226efcde859f979c893443d7e72e3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_aae226efcde859f979c893443d7e72e3"}, "created_at": 1734462185.9581969, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_aae226efcde859f979c893443d7e72e3\") }}", "language": "sql", "refs": [{"name": "snapchat_ads__ad_squad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_squad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_aae226efcde859f979c893443d7e72e3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_squad_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__ad_squad_report\"\n group by source_relation, ad_squad_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.snapchat_ads__ad_squad_report", "attached_node": "model.snapchat_ads.snapchat_ads__ad_squad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_squad_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__ad_squad_report')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_snapchat_ads__url_report_date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__url_report_date_day.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6", "fqn": ["snapchat_ads", "not_null_snapchat_ads__url_report_date_day"], "alias": "not_null_snapchat_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.960512, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__url_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.snapchat_ads__url_report", "attached_node": "model.snapchat_ads.snapchat_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('snapchat_ads__url_report')) }}"}, "namespace": null}}, "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_snapchat_ads__url_report_ad_id", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__url_report_ad_id.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78", "fqn": ["snapchat_ads", "not_null_snapchat_ads__url_report_ad_id"], "alias": "not_null_snapchat_ads__url_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462185.96155, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapchat_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__url_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__url_report\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.snapchat_ads__url_report", "attached_node": "model.snapchat_ads.snapchat_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('snapchat_ads__url_report')) }}"}, "namespace": null}}, "test.snapchat_ads.not_null_snapchat_ads__url_report_base_url.15676dc1de": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_snapchat_ads__url_report_base_url", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__url_report_base_url.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_base_url.15676dc1de", "fqn": ["snapchat_ads", "not_null_snapchat_ads__url_report_base_url"], "alias": "not_null_snapchat_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1734462185.9628391, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snapchat_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__url_report\"\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "base_url", "file_key_name": "models.snapchat_ads__url_report", "attached_node": "model.snapchat_ads.snapchat_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('snapchat_ads__url_report')) }}"}, "namespace": null}}, "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_source_relation__ad_id__date_day.86e3504c07": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_source_relation__ad_id__date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "dbt_utils_unique_combination_o_d0f023fab5dadee3873fc4a187d38b76.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_source_relation__ad_id__date_day.86e3504c07", "fqn": ["snapchat_ads", "dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_source_relation__ad_id__date_day"], "alias": "dbt_utils_unique_combination_o_d0f023fab5dadee3873fc4a187d38b76", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d0f023fab5dadee3873fc4a187d38b76", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d0f023fab5dadee3873fc4a187d38b76"}, "created_at": 1734462185.96415, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_d0f023fab5dadee3873fc4a187d38b76\") }}", "language": "sql", "refs": [{"name": "snapchat_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_d0f023fab5dadee3873fc4a187d38b76.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"snapchat_ads__url_report\"\n group by source_relation, ad_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.snapchat_ads__url_report", "attached_node": "model.snapchat_ads.snapchat_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "date_day"], "model": "{{ get_where_subquery(ref('snapchat_ads__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_google_ads__account_history_account_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__account_history_account_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f", "fqn": ["google_ads_source", "not_null_stg_google_ads__account_history_account_id"], "alias": "not_null_stg_google_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.028268, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__account_history_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_history\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_google_ads__account_history", "attached_node": "model.google_ads_source.stg_google_ads__account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_google_ads__account_history')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_source_relation__account_id__updated_at.0a4d931c44": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_source_relation__account_id__updated_at", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_31e6e54f7527cc244a5cb8a70c16821f.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_source_relation__account_id__updated_at.0a4d931c44", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_source_relation__account_id__updated_at"], "alias": "dbt_utils_unique_combination_o_31e6e54f7527cc244a5cb8a70c16821f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_31e6e54f7527cc244a5cb8a70c16821f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_31e6e54f7527cc244a5cb8a70c16821f"}, "created_at": 1734462186.029331, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_31e6e54f7527cc244a5cb8a70c16821f\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_31e6e54f7527cc244a5cb8a70c16821f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, updated_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_history\"\n group by source_relation, account_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__account_history", "attached_node": "model.google_ads_source.stg_google_ads__account_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__account_history')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_google_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_google_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.031787, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_history\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_google_ads__ad_group_history", "attached_node": "model.google_ads_source.stg_google_ads__ad_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_history')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_source_relation__ad_group_id__updated_at.94eb3f93a4": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_source_relation__ad_group_id__updated_at", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_067aaf35bea7bd5fb30314e43ff18b69.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_source_relation__ad_group_id__updated_at.94eb3f93a4", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_source_relation__ad_group_id__updated_at"], "alias": "dbt_utils_unique_combination_o_067aaf35bea7bd5fb30314e43ff18b69", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_067aaf35bea7bd5fb30314e43ff18b69", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_067aaf35bea7bd5fb30314e43ff18b69"}, "created_at": 1734462186.032777, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_067aaf35bea7bd5fb30314e43ff18b69\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_067aaf35bea7bd5fb30314e43ff18b69.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, updated_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_history\"\n group by source_relation, ad_group_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__ad_group_history", "attached_node": "model.google_ads_source.stg_google_ads__ad_group_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_google_ads__ad_history_ad_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_history_ad_id"], "alias": "not_null_stg_google_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.0351381, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_history\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_google_ads__ad_history", "attached_node": "model.google_ads_source.stg_google_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_history')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_source_relation__ad_id__ad_group_id__updated_at.edca86664e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_source_relation__ad_id__ad_group_id__updated_at", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_4c005e7bd18474717bc35e0b26db0b0b.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_source_relation__ad_id__ad_group_id__updated_at.edca86664e", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_source_relation__ad_id__ad_group_id__updated_at"], "alias": "dbt_utils_unique_combination_o_4c005e7bd18474717bc35e0b26db0b0b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4c005e7bd18474717bc35e0b26db0b0b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4c005e7bd18474717bc35e0b26db0b0b"}, "created_at": 1734462186.0361202, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4c005e7bd18474717bc35e0b26db0b0b\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_4c005e7bd18474717bc35e0b26db0b0b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, ad_group_id, updated_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_history\"\n group by source_relation, ad_id, ad_group_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__ad_history", "attached_node": "model.google_ads_source.stg_google_ads__ad_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "ad_group_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_history')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_google_ads__ad_stats_date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_stats_date_day"], "alias": "not_null_stg_google_ads__ad_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.038473, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_stats_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_stats\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_google_ads__ad_stats", "attached_node": "model.google_ads_source.stg_google_ads__ad_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_stats')) }}"}, "namespace": null}}, "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_google_ads__ad_stats_ad_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_stats_ad_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_stats_ad_id"], "alias": "not_null_stg_google_ads__ad_stats_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.039449, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_stats_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_stats\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_google_ads__ad_stats", "attached_node": "model.google_ads_source.stg_google_ads__ad_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_stats')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_source_relation__ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.222a7d9413": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_source_relation__ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_f3094c425e91780390549f0d6ae9846c.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_source_relation__ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.222a7d9413", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_source_relation__ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day"], "alias": "dbt_utils_unique_combination_o_f3094c425e91780390549f0d6ae9846c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f3094c425e91780390549f0d6ae9846c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f3094c425e91780390549f0d6ae9846c"}, "created_at": 1734462186.040425, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f3094c425e91780390549f0d6ae9846c\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_f3094c425e91780390549f0d6ae9846c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, ad_network_type, device, ad_group_id, keyword_ad_group_criterion, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_stats\"\n group by source_relation, ad_id, ad_network_type, device, ad_group_id, keyword_ad_group_criterion, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__ad_stats", "attached_node": "model.google_ads_source.stg_google_ads__ad_stats", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "ad_network_type", "device", "ad_group_id", "keyword_ad_group_criterion", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_stats')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_google_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75", "fqn": ["google_ads_source", "not_null_stg_google_ads__campaign_history_campaign_id"], "alias": "not_null_stg_google_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.0427752, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_google_ads__campaign_history", "attached_node": "model.google_ads_source.stg_google_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_history')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_source_relation__campaign_id__updated_at.008fea6b77": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_source_relation__campaign_id__updated_at", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_621a1b868581e76d3d957feb6d72332c.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_source_relation__campaign_id__updated_at.008fea6b77", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_source_relation__campaign_id__updated_at"], "alias": "dbt_utils_unique_combination_o_621a1b868581e76d3d957feb6d72332c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_621a1b868581e76d3d957feb6d72332c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_621a1b868581e76d3d957feb6d72332c"}, "created_at": 1734462186.043762, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_621a1b868581e76d3d957feb6d72332c\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_621a1b868581e76d3d957feb6d72332c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, updated_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__campaign_history\"\n group by source_relation, campaign_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__campaign_history", "attached_node": "model.google_ads_source.stg_google_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_google_ads__ad_group_criterion_history_criterion_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_criterion_history_criterion_id"], "alias": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031"}, "created_at": 1734462186.0461068, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_criterion_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect criterion_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_criterion_history\"\nwhere criterion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "criterion_id", "file_key_name": "models.stg_google_ads__ad_group_criterion_history", "attached_node": "model.google_ads_source.stg_google_ads__ad_group_criterion_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "criterion_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_criterion_history')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_source_relation__criterion_id__ad_group_id__updated_at.8d37dd2fa0": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_source_relation__criterion_id__ad_group_id__updated_at", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_3cabc69e13347735158c8ff9e61f1ab0.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_source_relation__criterion_id__ad_group_id__updated_at.8d37dd2fa0", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_source_relation__criterion_id__ad_group_id__updated_at"], "alias": "dbt_utils_unique_combination_o_3cabc69e13347735158c8ff9e61f1ab0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3cabc69e13347735158c8ff9e61f1ab0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3cabc69e13347735158c8ff9e61f1ab0"}, "created_at": 1734462186.047093, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3cabc69e13347735158c8ff9e61f1ab0\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_criterion_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_3cabc69e13347735158c8ff9e61f1ab0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, criterion_id, ad_group_id, updated_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_criterion_history\"\n group by source_relation, criterion_id, ad_group_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__ad_group_criterion_history", "attached_node": "model.google_ads_source.stg_google_ads__ad_group_criterion_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "criterion_id", "ad_group_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_criterion_history')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_google_ads__ad_group_stats_date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_group_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_stats_date_day"], "alias": "not_null_stg_google_ads__ad_group_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.049435, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_group_stats_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_stats\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_google_ads__ad_group_stats", "attached_node": "model.google_ads_source.stg_google_ads__ad_group_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_stats')) }}"}, "namespace": null}}, "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_google_ads__ad_group_stats_ad_group_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_group_stats_ad_group_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_stats_ad_group_id"], "alias": "not_null_stg_google_ads__ad_group_stats_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.050403, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_group_stats_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_stats\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_google_ads__ad_group_stats", "attached_node": "model.google_ads_source.stg_google_ads__ad_group_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_stats')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_source_relation__ad_group_id__device__ad_network_type__date_day.0755df524f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_source_relation__ad_group_id__device__ad_network_type__date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_154e1de1509cc30cc55df003541cbe50.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_source_relation__ad_group_id__device__ad_network_type__date_day.0755df524f", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_source_relation__ad_group_id__device__ad_network_type__date_day"], "alias": "dbt_utils_unique_combination_o_154e1de1509cc30cc55df003541cbe50", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_154e1de1509cc30cc55df003541cbe50", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_154e1de1509cc30cc55df003541cbe50"}, "created_at": 1734462186.0513768, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_154e1de1509cc30cc55df003541cbe50\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__ad_group_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_154e1de1509cc30cc55df003541cbe50.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, device, ad_network_type, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__ad_group_stats\"\n group by source_relation, ad_group_id, device, ad_network_type, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__ad_group_stats", "attached_node": "model.google_ads_source.stg_google_ads__ad_group_stats", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "device", "ad_network_type", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__ad_group_stats')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_google_ads__campaign_stats_date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__campaign_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b", "fqn": ["google_ads_source", "not_null_stg_google_ads__campaign_stats_date_day"], "alias": "not_null_stg_google_ads__campaign_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.054136, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__campaign_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__campaign_stats_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__campaign_stats\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_google_ads__campaign_stats", "attached_node": "model.google_ads_source.stg_google_ads__campaign_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_stats')) }}"}, "namespace": null}}, "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_google_ads__campaign_stats_campaign_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__campaign_stats_campaign_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f", "fqn": ["google_ads_source", "not_null_stg_google_ads__campaign_stats_campaign_id"], "alias": "not_null_stg_google_ads__campaign_stats_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.055125, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__campaign_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__campaign_stats_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__campaign_stats\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_google_ads__campaign_stats", "attached_node": "model.google_ads_source.stg_google_ads__campaign_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_stats')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_source_relation__campaign_id__ad_network_type__device__date_day.fea3ecfe6f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_source_relation__campaign_id__ad_network_type__device__date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_dea1c7f4a7dede650459570868e49c91.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_source_relation__campaign_id__ad_network_type__device__date_day.fea3ecfe6f", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_source_relation__campaign_id__ad_network_type__device__date_day"], "alias": "dbt_utils_unique_combination_o_dea1c7f4a7dede650459570868e49c91", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dea1c7f4a7dede650459570868e49c91", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dea1c7f4a7dede650459570868e49c91"}, "created_at": 1734462186.0561678, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dea1c7f4a7dede650459570868e49c91\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__campaign_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_dea1c7f4a7dede650459570868e49c91.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, ad_network_type, device, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__campaign_stats\"\n group by source_relation, campaign_id, ad_network_type, device, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__campaign_stats", "attached_node": "model.google_ads_source.stg_google_ads__campaign_stats", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "ad_network_type", "device", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__campaign_stats')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_google_ads__keyword_stats_date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__keyword_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d", "fqn": ["google_ads_source", "not_null_stg_google_ads__keyword_stats_date_day"], "alias": "not_null_stg_google_ads__keyword_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.0584478, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__keyword_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__keyword_stats_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__keyword_stats\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_google_ads__keyword_stats", "attached_node": "model.google_ads_source.stg_google_ads__keyword_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__keyword_stats')) }}"}, "namespace": null}}, "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_google_ads__keyword_stats_keyword_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__keyword_stats_keyword_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0", "fqn": ["google_ads_source", "not_null_stg_google_ads__keyword_stats_keyword_id"], "alias": "not_null_stg_google_ads__keyword_stats_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.059414, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__keyword_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__keyword_stats_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__keyword_stats\"\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_google_ads__keyword_stats", "attached_node": "model.google_ads_source.stg_google_ads__keyword_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_google_ads__keyword_stats')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_source_relation__keyword_id__date_day.4ecf84a32f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_source_relation__keyword_id__date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_d8764204cb22c1955f2ac90f55ad2259.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_source_relation__keyword_id__date_day.4ecf84a32f", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_source_relation__keyword_id__date_day"], "alias": "dbt_utils_unique_combination_o_d8764204cb22c1955f2ac90f55ad2259", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d8764204cb22c1955f2ac90f55ad2259", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d8764204cb22c1955f2ac90f55ad2259"}, "created_at": 1734462186.060479, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d8764204cb22c1955f2ac90f55ad2259\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__keyword_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_d8764204cb22c1955f2ac90f55ad2259.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, keyword_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__keyword_stats\"\n group by source_relation, keyword_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__keyword_stats", "attached_node": "model.google_ads_source.stg_google_ads__keyword_stats", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__keyword_stats')) }}"}, "namespace": "dbt_utils"}}, "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_google_ads__account_stats_account_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__account_stats_account_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b", "fqn": ["google_ads_source", "not_null_stg_google_ads__account_stats_account_id"], "alias": "not_null_stg_google_ads__account_stats_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.062762, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__account_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__account_stats_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_stats\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_google_ads__account_stats", "attached_node": "model.google_ads_source.stg_google_ads__account_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_google_ads__account_stats')) }}"}, "namespace": null}}, "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_google_ads__account_stats_date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__account_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5", "fqn": ["google_ads_source", "not_null_stg_google_ads__account_stats_date_day"], "alias": "not_null_stg_google_ads__account_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.063819, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_google_ads__account_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__account_stats_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_stats\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_google_ads__account_stats", "attached_node": "model.google_ads_source.stg_google_ads__account_stats", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_google_ads__account_stats')) }}"}, "namespace": null}}, "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_source_relation__account_id__device__ad_network_type__date_day.7d4d5e9ce2": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_source_relation__account_id__device__ad_network_type__date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_eac6a4b83a9b000b437d9f32d485821f.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_source_relation__account_id__device__ad_network_type__date_day.7d4d5e9ce2", "fqn": ["google_ads_source", "dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_source_relation__account_id__device__ad_network_type__date_day"], "alias": "dbt_utils_unique_combination_o_eac6a4b83a9b000b437d9f32d485821f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eac6a4b83a9b000b437d9f32d485821f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eac6a4b83a9b000b437d9f32d485821f"}, "created_at": 1734462186.0647979, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eac6a4b83a9b000b437d9f32d485821f\") }}", "language": "sql", "refs": [{"name": "stg_google_ads__account_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_eac6a4b83a9b000b437d9f32d485821f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, device, ad_network_type, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_google_ads__account_stats\"\n group by source_relation, account_id, device, ad_network_type, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_google_ads__account_stats", "attached_node": "model.google_ads_source.stg_google_ads__account_stats", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "device", "ad_network_type", "date_day"], "model": "{{ get_where_subquery(ref('stg_google_ads__account_stats')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_apple_search_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_group_report_ad_group_id"], "alias": "not_null_apple_search_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.091064, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.apple_search_ads__ad_group_report", "attached_node": "model.apple_search_ads.apple_search_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('apple_search_ads__ad_group_report')) }}"}, "namespace": null}}, "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_apple_search_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__ad_group_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_group_report_date_day"], "alias": "not_null_apple_search_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.092144, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__ad_group_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.apple_search_ads__ad_group_report", "attached_node": "model.apple_search_ads.apple_search_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__ad_group_report')) }}"}, "namespace": null}}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_source_relation__organization_id__campaign_id__ad_group_id__date_day.3c4191e648": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_source_relation__organization_id__campaign_id__ad_group_id__date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_fe11289b4cac32289b2d28ca15016d26.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_source_relation__organization_id__campaign_id__ad_group_id__date_day.3c4191e648", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_source_relation__organization_id__campaign_id__ad_group_id__date_day"], "alias": "dbt_utils_unique_combination_o_fe11289b4cac32289b2d28ca15016d26", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fe11289b4cac32289b2d28ca15016d26", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fe11289b4cac32289b2d28ca15016d26"}, "created_at": 1734462186.093129, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fe11289b4cac32289b2d28ca15016d26\") }}", "language": "sql", "refs": [{"name": "apple_search_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_fe11289b4cac32289b2d28ca15016d26.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, campaign_id, ad_group_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__ad_group_report\"\n group by source_relation, organization_id, campaign_id, ad_group_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.apple_search_ads__ad_group_report", "attached_node": "model.apple_search_ads.apple_search_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "campaign_id", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_apple_search_ads__ad_report_ad_id", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__ad_report_ad_id.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_report_ad_id"], "alias": "not_null_apple_search_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.095544, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__ad_report\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.apple_search_ads__ad_report", "attached_node": "model.apple_search_ads.apple_search_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('apple_search_ads__ad_report')) }}"}, "namespace": null}}, "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_apple_search_ads__ad_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__ad_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_report_date_day"], "alias": "not_null_apple_search_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.096511, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__ad_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.apple_search_ads__ad_report", "attached_node": "model.apple_search_ads.apple_search_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__ad_report')) }}"}, "namespace": null}}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_source_relation__organization_id__campaign_id__ad_group_id__ad_id__date_day.6d5d406b55": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_source_relation__organization_id__campaign_id__ad_group_id__ad_id__date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_fa4548ed540d1314d883cc2e8fe04520.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_source_relation__organization_id__campaign_id__ad_group_id__ad_id__date_day.6d5d406b55", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_source_relation__organization_id__campaign_id__ad_group_id__ad_id__date_day"], "alias": "dbt_utils_unique_combination_o_fa4548ed540d1314d883cc2e8fe04520", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fa4548ed540d1314d883cc2e8fe04520", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fa4548ed540d1314d883cc2e8fe04520"}, "created_at": 1734462186.0974872, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fa4548ed540d1314d883cc2e8fe04520\") }}", "language": "sql", "refs": [{"name": "apple_search_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_fa4548ed540d1314d883cc2e8fe04520.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, campaign_id, ad_group_id, ad_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__ad_report\"\n group by source_relation, organization_id, campaign_id, ad_group_id, ad_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.apple_search_ads__ad_report", "attached_node": "model.apple_search_ads.apple_search_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "campaign_id", "ad_group_id", "ad_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_apple_search_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__campaign_report_campaign_id.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146", "fqn": ["apple_search_ads", "not_null_apple_search_ads__campaign_report_campaign_id"], "alias": "not_null_apple_search_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.0998359, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.apple_search_ads__campaign_report", "attached_node": "model.apple_search_ads.apple_search_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('apple_search_ads__campaign_report')) }}"}, "namespace": null}}, "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_apple_search_ads__campaign_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__campaign_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a", "fqn": ["apple_search_ads", "not_null_apple_search_ads__campaign_report_date_day"], "alias": "not_null_apple_search_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.100805, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__campaign_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.apple_search_ads__campaign_report", "attached_node": "model.apple_search_ads.apple_search_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__campaign_report')) }}"}, "namespace": null}}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_source_relation__organization_id__campaign_id__date_day.0fdb29354b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_source_relation__organization_id__campaign_id__date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_334b4826674b5328c712537f8d4860c4.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_source_relation__organization_id__campaign_id__date_day.0fdb29354b", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_source_relation__organization_id__campaign_id__date_day"], "alias": "dbt_utils_unique_combination_o_334b4826674b5328c712537f8d4860c4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_334b4826674b5328c712537f8d4860c4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_334b4826674b5328c712537f8d4860c4"}, "created_at": 1734462186.101778, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_334b4826674b5328c712537f8d4860c4\") }}", "language": "sql", "refs": [{"name": "apple_search_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_334b4826674b5328c712537f8d4860c4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, campaign_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__campaign_report\"\n group by source_relation, organization_id, campaign_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.apple_search_ads__campaign_report", "attached_node": "model.apple_search_ads.apple_search_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_apple_search_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__keyword_report_keyword_id.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db", "fqn": ["apple_search_ads", "not_null_apple_search_ads__keyword_report_keyword_id"], "alias": "not_null_apple_search_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.1041322, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__keyword_report\"\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.apple_search_ads__keyword_report", "attached_node": "model.apple_search_ads.apple_search_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('apple_search_ads__keyword_report')) }}"}, "namespace": null}}, "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_apple_search_ads__keyword_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__keyword_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82", "fqn": ["apple_search_ads", "not_null_apple_search_ads__keyword_report_date_day"], "alias": "not_null_apple_search_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.105101, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__keyword_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__keyword_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.apple_search_ads__keyword_report", "attached_node": "model.apple_search_ads.apple_search_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__keyword_report')) }}"}, "namespace": null}}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_source_relation__organization_id__campaign_id__ad_group_id__keyword_id__date_day.974556d271": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_source_relation__organization_id__campaign_id__ad_group_id__keyword_id__date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_5c7418df5951e28b87067eef47e194a4.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_source_relation__organization_id__campaign_id__ad_group_id__keyword_id__date_day.974556d271", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_source_relation__organization_id__campaign_id__ad_group_id__keyword_id__date_day"], "alias": "dbt_utils_unique_combination_o_5c7418df5951e28b87067eef47e194a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5c7418df5951e28b87067eef47e194a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5c7418df5951e28b87067eef47e194a4"}, "created_at": 1734462186.10607, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5c7418df5951e28b87067eef47e194a4\") }}", "language": "sql", "refs": [{"name": "apple_search_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_5c7418df5951e28b87067eef47e194a4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, campaign_id, ad_group_id, keyword_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__keyword_report\"\n group by source_relation, organization_id, campaign_id, ad_group_id, keyword_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.apple_search_ads__keyword_report", "attached_node": "model.apple_search_ads.apple_search_ads__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "campaign_id", "ad_group_id", "keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_apple_search_ads__organization_report_organization_id", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__organization_report_organization_id.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8", "fqn": ["apple_search_ads", "not_null_apple_search_ads__organization_report_organization_id"], "alias": "not_null_apple_search_ads__organization_report_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.108425, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__organization_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__organization_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__organization_report_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__organization_report\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.apple_search_ads__organization_report", "attached_node": "model.apple_search_ads.apple_search_ads__organization_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('apple_search_ads__organization_report')) }}"}, "namespace": null}}, "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_apple_search_ads__organization_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__organization_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523", "fqn": ["apple_search_ads", "not_null_apple_search_ads__organization_report_date_day"], "alias": "not_null_apple_search_ads__organization_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.109405, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__organization_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__organization_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__organization_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__organization_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.apple_search_ads__organization_report", "attached_node": "model.apple_search_ads.apple_search_ads__organization_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__organization_report')) }}"}, "namespace": null}}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_source_relation__organization_id__date_day.8a9d834203": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_source_relation__organization_id__date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_c9d3d0a890cfbe0e23588c177a8f9147.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_source_relation__organization_id__date_day.8a9d834203", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_source_relation__organization_id__date_day"], "alias": "dbt_utils_unique_combination_o_c9d3d0a890cfbe0e23588c177a8f9147", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c9d3d0a890cfbe0e23588c177a8f9147", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c9d3d0a890cfbe0e23588c177a8f9147"}, "created_at": 1734462186.1104379, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c9d3d0a890cfbe0e23588c177a8f9147\") }}", "language": "sql", "refs": [{"name": "apple_search_ads__organization_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__organization_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_c9d3d0a890cfbe0e23588c177a8f9147.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__organization_report\"\n group by source_relation, organization_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.apple_search_ads__organization_report", "attached_node": "model.apple_search_ads.apple_search_ads__organization_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "date_day"], "model": "{{ get_where_subquery(ref('apple_search_ads__organization_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_apple_search_ads__search_term_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__search_term_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c", "fqn": ["apple_search_ads", "not_null_apple_search_ads__search_term_report_date_day"], "alias": "not_null_apple_search_ads__search_term_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.11271, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__search_term_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__search_term_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__search_term_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.apple_search_ads__search_term_report", "attached_node": "model.apple_search_ads.apple_search_ads__search_term_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('apple_search_ads__search_term_report')) }}"}, "namespace": null}}, "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_apple_search_ads__search_term_report_search_term_text", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__search_term_report_search_term_text.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7", "fqn": ["apple_search_ads", "not_null_apple_search_ads__search_term_report_search_term_text"], "alias": "not_null_apple_search_ads__search_term_report_search_term_text", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.113761, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apple_search_ads__search_term_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__search_term_report_search_term_text.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_term_text\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__search_term_report\"\nwhere search_term_text is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "search_term_text", "file_key_name": "models.apple_search_ads__search_term_report", "attached_node": "model.apple_search_ads.apple_search_ads__search_term_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_term_text", "model": "{{ get_where_subquery(ref('apple_search_ads__search_term_report')) }}"}, "namespace": null}}, "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_source_relation__search_term_text__match_type__date_day__keyword_id__ad_group_id__campaign_id__organization_id.82f7464f67": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_source_relation__search_term_text__match_type__date_day__keyword_id__ad_group_id__campaign_id__organization_id", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_d03054394a6ffc127373b3cdc6b831d6.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_source_relation__search_term_text__match_type__date_day__keyword_id__ad_group_id__campaign_id__organization_id.82f7464f67", "fqn": ["apple_search_ads", "dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_source_relation__search_term_text__match_type__date_day__keyword_id__ad_group_id__campaign_id__organization_id"], "alias": "dbt_utils_unique_combination_o_d03054394a6ffc127373b3cdc6b831d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d03054394a6ffc127373b3cdc6b831d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d03054394a6ffc127373b3cdc6b831d6"}, "created_at": 1734462186.11474, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d03054394a6ffc127373b3cdc6b831d6\") }}", "language": "sql", "refs": [{"name": "apple_search_ads__search_term_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_d03054394a6ffc127373b3cdc6b831d6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, search_term_text, match_type, date_day, keyword_id, ad_group_id, campaign_id, organization_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"apple_search_ads__search_term_report\"\n group by source_relation, search_term_text, match_type, date_day, keyword_id, ad_group_id, campaign_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.apple_search_ads__search_term_report", "attached_node": "model.apple_search_ads.apple_search_ads__search_term_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "search_term_text", "match_type", "date_day", "keyword_id", "ad_group_id", "campaign_id", "organization_id"], "model": "{{ get_where_subquery(ref('apple_search_ads__search_term_report')) }}"}, "namespace": "dbt_utils"}}, "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_ad_reporting__account_report_account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__account_report_account_id.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022", "fqn": ["ad_reporting", "not_null_ad_reporting__account_report_account_id"], "alias": "not_null_ad_reporting__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "WARN", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "WARN"}, "created_at": 1734462186.131603, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\") }}", "language": "sql", "refs": [{"name": "ad_reporting__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__account_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__account_report\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.ad_reporting__account_report", "attached_node": "model.ad_reporting.ad_reporting__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('ad_reporting__account_report')) }}"}, "namespace": null}}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_source_relation__platform__date_day__account_id.4cb64b5631": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__account_report_source_relation__platform__date_day__account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_137fe22ab042d858489ea7f3610c5581.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_source_relation__platform__date_day__account_id.4cb64b5631", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__account_report_source_relation__platform__date_day__account_id"], "alias": "dbt_utils_unique_combination_o_137fe22ab042d858489ea7f3610c5581", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_137fe22ab042d858489ea7f3610c5581", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_137fe22ab042d858489ea7f3610c5581"}, "created_at": 1734462186.132628, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_137fe22ab042d858489ea7f3610c5581\") }}", "language": "sql", "refs": [{"name": "ad_reporting__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__account_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_137fe22ab042d858489ea7f3610c5581.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, platform, date_day, account_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__account_report\"\n group by source_relation, platform, date_day, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.ad_reporting__account_report", "attached_node": "model.ad_reporting.ad_reporting__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "platform", "date_day", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_ad_reporting__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__ad_group_report_ad_group_id.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842", "fqn": ["ad_reporting", "not_null_ad_reporting__ad_group_report_ad_group_id"], "alias": "not_null_ad_reporting__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.134989, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "ad_reporting__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_group_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.ad_reporting__ad_group_report", "attached_node": "model.ad_reporting.ad_reporting__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('ad_reporting__ad_group_report')) }}"}, "namespace": null}}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id.629300a679": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_03c850f1086750c5dae5d8942fc2ff12.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id.629300a679", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id"], "alias": "dbt_utils_unique_combination_o_03c850f1086750c5dae5d8942fc2ff12", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_03c850f1086750c5dae5d8942fc2ff12", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_03c850f1086750c5dae5d8942fc2ff12"}, "created_at": 1734462186.135972, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_03c850f1086750c5dae5d8942fc2ff12\") }}", "language": "sql", "refs": [{"name": "ad_reporting__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_group_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_03c850f1086750c5dae5d8942fc2ff12.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, platform, date_day, ad_group_id, campaign_id, account_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__ad_group_report\"\n group by source_relation, platform, date_day, ad_group_id, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.ad_reporting__ad_group_report", "attached_node": "model.ad_reporting.ad_reporting__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "platform", "date_day", "ad_group_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_ad_reporting__ad_report_ad_id", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__ad_report_ad_id.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152", "fqn": ["ad_reporting", "not_null_ad_reporting__ad_report_ad_id"], "alias": "not_null_ad_reporting__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.138305, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "ad_reporting__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__ad_report\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.ad_reporting__ad_report", "attached_node": "model.ad_reporting.ad_reporting__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('ad_reporting__ad_report')) }}"}, "namespace": null}}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_source_relation__platform__date_day__ad_id__ad_group_id__campaign_id__account_id.2e26485f58": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_source_relation__platform__date_day__ad_id__ad_group_id__campaign_id__account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_2c5307aa3633e863dfc695574d4d9c18.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_source_relation__platform__date_day__ad_id__ad_group_id__campaign_id__account_id.2e26485f58", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_source_relation__platform__date_day__ad_id__ad_group_id__campaign_id__account_id"], "alias": "dbt_utils_unique_combination_o_2c5307aa3633e863dfc695574d4d9c18", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c5307aa3633e863dfc695574d4d9c18", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c5307aa3633e863dfc695574d4d9c18"}, "created_at": 1734462186.139286, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c5307aa3633e863dfc695574d4d9c18\") }}", "language": "sql", "refs": [{"name": "ad_reporting__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_2c5307aa3633e863dfc695574d4d9c18.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, platform, date_day, ad_id, ad_group_id, campaign_id, account_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__ad_report\"\n group by source_relation, platform, date_day, ad_id, ad_group_id, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.ad_reporting__ad_report", "attached_node": "model.ad_reporting.ad_reporting__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "platform", "date_day", "ad_id", "ad_group_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_ad_reporting__campaign_report_campaign_id", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__campaign_report_campaign_id.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b", "fqn": ["ad_reporting", "not_null_ad_reporting__campaign_report_campaign_id"], "alias": "not_null_ad_reporting__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.1416252, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "ad_reporting__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__campaign_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__campaign_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.ad_reporting__campaign_report", "attached_node": "model.ad_reporting.ad_reporting__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('ad_reporting__campaign_report')) }}"}, "namespace": null}}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_source_relation__platform__date_day__campaign_id__account_id.0cad44418b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_source_relation__platform__date_day__campaign_id__account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_fd9fb8e6caf04131c36f258d26401bb5.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_source_relation__platform__date_day__campaign_id__account_id.0cad44418b", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_source_relation__platform__date_day__campaign_id__account_id"], "alias": "dbt_utils_unique_combination_o_fd9fb8e6caf04131c36f258d26401bb5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd9fb8e6caf04131c36f258d26401bb5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd9fb8e6caf04131c36f258d26401bb5"}, "created_at": 1734462186.1426072, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd9fb8e6caf04131c36f258d26401bb5\") }}", "language": "sql", "refs": [{"name": "ad_reporting__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__campaign_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_fd9fb8e6caf04131c36f258d26401bb5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, platform, date_day, campaign_id, account_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__campaign_report\"\n group by source_relation, platform, date_day, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.ad_reporting__campaign_report", "attached_node": "model.ad_reporting.ad_reporting__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "platform", "date_day", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_ad_reporting__keyword_report_keyword_id", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__keyword_report_keyword_id.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334", "fqn": ["ad_reporting", "not_null_ad_reporting__keyword_report_keyword_id"], "alias": "not_null_ad_reporting__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.1449459, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "ad_reporting__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__keyword_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__keyword_report\"\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.ad_reporting__keyword_report", "attached_node": "model.ad_reporting.ad_reporting__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('ad_reporting__keyword_report')) }}"}, "namespace": null}}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_source_relation__platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id.62e073f236": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_source_relation__platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_166d6a59c9a78ecdc683ed7e8b476cb6.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_source_relation__platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id.62e073f236", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_source_relation__platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id"], "alias": "dbt_utils_unique_combination_o_166d6a59c9a78ecdc683ed7e8b476cb6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_166d6a59c9a78ecdc683ed7e8b476cb6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_166d6a59c9a78ecdc683ed7e8b476cb6"}, "created_at": 1734462186.145926, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_166d6a59c9a78ecdc683ed7e8b476cb6\") }}", "language": "sql", "refs": [{"name": "ad_reporting__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__keyword_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_166d6a59c9a78ecdc683ed7e8b476cb6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, platform, date_day, keyword_id, keyword_match_type, ad_group_id, campaign_id, account_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__keyword_report\"\n group by source_relation, platform, date_day, keyword_id, keyword_match_type, ad_group_id, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.ad_reporting__keyword_report", "attached_node": "model.ad_reporting.ad_reporting__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "platform", "date_day", "keyword_id", "keyword_match_type", "ad_group_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_ad_reporting__search_report_search_query", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__search_report_search_query.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb", "fqn": ["ad_reporting", "not_null_ad_reporting__search_report_search_query"], "alias": "not_null_ad_reporting__search_report_search_query", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.148254, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "ad_reporting__search_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__search_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__search_report_search_query.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__search_report\"\nwhere search_query is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "search_query", "file_key_name": "models.ad_reporting__search_report", "attached_node": "model.ad_reporting.ad_reporting__search_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_query", "model": "{{ get_where_subquery(ref('ad_reporting__search_report')) }}"}, "namespace": null}}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__search_report_source_relation__platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.ee233ddb9e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__search_report_source_relation__platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_bb96ab2a60f00da0e77e4f2773a83450.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__search_report_source_relation__platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.ee233ddb9e", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__search_report_source_relation__platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id"], "alias": "dbt_utils_unique_combination_o_bb96ab2a60f00da0e77e4f2773a83450", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bb96ab2a60f00da0e77e4f2773a83450", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bb96ab2a60f00da0e77e4f2773a83450"}, "created_at": 1734462186.149235, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bb96ab2a60f00da0e77e4f2773a83450\") }}", "language": "sql", "refs": [{"name": "ad_reporting__search_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__search_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_bb96ab2a60f00da0e77e4f2773a83450.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, platform, date_day, search_query, search_match_type, keyword_id, ad_group_id, campaign_id, account_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__search_report\"\n group by source_relation, platform, date_day, search_query, search_match_type, keyword_id, ad_group_id, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.ad_reporting__search_report", "attached_node": "model.ad_reporting.ad_reporting__search_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "platform", "date_day", "search_query", "search_match_type", "keyword_id", "ad_group_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__search_report')) }}"}, "namespace": "dbt_utils"}}, "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_ad_reporting__url_report_base_url", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__url_report_base_url.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6", "fqn": ["ad_reporting", "not_null_ad_reporting__url_report_base_url"], "alias": "not_null_ad_reporting__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1734462186.152298, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "ad_reporting__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__url_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__url_report\"\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "base_url", "file_key_name": "models.ad_reporting__url_report", "attached_node": "model.ad_reporting.ad_reporting__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('ad_reporting__url_report')) }}"}, "namespace": null}}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__url_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id__base_url__url_host__url_path__utm_campaign__utm_content__utm_medium__utm_source__utm_term.2e59004ca0": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__url_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id__base_url__url_host__url_path__utm_campaign__utm_content__utm_medium__utm_source__utm_term", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_4202d9f47b7d6f35c406d5002264f569.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__url_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id__base_url__url_host__url_path__utm_campaign__utm_content__utm_medium__utm_source__utm_term.2e59004ca0", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__url_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id__base_url__url_host__url_path__utm_campaign__utm_content__utm_medium__utm_source__utm_term"], "alias": "dbt_utils_unique_combination_o_4202d9f47b7d6f35c406d5002264f569", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4202d9f47b7d6f35c406d5002264f569", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4202d9f47b7d6f35c406d5002264f569"}, "created_at": 1734462186.153613, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_4202d9f47b7d6f35c406d5002264f569\") }}", "language": "sql", "refs": [{"name": "ad_reporting__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__url_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_4202d9f47b7d6f35c406d5002264f569.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, platform, date_day, ad_group_id, campaign_id, account_id, base_url, url_host, url_path, utm_campaign, utm_content, utm_medium, utm_source, utm_term\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__url_report\"\n group by source_relation, platform, date_day, ad_group_id, campaign_id, account_id, base_url, url_host, url_path, utm_campaign, utm_content, utm_medium, utm_source, utm_term\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.ad_reporting__url_report", "attached_node": "model.ad_reporting.ad_reporting__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "platform", "date_day", "ad_group_id", "campaign_id", "account_id", "base_url", "url_host", "url_path", "utm_campaign", "utm_content", "utm_medium", "utm_source", "utm_term"], "model": "{{ get_where_subquery(ref('ad_reporting__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_modified_at.e5d65fa28f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_group_history_modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_group_history_modified_at.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_modified_at.e5d65fa28f", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_history_modified_at"], "alias": "not_null_stg_apple_search_ads__ad_group_history_modified_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.263212, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_group_history_modified_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_group_history\"\nwhere modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "modified_at", "file_key_name": "models.stg_apple_search_ads__ad_group_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "modified_at", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_history')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_ad_group_id.dc128eecb7": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_ad_group_id.dc128eecb7", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_apple_search_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.26427, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_group_history\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_apple_search_ads__ad_group_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_history')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_source_relation__ad_group_id__modified_at.a6db663569": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_source_relation__ad_group_id__modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_74e5a6715aab20b81bd051912f24e308.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_source_relation__ad_group_id__modified_at.a6db663569", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_source_relation__ad_group_id__modified_at"], "alias": "dbt_utils_unique_combination_o_74e5a6715aab20b81bd051912f24e308", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_74e5a6715aab20b81bd051912f24e308", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_74e5a6715aab20b81bd051912f24e308"}, "created_at": 1734462186.265595, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_74e5a6715aab20b81bd051912f24e308\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_74e5a6715aab20b81bd051912f24e308.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, modified_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_group_history\"\n group by source_relation, ad_group_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__ad_group_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_ad_group_id.a115f9cfc1": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_ad_group_id.a115f9cfc1", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_report_ad_group_id"], "alias": "not_null_stg_apple_search_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.267997, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_apple_search_ads__ad_group_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_date_day.4dfd46a43b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_group_report_date_day.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_date_day.4dfd46a43b", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_report_date_day"], "alias": "not_null_stg_apple_search_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.269053, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_group_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_apple_search_ads__ad_group_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_source_relation__ad_group_id__date_day.dc4ccb902d": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_source_relation__ad_group_id__date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_fcbe3d8b4cacd6c4f523174599ba57cb.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_source_relation__ad_group_id__date_day.dc4ccb902d", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_source_relation__ad_group_id__date_day"], "alias": "dbt_utils_unique_combination_o_fcbe3d8b4cacd6c4f523174599ba57cb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fcbe3d8b4cacd6c4f523174599ba57cb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fcbe3d8b4cacd6c4f523174599ba57cb"}, "created_at": 1734462186.270026, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fcbe3d8b4cacd6c4f523174599ba57cb\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_fcbe3d8b4cacd6c4f523174599ba57cb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_group_report\"\n group by source_relation, ad_group_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__ad_group_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_history_modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_history_modified_at.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_history_modified_at"], "alias": "not_null_stg_apple_search_ads__ad_history_modified_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.2723908, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_history_modified_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_history\"\nwhere modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "modified_at", "file_key_name": "models.stg_apple_search_ads__ad_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "modified_at", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_history')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_history_ad_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_history_ad_id"], "alias": "not_null_stg_apple_search_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.273367, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_history\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_apple_search_ads__ad_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_history')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_source_relation__ad_id__modified_at.45dfca7ca5": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_source_relation__ad_id__modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_ddcba6ed1b0ac1314f13f3415296d795.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_source_relation__ad_id__modified_at.45dfca7ca5", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_source_relation__ad_id__modified_at"], "alias": "dbt_utils_unique_combination_o_ddcba6ed1b0ac1314f13f3415296d795", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ddcba6ed1b0ac1314f13f3415296d795", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ddcba6ed1b0ac1314f13f3415296d795"}, "created_at": 1734462186.274335, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ddcba6ed1b0ac1314f13f3415296d795\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_ddcba6ed1b0ac1314f13f3415296d795.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, modified_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_history\"\n group by source_relation, ad_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__ad_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_history')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_report_date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_report_date_day.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_report_date_day"], "alias": "not_null_stg_apple_search_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.276682, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_apple_search_ads__ad_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_group_id.a397755e9f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_report_ad_group_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_report_ad_group_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_group_id.a397755e9f", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_report_ad_group_id"], "alias": "not_null_stg_apple_search_ads__ad_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.277646, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_report\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_apple_search_ads__ad_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_report_ad_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_report_ad_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_report_ad_id"], "alias": "not_null_stg_apple_search_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.278595, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_report\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_apple_search_ads__ad_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_source_relation__ad_id__date_day__ad_group_id.f9bc5ff292": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_source_relation__ad_id__date_day__ad_group_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_ab09cea2dc8dde206ebbe853dddedb38.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_source_relation__ad_id__date_day__ad_group_id.f9bc5ff292", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_source_relation__ad_id__date_day__ad_group_id"], "alias": "dbt_utils_unique_combination_o_ab09cea2dc8dde206ebbe853dddedb38", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ab09cea2dc8dde206ebbe853dddedb38", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ab09cea2dc8dde206ebbe853dddedb38"}, "created_at": 1734462186.2795799, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ab09cea2dc8dde206ebbe853dddedb38\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_ab09cea2dc8dde206ebbe853dddedb38.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, date_day, ad_group_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__ad_report\"\n group by source_relation, ad_id, date_day, ad_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__ad_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "date_day", "ad_group_id"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__campaign_history_modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__campaign_history_modified_at.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_history_modified_at"], "alias": "not_null_stg_apple_search_ads__campaign_history_modified_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.281903, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__campaign_history_modified_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_history\"\nwhere modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "modified_at", "file_key_name": "models.stg_apple_search_ads__campaign_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "modified_at", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_history')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_history_campaign_id"], "alias": "not_null_stg_apple_search_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.282867, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_apple_search_ads__campaign_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_history')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_source_relation__campaign_id__modified_at.2e9f11582c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_source_relation__campaign_id__modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_23b86817399c19af07a85c4b6420cd02.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_source_relation__campaign_id__modified_at.2e9f11582c", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_source_relation__campaign_id__modified_at"], "alias": "dbt_utils_unique_combination_o_23b86817399c19af07a85c4b6420cd02", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_23b86817399c19af07a85c4b6420cd02", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_23b86817399c19af07a85c4b6420cd02"}, "created_at": 1734462186.283919, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_23b86817399c19af07a85c4b6420cd02\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_23b86817399c19af07a85c4b6420cd02.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, modified_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_history\"\n group by source_relation, campaign_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__campaign_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__campaign_report_campaign_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_report_campaign_id"], "alias": "not_null_stg_apple_search_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.286185, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_apple_search_ads__campaign_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__campaign_report_date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__campaign_report_date_day.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_report_date_day"], "alias": "not_null_stg_apple_search_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.287151, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_apple_search_ads__campaign_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_source_relation__campaign_id__date_day.87b6206f82": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_source_relation__campaign_id__date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_c61be8a238aa97b4fed812e9eed3ddec.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_source_relation__campaign_id__date_day.87b6206f82", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_source_relation__campaign_id__date_day"], "alias": "dbt_utils_unique_combination_o_c61be8a238aa97b4fed812e9eed3ddec", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c61be8a238aa97b4fed812e9eed3ddec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c61be8a238aa97b4fed812e9eed3ddec"}, "created_at": 1734462186.288194, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c61be8a238aa97b4fed812e9eed3ddec\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_c61be8a238aa97b4fed812e9eed3ddec.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__campaign_report\"\n group by source_relation, campaign_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__campaign_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__keyword_history_modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__keyword_history_modified_at.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_history_modified_at"], "alias": "not_null_stg_apple_search_ads__keyword_history_modified_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.290448, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__keyword_history_modified_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__keyword_history\"\nwhere modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "modified_at", "file_key_name": "models.stg_apple_search_ads__keyword_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "modified_at", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_history')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__keyword_history_keyword_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__keyword_history_keyword_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_history_keyword_id"], "alias": "not_null_stg_apple_search_ads__keyword_history_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.291488, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__keyword_history_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__keyword_history\"\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_apple_search_ads__keyword_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_history')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_source_relation__keyword_id__modified_at.635c0ce086": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_source_relation__keyword_id__modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_f4f3bfccbc0efa873abce337f3b30531.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_source_relation__keyword_id__modified_at.635c0ce086", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_source_relation__keyword_id__modified_at"], "alias": "dbt_utils_unique_combination_o_f4f3bfccbc0efa873abce337f3b30531", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f4f3bfccbc0efa873abce337f3b30531", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f4f3bfccbc0efa873abce337f3b30531"}, "created_at": 1734462186.292458, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f4f3bfccbc0efa873abce337f3b30531\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_f4f3bfccbc0efa873abce337f3b30531.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, keyword_id, modified_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__keyword_history\"\n group by source_relation, keyword_id, modified_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__keyword_history", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "keyword_id", "modified_at"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_history')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__keyword_report_keyword_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_report_keyword_id"], "alias": "not_null_stg_apple_search_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.294785, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__keyword_report\"\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_apple_search_ads__keyword_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__keyword_report_date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__keyword_report_date_day.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_report_date_day"], "alias": "not_null_stg_apple_search_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.295743, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__keyword_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__keyword_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_apple_search_ads__keyword_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_source_relation__keyword_id__date_day.855ae5524a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_source_relation__keyword_id__date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_f0fd683a5364df85c7c654d28d470629.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_source_relation__keyword_id__date_day.855ae5524a", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_source_relation__keyword_id__date_day"], "alias": "dbt_utils_unique_combination_o_f0fd683a5364df85c7c654d28d470629", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f0fd683a5364df85c7c654d28d470629", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f0fd683a5364df85c7c654d28d470629"}, "created_at": 1734462186.2967172, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f0fd683a5364df85c7c654d28d470629\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_f0fd683a5364df85c7c654d28d470629.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, keyword_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__keyword_report\"\n group by source_relation, keyword_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__keyword_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__organization_organization_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__organization_organization_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__organization_organization_id"], "alias": "not_null_stg_apple_search_ads__organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.299051, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__organization\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_apple_search_ads__organization", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__organization", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__organization')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_source_relation__organization_id.b5c488cb77": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_source_relation__organization_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_e417edcd48d4e118b7866ca779534b99.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_source_relation__organization_id.b5c488cb77", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_source_relation__organization_id"], "alias": "dbt_utils_unique_combination_o_e417edcd48d4e118b7866ca779534b99", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e417edcd48d4e118b7866ca779534b99", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e417edcd48d4e118b7866ca779534b99"}, "created_at": 1734462186.300027, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e417edcd48d4e118b7866ca779534b99\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_e417edcd48d4e118b7866ca779534b99.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__organization\"\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__organization", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__organization", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__organization')) }}"}, "namespace": "dbt_utils"}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report__fivetran_id.aa430d1dad": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__search_term_report__fivetran_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__search_term_report__fivetran_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report__fivetran_id.aa430d1dad", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__search_term_report__fivetran_id"], "alias": "not_null_stg_apple_search_ads__search_term_report__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.3023539, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__search_term_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__search_term_report__fivetran_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__search_term_report\"\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_id", "file_key_name": "models.stg_apple_search_ads__search_term_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__search_term_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report_date_day.fd93df3302": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_apple_search_ads__search_term_report_date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__search_term_report_date_day.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report_date_day.fd93df3302", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__search_term_report_date_day"], "alias": "not_null_stg_apple_search_ads__search_term_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.303326, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__search_term_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__search_term_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__search_term_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_apple_search_ads__search_term_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_apple_search_ads__search_term_report')) }}"}, "namespace": null}}, "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report_source_relation___fivetran_id__date_day.ef07562d98": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report_source_relation___fivetran_id__date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_578f6e896b4c5e5899ae63410bd5d78f.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report_source_relation___fivetran_id__date_day.ef07562d98", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report_source_relation___fivetran_id__date_day"], "alias": "dbt_utils_unique_combination_o_578f6e896b4c5e5899ae63410bd5d78f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_578f6e896b4c5e5899ae63410bd5d78f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_578f6e896b4c5e5899ae63410bd5d78f"}, "created_at": 1734462186.304307, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_578f6e896b4c5e5899ae63410bd5d78f\") }}", "language": "sql", "refs": [{"name": "stg_apple_search_ads__search_term_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_578f6e896b4c5e5899ae63410bd5d78f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, _fivetran_id, date_day\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_apple_search_ads__search_term_report\"\n group by source_relation, _fivetran_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_apple_search_ads__search_term_report", "attached_node": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "_fivetran_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_apple_search_ads__search_term_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_pinterest_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_pinterest_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.3723788, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__ad_group_history\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_pinterest_ads__ad_group_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__ad_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_history')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_source_relation__ad_group_id___fivetran_synced.ef2b22b2ca": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_source_relation__ad_group_id___fivetran_synced", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_134e768b136a5eef8552f78c59128a49.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_source_relation__ad_group_id___fivetran_synced.ef2b22b2ca", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_source_relation__ad_group_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_134e768b136a5eef8552f78c59128a49", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_134e768b136a5eef8552f78c59128a49", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_134e768b136a5eef8552f78c59128a49"}, "created_at": 1734462186.373489, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_134e768b136a5eef8552f78c59128a49\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_134e768b136a5eef8552f78c59128a49.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, _fivetran_synced\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__ad_group_history\"\n group by source_relation, ad_group_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__ad_group_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__ad_group_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_pinterest_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__campaign_history_campaign_id"], "alias": "not_null_stg_pinterest_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.37614, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_pinterest_ads__campaign_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_history')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_source_relation__campaign_id___fivetran_synced.84df0386bc": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_source_relation__campaign_id___fivetran_synced", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_74030546c699ecf7612473df072dbafa.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_source_relation__campaign_id___fivetran_synced.84df0386bc", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_source_relation__campaign_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_74030546c699ecf7612473df072dbafa", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_74030546c699ecf7612473df072dbafa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_74030546c699ecf7612473df072dbafa"}, "created_at": 1734462186.377125, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_74030546c699ecf7612473df072dbafa\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_74030546c699ecf7612473df072dbafa.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, _fivetran_synced\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__campaign_history\"\n group by source_relation, campaign_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__campaign_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id"], "alias": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f"}, "created_at": 1734462186.379523, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__pin_promotion_history\"\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "pin_promotion_id", "file_key_name": "models.stg_pinterest_ads__pin_promotion_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "pin_promotion_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_history')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history_source_relation___fivetran_synced__pin_promotion_id.8064d48c11": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history_source_relation___fivetran_synced__pin_promotion_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_cace7040b0d01671fe884710a1b1cd3d.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history_source_relation___fivetran_synced__pin_promotion_id.8064d48c11", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history_source_relation___fivetran_synced__pin_promotion_id"], "alias": "dbt_utils_unique_combination_o_cace7040b0d01671fe884710a1b1cd3d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cace7040b0d01671fe884710a1b1cd3d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cace7040b0d01671fe884710a1b1cd3d"}, "created_at": 1734462186.380506, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cace7040b0d01671fe884710a1b1cd3d\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_cace7040b0d01671fe884710a1b1cd3d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, _fivetran_synced, pin_promotion_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__pin_promotion_history\"\n group by source_relation, _fivetran_synced, pin_promotion_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__pin_promotion_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "_fivetran_synced", "pin_promotion_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_history')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_pinterest_ads__pin_promotion_report_date_day", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__pin_promotion_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__pin_promotion_report_date_day"], "alias": "not_null_stg_pinterest_ads__pin_promotion_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.382922, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__pin_promotion_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__pin_promotion_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__pin_promotion_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_report')) }}"}, "namespace": null}}, "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id"], "alias": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b"}, "created_at": 1734462186.383911, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__pin_promotion_report\"\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "pin_promotion_id", "file_key_name": "models.stg_pinterest_ads__pin_promotion_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "pin_promotion_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_report')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_source_relation__date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.8b358e3946": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_source_relation__date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_24441f3e985691349a9102c867f91fb3.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_source_relation__date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.8b358e3946", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_source_relation__date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id"], "alias": "dbt_utils_unique_combination_o_24441f3e985691349a9102c867f91fb3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_24441f3e985691349a9102c867f91fb3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_24441f3e985691349a9102c867f91fb3"}, "created_at": 1734462186.384886, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_24441f3e985691349a9102c867f91fb3\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__pin_promotion_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_24441f3e985691349a9102c867f91fb3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, pin_promotion_id, ad_group_id, campaign_id, advertiser_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__pin_promotion_report\"\n group by source_relation, date_day, pin_promotion_id, ad_group_id, campaign_id, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__pin_promotion_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "pin_promotion_id", "ad_group_id", "campaign_id", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__pin_promotion_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_pinterest_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__ad_group_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__ad_group_report_date_day"], "alias": "not_null_stg_pinterest_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.387737, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__ad_group_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__ad_group_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_report')) }}"}, "namespace": null}}, "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_pinterest_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__ad_group_report_ad_group_id"], "alias": "not_null_stg_pinterest_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.388708, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_pinterest_ads__ad_group_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_report')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_source_relation__date_day__ad_group_id__campaign_id__advertiser_id.83246fd43c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_source_relation__date_day__ad_group_id__campaign_id__advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_0c6a5b7b08888471787b052067371a36.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_source_relation__date_day__ad_group_id__campaign_id__advertiser_id.83246fd43c", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_source_relation__date_day__ad_group_id__campaign_id__advertiser_id"], "alias": "dbt_utils_unique_combination_o_0c6a5b7b08888471787b052067371a36", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0c6a5b7b08888471787b052067371a36", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0c6a5b7b08888471787b052067371a36"}, "created_at": 1734462186.389683, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0c6a5b7b08888471787b052067371a36\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_0c6a5b7b08888471787b052067371a36.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, ad_group_id, campaign_id, advertiser_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__ad_group_report\"\n group by source_relation, date_day, ad_group_id, campaign_id, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__ad_group_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "ad_group_id", "campaign_id", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_pinterest_ads__advertiser_history_advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__advertiser_history_advertiser_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__advertiser_history_advertiser_id"], "alias": "not_null_stg_pinterest_ads__advertiser_history_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.392046, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__advertiser_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__advertiser_history_advertiser_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_history\"\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "advertiser_id", "file_key_name": "models.stg_pinterest_ads__advertiser_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__advertiser_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_history')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_source_relation__updated_at__advertiser_id.8308a26e9f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_source_relation__updated_at__advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_a3096f9769ccab296403865906441f7d.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_source_relation__updated_at__advertiser_id.8308a26e9f", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_source_relation__updated_at__advertiser_id"], "alias": "dbt_utils_unique_combination_o_a3096f9769ccab296403865906441f7d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a3096f9769ccab296403865906441f7d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a3096f9769ccab296403865906441f7d"}, "created_at": 1734462186.393046, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a3096f9769ccab296403865906441f7d\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__advertiser_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_a3096f9769ccab296403865906441f7d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, updated_at, advertiser_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_history\"\n group by source_relation, updated_at, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__advertiser_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__advertiser_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "updated_at", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_history')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_pinterest_ads__advertiser_report_date_day", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__advertiser_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__advertiser_report_date_day"], "alias": "not_null_stg_pinterest_ads__advertiser_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.395413, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__advertiser_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__advertiser_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__advertiser_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_report')) }}"}, "namespace": null}}, "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_pinterest_ads__advertiser_report_advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__advertiser_report_advertiser_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__advertiser_report_advertiser_id"], "alias": "not_null_stg_pinterest_ads__advertiser_report_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.3963861, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__advertiser_report_advertiser_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_report\"\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "advertiser_id", "file_key_name": "models.stg_pinterest_ads__advertiser_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__advertiser_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_report')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_source_relation__date_day__advertiser_id.cadbd5fae2": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_source_relation__date_day__advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_932368f2cac6bdb986cba77336b98fb0.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_source_relation__date_day__advertiser_id.cadbd5fae2", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_source_relation__date_day__advertiser_id"], "alias": "dbt_utils_unique_combination_o_932368f2cac6bdb986cba77336b98fb0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_932368f2cac6bdb986cba77336b98fb0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_932368f2cac6bdb986cba77336b98fb0"}, "created_at": 1734462186.397373, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_932368f2cac6bdb986cba77336b98fb0\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__advertiser_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_932368f2cac6bdb986cba77336b98fb0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, advertiser_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_report\"\n group by source_relation, date_day, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__advertiser_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__advertiser_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__advertiser_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_pinterest_ads__campaign_report_date_day", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__campaign_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__campaign_report_date_day"], "alias": "not_null_stg_pinterest_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.399745, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__campaign_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__campaign_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_report')) }}"}, "namespace": null}}, "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_pinterest_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__campaign_report_campaign_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__campaign_report_campaign_id"], "alias": "not_null_stg_pinterest_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.400743, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_pinterest_ads__campaign_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_report')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_source_relation__date_day__campaign_id__advertiser_id.6dd9b7bce6": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_source_relation__date_day__campaign_id__advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_53ca18b9f5afd64ad98c6100a883a702.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_source_relation__date_day__campaign_id__advertiser_id.6dd9b7bce6", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_source_relation__date_day__campaign_id__advertiser_id"], "alias": "dbt_utils_unique_combination_o_53ca18b9f5afd64ad98c6100a883a702", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_53ca18b9f5afd64ad98c6100a883a702", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_53ca18b9f5afd64ad98c6100a883a702"}, "created_at": 1734462186.40173, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_53ca18b9f5afd64ad98c6100a883a702\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_53ca18b9f5afd64ad98c6100a883a702.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, campaign_id, advertiser_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__campaign_report\"\n group by source_relation, date_day, campaign_id, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__campaign_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "campaign_id", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_pinterest_ads__keyword_history_keyword_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__keyword_history_keyword_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__keyword_history_keyword_id"], "alias": "not_null_stg_pinterest_ads__keyword_history_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.4041228, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__keyword_history_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__keyword_history\"\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_pinterest_ads__keyword_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__keyword_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_history')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_source_relation__keyword_id__ad_group_id___fivetran_synced.2cd3b85ca9": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_source_relation__keyword_id__ad_group_id___fivetran_synced", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_6cccf96e051599d97f707cf4a94fe26f.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_source_relation__keyword_id__ad_group_id___fivetran_synced.2cd3b85ca9", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_source_relation__keyword_id__ad_group_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_6cccf96e051599d97f707cf4a94fe26f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6cccf96e051599d97f707cf4a94fe26f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6cccf96e051599d97f707cf4a94fe26f"}, "created_at": 1734462186.4051158, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6cccf96e051599d97f707cf4a94fe26f\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__keyword_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_6cccf96e051599d97f707cf4a94fe26f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, keyword_id, ad_group_id, _fivetran_synced\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__keyword_history\"\n group by source_relation, keyword_id, ad_group_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__keyword_history", "attached_node": "model.pinterest_source.stg_pinterest_ads__keyword_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "keyword_id", "ad_group_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_history')) }}"}, "namespace": "dbt_utils"}}, "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_pinterest_ads__keyword_report_date_day", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__keyword_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__keyword_report_date_day"], "alias": "not_null_stg_pinterest_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.4074838, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__keyword_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__keyword_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_pinterest_ads__keyword_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_report')) }}"}, "namespace": null}}, "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_pinterest_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__keyword_report_keyword_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__keyword_report_keyword_id"], "alias": "not_null_stg_pinterest_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.408479, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__keyword_report\"\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_pinterest_ads__keyword_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_report')) }}"}, "namespace": null}}, "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_source_relation__date_day__keyword_id__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.f43dda0239": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_source_relation__date_day__keyword_id__pin_promotion_id__ad_group_id__campaign_id__advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_7d62116c979ca3d6fb6cb021dd639a68.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_source_relation__date_day__keyword_id__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.f43dda0239", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_source_relation__date_day__keyword_id__pin_promotion_id__ad_group_id__campaign_id__advertiser_id"], "alias": "dbt_utils_unique_combination_o_7d62116c979ca3d6fb6cb021dd639a68", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7d62116c979ca3d6fb6cb021dd639a68", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7d62116c979ca3d6fb6cb021dd639a68"}, "created_at": 1734462186.4095318, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7d62116c979ca3d6fb6cb021dd639a68\") }}", "language": "sql", "refs": [{"name": "stg_pinterest_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_7d62116c979ca3d6fb6cb021dd639a68.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, keyword_id, pin_promotion_id, ad_group_id, campaign_id, advertiser_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_pinterest_ads__keyword_report\"\n group by source_relation, date_day, keyword_id, pin_promotion_id, ad_group_id, campaign_id, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_pinterest_ads__keyword_report", "attached_node": "model.pinterest_source.stg_pinterest_ads__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "keyword_id", "pin_promotion_id", "ad_group_id", "campaign_id", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_tiktok_ads__advertiser_advertiser_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__advertiser_advertiser_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__advertiser_advertiser_id"], "alias": "not_null_stg_tiktok_ads__advertiser_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.462796, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__advertiser", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__advertiser_advertiser_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__advertiser\"\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "advertiser_id", "file_key_name": "models.stg_tiktok_ads__advertiser", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "advertiser_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__advertiser')) }}"}, "namespace": null}}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__advertiser_source_relation__advertiser_id.4b39eb0db8": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__advertiser_source_relation__advertiser_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_3e7e88f3f497325405be05932f37ea2e.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__advertiser_source_relation__advertiser_id.4b39eb0db8", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__advertiser_source_relation__advertiser_id"], "alias": "dbt_utils_unique_combination_o_3e7e88f3f497325405be05932f37ea2e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3e7e88f3f497325405be05932f37ea2e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3e7e88f3f497325405be05932f37ea2e"}, "created_at": 1734462186.4638789, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3e7e88f3f497325405be05932f37ea2e\") }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__advertiser", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_3e7e88f3f497325405be05932f37ea2e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, advertiser_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__advertiser\"\n group by source_relation, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_tiktok_ads__advertiser", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__advertiser')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_tiktok_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.466321, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_group_history\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_tiktok_ads__ad_group_history", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_group_history')) }}"}, "namespace": null}}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_source_relation__ad_group_id__updated_at.94fc2240d4": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_source_relation__ad_group_id__updated_at", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_2ce2e8d20e561240fd8236ce15212a77.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_source_relation__ad_group_id__updated_at.94fc2240d4", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_source_relation__ad_group_id__updated_at"], "alias": "dbt_utils_unique_combination_o_2ce2e8d20e561240fd8236ce15212a77", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2ce2e8d20e561240fd8236ce15212a77", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2ce2e8d20e561240fd8236ce15212a77"}, "created_at": 1734462186.4673102, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2ce2e8d20e561240fd8236ce15212a77\") }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_group_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_2ce2e8d20e561240fd8236ce15212a77.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, updated_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_group_history\"\n group by source_relation, ad_group_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_tiktok_ads__ad_group_history", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_history_ad_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_history_ad_id"], "alias": "not_null_stg_tiktok_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.469669, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_history\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_tiktok_ads__ad_history", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_history')) }}"}, "namespace": null}}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_source_relation__ad_id__updated_at.64ebc5aea6": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_source_relation__ad_id__updated_at", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_3e79eabd58ab858677e7781a46e7d8b9.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_source_relation__ad_id__updated_at.64ebc5aea6", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_source_relation__ad_id__updated_at"], "alias": "dbt_utils_unique_combination_o_3e79eabd58ab858677e7781a46e7d8b9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3e79eabd58ab858677e7781a46e7d8b9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3e79eabd58ab858677e7781a46e7d8b9"}, "created_at": 1734462186.470656, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3e79eabd58ab858677e7781a46e7d8b9\") }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_3e79eabd58ab858677e7781a46e7d8b9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, updated_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_history\"\n group by source_relation, ad_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_tiktok_ads__ad_history", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_history')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_tiktok_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__campaign_history_campaign_id"], "alias": "not_null_stg_tiktok_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.4729888, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_tiktok_ads__campaign_history", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_history')) }}"}, "namespace": null}}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_source_relation__campaign_id__updated_at.52babc6036": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_source_relation__campaign_id__updated_at", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_7aab7ed41249c473b67c95735fdd521f.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_source_relation__campaign_id__updated_at.52babc6036", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_source_relation__campaign_id__updated_at"], "alias": "dbt_utils_unique_combination_o_7aab7ed41249c473b67c95735fdd521f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7aab7ed41249c473b67c95735fdd521f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7aab7ed41249c473b67c95735fdd521f"}, "created_at": 1734462186.473971, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7aab7ed41249c473b67c95735fdd521f\") }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_7aab7ed41249c473b67c95735fdd521f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, updated_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__campaign_history\"\n group by source_relation, campaign_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_tiktok_ads__campaign_history", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_report_hourly_ad_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_report_hourly_ad_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_report_hourly_ad_id"], "alias": "not_null_stg_tiktok_ads__ad_report_hourly_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.476314, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_report_hourly_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_report_hourly\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_tiktok_ads__ad_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_report_hourly')) }}"}, "namespace": null}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour"], "alias": "not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.4772952, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_report_hourly\"\nwhere stat_time_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "stat_time_hour", "file_key_name": "models.stg_tiktok_ads__ad_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "stat_time_hour", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_report_hourly')) }}"}, "namespace": null}}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_source_relation__ad_id__stat_time_hour.1f7d670427": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_source_relation__ad_id__stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_e6060e94140e3a6953ae3700b1fabae0.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_source_relation__ad_id__stat_time_hour.1f7d670427", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_source_relation__ad_id__stat_time_hour"], "alias": "dbt_utils_unique_combination_o_e6060e94140e3a6953ae3700b1fabae0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e6060e94140e3a6953ae3700b1fabae0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e6060e94140e3a6953ae3700b1fabae0"}, "created_at": 1734462186.478281, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e6060e94140e3a6953ae3700b1fabae0\") }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_e6060e94140e3a6953ae3700b1fabae0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, stat_time_hour\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_report_hourly\"\n group by source_relation, ad_id, stat_time_hour\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_tiktok_ads__ad_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "stat_time_hour"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_report_hourly')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.8da17119f1": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.8da17119f1", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id"], "alias": "not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.4806159, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_group_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_group_report_hourly\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.stg_tiktok_ads__ad_group_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_group_report_hourly')) }}"}, "namespace": null}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.ca4b495127": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.ca4b495127", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour"], "alias": "not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.4815931, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_group_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_group_report_hourly\"\nwhere stat_time_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "stat_time_hour", "file_key_name": "models.stg_tiktok_ads__ad_group_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "stat_time_hour", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_group_report_hourly')) }}"}, "namespace": null}}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_source_relation__ad_group_id__stat_time_hour.f0681f097c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_source_relation__ad_group_id__stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_c2666a445415f25f1fd55b9540f98d10.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_source_relation__ad_group_id__stat_time_hour.f0681f097c", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_source_relation__ad_group_id__stat_time_hour"], "alias": "dbt_utils_unique_combination_o_c2666a445415f25f1fd55b9540f98d10", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c2666a445415f25f1fd55b9540f98d10", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c2666a445415f25f1fd55b9540f98d10"}, "created_at": 1734462186.4826481, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c2666a445415f25f1fd55b9540f98d10\") }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__ad_group_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_c2666a445415f25f1fd55b9540f98d10.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_group_id, stat_time_hour\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__ad_group_report_hourly\"\n group by source_relation, ad_group_id, stat_time_hour\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_tiktok_ads__ad_group_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_group_id", "stat_time_hour"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__ad_group_report_hourly')) }}"}, "namespace": "dbt_utils"}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id"], "alias": "not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.4849331, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__campaign_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__campaign_report_hourly\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_tiktok_ads__campaign_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_report_hourly')) }}"}, "namespace": null}}, "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour"], "alias": "not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.4859881, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__campaign_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__campaign_report_hourly\"\nwhere stat_time_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "stat_time_hour", "file_key_name": "models.stg_tiktok_ads__campaign_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "stat_time_hour", "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_report_hourly')) }}"}, "namespace": null}}, "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_source_relation__campaign_id__stat_time_hour.91b84f3ede": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_source_relation__campaign_id__stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_db7f8f91773e74d564ab66f9f0497b28.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_source_relation__campaign_id__stat_time_hour.91b84f3ede", "fqn": ["tiktok_ads_source", "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_source_relation__campaign_id__stat_time_hour"], "alias": "dbt_utils_unique_combination_o_db7f8f91773e74d564ab66f9f0497b28", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_db7f8f91773e74d564ab66f9f0497b28", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_db7f8f91773e74d564ab66f9f0497b28"}, "created_at": 1734462186.486961, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_db7f8f91773e74d564ab66f9f0497b28\") }}", "language": "sql", "refs": [{"name": "stg_tiktok_ads__campaign_report_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_db7f8f91773e74d564ab66f9f0497b28.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, stat_time_hour\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_tiktok_ads__campaign_report_hourly\"\n group by source_relation, campaign_id, stat_time_hour\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_tiktok_ads__campaign_report_hourly", "attached_node": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "stat_time_hour"], "model": "{{ get_where_subquery(ref('stg_tiktok_ads__campaign_report_hourly')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_facebook_ads__account_history_account_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__account_history_account_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__account_history_account_id"], "alias": "not_null_stg_facebook_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.5058072, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__account_history_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__account_history\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_facebook_ads__account_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__account_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_facebook_ads__account_history__fivetran_synced", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__account_history__fivetran_synced.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__account_history__fivetran_synced"], "alias": "not_null_stg_facebook_ads__account_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.5068722, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__account_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__account_history\"\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_synced", "file_key_name": "models.stg_facebook_ads__account_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_facebook_ads__account_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_source_relation__account_id___fivetran_synced.f81aca1247": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_source_relation__account_id___fivetran_synced", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_f1aad48dbc1b2c2943c7368848da8a98.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_source_relation__account_id___fivetran_synced.f81aca1247", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_source_relation__account_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_f1aad48dbc1b2c2943c7368848da8a98", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f1aad48dbc1b2c2943c7368848da8a98", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f1aad48dbc1b2c2943c7368848da8a98"}, "created_at": 1734462186.5078511, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f1aad48dbc1b2c2943c7368848da8a98\") }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_f1aad48dbc1b2c2943c7368848da8a98.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, _fivetran_synced\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__account_history\"\n group by source_relation, account_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_facebook_ads__account_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__account_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__account_history')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_facebook_ads__ad_history_ad_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_history_ad_id"], "alias": "not_null_stg_facebook_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.5102952, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_history\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_facebook_ads__ad_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_facebook_ads__ad_history_updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_history_updated_at.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_history_updated_at"], "alias": "not_null_stg_facebook_ads__ad_history_updated_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.511293, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_history_updated_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_history\"\nwhere updated_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "updated_at", "file_key_name": "models.stg_facebook_ads__ad_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "updated_at", "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_source_relation__ad_id__updated_at.664b870e6c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_source_relation__ad_id__updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_3ebe08205599fa597ed00fd7c1713fd5.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_source_relation__ad_id__updated_at.664b870e6c", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_source_relation__ad_id__updated_at"], "alias": "dbt_utils_unique_combination_o_3ebe08205599fa597ed00fd7c1713fd5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ebe08205599fa597ed00fd7c1713fd5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ebe08205599fa597ed00fd7c1713fd5"}, "created_at": 1734462186.512266, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ebe08205599fa597ed00fd7c1713fd5\") }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_3ebe08205599fa597ed00fd7c1713fd5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, updated_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_history\"\n group by source_relation, ad_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_facebook_ads__ad_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__ad_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_history')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_facebook_ads__ad_set_history_ad_set_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_set_history_ad_set_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_set_history_ad_set_id"], "alias": "not_null_stg_facebook_ads__ad_set_history_ad_set_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.5146291, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__ad_set_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_set_history_ad_set_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_set_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_set_history\"\nwhere ad_set_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_set_id", "file_key_name": "models.stg_facebook_ads__ad_set_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_set_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_set_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_facebook_ads__ad_set_history_updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_set_history_updated_at.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_set_history_updated_at"], "alias": "not_null_stg_facebook_ads__ad_set_history_updated_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.515612, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__ad_set_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_set_history_updated_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_set_history\"\nwhere updated_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "updated_at", "file_key_name": "models.stg_facebook_ads__ad_set_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "updated_at", "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_set_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_source_relation__ad_set_id__updated_at.ff1d43114a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_source_relation__ad_set_id__updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_188752cfa5e76048bd891390076e4410.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_source_relation__ad_set_id__updated_at.ff1d43114a", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_source_relation__ad_set_id__updated_at"], "alias": "dbt_utils_unique_combination_o_188752cfa5e76048bd891390076e4410", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_188752cfa5e76048bd891390076e4410", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_188752cfa5e76048bd891390076e4410"}, "created_at": 1734462186.51659, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_188752cfa5e76048bd891390076e4410\") }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__ad_set_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_188752cfa5e76048bd891390076e4410.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_set_id, updated_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__ad_set_history\"\n group by source_relation, ad_set_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_facebook_ads__ad_set_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_set_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__ad_set_history')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_facebook_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__campaign_history_campaign_id"], "alias": "not_null_stg_facebook_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.5189319, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_facebook_ads__campaign_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__campaign_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_facebook_ads__campaign_history_updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__campaign_history_updated_at.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__campaign_history_updated_at"], "alias": "not_null_stg_facebook_ads__campaign_history_updated_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.519891, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__campaign_history_updated_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__campaign_history\"\nwhere updated_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "updated_at", "file_key_name": "models.stg_facebook_ads__campaign_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "updated_at", "model": "{{ get_where_subquery(ref('stg_facebook_ads__campaign_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_source_relation__campaign_id__updated_at.82c4f9a2a1": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_source_relation__campaign_id__updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_25638a8aacb87adbe02252bd0c22a591.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_source_relation__campaign_id__updated_at.82c4f9a2a1", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_source_relation__campaign_id__updated_at"], "alias": "dbt_utils_unique_combination_o_25638a8aacb87adbe02252bd0c22a591", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_25638a8aacb87adbe02252bd0c22a591", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_25638a8aacb87adbe02252bd0c22a591"}, "created_at": 1734462186.520853, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_25638a8aacb87adbe02252bd0c22a591\") }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_25638a8aacb87adbe02252bd0c22a591.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, updated_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__campaign_history\"\n group by source_relation, campaign_id, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_facebook_ads__campaign_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "updated_at"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_facebook_ads__creative_history__fivetran_synced", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__creative_history__fivetran_synced.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__creative_history__fivetran_synced"], "alias": "not_null_stg_facebook_ads__creative_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.523502, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__creative_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__creative_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__creative_history\"\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_synced", "file_key_name": "models.stg_facebook_ads__creative_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__creative_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_facebook_ads__creative_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_facebook_ads__creative_history_creative_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__creative_history_creative_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__creative_history_creative_id"], "alias": "not_null_stg_facebook_ads__creative_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.52446, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__creative_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__creative_history_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__creative_history\"\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "creative_id", "file_key_name": "models.stg_facebook_ads__creative_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__creative_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__creative_history')) }}"}, "namespace": null}}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_source_relation___fivetran_id.2466dae947": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_source_relation___fivetran_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_4cfbaafcd1dee5ef85e3f65391a5a9ad.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_source_relation___fivetran_id.2466dae947", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_source_relation___fivetran_id"], "alias": "dbt_utils_unique_combination_o_4cfbaafcd1dee5ef85e3f65391a5a9ad", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4cfbaafcd1dee5ef85e3f65391a5a9ad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4cfbaafcd1dee5ef85e3f65391a5a9ad"}, "created_at": 1734462186.5254242, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4cfbaafcd1dee5ef85e3f65391a5a9ad\") }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__creative_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_4cfbaafcd1dee5ef85e3f65391a5a9ad.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, _fivetran_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__creative_history\"\n group by source_relation, _fivetran_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_facebook_ads__creative_history", "attached_node": "model.facebook_ads_source.stg_facebook_ads__creative_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "_fivetran_id"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__creative_history')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_facebook_ads__basic_ad_ad_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__basic_ad_ad_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__basic_ad_ad_id"], "alias": "not_null_stg_facebook_ads__basic_ad_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.527733, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__basic_ad_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_facebook_ads__basic_ad", "attached_node": "model.facebook_ads_source.stg_facebook_ads__basic_ad", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__basic_ad')) }}"}, "namespace": null}}, "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_facebook_ads__basic_ad_account_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__basic_ad_account_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__basic_ad_account_id"], "alias": "not_null_stg_facebook_ads__basic_ad_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.528693, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__basic_ad_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_facebook_ads__basic_ad", "attached_node": "model.facebook_ads_source.stg_facebook_ads__basic_ad", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_facebook_ads__basic_ad')) }}"}, "namespace": null}}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_source_relation__date_day__ad_id__account_id.9c647961f0": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_source_relation__date_day__ad_id__account_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_478f0ed1d8a9ad654a164e0b33dad4d2.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_source_relation__date_day__ad_id__account_id.9c647961f0", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_source_relation__date_day__ad_id__account_id"], "alias": "dbt_utils_unique_combination_o_478f0ed1d8a9ad654a164e0b33dad4d2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_478f0ed1d8a9ad654a164e0b33dad4d2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_478f0ed1d8a9ad654a164e0b33dad4d2"}, "created_at": 1734462186.529741, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_478f0ed1d8a9ad654a164e0b33dad4d2\") }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_478f0ed1d8a9ad654a164e0b33dad4d2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, ad_id, account_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad\"\n group by source_relation, date_day, ad_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_facebook_ads__basic_ad", "attached_node": "model.facebook_ads_source.stg_facebook_ads__basic_ad", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "ad_id", "account_id"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__basic_ad')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_actions_source_relation__date_day__ad_id__action_type.3f1bea13d9": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_actions_source_relation__date_day__ad_id__action_type", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_66412182ce22d19b158e5837adf4e3b3.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_actions_source_relation__date_day__ad_id__action_type.3f1bea13d9", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_actions_source_relation__date_day__ad_id__action_type"], "alias": "dbt_utils_unique_combination_o_66412182ce22d19b158e5837adf4e3b3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_66412182ce22d19b158e5837adf4e3b3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_66412182ce22d19b158e5837adf4e3b3"}, "created_at": 1734462186.532056, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_66412182ce22d19b158e5837adf4e3b3\") }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_actions"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_66412182ce22d19b158e5837adf4e3b3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, ad_id, action_type\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad_actions\"\n group by source_relation, date_day, ad_id, action_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_facebook_ads__basic_ad_actions", "attached_node": "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "ad_id", "action_type"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__basic_ad_actions')) }}"}, "namespace": "dbt_utils"}}, "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_action_values_source_relation__date_day__ad_id__action_type.3c32585825": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_action_values_source_relation__date_day__ad_id__action_type", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_cd20f9e334071169ff4962869fa3fe37.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_action_values_source_relation__date_day__ad_id__action_type.3c32585825", "fqn": ["facebook_ads_source", "dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_action_values_source_relation__date_day__ad_id__action_type"], "alias": "dbt_utils_unique_combination_o_cd20f9e334071169ff4962869fa3fe37", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cd20f9e334071169ff4962869fa3fe37", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cd20f9e334071169ff4962869fa3fe37"}, "created_at": 1734462186.534407, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cd20f9e334071169ff4962869fa3fe37\") }}", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad_action_values", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_cd20f9e334071169ff4962869fa3fe37.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, ad_id, action_type\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_facebook_ads__basic_ad_action_values\"\n group by source_relation, date_day, ad_id, action_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_facebook_ads__basic_ad_action_values", "attached_node": "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "ad_id", "action_type"], "model": "{{ get_where_subquery(ref('stg_facebook_ads__basic_ad_action_values')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_account_history__fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_account_history__fivetran_synced"], "alias": "not_null_stg_snapchat_ads__ad_account_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.57216, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_account_history\"\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__ad_account_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_account_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_account_history_ad_account_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_account_history_ad_account_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_account_history_ad_account_id"], "alias": "not_null_stg_snapchat_ads__ad_account_history_ad_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.573175, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_account_history_ad_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_account_history\"\nwhere ad_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_account_id", "file_key_name": "models.stg_snapchat_ads__ad_account_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_account_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_account_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_source_relation__ad_account_id___fivetran_synced.b8a4da92d1": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_source_relation__ad_account_id___fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_3190b1077468dff34e96d53f9129d3ad.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_source_relation__ad_account_id___fivetran_synced.b8a4da92d1", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_source_relation__ad_account_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_3190b1077468dff34e96d53f9129d3ad", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3190b1077468dff34e96d53f9129d3ad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3190b1077468dff34e96d53f9129d3ad"}, "created_at": 1734462186.574155, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3190b1077468dff34e96d53f9129d3ad\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_3190b1077468dff34e96d53f9129d3ad.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_account_id, _fivetran_synced\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_account_history\"\n group by source_relation, ad_account_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_account_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_account_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_account_history')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_history__fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_history__fivetran_synced"], "alias": "not_null_stg_snapchat_ads__ad_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.5765529, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_history\"\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__ad_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_history_ad_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_history_ad_id"], "alias": "not_null_stg_snapchat_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.577517, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_history\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_snapchat_ads__ad_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_source_relation__ad_id___fivetran_synced.630e3ffee4": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_source_relation__ad_id___fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_f0ee7dccca2fb2438166f8dca2158302.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_source_relation__ad_id___fivetran_synced.630e3ffee4", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_source_relation__ad_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_f0ee7dccca2fb2438166f8dca2158302", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f0ee7dccca2fb2438166f8dca2158302", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f0ee7dccca2fb2438166f8dca2158302"}, "created_at": 1734462186.578542, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f0ee7dccca2fb2438166f8dca2158302\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_f0ee7dccca2fb2438166f8dca2158302.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, _fivetran_synced\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_history\"\n group by source_relation, ad_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_history')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_hourly_report_ad_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_hourly_report_ad_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_hourly_report_ad_id"], "alias": "not_null_stg_snapchat_ads__ad_hourly_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.5808132, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_hourly_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_hourly_report\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.stg_snapchat_ads__ad_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_hourly_report')) }}"}, "namespace": null}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_hourly_report_date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_hourly_report_date_hour.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_hourly_report_date_hour"], "alias": "not_null_stg_snapchat_ads__ad_hourly_report_date_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.581852, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_hourly_report_date_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_hourly_report\"\nwhere date_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_hour", "file_key_name": "models.stg_snapchat_ads__ad_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_hour", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_hourly_report')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_source_relation__ad_id__date_hour.f2d4b9252f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_source_relation__ad_id__date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_6555cce51f9e5f821cdfba36a30dc18c.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_source_relation__ad_id__date_hour.f2d4b9252f", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_source_relation__ad_id__date_hour"], "alias": "dbt_utils_unique_combination_o_6555cce51f9e5f821cdfba36a30dc18c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6555cce51f9e5f821cdfba36a30dc18c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6555cce51f9e5f821cdfba36a30dc18c"}, "created_at": 1734462186.582818, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6555cce51f9e5f821cdfba36a30dc18c\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_6555cce51f9e5f821cdfba36a30dc18c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id, date_hour\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_hourly_report\"\n group by source_relation, ad_id, date_hour\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_id", "date_hour"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_hourly_report')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced"], "alias": "not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.585065, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_squad_history\"\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__ad_squad_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id"], "alias": "not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.586307, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_squad_history\"\nwhere ad_squad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_squad_id", "file_key_name": "models.stg_snapchat_ads__ad_squad_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_squad_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_source_relation__ad_squad_id___fivetran_synced.5d97ae5ee3": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_source_relation__ad_squad_id___fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_d2dca03685a09270498ff6ebadf17c56.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_source_relation__ad_squad_id___fivetran_synced.5d97ae5ee3", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_source_relation__ad_squad_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_d2dca03685a09270498ff6ebadf17c56", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d2dca03685a09270498ff6ebadf17c56", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d2dca03685a09270498ff6ebadf17c56"}, "created_at": 1734462186.587271, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d2dca03685a09270498ff6ebadf17c56\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_d2dca03685a09270498ff6ebadf17c56.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_squad_id, _fivetran_synced\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_squad_history\"\n group by source_relation, ad_squad_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_squad_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_squad_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_history')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.ab16aa72c9": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.ab16aa72c9", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id"], "alias": "not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.589609, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_squad_hourly_report\"\nwhere ad_squad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_squad_id", "file_key_name": "models.stg_snapchat_ads__ad_squad_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_squad_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_hourly_report')) }}"}, "namespace": null}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour"], "alias": "not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.5905678, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_squad_hourly_report\"\nwhere date_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_hour", "file_key_name": "models.stg_snapchat_ads__ad_squad_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_hour", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_hourly_report')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_source_relation__ad_squad_id__date_hour.25afb4f9ae": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_source_relation__ad_squad_id__date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_67ba47c849a8a4422b78966095415fac.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_source_relation__ad_squad_id__date_hour.25afb4f9ae", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_source_relation__ad_squad_id__date_hour"], "alias": "dbt_utils_unique_combination_o_67ba47c849a8a4422b78966095415fac", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_67ba47c849a8a4422b78966095415fac", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_67ba47c849a8a4422b78966095415fac"}, "created_at": 1734462186.59153, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_67ba47c849a8a4422b78966095415fac\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__ad_squad_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_67ba47c849a8a4422b78966095415fac.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_squad_id, date_hour\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__ad_squad_hourly_report\"\n group by source_relation, ad_squad_id, date_hour\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__ad_squad_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "ad_squad_id", "date_hour"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__ad_squad_hourly_report')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_snapchat_ads__campaign_history__fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_history__fivetran_synced"], "alias": "not_null_stg_snapchat_ads__campaign_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.593867, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__campaign_history\"\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__campaign_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_snapchat_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_history_campaign_id"], "alias": "not_null_stg_snapchat_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.5948448, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_snapchat_ads__campaign_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_source_relation__campaign_id___fivetran_synced.e003c1a660": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_source_relation__campaign_id___fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_2067af3e2838f3bcff0258eb157de014.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_source_relation__campaign_id___fivetran_synced.e003c1a660", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_source_relation__campaign_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_2067af3e2838f3bcff0258eb157de014", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2067af3e2838f3bcff0258eb157de014", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2067af3e2838f3bcff0258eb157de014"}, "created_at": 1734462186.5958111, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2067af3e2838f3bcff0258eb157de014\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_2067af3e2838f3bcff0258eb157de014.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, _fivetran_synced\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__campaign_history\"\n group by source_relation, campaign_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__campaign_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id"], "alias": "not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.598138, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__campaign_hourly_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_snapchat_ads__campaign_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_hourly_report')) }}"}, "namespace": null}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_snapchat_ads__campaign_hourly_report_date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_hourly_report_date_hour"], "alias": "not_null_stg_snapchat_ads__campaign_hourly_report_date_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.599106, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__campaign_hourly_report\"\nwhere date_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_hour", "file_key_name": "models.stg_snapchat_ads__campaign_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_hour", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_hourly_report')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_source_relation__campaign_id__date_hour.3998b6bf9d": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_source_relation__campaign_id__date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_90aa9903c369415cae32db38a6fa709d.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_source_relation__campaign_id__date_hour.3998b6bf9d", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_source_relation__campaign_id__date_hour"], "alias": "dbt_utils_unique_combination_o_90aa9903c369415cae32db38a6fa709d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_90aa9903c369415cae32db38a6fa709d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_90aa9903c369415cae32db38a6fa709d"}, "created_at": 1734462186.600134, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_90aa9903c369415cae32db38a6fa709d\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__campaign_hourly_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_90aa9903c369415cae32db38a6fa709d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, date_hour\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__campaign_hourly_report\"\n group by source_relation, campaign_id, date_hour\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__campaign_hourly_report", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "date_hour"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__campaign_hourly_report')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_snapchat_ads__creative_history__fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__creative_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__creative_history__fivetran_synced"], "alias": "not_null_stg_snapchat_ads__creative_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.602397, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__creative_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__creative_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_history\"\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_fivetran_synced", "file_key_name": "models.stg_snapchat_ads__creative_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__creative_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_synced", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_snapchat_ads__creative_history_creative_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__creative_history_creative_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__creative_history_creative_id"], "alias": "not_null_stg_snapchat_ads__creative_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.603445, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__creative_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__creative_history_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_history\"\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "creative_id", "file_key_name": "models.stg_snapchat_ads__creative_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__creative_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_source_relation__creative_id___fivetran_synced.1d4efdd418": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_source_relation__creative_id___fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_fa589e52860732e2e8a9cb69701ed9da.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_source_relation__creative_id___fivetran_synced.1d4efdd418", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_source_relation__creative_id___fivetran_synced"], "alias": "dbt_utils_unique_combination_o_fa589e52860732e2e8a9cb69701ed9da", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fa589e52860732e2e8a9cb69701ed9da", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fa589e52860732e2e8a9cb69701ed9da"}, "created_at": 1734462186.604403, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fa589e52860732e2e8a9cb69701ed9da\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__creative_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_fa589e52860732e2e8a9cb69701ed9da.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, creative_id, _fivetran_synced\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_history\"\n group by source_relation, creative_id, _fivetran_synced\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__creative_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__creative_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "creative_id", "_fivetran_synced"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_history')) }}"}, "namespace": "dbt_utils"}}, "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_snapchat_ads__creative_url_tag_history_creative_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__creative_url_tag_history_creative_id"], "alias": "not_null_stg_snapchat_ads__creative_url_tag_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.606654, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__creative_url_tag_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_url_tag_history\"\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "creative_id", "file_key_name": "models.stg_snapchat_ads__creative_url_tag_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_url_tag_history')) }}"}, "namespace": null}}, "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_source_relation__creative_id__param_key__updated_at.6ed98c175a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_source_relation__creative_id__param_key__updated_at", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_ee34b38641f864cf9860e2199aa29b16.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_source_relation__creative_id__param_key__updated_at.6ed98c175a", "fqn": ["snapchat_ads_source", "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_source_relation__creative_id__param_key__updated_at"], "alias": "dbt_utils_unique_combination_o_ee34b38641f864cf9860e2199aa29b16", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ee34b38641f864cf9860e2199aa29b16", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ee34b38641f864cf9860e2199aa29b16"}, "created_at": 1734462186.6077042, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ee34b38641f864cf9860e2199aa29b16\") }}", "language": "sql", "refs": [{"name": "stg_snapchat_ads__creative_url_tag_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_ee34b38641f864cf9860e2199aa29b16.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, creative_id, param_key, updated_at\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_snapchat_ads__creative_url_tag_history\"\n group by source_relation, creative_id, param_key, updated_at\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_snapchat_ads__creative_url_tag_history", "attached_node": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "creative_id", "param_key", "updated_at"], "model": "{{ get_where_subquery(ref('stg_snapchat_ads__creative_url_tag_history')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_microsoft_ads__account_report_account_id", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__account_report_account_id.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e", "fqn": ["microsoft_ads", "not_null_microsoft_ads__account_report_account_id"], "alias": "not_null_microsoft_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.6719282, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "microsoft_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__account_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__account_report\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.microsoft_ads__account_report", "attached_node": "model.microsoft_ads.microsoft_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('microsoft_ads__account_report')) }}"}, "namespace": null}}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code.42178a7c9b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_ff9ffa66e6c4afc994c572d2a7580f65.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code.42178a7c9b", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code"], "alias": "dbt_utils_unique_combination_o_ff9ffa66e6c4afc994c572d2a7580f65", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ff9ffa66e6c4afc994c572d2a7580f65", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ff9ffa66e6c4afc994c572d2a7580f65"}, "created_at": 1734462186.673049, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ff9ffa66e6c4afc994c572d2a7580f65\") }}", "language": "sql", "refs": [{"name": "microsoft_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__account_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_ff9ffa66e6c4afc994c572d2a7580f65.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, device_os, device_type, network, currency_code\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__account_report\"\n group by source_relation, date_day, account_id, device_os, device_type, network, currency_code\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.microsoft_ads__account_report", "attached_node": "model.microsoft_ads.microsoft_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "device_os", "device_type", "network", "currency_code"], "model": "{{ get_where_subquery(ref('microsoft_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_microsoft_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9", "fqn": ["microsoft_ads", "not_null_microsoft_ads__ad_group_report_ad_group_id"], "alias": "not_null_microsoft_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.6754508, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "microsoft_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_group_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_group_id", "file_key_name": "models.microsoft_ads__ad_group_report", "attached_node": "model.microsoft_ads.microsoft_ads__ad_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('microsoft_ads__ad_group_report')) }}"}, "namespace": null}}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.da08ee00a5": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_e299eef4742eda377faab929d2bc01da.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.da08ee00a5", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code"], "alias": "dbt_utils_unique_combination_o_e299eef4742eda377faab929d2bc01da", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e299eef4742eda377faab929d2bc01da", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e299eef4742eda377faab929d2bc01da"}, "created_at": 1734462186.67653, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e299eef4742eda377faab929d2bc01da\") }}", "language": "sql", "refs": [{"name": "microsoft_ads__ad_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_group_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_e299eef4742eda377faab929d2bc01da.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, device_os, device_type, network, currency_code\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__ad_group_report\"\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, device_os, device_type, network, currency_code\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.microsoft_ads__ad_group_report", "attached_node": "model.microsoft_ads.microsoft_ads__ad_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "device_os", "device_type", "network", "currency_code"], "model": "{{ get_where_subquery(ref('microsoft_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_microsoft_ads__ad_report_ad_id", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__ad_report_ad_id.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125", "fqn": ["microsoft_ads", "not_null_microsoft_ads__ad_report_ad_id"], "alias": "not_null_microsoft_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.678814, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "microsoft_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__ad_report\"\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ad_id", "file_key_name": "models.microsoft_ads__ad_report", "attached_node": "model.microsoft_ads.microsoft_ads__ad_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('microsoft_ads__ad_report')) }}"}, "namespace": null}}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.e13fd60438": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_343b08b3d25faa9de49f5ce0eda20ecb.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.e13fd60438", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code"], "alias": "dbt_utils_unique_combination_o_343b08b3d25faa9de49f5ce0eda20ecb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_343b08b3d25faa9de49f5ce0eda20ecb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_343b08b3d25faa9de49f5ce0eda20ecb"}, "created_at": 1734462186.679887, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_343b08b3d25faa9de49f5ce0eda20ecb\") }}", "language": "sql", "refs": [{"name": "microsoft_ads__ad_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_343b08b3d25faa9de49f5ce0eda20ecb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, ad_type, device_os, device_type, network, currency_code\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__ad_report\"\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, ad_type, device_os, device_type, network, currency_code\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.microsoft_ads__ad_report", "attached_node": "model.microsoft_ads.microsoft_ads__ad_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "ad_id", "ad_type", "device_os", "device_type", "network", "currency_code"], "model": "{{ get_where_subquery(ref('microsoft_ads__ad_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_microsoft_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__campaign_report_campaign_id.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8", "fqn": ["microsoft_ads", "not_null_microsoft_ads__campaign_report_campaign_id"], "alias": "not_null_microsoft_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.682187, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "microsoft_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__campaign_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.microsoft_ads__campaign_report", "attached_node": "model.microsoft_ads.microsoft_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('microsoft_ads__campaign_report')) }}"}, "namespace": null}}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code.00fc594532": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_44876f6339324cf1e10ccb300cc80539.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code.00fc594532", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code"], "alias": "dbt_utils_unique_combination_o_44876f6339324cf1e10ccb300cc80539", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_44876f6339324cf1e10ccb300cc80539", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_44876f6339324cf1e10ccb300cc80539"}, "created_at": 1734462186.6831748, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44876f6339324cf1e10ccb300cc80539\") }}", "language": "sql", "refs": [{"name": "microsoft_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__campaign_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_44876f6339324cf1e10ccb300cc80539.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, device_os, device_type, network, currency_code\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__campaign_report\"\n group by source_relation, date_day, account_id, campaign_id, device_os, device_type, network, currency_code\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.microsoft_ads__campaign_report", "attached_node": "model.microsoft_ads.microsoft_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "device_os", "device_type", "network", "currency_code"], "model": "{{ get_where_subquery(ref('microsoft_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_microsoft_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__keyword_report_keyword_id.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b", "fqn": ["microsoft_ads", "not_null_microsoft_ads__keyword_report_keyword_id"], "alias": "not_null_microsoft_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.685529, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "microsoft_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__keyword_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__keyword_report\"\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.microsoft_ads__keyword_report", "attached_node": "model.microsoft_ads.microsoft_ads__keyword_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('microsoft_ads__keyword_report')) }}"}, "namespace": null}}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.e4af52a80b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_22a49ae45b7a5fab7653ce3bea641314.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.e4af52a80b", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code"], "alias": "dbt_utils_unique_combination_o_22a49ae45b7a5fab7653ce3bea641314", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_22a49ae45b7a5fab7653ce3bea641314", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_22a49ae45b7a5fab7653ce3bea641314"}, "created_at": 1734462186.686517, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_22a49ae45b7a5fab7653ce3bea641314\") }}", "language": "sql", "refs": [{"name": "microsoft_ads__keyword_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__keyword_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_22a49ae45b7a5fab7653ce3bea641314.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, device_os, device_type, network, currency_code\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__keyword_report\"\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, device_os, device_type, network, currency_code\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.microsoft_ads__keyword_report", "attached_node": "model.microsoft_ads.microsoft_ads__keyword_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "ad_id", "keyword_id", "device_os", "device_type", "network", "currency_code"], "model": "{{ get_where_subquery(ref('microsoft_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_microsoft_ads__search_report_search_query", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__search_report_search_query.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d", "fqn": ["microsoft_ads", "not_null_microsoft_ads__search_report_search_query"], "alias": "not_null_microsoft_ads__search_report_search_query", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.68886, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "microsoft_ads__search_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__search_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__search_report_search_query.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__search_report\"\nwhere search_query is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "search_query", "file_key_name": "models.microsoft_ads__search_report", "attached_node": "model.microsoft_ads.microsoft_ads__search_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_query", "model": "{{ get_where_subquery(ref('microsoft_ads__search_report')) }}"}, "namespace": null}}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__match_type.6753357660": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__match_type", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_dd4da238099fa2071814de626bddc196.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__match_type.6753357660", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__match_type"], "alias": "dbt_utils_unique_combination_o_dd4da238099fa2071814de626bddc196", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dd4da238099fa2071814de626bddc196", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dd4da238099fa2071814de626bddc196"}, "created_at": 1734462186.689848, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dd4da238099fa2071814de626bddc196\") }}", "language": "sql", "refs": [{"name": "microsoft_ads__search_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__search_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_dd4da238099fa2071814de626bddc196.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, search_query, device_os, device_type, network, match_type\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__search_report\"\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, keyword_id, search_query, device_os, device_type, network, match_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.microsoft_ads__search_report", "attached_node": "model.microsoft_ads.microsoft_ads__search_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "ad_id", "keyword_id", "search_query", "device_os", "device_type", "network", "match_type"], "model": "{{ get_where_subquery(ref('microsoft_ads__search_report')) }}"}, "namespace": "dbt_utils"}}, "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_microsoft_ads__url_report_base_url", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__url_report_base_url.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a", "fqn": ["microsoft_ads", "not_null_microsoft_ads__url_report_base_url"], "alias": "not_null_microsoft_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1734462186.692512, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "microsoft_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__url_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__url_report\"\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "base_url", "file_key_name": "models.microsoft_ads__url_report", "attached_node": "model.microsoft_ads.microsoft_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('microsoft_ads__url_report')) }}"}, "namespace": null}}, "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.0ea4732dff": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_7fd99fa19e1faae2e73f2f6c8350fa7f.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.0ea4732dff", "fqn": ["microsoft_ads", "dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code"], "alias": "dbt_utils_unique_combination_o_7fd99fa19e1faae2e73f2f6c8350fa7f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7fd99fa19e1faae2e73f2f6c8350fa7f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7fd99fa19e1faae2e73f2f6c8350fa7f"}, "created_at": 1734462186.693865, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_7fd99fa19e1faae2e73f2f6c8350fa7f\") }}", "language": "sql", "refs": [{"name": "microsoft_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__url_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_7fd99fa19e1faae2e73f2f6c8350fa7f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, device_os, device_type, network, currency_code\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"microsoft_ads__url_report\"\n group by source_relation, date_day, account_id, campaign_id, ad_group_id, ad_id, device_os, device_type, network, currency_code\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.microsoft_ads__url_report", "attached_node": "model.microsoft_ads.microsoft_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id", "campaign_id", "ad_group_id", "ad_id", "device_os", "device_type", "network", "currency_code"], "model": "{{ get_where_subquery(ref('microsoft_ads__url_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__account_history_account_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__account_history_account_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__account_history_account_id"], "alias": "not_null_stg_twitter_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.730011, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__account_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__account_history_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__account_history\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_twitter_ads__account_history", "attached_node": "model.twitter_ads_source.stg_twitter_ads__account_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__account_history')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_source_relation__account_id__updated_timestamp.3492933c38": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_source_relation__account_id__updated_timestamp", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_500b1c5e14598d51307017cdf7591341.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_source_relation__account_id__updated_timestamp.3492933c38", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_source_relation__account_id__updated_timestamp"], "alias": "dbt_utils_unique_combination_o_500b1c5e14598d51307017cdf7591341", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_500b1c5e14598d51307017cdf7591341", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_500b1c5e14598d51307017cdf7591341"}, "created_at": 1734462186.731096, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_500b1c5e14598d51307017cdf7591341\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__account_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_500b1c5e14598d51307017cdf7591341.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id, updated_timestamp\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__account_history\"\n group by source_relation, account_id, updated_timestamp\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__account_history", "attached_node": "model.twitter_ads_source.stg_twitter_ads__account_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "account_id", "updated_timestamp"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__account_history')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_history_campaign_id"], "alias": "not_null_stg_twitter_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.733496, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_twitter_ads__campaign_history", "attached_node": "model.twitter_ads_source.stg_twitter_ads__campaign_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_history')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_source_relation__campaign_id__updated_timestamp.9b0c16487d": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_source_relation__campaign_id__updated_timestamp", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_a59e3c301853a53e1908b63d8b12887b.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_source_relation__campaign_id__updated_timestamp.9b0c16487d", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_source_relation__campaign_id__updated_timestamp"], "alias": "dbt_utils_unique_combination_o_a59e3c301853a53e1908b63d8b12887b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a59e3c301853a53e1908b63d8b12887b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a59e3c301853a53e1908b63d8b12887b"}, "created_at": 1734462186.7344708, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a59e3c301853a53e1908b63d8b12887b\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_a59e3c301853a53e1908b63d8b12887b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id, updated_timestamp\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_history\"\n group by source_relation, campaign_id, updated_timestamp\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__campaign_history", "attached_node": "model.twitter_ads_source.stg_twitter_ads__campaign_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "campaign_id", "updated_timestamp"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_history_line_item_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_history_line_item_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_history_line_item_id"], "alias": "not_null_stg_twitter_ads__line_item_history_line_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.736804, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_history_line_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_history\"\nwhere line_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "line_item_id", "file_key_name": "models.stg_twitter_ads__line_item_history", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "line_item_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_history')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_source_relation__line_item_id__updated_timestamp.646fa5270f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_source_relation__line_item_id__updated_timestamp", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_d64b6eedad764e0dc879f582c43e4544.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_source_relation__line_item_id__updated_timestamp.646fa5270f", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_source_relation__line_item_id__updated_timestamp"], "alias": "dbt_utils_unique_combination_o_d64b6eedad764e0dc879f582c43e4544", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d64b6eedad764e0dc879f582c43e4544", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d64b6eedad764e0dc879f582c43e4544"}, "created_at": 1734462186.7377899, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d64b6eedad764e0dc879f582c43e4544\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_d64b6eedad764e0dc879f582c43e4544.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, line_item_id, updated_timestamp\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_history\"\n group by source_relation, line_item_id, updated_timestamp\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__line_item_history", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "line_item_id", "updated_timestamp"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_history')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id"], "alias": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976"}, "created_at": 1734462186.740153, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_history\"\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "promoted_tweet_id", "file_key_name": "models.stg_twitter_ads__promoted_tweet_history", "attached_node": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "promoted_tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_history')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_source_relation__promoted_tweet_id__updated_timestamp.7016099e0a": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_source_relation__promoted_tweet_id__updated_timestamp", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_35bb4648dda14e078b21d14ca0d34f38.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_source_relation__promoted_tweet_id__updated_timestamp.7016099e0a", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_source_relation__promoted_tweet_id__updated_timestamp"], "alias": "dbt_utils_unique_combination_o_35bb4648dda14e078b21d14ca0d34f38", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_35bb4648dda14e078b21d14ca0d34f38", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_35bb4648dda14e078b21d14ca0d34f38"}, "created_at": 1734462186.741162, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_35bb4648dda14e078b21d14ca0d34f38\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_35bb4648dda14e078b21d14ca0d34f38.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, promoted_tweet_id, updated_timestamp\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_history\"\n group by source_relation, promoted_tweet_id, updated_timestamp\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__promoted_tweet_history", "attached_node": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "promoted_tweet_id", "updated_timestamp"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_history')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__promoted_tweet_report_date_day", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__promoted_tweet_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_report_date_day"], "alias": "not_null_stg_twitter_ads__promoted_tweet_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.743503, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__promoted_tweet_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_twitter_ads__promoted_tweet_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id"], "alias": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa"}, "created_at": 1734462186.744471, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_report\"\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "promoted_tweet_id", "file_key_name": "models.stg_twitter_ads__promoted_tweet_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "promoted_tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__promoted_tweet_report_placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__promoted_tweet_report_placement.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_report_placement"], "alias": "not_null_stg_twitter_ads__promoted_tweet_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.7454138, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__promoted_tweet_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_report\"\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "placement", "file_key_name": "models.stg_twitter_ads__promoted_tweet_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement.9d96bf07d3": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_bde425a03f5a6cb7efeda5c5a7f398fd.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement.9d96bf07d3", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement"], "alias": "dbt_utils_unique_combination_o_bde425a03f5a6cb7efeda5c5a7f398fd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bde425a03f5a6cb7efeda5c5a7f398fd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bde425a03f5a6cb7efeda5c5a7f398fd"}, "created_at": 1734462186.746433, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bde425a03f5a6cb7efeda5c5a7f398fd\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__promoted_tweet_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_bde425a03f5a6cb7efeda5c5a7f398fd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, promoted_tweet_id, placement\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_report\"\n group by source_relation, date_day, promoted_tweet_id, placement\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__promoted_tweet_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "promoted_tweet_id", "placement"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__promoted_tweet_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__tweet_url_index", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__tweet_url_index.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__tweet_url_index"], "alias": "not_null_stg_twitter_ads__tweet_url_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.748697, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__tweet_url", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__tweet_url_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__tweet_url\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_twitter_ads__tweet_url", "attached_node": "model.twitter_ads_source.stg_twitter_ads__tweet_url", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet_url')) }}"}, "namespace": null}}, "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__tweet_url_tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__tweet_url_tweet_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__tweet_url_tweet_id"], "alias": "not_null_stg_twitter_ads__tweet_url_tweet_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.749739, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__tweet_url", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__tweet_url_tweet_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect tweet_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__tweet_url\"\nwhere tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "tweet_id", "file_key_name": "models.stg_twitter_ads__tweet_url", "attached_node": "model.twitter_ads_source.stg_twitter_ads__tweet_url", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet_url')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_source_relation__index__tweet_id.ce1a2b4a87": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_source_relation__index__tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_e770dc45175abf92d51dabb017a29aa8.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_source_relation__index__tweet_id.ce1a2b4a87", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_source_relation__index__tweet_id"], "alias": "dbt_utils_unique_combination_o_e770dc45175abf92d51dabb017a29aa8", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e770dc45175abf92d51dabb017a29aa8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e770dc45175abf92d51dabb017a29aa8"}, "created_at": 1734462186.7507122, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e770dc45175abf92d51dabb017a29aa8\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__tweet_url", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_e770dc45175abf92d51dabb017a29aa8.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, index, tweet_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__tweet_url\"\n group by source_relation, index, tweet_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__tweet_url", "attached_node": "model.twitter_ads_source.stg_twitter_ads__tweet_url", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "index", "tweet_id"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet_url')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__campaign_report_date_day", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_report_date_day"], "alias": "not_null_stg_twitter_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.753075, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_twitter_ads__campaign_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_report_campaign_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_report_campaign_id"], "alias": "not_null_stg_twitter_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.7540438, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.stg_twitter_ads__campaign_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__campaign_report_placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_report_placement.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_report_placement"], "alias": "not_null_stg_twitter_ads__campaign_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.755001, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_report\"\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "placement", "file_key_name": "models.stg_twitter_ads__campaign_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement.9d5717ee54": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_f7a0017c7f25444789b16611acaec0f9.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement.9d5717ee54", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement"], "alias": "dbt_utils_unique_combination_o_f7a0017c7f25444789b16611acaec0f9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f7a0017c7f25444789b16611acaec0f9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f7a0017c7f25444789b16611acaec0f9"}, "created_at": 1734462186.755965, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f7a0017c7f25444789b16611acaec0f9\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_f7a0017c7f25444789b16611acaec0f9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, campaign_id, placement\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__campaign_report\"\n group by source_relation, date_day, campaign_id, placement\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__campaign_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "campaign_id", "placement"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_report_date_day", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_report_date_day"], "alias": "not_null_stg_twitter_ads__line_item_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.758296, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_twitter_ads__line_item_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_report_line_item_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_report_line_item_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_report_line_item_id"], "alias": "not_null_stg_twitter_ads__line_item_report_line_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.759268, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_report_line_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_report\"\nwhere line_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "line_item_id", "file_key_name": "models.stg_twitter_ads__line_item_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "line_item_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_report_placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_report_placement.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_report_placement"], "alias": "not_null_stg_twitter_ads__line_item_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.760211, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_report\"\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "placement", "file_key_name": "models.stg_twitter_ads__line_item_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "placement", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement.6c8686e61c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_5fb00a8db61a3e441709d904aea5a1f5.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement.6c8686e61c", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement"], "alias": "dbt_utils_unique_combination_o_5fb00a8db61a3e441709d904aea5a1f5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5fb00a8db61a3e441709d904aea5a1f5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5fb00a8db61a3e441709d904aea5a1f5"}, "created_at": 1734462186.761236, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5fb00a8db61a3e441709d904aea5a1f5\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_5fb00a8db61a3e441709d904aea5a1f5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, line_item_id, placement\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_report\"\n group by source_relation, date_day, line_item_id, placement\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__line_item_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "line_item_id", "placement"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.e5f015e9ec": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_keywords_report_keyword_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.e5f015e9ec", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_keywords_report_keyword_id"], "alias": "not_null_stg_twitter_ads__line_item_keywords_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.763508, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_keywords_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_keywords_report\"\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "keyword_id", "file_key_name": "models.stg_twitter_ads__line_item_keywords_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_keywords_report_date_day", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_keywords_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_keywords_report_date_day"], "alias": "not_null_stg_twitter_ads__line_item_keywords_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.764535, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_keywords_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_keywords_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_keywords_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.stg_twitter_ads__line_item_keywords_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_source_relation__date_day__keyword_id.579bdc1f1c": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_source_relation__date_day__keyword_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_8b315b84c17644dba5b3f8000a97211d.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_source_relation__date_day__keyword_id.579bdc1f1c", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_source_relation__date_day__keyword_id"], "alias": "dbt_utils_unique_combination_o_8b315b84c17644dba5b3f8000a97211d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8b315b84c17644dba5b3f8000a97211d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8b315b84c17644dba5b3f8000a97211d"}, "created_at": 1734462186.7654989, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8b315b84c17644dba5b3f8000a97211d\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__line_item_keywords_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_8b315b84c17644dba5b3f8000a97211d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, keyword_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__line_item_keywords_report\"\n group by source_relation, date_day, keyword_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__line_item_keywords_report", "attached_node": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "keyword_id"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": "dbt_utils"}}, "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_stg_twitter_ads__tweet_tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__tweet_tweet_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__tweet_tweet_id"], "alias": "not_null_stg_twitter_ads__tweet_tweet_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.768082, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__tweet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__tweet_tweet_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect tweet_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__tweet\"\nwhere tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "tweet_id", "file_key_name": "models.stg_twitter_ads__tweet", "attached_node": "model.twitter_ads_source.stg_twitter_ads__tweet", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "tweet_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet')) }}"}, "namespace": null}}, "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_source_relation__tweet_id.70de7f05f5": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_source_relation__tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_8424d33a3c207535850a930edff10b8d.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_source_relation__tweet_id.70de7f05f5", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_source_relation__tweet_id"], "alias": "dbt_utils_unique_combination_o_8424d33a3c207535850a930edff10b8d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8424d33a3c207535850a930edff10b8d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8424d33a3c207535850a930edff10b8d"}, "created_at": 1734462186.769073, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8424d33a3c207535850a930edff10b8d\") }}", "language": "sql", "refs": [{"name": "stg_twitter_ads__tweet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_8424d33a3c207535850a930edff10b8d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, tweet_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"stg_twitter_ads__tweet\"\n group by source_relation, tweet_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_twitter_ads__tweet", "attached_node": "model.twitter_ads_source.stg_twitter_ads__tweet", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "tweet_id"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__tweet')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_linkedin_ads__account_report_account_id", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__account_report_account_id.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842", "fqn": ["linkedin", "not_null_linkedin_ads__account_report_account_id"], "alias": "not_null_linkedin_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.78549, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__account_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__account_report\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "account_id", "file_key_name": "models.linkedin_ads__account_report", "attached_node": "model.linkedin.linkedin_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('linkedin_ads__account_report')) }}"}, "namespace": null}}, "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_linkedin_ads__account_report_date_day", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__account_report_date_day.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53", "fqn": ["linkedin", "not_null_linkedin_ads__account_report_date_day"], "alias": "not_null_linkedin_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.7865212, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__account_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__account_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__account_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.linkedin_ads__account_report", "attached_node": "model.linkedin.linkedin_ads__account_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__account_report')) }}"}, "namespace": null}}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_source_relation__date_day__account_id.da7ea6faeb": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_source_relation__date_day__account_id", "resource_type": "test", "package_name": "linkedin", "path": "dbt_utils_unique_combination_o_9bce6acaab40fad14f6e4d3d5d48ab0f.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_source_relation__date_day__account_id.da7ea6faeb", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_source_relation__date_day__account_id"], "alias": "dbt_utils_unique_combination_o_9bce6acaab40fad14f6e4d3d5d48ab0f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9bce6acaab40fad14f6e4d3d5d48ab0f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9bce6acaab40fad14f6e4d3d5d48ab0f"}, "created_at": 1734462186.787513, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9bce6acaab40fad14f6e4d3d5d48ab0f\") }}", "language": "sql", "refs": [{"name": "linkedin_ads__account_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__account_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_9bce6acaab40fad14f6e4d3d5d48ab0f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, account_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__account_report\"\n group by source_relation, date_day, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.linkedin_ads__account_report", "attached_node": "model.linkedin.linkedin_ads__account_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "account_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__account_report')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_linkedin_ads__campaign_report_date_day", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__campaign_report_date_day.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_report_date_day"], "alias": "not_null_linkedin_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.7898738, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__campaign_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.linkedin_ads__campaign_report", "attached_node": "model.linkedin.linkedin_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_report')) }}"}, "namespace": null}}, "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_linkedin_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__campaign_report_campaign_id.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_report_campaign_id"], "alias": "not_null_linkedin_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.790841, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_id", "file_key_name": "models.linkedin_ads__campaign_report", "attached_node": "model.linkedin.linkedin_ads__campaign_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_report')) }}"}, "namespace": null}}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_source_relation__date_day__campaign_id__account_id__campaign_group_id.89a0d4ba0b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_source_relation__date_day__campaign_id__account_id__campaign_group_id", "resource_type": "test", "package_name": "linkedin", "path": "dbt_utils_unique_combination_o_2834640947c9276be5c38e14adcf7c0e.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_source_relation__date_day__campaign_id__account_id__campaign_group_id.89a0d4ba0b", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_source_relation__date_day__campaign_id__account_id__campaign_group_id"], "alias": "dbt_utils_unique_combination_o_2834640947c9276be5c38e14adcf7c0e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2834640947c9276be5c38e14adcf7c0e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2834640947c9276be5c38e14adcf7c0e"}, "created_at": 1734462186.791826, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2834640947c9276be5c38e14adcf7c0e\") }}", "language": "sql", "refs": [{"name": "linkedin_ads__campaign_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_2834640947c9276be5c38e14adcf7c0e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, campaign_id, account_id, campaign_group_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__campaign_report\"\n group by source_relation, date_day, campaign_id, account_id, campaign_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.linkedin_ads__campaign_report", "attached_node": "model.linkedin.linkedin_ads__campaign_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "campaign_id", "account_id", "campaign_group_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_linkedin_ads__campaign_group_report_date_day", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__campaign_group_report_date_day.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_group_report_date_day"], "alias": "not_null_linkedin_ads__campaign_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.794168, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__campaign_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_group_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__campaign_group_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.linkedin_ads__campaign_group_report", "attached_node": "model.linkedin.linkedin_ads__campaign_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_group_report')) }}"}, "namespace": null}}, "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_linkedin_ads__campaign_group_report_campaign_group_id", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__campaign_group_report_campaign_group_id.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_group_report_campaign_group_id"], "alias": "not_null_linkedin_ads__campaign_group_report_campaign_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.795132, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__campaign_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_group_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_group_report_campaign_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_group_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__campaign_group_report\"\nwhere campaign_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "campaign_group_id", "file_key_name": "models.linkedin_ads__campaign_group_report", "attached_node": "model.linkedin.linkedin_ads__campaign_group_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_group_id", "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_group_report')) }}"}, "namespace": null}}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_source_relation__date_day__campaign_group_id__account_id.36e7743abc": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_source_relation__date_day__campaign_group_id__account_id", "resource_type": "test", "package_name": "linkedin", "path": "dbt_utils_unique_combination_o_c1d8df8e935ca6d9fae1aac12e5c9569.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_source_relation__date_day__campaign_group_id__account_id.36e7743abc", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_source_relation__date_day__campaign_group_id__account_id"], "alias": "dbt_utils_unique_combination_o_c1d8df8e935ca6d9fae1aac12e5c9569", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c1d8df8e935ca6d9fae1aac12e5c9569", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c1d8df8e935ca6d9fae1aac12e5c9569"}, "created_at": 1734462186.7960992, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c1d8df8e935ca6d9fae1aac12e5c9569\") }}", "language": "sql", "refs": [{"name": "linkedin_ads__campaign_group_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_group_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_c1d8df8e935ca6d9fae1aac12e5c9569.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, campaign_group_id, account_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__campaign_group_report\"\n group by source_relation, date_day, campaign_group_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.linkedin_ads__campaign_group_report", "attached_node": "model.linkedin.linkedin_ads__campaign_group_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "campaign_group_id", "account_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__campaign_group_report')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_linkedin_ads__creative_report_date_day", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__creative_report_date_day.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020", "fqn": ["linkedin", "not_null_linkedin_ads__creative_report_date_day"], "alias": "not_null_linkedin_ads__creative_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.798759, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__creative_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__creative_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__creative_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__creative_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.linkedin_ads__creative_report", "attached_node": "model.linkedin.linkedin_ads__creative_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__creative_report')) }}"}, "namespace": null}}, "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_linkedin_ads__creative_report_creative_id", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__creative_report_creative_id.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889", "fqn": ["linkedin", "not_null_linkedin_ads__creative_report_creative_id"], "alias": "not_null_linkedin_ads__creative_report_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.799718, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__creative_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__creative_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__creative_report_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__creative_report\"\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "creative_id", "file_key_name": "models.linkedin_ads__creative_report", "attached_node": "model.linkedin.linkedin_ads__creative_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('linkedin_ads__creative_report')) }}"}, "namespace": null}}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.f9e5f8f610": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id", "resource_type": "test", "package_name": "linkedin", "path": "dbt_utils_unique_combination_o_6c351b701eaff508f607182136ef5c9c.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.f9e5f8f610", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id"], "alias": "dbt_utils_unique_combination_o_6c351b701eaff508f607182136ef5c9c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6c351b701eaff508f607182136ef5c9c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6c351b701eaff508f607182136ef5c9c"}, "created_at": 1734462186.800683, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6c351b701eaff508f607182136ef5c9c\") }}", "language": "sql", "refs": [{"name": "linkedin_ads__creative_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__creative_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_6c351b701eaff508f607182136ef5c9c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, creative_id, campaign_id, campaign_group_id, account_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__creative_report\"\n group by source_relation, date_day, creative_id, campaign_id, campaign_group_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.linkedin_ads__creative_report", "attached_node": "model.linkedin.linkedin_ads__creative_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "creative_id", "campaign_id", "campaign_group_id", "account_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__creative_report')) }}"}, "namespace": "dbt_utils"}}, "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_linkedin_ads__url_report_date_day", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__url_report_date_day.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315", "fqn": ["linkedin", "not_null_linkedin_ads__url_report_date_day"], "alias": "not_null_linkedin_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.802996, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__url_report\"\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.linkedin_ads__url_report", "attached_node": "model.linkedin.linkedin_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('linkedin_ads__url_report')) }}"}, "namespace": null}}, "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_linkedin_ads__url_report_creative_id", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__url_report_creative_id.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2", "fqn": ["linkedin", "not_null_linkedin_ads__url_report_creative_id"], "alias": "not_null_linkedin_ads__url_report_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1734462186.803953, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "linkedin_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__url_report_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__url_report\"\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "creative_id", "file_key_name": "models.linkedin_ads__url_report", "attached_node": "model.linkedin.linkedin_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "creative_id", "model": "{{ get_where_subquery(ref('linkedin_ads__url_report')) }}"}, "namespace": null}}, "test.linkedin.not_null_linkedin_ads__url_report_click_uri.81534087cb": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "not_null_linkedin_ads__url_report_click_uri", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__url_report_click_uri.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_click_uri.81534087cb", "fqn": ["linkedin", "not_null_linkedin_ads__url_report_click_uri"], "alias": "not_null_linkedin_ads__url_report_click_uri", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true}, "created_at": 1734462186.805303, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "linkedin_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__url_report_click_uri.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect click_uri\nfrom \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__url_report\"\nwhere click_uri is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "click_uri", "file_key_name": "models.linkedin_ads__url_report", "attached_node": "model.linkedin.linkedin_ads__url_report", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "click_uri", "model": "{{ get_where_subquery(ref('linkedin_ads__url_report')) }}"}, "namespace": null}}, "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.0ff865de89": {"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id", "resource_type": "test", "package_name": "linkedin", "path": "dbt_utils_unique_combination_o_ffc9560cb56727d91f17784e571bfd77.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.0ff865de89", "fqn": ["linkedin", "dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id"], "alias": "dbt_utils_unique_combination_o_ffc9560cb56727d91f17784e571bfd77", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ffc9560cb56727d91f17784e571bfd77", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ffc9560cb56727d91f17784e571bfd77"}, "created_at": 1734462186.806614, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_ffc9560cb56727d91f17784e571bfd77\") }}", "language": "sql", "refs": [{"name": "linkedin_ads__url_report", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_ffc9560cb56727d91f17784e571bfd77.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, date_day, creative_id, campaign_id, campaign_group_id, account_id\n from \"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"linkedin_ads__url_report\"\n group by source_relation, date_day, creative_id, campaign_id, campaign_group_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.linkedin_ads__url_report", "attached_node": "model.linkedin.linkedin_ads__url_report", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "date_day", "creative_id", "campaign_id", "campaign_group_id", "account_id"], "model": "{{ get_where_subquery(ref('linkedin_ads__url_report')) }}"}, "namespace": "dbt_utils"}}}, "sources": {"source.microsoft_ads_source.microsoft_ads.account_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "account_history", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.account_history", "fqn": ["microsoft_ads_source", "microsoft_ads", "account_history"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_account_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a version of one or more Microsoft accounts.", "columns": {"id": {"name": "id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_account_history_data\"", "created_at": 1734462186.81196}, "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "account_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "account_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_account_performance_daily_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by account and all non-metric columns.", "columns": {"date": {"name": "date", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_qualified": {"name": "conversions_qualified", "description": "Number of [conversions](https://learn.microsoft.com/en-us/advertising/reporting-service/conversionperformancereportcolumn?view=bingads-13#conversionsqualified), measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`) Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "revenue": {"name": "revenue", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_qualified": {"name": "all_conversions_qualified", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_account_performance_daily_report_data\"", "created_at": 1734462186.8127449}, "source.microsoft_ads_source.microsoft_ads.ad_group_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_group_history", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_history", "fqn": ["microsoft_ads_source", "microsoft_ads", "ad_group_history"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_ad_group_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a version of one or more Microsoft ad groups.", "columns": {"id": {"name": "id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_time": {"name": "modified_time", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The date in which an ad group starts running.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The date in which this ad group will no longer run.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of this ad group; see the following [documentation](https://help.ads.microsoft.com/apex/index/3/en/53094) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_ad_group_history_data\"", "created_at": 1734462186.812866}, "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_group_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "ad_group_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_ad_group_performance_daily_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by account, campaign, ad group and all non-metric columns.", "columns": {"date": {"name": "date", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_qualified": {"name": "conversions_qualified", "description": "Number of [conversions](https://learn.microsoft.com/en-us/advertising/reporting-service/conversionperformancereportcolumn?view=bingads-13#conversionsqualified), measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`) Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "revenue": {"name": "revenue", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_qualified": {"name": "all_conversions_qualified", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`)\nNumber of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_revenue": {"name": "all_revenue", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_ad_group_performance_daily_report_data\"", "created_at": 1734462186.8129978}, "source.microsoft_ads_source.microsoft_ads.ad_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_history", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_history", "fqn": ["microsoft_ads_source", "microsoft_ads", "ad_history"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_ad_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a version of one or more Microsoft ads.", "columns": {"id": {"name": "id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title_part_1": {"name": "title_part_1", "description": "The name of the corresponding ad; `title_part_1` is used as the ad name as a proxy as one is not provided by the data source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "final_url": {"name": "final_url", "description": "The full URL that the ad links to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_time": {"name": "modified_time", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of this ad; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/adstatus?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The ad type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/adtype?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_ad_history_data\"", "created_at": 1734462186.813109}, "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "ad_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_ad_performance_daily_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad and all non-metric columns.", "columns": {"date": {"name": "date", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_qualified": {"name": "conversions_qualified", "description": "Number of [conversions](https://learn.microsoft.com/en-us/advertising/reporting-service/conversionperformancereportcolumn?view=bingads-13#conversionsqualified), measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`) Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "revenue": {"name": "revenue", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_qualified": {"name": "all_conversions_qualified", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`)\nNumber of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_revenue": {"name": "all_revenue", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_ad_performance_daily_report_data\"", "created_at": 1734462186.813247}, "source.microsoft_ads_source.microsoft_ads.campaign_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_history", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_history", "fqn": ["microsoft_ads_source", "microsoft_ads", "campaign_history"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a version of one or more Microsoft campaigns.", "columns": {"id": {"name": "id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_time": {"name": "modified_time", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The campaign type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaigntype?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of this campaign; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaignstatus?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_campaign_history_data\"", "created_at": 1734462186.813356}, "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "campaign_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_campaign_performance_daily_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by account, campaign and all non-metric columns.", "columns": {"date": {"name": "date", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_association_status": {"name": "budget_association_status", "description": "Indicates whether or not the campaign is currently spending from the budget mentioned in the BudgetName column. The possible values are `Current` and `Ended`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_name": {"name": "budget_name", "description": "The name of the budget. This column will be empty for unshared budgets.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_status": {"name": "budget_status", "description": "The budget status. The possible values are `Active` and `Deleted`. This column will be empty for unshared budgets.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_qualified": {"name": "conversions_qualified", "description": "Number of [conversions](https://learn.microsoft.com/en-us/advertising/reporting-service/conversionperformancereportcolumn?view=bingads-13#conversionsqualified), measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`) Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "revenue": {"name": "revenue", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_qualified": {"name": "all_conversions_qualified", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`)\nNumber of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_revenue": {"name": "all_revenue", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_campaign_performance_daily_report_data\"", "created_at": 1734462186.813496}, "source.microsoft_ads_source.microsoft_ads.keyword_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "keyword_history", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_history", "fqn": ["microsoft_ads_source", "microsoft_ads", "keyword_history"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_keyword_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a version of one or more Microsoft keywords.", "columns": {"id": {"name": "id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The keyword(s) associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_time": {"name": "modified_time", "description": "The time each version of the object was last modified, i.e. when that version of the object was 'created'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "The match type associated with this record; values contain but may not be limited to 'Broad', 'Exact', 'Phrase'. Please refer to Microsoft Ad's [documentation](https://help.ads.microsoft.com/#apex/ads/en/50822/1).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of this keyword; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/keywordstatus?view=bingads-13) for more information on values and definitions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_keyword_history_data\"", "created_at": 1734462186.8136}, "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "keyword_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "keyword_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_keyword_performance_daily_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad, keyword and all non-metric columns.", "columns": {"date": {"name": "date", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_qualified": {"name": "conversions_qualified", "description": "Number of [conversions](https://learn.microsoft.com/en-us/advertising/reporting-service/conversionperformancereportcolumn?view=bingads-13#conversionsqualified), measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`) Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "revenue": {"name": "revenue", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_qualified": {"name": "all_conversions_qualified", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`)\nNumber of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_revenue": {"name": "all_revenue", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_keyword_performance_daily_report_data\"", "created_at": 1734462186.81378}, "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "search_query_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "search_query_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "microsoft_ads_search_performance_daily_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by account, campaign, ad group, ad, keyword and all non-metric columns.", "columns": {"date": {"name": "date", "description": "The date of the performance report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the corresponding ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the corresponding ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_query": {"name": "search_query", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency code associated with spend and, if applicable, other metrics associated with currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_os": {"name": "device_os", "description": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_type": {"name": "device_type", "description": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network": {"name": "network", "description": "The network associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "The language that the associated ad was viewed in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_distribution": {"name": "ad_distribution", "description": "The distribution medium associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_match_type": {"name": "bid_match_type", "description": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivered_match_type": {"name": "delivered_match_type", "description": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_vs_other": {"name": "top_vs_other", "description": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend that occurred by the grain of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_qualified": {"name": "conversions_qualified", "description": "Number of [conversions](https://learn.microsoft.com/en-us/advertising/reporting-service/conversionperformancereportcolumn?view=bingads-13#conversionsqualified), measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`) Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "revenue": {"name": "revenue", "description": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions_qualified": {"name": "all_conversions_qualified", "description": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_conversions": {"name": "all_conversions", "description": "(Deprecated in 2022 in favor of `conversions_qualified`)\nNumber of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "all_revenue": {"name": "all_revenue", "description": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"microsoft_ads_search_performance_daily_report_data\"", "created_at": 1734462186.813909}, "source.reddit_ads_source.reddit_ads.account": {"database": "postgres", "schema": "zz_ad_reporting", "name": "account", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.account", "fqn": ["reddit_ads_source", "reddit_ads", "account"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_account_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents information about an account.", "columns": {"id": {"name": "id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attribution_type": {"name": "attribution_type", "description": "Attribution type: \"CLICK_THROUGH_CONVERSION\", \"VIEW_THROUGH_CONVERSION\", or \"ALL_CONVERSION\".\nCLICK_THROUGH_CONVERSION: A user clicked on your ad and then completed the conversion action on your site. \nVIEW_THROUGH_CONVERSION: A user saw your ad and did not click it, but did complete the conversion action on your site.\nALL_CONVERSION: Combination of both.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_attribution_window": {"name": "click_attribution_window", "description": "Determines how long after clicking on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current state of the advertiser. \"PENDING_BILLING\", \"VALID\", \"TRUSTED\", \"ADMIN\", \"FAILED_BILLING\", \"SUSPICIOUS\", \"SUSPENDED\", or \"BANNED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone_id": {"name": "time_zone_id", "description": "The time zone id preference for this account", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_attribution_window": {"name": "view_attribution_window", "description": "Determines how long after viewing on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_account_data\"", "created_at": 1734462186.814019}, "source.reddit_ads_source.reddit_ads.account_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "account_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.account_report", "fqn": ["reddit_ads_source", "reddit_ads", "account_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_account_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a summary of events for each given date and account.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comment_downvotes": {"name": "comment_downvotes", "description": "The number comment downvotes for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comment_upvotes": {"name": "comment_upvotes", "description": "The number comment upvotes for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments_page_views": {"name": "comments_page_views", "description": "The number of times the comments page was viewed for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_roas": {"name": "conversion_roas", "description": "Return on ad spend for purchases for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The cost-per-click for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The click-through-rate for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ecpm": {"name": "ecpm", "description": "The effective CPM for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount (in microcurrency) spent for this report period in Ad Account's currency, as defined [here](https://ads-api.reddit.com/docs/#tag/Reporting/paths/~1api~1v2.0~1accounts~1{account_id}~1reports/get)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_started": {"name": "video_started", "description": "The number of times the ad was served and the video began playing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_25_percent": {"name": "video_watched_25_percent", "description": "The number of times the ad was served and at least 25% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_3_seconds": {"name": "video_watched_3_seconds", "description": "The number of times the ad was served and at least 3 seconds of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_50_percent": {"name": "video_watched_50_percent", "description": "The number of times the ad was served and at least 50% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_5_seconds": {"name": "video_watched_5_seconds", "description": "The number of times the ad was served and at least 5 seconds of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_75_percent": {"name": "video_watched_75_percent", "description": "The number of times the ad was served and at least 75% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "viewer_comments": {"name": "viewer_comments", "description": "The number of times a user saw the post, and also commented on it. We count per view + comment combination (similar to a conversion)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_account_report_data\"", "created_at": 1734462186.814147}, "source.reddit_ads_source.reddit_ads.ad": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.ad", "fqn": ["reddit_ads_source", "reddit_ads", "ad"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_ad_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents information about each ad.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_url": {"name": "click_url", "description": "The destination url, or the website address, that a visitor goes to when they click on the ad", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_id": {"name": "post_id", "description": "The ID of the post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_url": {"name": "post_url", "description": "The URL belonging to the post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rejection_reason": {"name": "rejection_reason", "description": "Reason why entity was rejected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_data\"", "created_at": 1734462186.814265}, "source.reddit_ads_source.reddit_ads.ad_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.ad_report", "fqn": ["reddit_ads_source", "reddit_ads", "ad_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_ad_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a summary of events for each given date and ad.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comment_downvotes": {"name": "comment_downvotes", "description": "The number comment downvotes for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comment_upvotes": {"name": "comment_upvotes", "description": "The number comment upvotes for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments_page_views": {"name": "comments_page_views", "description": "The number of times the comments page was viewed for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_roas": {"name": "conversion_roas", "description": "Return on ad spend for purchases for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The cost-per-click for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The click-through-rate for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ecpm": {"name": "ecpm", "description": "The effective CPM for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount (in microcurrency) spent for this report period in Ad Account's currency, as defined [here](https://ads-api.reddit.com/docs/#tag/Reporting/paths/~1api~1v2.0~1accounts~1{account_id}~1reports/get)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_started": {"name": "video_started", "description": "The number of times the ad was served and the video began playing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_25_percent": {"name": "video_watched_25_percent", "description": "The number of times the ad was served and at least 25% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_3_seconds": {"name": "video_watched_3_seconds", "description": "The number of times the ad was served and at least 3 seconds of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_50_percent": {"name": "video_watched_50_percent", "description": "The number of times the ad was served and at least 50% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_5_seconds": {"name": "video_watched_5_seconds", "description": "The number of times the ad was served and at least 5 seconds of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_75_percent": {"name": "video_watched_75_percent", "description": "The number of times the ad was served and at least 75% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "viewer_comments": {"name": "viewer_comments", "description": "The number of times a user saw the post, and also commented on it. We count per view + comment combination (similar to a conversion)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_report_data\"", "created_at": 1734462186.814393}, "source.reddit_ads_source.reddit_ads.ad_group": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_group", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.ad_group", "fqn": ["reddit_ads_source", "reddit_ads", "ad_group"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_ad_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents information about each ad group.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_strategy": {"name": "bid_strategy", "description": "The bid strategy for this entity. \"MAXIMIZE_VOLUME\", \"MANUAL_BIDDING\", or \"BIDLESS\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_value": {"name": "bid_value", "description": "The amount to pay in microcurrency per bidding event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "When the entity will stop delivering.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expand_targeting": {"name": "expand_targeting", "description": "Boolean that when selected, allows Reddit to expand your targeting to maximize your results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "goal_type": {"name": "goal_type", "description": "The type of goal for the entity. \"IMPRESSIONS\", \"PERCENTAGE\", \"CLICKS\", \"CONVERSIONS\", \"LIFETIME_SPEND\", \"DAILY_SPEND\", or \"VIDEO_VIEWABLE_IMPRESSIONS\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "goal_value": {"name": "goal_value", "description": "The value used to determine the goal has been met. This is measured in microcurrency for monetary goals types.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization_strategy_type": {"name": "optimization_strategy_type", "description": "The strategy to use when optimizing the delivery of an ad. \"DOWNSTREAM_CONVERSIONS\" or \"APP_INSTALLS\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "When the entity will begin to deliver.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_group_data\"", "created_at": 1734462186.814511}, "source.reddit_ads_source.reddit_ads.ad_group_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_group_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.ad_group_report", "fqn": ["reddit_ads_source", "reddit_ads", "ad_group_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_ad_group_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a summary of events for each given date and ad group.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comment_downvotes": {"name": "comment_downvotes", "description": "The number comment downvotes for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comment_upvotes": {"name": "comment_upvotes", "description": "The number comment upvotes for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments_page_views": {"name": "comments_page_views", "description": "The number of times the comments page was viewed for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_roas": {"name": "conversion_roas", "description": "Return on ad spend for purchases for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The cost-per-click for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The click-through-rate for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ecpm": {"name": "ecpm", "description": "The effective CPM for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount (in microcurrency) spent for this report period in Ad Account's currency, as defined [here](https://ads-api.reddit.com/docs/#tag/Reporting/paths/~1api~1v2.0~1accounts~1{account_id}~1reports/get)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_started": {"name": "video_started", "description": "The number of times the ad was served and the video began playing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_25_percent": {"name": "video_watched_25_percent", "description": "The number of times the ad was served and at least 25% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_3_seconds": {"name": "video_watched_3_seconds", "description": "The number of times the ad was served and at least 3 seconds of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_50_percent": {"name": "video_watched_50_percent", "description": "The number of times the ad was served and at least 50% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_5_seconds": {"name": "video_watched_5_seconds", "description": "The number of times the ad was served and at least 5 seconds of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_75_percent": {"name": "video_watched_75_percent", "description": "The number of times the ad was served and at least 75% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "viewer_comments": {"name": "viewer_comments", "description": "The number of times a user saw the post, and also commented on it. We count per view + comment combination (similar to a conversion)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_group_report_data\"", "created_at": 1734462186.814659}, "source.reddit_ads_source.reddit_ads.campaign": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.campaign", "fqn": ["reddit_ads_source", "reddit_ads", "campaign"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_campaign_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents information about each campaign.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Campaign level funding instrument id", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The objective type of a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_campaign_data\"", "created_at": 1734462186.8147662}, "source.reddit_ads_source.reddit_ads.campaign_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.campaign_report", "fqn": ["reddit_ads_source", "reddit_ads", "campaign_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_campaign_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a summary of events for each given date and campaign.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comment_downvotes": {"name": "comment_downvotes", "description": "The number comment downvotes for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comment_upvotes": {"name": "comment_upvotes", "description": "The number comment upvotes for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments_page_views": {"name": "comments_page_views", "description": "The number of times the comments page was viewed for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_roas": {"name": "conversion_roas", "description": "Return on ad spend for purchases for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The cost-per-click for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The click-through-rate for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ecpm": {"name": "ecpm", "description": "The effective CPM for this period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount (in microcurrency) spent for this report period in Ad Account's currency, as defined [here](https://ads-api.reddit.com/docs/#tag/Reporting/paths/~1api~1v2.0~1accounts~1{account_id}~1reports/get)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_started": {"name": "video_started", "description": "The number of times the ad was served and the video began playing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_25_percent": {"name": "video_watched_25_percent", "description": "The number of times the ad was served and at least 25% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_3_seconds": {"name": "video_watched_3_seconds", "description": "The number of times the ad was served and at least 3 seconds of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_50_percent": {"name": "video_watched_50_percent", "description": "The number of times the ad was served and at least 50% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_5_seconds": {"name": "video_watched_5_seconds", "description": "The number of times the ad was served and at least 5 seconds of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_75_percent": {"name": "video_watched_75_percent", "description": "The number of times the ad was served and at least 75% of the video has played", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "viewer_comments": {"name": "viewer_comments", "description": "The number of times a user saw the post, and also commented on it. We count per view + comment combination (similar to a conversion)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_campaign_report_data\"", "created_at": 1734462186.814892}, "source.reddit_ads_source.reddit_ads.account_conversions_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "account_conversions_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.account_conversions_report", "fqn": ["reddit_ads_source", "reddit_ads", "account_conversions_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_account_conversions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Provides a summary of conversion events at the account level, aggregating key metrics by event and day.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_value": {"name": "avg_value", "description": "The average value of conversions over a given period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_month": {"name": "click_through_conversion_attribution_window_month", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_month": {"name": "view_through_conversion_attribution_window_month", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_day": {"name": "click_through_conversion_attribution_window_day", "description": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_week": {"name": "click_through_conversion_attribution_window_week", "description": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_day": {"name": "view_through_conversion_attribution_window_day", "description": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_week": {"name": "view_through_conversion_attribution_window_week", "description": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_account_conversions\"", "created_at": 1734462186.8150039}, "source.reddit_ads_source.reddit_ads.ad_group_conversions_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_group_conversions_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.ad_group_conversions_report", "fqn": ["reddit_ads_source", "reddit_ads", "ad_group_conversions_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_ad_group_conversions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Provides a summary of conversion events at the ad group level, aggregating key metrics by event and day.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_value": {"name": "avg_value", "description": "The average value of conversions over a given period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_month": {"name": "click_through_conversion_attribution_window_month", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_month": {"name": "view_through_conversion_attribution_window_month", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_day": {"name": "click_through_conversion_attribution_window_day", "description": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_week": {"name": "click_through_conversion_attribution_window_week", "description": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_day": {"name": "view_through_conversion_attribution_window_day", "description": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_week": {"name": "view_through_conversion_attribution_window_week", "description": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_group_conversions\"", "created_at": 1734462186.815119}, "source.reddit_ads_source.reddit_ads.ad_conversions_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_conversions_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.ad_conversions_report", "fqn": ["reddit_ads_source", "reddit_ads", "ad_conversions_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_ad_conversions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Provides a summary of conversion events at the individual ad level, aggregating key metrics by event and day.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_value": {"name": "avg_value", "description": "The average value of conversions over a given period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_month": {"name": "click_through_conversion_attribution_window_month", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_month": {"name": "view_through_conversion_attribution_window_month", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_day": {"name": "click_through_conversion_attribution_window_day", "description": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_week": {"name": "click_through_conversion_attribution_window_week", "description": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_day": {"name": "view_through_conversion_attribution_window_day", "description": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_week": {"name": "view_through_conversion_attribution_window_week", "description": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_ad_conversions\"", "created_at": 1734462186.815234}, "source.reddit_ads_source.reddit_ads.campaign_conversions_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_conversions_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.campaign_conversions_report", "fqn": ["reddit_ads_source", "reddit_ads", "campaign_conversions_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "reddit_ads_campaign_conversions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Provides a summary of conversion events at the campaign level, aggregating key metrics by event and day.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_value": {"name": "avg_value", "description": "The average value of conversions over a given period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_month": {"name": "click_through_conversion_attribution_window_month", "description": "The total click-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_items": {"name": "total_items", "description": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_value": {"name": "total_value", "description": "The total monetary value associated with a conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_month": {"name": "view_through_conversion_attribution_window_month", "description": "The total view-through conversions attributed, for the given month-long window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_day": {"name": "click_through_conversion_attribution_window_day", "description": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_through_conversion_attribution_window_week": {"name": "click_through_conversion_attribution_window_week", "description": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_day": {"name": "view_through_conversion_attribution_window_day", "description": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversion_attribution_window_week": {"name": "view_through_conversion_attribution_window_week", "description": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"reddit_ads_campaign_conversions\"", "created_at": 1734462186.815358}, "source.amazon_ads_source.amazon_ads.ad_group_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_group_history", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.ad_group_history", "fqn": ["amazon_ads_source", "amazon_ads", "ad_group_history"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_ad_group_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents an ad group in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_bid": {"name": "default_bid", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_ad_group_history_data\"", "created_at": 1734462186.815474}, "source.amazon_ads_source.amazon_ads.ad_group_level_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_group_level_report", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.ad_group_level_report", "fqn": ["amazon_ads_source", "amazon_ads", "ad_group_level_report"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_ad_group_level_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by Amazon ad group.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_ad_group_level_report_data\"", "created_at": 1734462186.815582}, "source.amazon_ads_source.amazon_ads.advertised_product_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "advertised_product_report", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.advertised_product_report", "fqn": ["amazon_ads_source", "amazon_ads", "advertised_product_report"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_advertised_product_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Advertised product reports contain performance data for products that are advertised as part of your campaigns.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertised_asin": {"name": "advertised_asin", "description": "The ASIN associated to an advertised product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertised_sku": {"name": "advertised_sku", "description": "The SKU being advertised.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_advertised_product_report_data\"", "created_at": 1734462186.8157}, "source.amazon_ads_source.amazon_ads.campaign_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_history", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.campaign_history", "fqn": ["amazon_ads_source", "amazon_ads", "campaign_history"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a campaign in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bidding_strategy": {"name": "bidding_strategy", "description": "The bidding strategy associated with a campaign (legacyForSales, autoForSales, or manual.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget": {"name": "budget", "description": "The budget for the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_type": {"name": "budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_budget": {"name": "effective_budget", "description": "Adjusted budget for the campaign that has been impacted by a budget rule.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "targeting_type": {"name": "targeting_type", "description": "The type of targeting used for the campaign, either manual or auto.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_campaign_history_data\"", "created_at": 1734462186.8158422}, "source.amazon_ads_source.amazon_ads.campaign_level_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_level_report", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.campaign_level_report", "fqn": ["amazon_ads_source", "amazon_ads", "campaign_level_report"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_campaign_level_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by Amazon campaign.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_applicable_budget_rule_id": {"name": "campaign_applicable_budget_rule_id", "description": "The ID associated to the active budget rule for a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_applicable_budget_rule_name": {"name": "campaign_applicable_budget_rule_name", "description": "The name associated to the active budget rule for a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_rule_based_budget_amount": {"name": "campaign_rule_based_budget_amount", "description": "The value of the rule-based budget for a campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_campaign_level_report_data\"", "created_at": 1734462186.815957}, "source.amazon_ads_source.amazon_ads.keyword_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "keyword_history", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.keyword_history", "fqn": ["amazon_ads_source", "amazon_ads", "keyword_history"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_keyword_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a keyword in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid": {"name": "bid", "description": "Bid associated with this keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The exact text for the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "One of (broad, exact, or phrase.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_language_keyword": {"name": "native_language_keyword", "description": "The unlocalized keyword text in the preferred locale of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_language_locale": {"name": "native_language_locale", "description": "The preferred language locale of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_keyword_history_data\"", "created_at": 1734462186.8160698}, "source.amazon_ads_source.amazon_ads.portfolio_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "portfolio_history", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.portfolio_history", "fqn": ["amazon_ads_source", "amazon_ads", "portfolio_history"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_portfolio_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a portfolio in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_amount": {"name": "budget_amount", "description": "The budget amount associated with the portfolio. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_currency_code": {"name": "budget_currency_code", "description": "The currency used for all monetary values for entities under this profile. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_end_date": {"name": "budget_end_date", "description": "The end date after which the budget is no longer applied. Optional if policy is set to dateRange or monthlyRecurring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_start_date": {"name": "budget_start_date", "description": "The starting date in YYYYMMDD format to which the budget is applied. Required if policy is set to dateRange. Not specified if policy is set to monthlyRecurring. Note that the starting date for monthlyRecurring is the date when the policy is set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_policy": {"name": "budget_policy", "description": "The budget policy. Set to dateRange to specify a budget for a specific period of time. Set to monthlyRecurring to specify a budget that is automatically renewed at the beginning of each month. Cannot be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "in_budget": {"name": "in_budget", "description": "Indicates the current budget status of the portfolio. Set to true if the portfolio is in budget, set to false if the portfolio is out of budget.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_portfolio_history_data\"", "created_at": 1734462186.816183}, "source.amazon_ads_source.amazon_ads.product_ad_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "product_ad_history", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.product_ad_history", "fqn": ["amazon_ads_source", "amazon_ads", "product_ad_history"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_product_ad_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a product in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "asin": {"name": "asin", "description": "The Amazon Standard Identification Number (ASIN) associated with the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sku": {"name": "sku", "description": "The product SKU associated with the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_product_ad_history_data\"", "created_at": 1734462186.8162901}, "source.amazon_ads_source.amazon_ads.profile": {"database": "postgres", "schema": "zz_ad_reporting", "name": "profile", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.profile", "fqn": ["amazon_ads_source", "amazon_ads", "profile"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a profile. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "ID of the profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplace.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_marketplace_string_id": {"name": "account_marketplace_string_id", "description": "The identifier of the marketplace to which the account is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account subtype.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "One of seller, vendor, or agency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_valid_payment_method": {"name": "account_valid_payment_method", "description": "For Vendors, this returns if the Advertiser has set up a valid payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency used for all monetary values for entities under this profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget for Sponsored Product campaigns for seller type accounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The time zone used for all date-based campaign management and reporting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_profile_data\"", "created_at": 1734462186.816403}, "source.amazon_ads_source.amazon_ads.targeting_keyword_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "targeting_keyword_report", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.targeting_keyword_report", "fqn": ["amazon_ads_source", "amazon_ads", "targeting_keyword_report"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_targeting_keyword_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Targeting reports contain performance metrics broken down by both targeting expressions and keywords.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_keyword_status": {"name": "ad_keyword_status", "description": "Current status of a keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_bid": {"name": "keyword_bid", "description": "Bid associated with a keyword or targeting expression.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_type": {"name": "keyword_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "targeting": {"name": "targeting", "description": "A string representation of the expression object used in the targeting clause.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_targeting_keyword_report_data\"", "created_at": 1734462186.8165288}, "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "search_term_ad_keyword_report", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report", "fqn": ["amazon_ads_source", "amazon_ads", "search_term_ad_keyword_report"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_search_term_ad_keyword_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Search term reports contain search term performance metrics broken down by targeting expressions and keywords.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_bid": {"name": "keyword_bid", "description": "Bid associated with a keyword or targeting expression.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_term": {"name": "search_term", "description": "The search term used by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "targeting": {"name": "targeting", "description": "A string representation of the expression object used in the targeting clause.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "purchases_30_d": {"name": "purchases_30_d", "description": "Number of attributed conversion events occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_30_d": {"name": "sales_30_d", "description": "Total value of sales occurring within 30 days of an ad click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"amazon_ads_search_term_ad_keyword_report_data\"", "created_at": 1734462186.816651}, "source.linkedin_source.linkedin_ads.ad_analytics_by_creative": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_analytics_by_creative", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin_ads.ad_analytics_by_creative", "fqn": ["linkedin_source", "linkedin_ads", "ad_analytics_by_creative"], "source_name": "linkedin_ads", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_analytics_by_creative_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance of ads at the creative level.", "columns": {"creative_id": {"name": "creative_id", "description": "The ID of the related creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "day": {"name": "day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_in_local_currency": {"name": "cost_in_local_currency", "description": "The cost of the ads in the local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_in_usd": {"name": "cost_in_usd", "description": "The cost of the ads in the USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"linkedin_ad_analytics_by_creative_data\"", "created_at": 1734462186.816774}, "source.linkedin_source.linkedin_ads.creative_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "creative_history", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin_ads.creative_history", "fqn": ["linkedin_source", "linkedin_ads", "creative_history"], "source_name": "linkedin_ads", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_creative_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a 'version' of a creative.", "columns": {"id": {"name": "id", "description": "Unique internal ID representing the creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The timestamp of when the version was updated (Linkedin Ads pre-January 2023 API Update).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_at": {"name": "last_modified_at", "description": "The timestamp of when the version was updated (Linkedin Ads post-January 2023 API Update).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The timestamp of when the creative was created (Linkedin Ads pre-January 2023 API Update).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp of when the creative was created (Linkedin Ads post-January 2023 API Update).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the campaign the creative belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_uri": {"name": "click_uri", "description": "Deprecated url field. Please refer to the text_ad_landing_page and spotlight_landing_page fields for relevant landing page information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "text_ad_landing_page": {"name": "text_ad_landing_page", "description": "The URL where the member should be redirected to, on clicking the text ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spotlight_landing_page": {"name": "spotlight_landing_page", "description": "The URL where the member should be redirected to, on clicking the spotlight ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "intended_status": {"name": "intended_status", "description": "ACTIVE - Creative creation is complete and creative is available for review and serve.\nPAUSED - Creative creation is complete and creative is current, but should temporarily not be served. This status is not valid upon creation.\nDRAFT - Creative creation is incomplete and may still be edited.\nARCHIVED - Creative creation is complete, but creative should not be served and should be separated from non-archived creatives in any UI.\nCANCELED - Creative is permanently canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"linkedin_ad_creative_history_data\"", "created_at": 1734462186.816891}, "source.linkedin_source.linkedin_ads.campaign_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_history", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin_ads.campaign_history", "fqn": ["linkedin_source", "linkedin_ads", "campaign_history"], "source_name": "linkedin_ads", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a 'version' of a campaign.", "columns": {"id": {"name": "id", "description": "Unique internal ID representing the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account the campaign belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_group_id": {"name": "campaign_group_id", "description": "The ID of the campaign group the campaign belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The timestamp of when the campaign was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "A label for the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "audience_expansion_enabled": {"name": "audience_expansion_enabled", "description": "Boolean (default=false) representing whether Audience Expansion is enabled for the campaign provides query expansion for certain targeting criteria.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_type": {"name": "cost_type", "description": "CPM - Cost per thousand advertising impressions. If type=SPONSORED_INMAILS; cost per send(CPS) is measured as CPM x 1000.\nCPC- Cost per individual click on the associated link.\nCPV- Cost per view for video ads.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_selection": {"name": "creative_selection", "description": "ROUND_ROBIN - Rotate through available creatives to serve them as evenly as possible.\nOPTIMIZED (default) - Bias selection taking into account such as expected performance. Not available for Message and Conversation Ads (type=SPONSORED_INMAILS).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_amount": {"name": "daily_budget_amount", "description": "Maximum amount to spend per day UTC. The amount of money as a real number string.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_currency_code": {"name": "daily_budget_currency_code", "description": "ISO currency code. The currency must match that of the parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "format": {"name": "format", "description": "The ad format on the campaign level. See https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads/campaign-formats?view=li-lms-2022-07", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "locale_country": {"name": "locale_country", "description": "Locale of the campaign. An uppercase two-letter country code as defined by ISO-3166.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "locale_language": {"name": "locale_language", "description": "Locale of the campaign. A lowercase two-letter language code as defined by ISO-639.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective_type": {"name": "objective_type", "description": "Campaign Objective type values. Click [here](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ad-budget-pricing-type-combinations?view=li-lms-2022-07) for Campaign Objective descriptions. One of: - BRAND_AWARENESS - ENGAGEMENT - JOB_APPLICANTS - LEAD_GENERATION - WEBSITE_CONVERSIONS - WEBSITE_VISITS - VIDEO_VIEWS\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "offsite_delivery_enabled": {"name": "offsite_delivery_enabled", "description": "Boolean indicating if this campaign to allowed to be served on the LinkedIn Audience Network to extend the reach of your campaign by delivering ads beyond the LinkedIn feed to members on third-party apps and sites.\t(default will be \"True\" from June 30, 2022)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization_target_type": {"name": "optimization_target_type", "description": "Determines how this campaign is optimized for spending. If this is not set, there is no optimization. Refer to the documentation here. Default = 'NONE'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_start": {"name": "run_schedule_start", "description": "Scheduled date range to run associated creatives. The start date must be non-null. Represents the inclusive (greater than or equal to) value in which to start the range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_end": {"name": "run_schedule_end", "description": "Scheduled date range to run associated creatives. The start date must be non-null. Represents the exclusive (strictly less than) value in which to end the range, if provided.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "ACTIVE - Denotes that the campaign is fully servable.\nPAUSED - Denotes that the campaign meets all requirements to be served, but temporarily should not be.\nARCHIVED - Denotes that the campaign is presently inactive, and should mostly be hidden in the UI until un-archived.\nCOMPLETED - Denotes that the campaign has reached a specified budgetary or chronological limit.\nCANCELED - Denotes that the campaign has been permanently canceled, such as when an advertising account is permanently closed.\nDRAFT - Denotes that the campaign is still being edited and not eligible for serving. Some validation will be postponed until the campaign is activated.\nPENDING_DELETION - Denotes that the campaign has been requested to be deleted that is currently pending.\nREMOVED - Denotes that the campaign was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "TEXT_AD - Text-based ads that show up in the right column or top of the page on LinkedIn.\nSPONSORED_UPDATES - Native ads that promote a company's content updates in the LinkedIn feed.\nSPONSORED_INMAILS - Personalized messages with a call-to-action button delivered to a LinkedIn's member inbox.\nDYNAMIC - Ads that are dynamically personalized.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "This value is used as one of the following: amount to bid (for manual bidding), amount which is the target cost (for target cost bidding) per click, impression, or other event depending on the pricing model, or cost cap (for cost cap bidding). The amount of money as a real number string. The amount should be non-negative if the bidding strategy is manual, target cost, or cost cap bidding. The default is 0 with the currency code set to match that of the associated account.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Amount to bid per click, impression, or other event depending on the pricing model. The default is 0 with the currency code set to match that of the associated account. ISO currency code.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"linkedin_ad_campaign_history_data\"", "created_at": 1734462186.8170428}, "source.linkedin_source.linkedin_ads.campaign_group_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_group_history", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin_ads.campaign_group_history", "fqn": ["linkedin_source", "linkedin_ads", "campaign_group_history"], "source_name": "linkedin_ads", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_campaign_group_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a 'version' of a campaign group.", "columns": {"id": {"name": "id", "description": "Unique internal ID representing the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account the campaign group belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The timestamp of when the campaign group was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "A label for the campaign group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "backfilled": {"name": "backfilled", "description": "Flag that denotes whether the campaign group was created organically or to backfill existing campaigns. This is a read-only field set by the system. Default = false", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_start": {"name": "run_schedule_start", "description": "Represents the inclusive (greater than or equal to) date when to start running the associated campaigns under this campaign group. This field is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "run_schedule_end": {"name": "run_schedule_end", "description": "Represents the exclusive (strictly less than) date when to stop running the associated campaigns under this campaign group. If this field is unset, it indicates an open range with no end date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of campaign group. Possible values are: ACTIVE - Denotes that the campaign group is capable of serving ads, subject to run date and budget limitations (as well as any other limitations at the account or campaign level). ARCHIVED - Denotes that the campaign group is presently inactive, and should mostly be hidden in the UI until un-archived. CANCELLED - Denotes that the campaign group has been permanently canceled and cannot be reactivated. Not a settable status. DRAFT - Denotes that the campaign group is in a preliminary state and should temporarily not be served. PAUSED - Denotes that the campaign group meets all requirements to be served, but temporarily should not be. PENDING_DELETION - Denotes that the campaign group has been requested to be deleted that is currently pending. REMOVED - Denoted that the campaign group was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"linkedin_ad_campaign_group_history_data\"", "created_at": 1734462186.8171608}, "source.linkedin_source.linkedin_ads.account_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "account_history", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin_ads.account_history", "fqn": ["linkedin_source", "linkedin_ads", "account_history"], "source_name": "linkedin_ads", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_account_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a 'version' of an account.", "columns": {"id": {"name": "id", "description": "Unique internal ID representing the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_modified_time": {"name": "last_modified_time", "description": "The timestamp of when the version was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The timestamp of when the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "A label for the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The ISO 4217 currency code of the account, such as 'USD' for United States Dollar (default).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "version_tag": {"name": "version_tag", "description": "An integer representation of the version of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notified_on_campaign_optimization": {"name": "notified_on_campaign_optimization", "description": "Boolean (default=false) indicating if the campaign contact is notified about campaign optimization opportunities", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notified_on_creative_approval": {"name": "notified_on_creative_approval", "description": "Boolean (default=false) indicating if the creative contact is notified when a creative has been reviewed and approved", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notified_on_creative_rejection": {"name": "notified_on_creative_rejection", "description": "Boolean (default=false) indicating if the creative contact is notified when a creative has been rejected due to content", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notified_on_end_of_campaign": {"name": "notified_on_end_of_campaign", "description": "Boolean (default=false) indicating if the campaign contact is notified when an associated campaign has been completed", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "ACTIVE - Account is active; this is the default state\nCANCELLED - Account has been permanently cancelled\nDRAFT - Account is in draft status, meaning it's not yet fully set up and it is not serving\nPENDING_DELETION - Denotes that the account has been requested to be deleted that is currently pending\nREMOVED - Denotes that the account was deleted, but must remain fetchable due to the existence of performance data.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "BUSINESS - This is the only value allowed when creating accounts through the API.\nENTERPRISE - This value cannot be used to create accounts through the API and is reserved for accounts created by LinkedIn's internal ad operations systems.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"linkedin_ad_account_history_data\"", "created_at": 1734462186.81727}, "source.linkedin_source.linkedin_ads.ad_analytics_by_campaign": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_analytics_by_campaign", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin_ads.ad_analytics_by_campaign", "fqn": ["linkedin_source", "linkedin_ads", "ad_analytics_by_campaign"], "source_name": "linkedin_ads", "source_description": "", "loader": "fivetran", "identifier": "linkedin_ad_analytics_by_campaign_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance of ads at the campaign level.", "columns": {"campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "day": {"name": "day", "description": "The day of the activity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The count of chargeable clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "This is the count of \"impressions\" for Direct Ads and Sponsored Updates and \"sends\" for InMails.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_in_local_currency": {"name": "cost_in_local_currency", "description": "The cost of the ads in the local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_in_usd": {"name": "cost_in_usd", "description": "The cost of the ads in the USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_value_in_local_currency": {"name": "conversion_value_in_local_currency", "description": "The value generated by your conversions, displayed in your LinkedIn account's local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_website_conversions": {"name": "external_website_conversions", "description": "The actions taken on your website that you've defined as valuable to your business after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "one_click_leads": {"name": "one_click_leads", "description": "Leads submitted after clicking on LinkedIn ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"linkedin_ad_analytics_by_campaign_data\"", "created_at": 1734462186.817376}, "source.google_ads_source.google_ads.ad_stats": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_stats", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.ad_stats", "fqn": ["google_ads_source", "google_ads", "ad_stats"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_stats_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of an ad in Google Ads broken down to the ad network, device type, and ad group criterion.", "columns": {"customer_id": {"name": "customer_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group": {"name": "ad_group", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_ad_group_criterion": {"name": "keyword_ad_group_criterion", "description": "The ad group which the keyword criterion resides.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_micros": {"name": "cost_micros", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_ad_stats_data\"", "created_at": 1734462186.817494}, "source.google_ads_source.google_ads.ad_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_history", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.ad_history", "fqn": ["google_ads_source", "google_ads", "ad_history"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of an ad in Google Ads.", "columns": {"ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The display url of the ad that is being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of the ad in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the Ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "final_urls": {"name": "final_urls", "description": "A list of urls that are used for the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "Boolean representing whether the state of the record is currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_ad_history_data\"", "created_at": 1734462186.817599}, "source.google_ads_source.google_ads.ad_group_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_group_history", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.ad_group_history", "fqn": ["google_ads_source", "google_ads", "ad_group_history"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_group_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of an ad group in Google Ads.", "columns": {"id": {"name": "id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of the ad group in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "Boolean representing whether the state of the record is currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_ad_group_history_data\"", "created_at": 1734462186.817705}, "source.google_ads_source.google_ads.campaign_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_history", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.campaign_history", "fqn": ["google_ads_source", "google_ads", "campaign_history"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a campaign in Google Ads.", "columns": {"id": {"name": "id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertising_channel_type": {"name": "advertising_channel_type", "description": "The type of advertising channel being used by the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertising_channel_subtype": {"name": "advertising_channel_subtype", "description": "The advertising channel subtype that is being used by the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "Status of the ads and how they are currently being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "General status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tracking_url_template": {"name": "tracking_url_template", "description": "The tracking url template being used throughout the campaign ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "Boolean representing whether the state of the record is currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_campaign_history_data\"", "created_at": 1734462186.817822}, "source.google_ads_source.google_ads.account_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "account_history", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.account_history", "fqn": ["google_ads_source", "google_ads", "account_history"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_account_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a historical version of an account in Google Ads.", "columns": {"id": {"name": "id", "description": "The ID of the Account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency of the spend reported.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "auto_tagging_enabled": {"name": "auto_tagging_enabled", "description": "Boolean indicating if auto tagging is enabled on the account ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone of the account ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "descriptive_name": {"name": "descriptive_name", "description": "The descriptive name of the Customer account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "Boolean representing whether the state of the record is currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_account_history_data\"", "created_at": 1734462186.8179252}, "source.google_ads_source.google_ads.ad_group_criterion_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_group_criterion_history", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.ad_group_criterion_history", "fqn": ["google_ads_source", "google_ads", "ad_group_criterion_history"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_group_criterion_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a historical version of an ad group criterion in Google Ads.", "columns": {"id": {"name": "id", "description": "Unique identifier of the ad group criterion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_campaign_id": {"name": "base_campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of when the record was last updated in Google Ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of ad group criterion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad group criterion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_match_type": {"name": "keyword_match_type", "description": "The match type which dictate how closely the keyword needs to match with the user\u2019s search query so that the ad can be considered for the auction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The text used within the keyword criterion that is being matched against.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "Boolean representing whether the state of the record is currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_ad_group_criterion_history_data\"", "created_at": 1734462186.81803}, "source.google_ads_source.google_ads.ad_group_stats": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_group_stats", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.ad_group_stats", "fqn": ["google_ads_source", "google_ads", "ad_group_stats"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_ad_group_stats_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of an ad group in Google Ads broken down to the ad network and device type.", "columns": {"customer_id": {"name": "customer_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_micros": {"name": "cost_micros", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_ad_group_stats_data\"", "created_at": 1734462186.818143}, "source.google_ads_source.google_ads.campaign_stats": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_stats", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.campaign_stats", "fqn": ["google_ads_source", "google_ads", "campaign_stats"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_campaign_stats_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a campaign in Google Ads broken down to the ad network and device type.", "columns": {"customer_id": {"name": "customer_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_micros": {"name": "cost_micros", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_campaign_stats_data\"", "created_at": 1734462186.818273}, "source.google_ads_source.google_ads.keyword_stats": {"database": "postgres", "schema": "zz_ad_reporting", "name": "keyword_stats", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.keyword_stats", "fqn": ["google_ads_source", "google_ads", "keyword_stats"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_keyword_stats_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a keyword in Google Ads.", "columns": {"customer_id": {"name": "customer_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "The unique ID of the keyword record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_criterion_criterion_id": {"name": "ad_group_criterion_criterion_id", "description": "Reference to the ad group criterion used for the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_micros": {"name": "cost_micros", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_keyword_stats_data\"", "created_at": 1734462186.8183832}, "source.google_ads_source.google_ads.account_stats": {"database": "postgres", "schema": "zz_ad_reporting", "name": "account_stats", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.account_stats", "fqn": ["google_ads_source", "google_ads", "account_stats"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "google_ads_account_stats_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of an account in Google Ads broken down to the ad network and device type.", "columns": {"customer_id": {"name": "customer_id", "description": "The Customer ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date being reported on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_network_type": {"name": "ad_network_type", "description": "The Google Ad network type used across the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device": {"name": "device", "description": "Account ad performance per unique device where the ads were served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_micros": {"name": "cost_micros", "description": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Count of how often your ad has appeared on a search results page or website on the Google Network.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions_value": {"name": "conversions_value", "description": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_through_conversions": {"name": "view_through_conversions", "description": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"google_ads_account_stats_data\"", "created_at": 1734462186.81849}, "source.apple_search_ads_source.apple_search_ads.ad_group_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_group_history", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_history", "fqn": ["apple_search_ads_source", "apple_search_ads", "ad_group_history"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_ad_group_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of an ad group in Apple Search Ads.", "columns": {"modification_time": {"name": "modification_time", "description": "Timestamp of when the ad group object was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Timestamp of designated ad group start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The designated ad group end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Ad group name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad group, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_ad_group_history_data\"", "created_at": 1734462186.8185952}, "source.apple_search_ads_source.apple_search_ads.ad_group_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_group_report", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_report", "fqn": ["apple_search_ads_source", "apple_search_ads", "ad_group_report"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_ad_group_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of an ad group in Apple Search Ads.", "columns": {"ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_amount": {"name": "local_spend_amount", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_currency": {"name": "local_spend_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_ad_group_report_data\"", "created_at": 1734462186.8186991}, "source.apple_search_ads_source.apple_search_ads.ad_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_history", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_history", "fqn": ["apple_search_ads_source", "apple_search_ads", "ad_history"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_ad_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of an ad in Apple Search Ads.", "columns": {"creation_time": {"name": "creation_time", "description": "Timestamp of when ad was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modification_time": {"name": "modification_time", "description": "Timestamp of when the ad object was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "org_id": {"name": "org_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Ad name associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Ad ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the ad, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_ad_history_data\"", "created_at": 1734462186.8188019}, "source.apple_search_ads_source.apple_search_ads.ad_level_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_level_report", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_level_report", "fqn": ["apple_search_ads_source", "apple_search_ads", "ad_level_report"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_ad_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of an ad in Apple Search Ads.", "columns": {"date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "Ad ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_amount": {"name": "local_spend_amount", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_currency": {"name": "local_spend_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_ad_report_data\"", "created_at": 1734462186.8189068}, "source.apple_search_ads_source.apple_search_ads.campaign_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_history", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_history", "fqn": ["apple_search_ads_source", "apple_search_ads", "campaign_history"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a campaign in Apple Search Ads.", "columns": {"modification_time": {"name": "modification_time", "description": "Timestamp of when the campaign object was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "The designated ad group start time (ad group with the earliest start time associated with this campaign).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The designated campaign end time (ad group with the latest start time associated with this campaign).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Campaign name for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the campaign, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_campaign_history_data\"", "created_at": 1734462186.819007}, "source.apple_search_ads_source.apple_search_ads.campaign_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_report", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_report", "fqn": ["apple_search_ads_source", "apple_search_ads", "campaign_report"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_campaign_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a campaign in Apple Search Ads.", "columns": {"id": {"name": "id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_amount": {"name": "local_spend_amount", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_currency": {"name": "local_spend_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_campaign_report_data\"", "created_at": 1734462186.81911}, "source.apple_search_ads_source.apple_search_ads.keyword_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "keyword_history", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_history", "fqn": ["apple_search_ads_source", "apple_search_ads", "keyword_history"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_keyword_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a keyword in Apple Search Ads.", "columns": {"modification_time": {"name": "modification_time", "description": "Timestamp of when the keyword object was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount": {"name": "bid_amount", "description": "The bid amount to display your ad for the matching text value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_currency": {"name": "bid_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; EXACT or BROAD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The current status of the keyword, values include ENABLED and PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "text": {"name": "text", "description": "The word or phrase to match in user searches, to show respective ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_keyword_history_data\"", "created_at": 1734462186.819215}, "source.apple_search_ads_source.apple_search_ads.keyword_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "keyword_report", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_report", "fqn": ["apple_search_ads_source", "apple_search_ads", "keyword_report"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_keyword_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a keyword in Apple Search Ads.", "columns": {"id": {"name": "id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_amount": {"name": "local_spend_amount", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_currency": {"name": "local_spend_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_keyword_report_data\"", "created_at": 1734462186.819319}, "source.apple_search_ads_source.apple_search_ads.organization": {"database": "postgres", "schema": "zz_ad_reporting", "name": "organization", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.organization", "fqn": ["apple_search_ads_source", "apple_search_ads", "organization"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents an organization in Apple Search Ads.", "columns": {"organization_id": {"name": "organization_id", "description": "Organization ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Specified currency for respective organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payment_model": {"name": "payment_model", "description": "Values include 'LOC', 'PAYG' or (payment method hasn't been set).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "Organization default timezone; values can be ORTZ or UTC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_organization_data\"", "created_at": 1734462186.8194182}, "source.apple_search_ads_source.apple_search_ads.search_term_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "search_term_report", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.search_term_report", "fqn": ["apple_search_ads_source", "apple_search_ads", "search_term_report"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "apple_search_search_term_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a search term in Apple Search Ads.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "A Fivetran internal unique id that helps us avoid duplicate rows in primary keyless tables.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "Ad group ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Ad group name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount_amount": {"name": "bid_amount_amount", "description": "The bid amount to display your ad for the matching text value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount_currency": {"name": "bid_amount_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword": {"name": "keyword", "description": "The word or phrase to match in user searches, to show respective ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_display_status": {"name": "keyword_display_status", "description": "The keyword display status can either be ACTIVE or PAUSED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Keyword ID associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_amount": {"name": "local_spend_amount", "description": "The sum of costs associated with the number of impressions served; Spend is measured in the currency used in the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_spend_currency": {"name": "local_spend_currency", "description": "This currency value should match the respective organization's currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Controls how ads are matched to user searches; values include EXACT, BROAD or AUTO.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_term_source": {"name": "search_term_source", "description": "The search term source can either be TARGETED or AUTO; if this value is AUTO so will match_type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_term_text": {"name": "search_term_text", "description": "The word or phrase to match of user searches.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversions": {"name": "conversions", "description": "Total installs resulting from a view or a tap.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Number of times your ad appeared in App Store search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "taps": {"name": "taps", "description": "The number of times ad was tapped by users within the reporting time period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_downloads": {"name": "new_downloads", "description": "App downloads from new users who have never before installed the respective app.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "redownloads": {"name": "redownloads", "description": "Occurs when a user downloads respective app, deletes it, and downloads the same app again following a tap on an ad on the App Store, or downloads the same app to an additional device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"apple_search_search_term_report_data\"", "created_at": 1734462186.819536}, "source.pinterest_source.pinterest_ads.pin_promotion_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "pin_promotion_report", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_report", "fqn": ["pinterest_source", "pinterest_ads", "pin_promotion_report"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_pin_promotion_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a Pinterest Pin promotion.", "columns": {"date": {"name": "date", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_1": {"name": "impression_1", "description": "The number of paid pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_2": {"name": "impression_2", "description": "The number of earned pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_1": {"name": "clickthrough_1", "description": "The number of paid pin clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_2": {"name": "clickthrough_2", "description": "The number of earned outbound clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_in_micro_dollar": {"name": "spend_in_micro_dollar", "description": "The amount of spend in micro dollars that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value_in_micro_dollar": {"name": "total_conversions_value_in_micro_dollar", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. The value is expressed in microdollars, where one microdollar is one-millionth of a US dollar. Example: If the total order value from conversions is $50,000, this would be represented as 50,000,000,000 microdollars.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_pin_promotion_report_data\"", "created_at": 1734462186.819669}, "source.pinterest_source.pinterest_ads.pin_promotion_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "pin_promotion_history", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_history", "fqn": ["pinterest_source", "pinterest_ads", "pin_promotion_history"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_pin_promotion_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a Pinterest Pin promotion.", "columns": {"id": {"name": "id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "Pin creation time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "destination_url": {"name": "destination_url", "description": "Pin destination URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Pin promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_id": {"name": "pin_id", "description": "Original pin ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the Pin promotion. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_type": {"name": "creative_type", "description": "The creative type. \nOne of \"APP\", \"APP_VIDEO\", \"BOARD\", \"CAROUSEL\", \"CINEMATIC\", \"COMMERCE\", \"MAX_VIDEO\", \"NATIVE_VIDEO\", \"REGULAR\", \n\"SEARCH_PROMINENCE\", \"SEARCH_PROMINENCE_CAROUSEL\", \"SHOPPING\", \"SHOP_THE_PIN\", \"THIRD_PARTY\", or \"VIDEO\".\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_pin_promotion_history_data\"", "created_at": 1734462186.819778}, "source.pinterest_source.pinterest_ads.campaign_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_history", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.campaign_history", "fqn": ["pinterest_source", "pinterest_ads", "campaign_history"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a Pinterest Campaign.", "columns": {"id": {"name": "id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "Campaign creation time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Campaign name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the Campaign. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_ad_group_budget_in_micro_currency": {"name": "default_ad_group_budget_in_micro_currency", "description": "When transitioning from campaign budget optimization to non-campaign budget optimization, the default_ad_group_budget_in_micro_currency will propagate to each child ad groups daily budget. Unit is micro currency of the associated advertiser account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_automated_campaign": {"name": "is_automated_campaign", "description": "Specifies whether the campaign was created in the automated campaign flow", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_campaign_budget_optimization": {"name": "is_campaign_budget_optimization", "description": "Determines if a campaign automatically generate ad-group level budgets given a campaign budget to maximize campaign outcome. When transitioning from non-cbo to cbo, all previous child ad group budget will be cleared.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_flexible_daily_budgets": {"name": "is_flexible_daily_budgets", "description": "Determine if a campaign has flexible daily budgets setup.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_campaign_history_data\"", "created_at": 1734462186.819901}, "source.pinterest_source.pinterest_ads.ad_group_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_group_history", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.ad_group_history", "fqn": ["pinterest_source", "pinterest_ads", "ad_group_history"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ad_group_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a Pinterest Ad Group.", "columns": {"id": {"name": "id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "Ad group creation time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Ad group name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the Ad group. One of \"ACTIVE\", \"ARCHIVED\", \"PAUSED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Ad group start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "Ad group end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pacing_delivery_type": {"name": "pacing_delivery_type", "description": "Ad group pacing delivery type. With ACCELERATED, an ad group budget is spent as fast as possible. With STANDARD, an ad group budget is spent smoothly over a day. When using CBO, only the STANDARD pacing delivery type is allowed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement_group": {"name": "placement_group", "description": "The placement group. \"ALL\", \"SEARCH\", \"BROWSE\", or \"OTHER\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary_status": {"name": "summary_status", "description": "Summary status. \"RUNNING\", \"PAUSED\", \"NOT_STARTED\", \"COMPLETED\", \"ADVERTISER_DISABLED\", \"ARCHIVED\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_ad_group_history_data\"", "created_at": 1734462186.82003}, "source.pinterest_source.pinterest_ads.ad_group_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_group_report", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.ad_group_report", "fqn": ["pinterest_source", "pinterest_ads", "ad_group_report"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_ad_group_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a Pinterest ad group.", "columns": {"date": {"name": "date", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_1": {"name": "impression_1", "description": "The number of paid pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_2": {"name": "impression_2", "description": "The number of earned pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_1": {"name": "clickthrough_1", "description": "The number of paid pin clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_2": {"name": "clickthrough_2", "description": "The number of earned outbound clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_in_micro_dollar": {"name": "spend_in_micro_dollar", "description": "The amount of spend in micro dollars that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value_in_micro_dollar": {"name": "total_conversions_value_in_micro_dollar", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. The value is expressed in microdollars, where one microdollar is one-millionth of a US dollar. Example: If the total order value from conversions is $50,000, this would be represented as 50,000,000,000 microdollars.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_ad_group_report_data\"", "created_at": 1734462186.820159}, "source.pinterest_source.pinterest_ads.advertiser_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "advertiser_history", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.advertiser_history", "fqn": ["pinterest_source", "pinterest_ads", "advertiser_history"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_advertiser_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a Pinterest advertiser.", "columns": {"id": {"name": "id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country code where the advertiser is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "Timestamp of when a record was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency code which the a", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_time": {"name": "updated_time", "description": "Timestamp of when a record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owner_username": {"name": "owner_username", "description": "Advertiser's username.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owner_user_id": {"name": "owner_user_id", "description": "Unique identifier of the owner user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "permissions": {"name": "permissions", "description": "The permissions associated with this account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_advertiser_history_data\"", "created_at": 1734462186.8202722}, "source.pinterest_source.pinterest_ads.advertiser_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "advertiser_report", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.advertiser_report", "fqn": ["pinterest_source", "pinterest_ads", "advertiser_report"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_advertiser_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a Pinterest advertiser.", "columns": {"date": {"name": "date", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_1": {"name": "impression_1", "description": "The number of paid pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_2": {"name": "impression_2", "description": "The number of earned pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_1": {"name": "clickthrough_1", "description": "The number of paid pin clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_2": {"name": "clickthrough_2", "description": "The number of earned outbound clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_in_micro_dollar": {"name": "spend_in_micro_dollar", "description": "The amount of spend in micro dollars that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value_in_micro_dollar": {"name": "total_conversions_value_in_micro_dollar", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. The value is expressed in microdollars, where one microdollar is one-millionth of a US dollar. Example: If the total order value from conversions is $50,000, this would be represented as 50,000,000,000 microdollars.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_advertiser_report_data\"", "created_at": 1734462186.820381}, "source.pinterest_source.pinterest_ads.campaign_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_report", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.campaign_report", "fqn": ["pinterest_source", "pinterest_ads", "campaign_report"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_campaign_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a Pinterest campaign.", "columns": {"date": {"name": "date", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_status": {"name": "campaign_status", "description": "Status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_1": {"name": "impression_1", "description": "The number of paid pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_2": {"name": "impression_2", "description": "The number of earned pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_1": {"name": "clickthrough_1", "description": "The number of paid pin clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_2": {"name": "clickthrough_2", "description": "The number of earned outbound clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_in_micro_dollar": {"name": "spend_in_micro_dollar", "description": "The amount of spend in micro dollars that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value_in_micro_dollar": {"name": "total_conversions_value_in_micro_dollar", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. The value is expressed in microdollars, where one microdollar is one-millionth of a US dollar. Example: If the total order value from conversions is $50,000, this would be represented as 50,000,000,000 microdollars.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_campaign_report_data\"", "created_at": 1734462186.8204942}, "source.pinterest_source.pinterest_ads.keyword_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "keyword_history", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.keyword_history", "fqn": ["pinterest_source", "pinterest_ads", "keyword_history"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_keyword_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a Pinterest keyword.", "columns": {"id": {"name": "id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "value": {"name": "value", "description": "The text value that makes upd the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "The unique identifier of the record within the Fivetran synced table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "archived": {"name": "archived", "description": "Boolean indicating if the keyword is archived.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid": {"name": "bid", "description": "Bid amount set for the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of match the keyword is tied to. Either Exact or Broad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_type": {"name": "parent_type", "description": "Identifier of what grain the parent type is. Ad group or campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_keyword_history_data\"", "created_at": 1734462186.8206022}, "source.pinterest_source.pinterest_ads.keyword_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "keyword_report", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.keyword_report", "fqn": ["pinterest_source", "pinterest_ads", "keyword_report"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pinterest_keyword_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of a Pinterest key word.", "columns": {"date": {"name": "date", "description": "The performance date of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keyword_id": {"name": "keyword_id", "description": "Unique identifier of the keyword.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pin_promotion_id": {"name": "pin_promotion_id", "description": "The ID of the related Pin promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the related Ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_group_status": {"name": "ad_group_status", "description": "Status of the ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related Campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "The ID of the related Advertiser.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_1": {"name": "impression_1", "description": "The number of paid pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_2": {"name": "impression_2", "description": "The number of earned pin impressions that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_1": {"name": "clickthrough_1", "description": "The number of paid pin clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clickthrough_2": {"name": "clickthrough_2", "description": "The number of earned outbound clicks that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend_in_micro_dollar": {"name": "spend_in_micro_dollar", "description": "The amount of spend in micro dollars that occurred on the day of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions": {"name": "total_conversions", "description": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_quantity": {"name": "total_conversions_quantity", "description": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_conversions_value_in_micro_dollar": {"name": "total_conversions_value_in_micro_dollar", "description": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. The value is expressed in microdollars, where one microdollar is one-millionth of a US dollar. Example: If the total order value from conversions is $50,000, this would be represented as 50,000,000,000 microdollars.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"pinterest_keyword_report_data\"", "created_at": 1734462186.820719}, "source.tiktok_ads_source.tiktok_ads.advertiser": {"database": "postgres", "schema": "zz_ad_reporting", "name": "advertiser", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.advertiser", "fqn": ["tiktok_ads_source", "tiktok_ads", "advertiser"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_advertiser_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents data for one advertiser.", "columns": {"id": {"name": "id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "address": {"name": "address", "description": "Advertiser address information", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Account available balance", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cellphone_number": {"name": "cellphone_number", "description": "Contact mobile number, desensitised data. This is the newest version of the field `phone_number`, which was renamed after the Tiktok Ads v1.3 API release.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company": {"name": "company", "description": "Advertiser's company name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contacter": {"name": "contacter", "description": "Contact Person", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The advertiser's country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "create_time": {"name": "create_time", "description": "Advertiser's create time", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Type of currency used by advertisers", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Brand description, i.e. promotional content", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email": {"name": "email", "description": "Advertiser contact email, desensitised data", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "industry": {"name": "industry", "description": "Advertiser industry category", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "Language used by advertisers", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "license_no": {"name": "license_no", "description": "License number", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "license_url": {"name": "license_url", "description": "License preview address, the link is valid for an hour by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Advertiser name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "phone_number": {"name": "phone_number", "description": "Contact mobile number, desensitised data. IMPORTANT: This field will not be populated for connectors utilizing the Tiktok Ads v1.3 API version, as the column was renamed. The new column name is `cellphone_number`.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "promotion_area": {"name": "promotion_area", "description": "Operation area", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason": {"name": "reason", "description": "Reason for rejection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role": {"name": "role", "description": "Advertiser role", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Advertiser status", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "telephone": {"name": "telephone", "description": "Fixed phone number, desensitised data IMPORTANT: This field will not be populated for connectors utilizing the Tiktok Ads v1.3 API version, as the column was renamed. The new column name is `telephone_number`.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "telephone_number": {"name": "telephone_number", "description": "Fixed phone number, desensitised data This is the newest version of the field `telephone`, which was renamed after the Tiktok Ads v1.3 API release.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Ad account time zone including GMT offset", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"tiktok_advertiser_data\"", "created_at": 1734462186.8208692}, "source.tiktok_ads_source.tiktok_ads.campaign_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_history", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_history", "fqn": ["tiktok_ads_source", "tiktok_ads", "campaign_history"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a TikTok campaign.", "columns": {"campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget": {"name": "budget", "description": "Campaign budget", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_mode": {"name": "budget_mode", "description": "Budget type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Campaign name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_type": {"name": "campaign_type", "description": "Campaign Type, indicates the campaign is a regular campaign or iOS 14 campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "create_time": {"name": "create_time", "description": "Time at which the campaign was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_new_structure": {"name": "is_new_structure", "description": "Whether the campaign is a new structure (for the same campaign, the structure of campaign, adgroups and ads are the same)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective_type": {"name": "objective_type", "description": "Advertising objective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opt_status": {"name": "opt_status", "description": "Operation status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Campaign status", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "split_test_variable": {"name": "split_test_variable", "description": "Split Test variables. Optional values; TARGETING, BIDDING_OPTIMIZATION , CREATIVE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"tiktok_campaign_history_data\"", "created_at": 1734462186.8209789}, "source.tiktok_ads_source.tiktok_ads.adgroup_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "adgroup_history", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_history", "fqn": ["tiktok_ads_source", "tiktok_ads", "adgroup_history"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_adgroup_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a TikTok ad group.", "columns": {"adgroup_id": {"name": "adgroup_id", "description": "Ad group ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The Ad group's campaign ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "action_categories": {"name": "action_categories", "description": "IDs of the action categories (behaviors) that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "action_days": {"name": "action_days", "description": "The number of days of the time period to include action from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adgroup_name": {"name": "adgroup_name", "description": "Ad group name. Character limit is 512 and cannot contain emoji.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_groups": {"name": "age_groups", "description": "Age groups you want to target. This is the newest version of the field `age`, which was renamed after the Tiktok Ads v1.3 API release.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "android_osv": {"name": "android_osv", "description": "Minimum Android version.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_download_url": {"name": "app_download_url", "description": "App download link", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_id": {"name": "app_id", "description": "The Application id of the promoted app", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_name": {"name": "app_name", "description": "App name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_type": {"name": "app_type", "description": "App type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "audience": {"name": "audience", "description": "A list of audience IDs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "audience_type": {"name": "audience_type", "description": "Audience Type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid": {"name": "bid", "description": "CPC, CPM bidding, oCPM learning bidding", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_type": {"name": "bid_type", "description": "Bidding Strategy", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "billing_event": {"name": "billing_event", "description": "Bid method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget": {"name": "budget", "description": "Ad budget. Returns 0.0 when Campaign Budget Optimization (budget_optimize_switch) is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_mode": {"name": "budget_mode", "description": "Budget mode. This field will be ignored when Campaign Budget Optimization (budget_optimize_switch) is enabled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "carriers": {"name": "carriers", "description": "Carriers that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "Ad group category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_tracking_url": {"name": "click_tracking_url", "description": "Click monitoring URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "connection_type": {"name": "connection_type", "description": "Device connection types that you want to target. Default; unlimited.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_bid": {"name": "conversion_bid", "description": "oCPM conversion bid", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpv_video_duration": {"name": "cpv_video_duration", "description": "Video playback duration, required if optimize_goal is VIDEO_VIEW. Allowed values; SIX_SECONDS (video playback 6s), TWO_SECONDS (video playback 2s)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_material_mode": {"name": "creative_material_mode", "description": "Creative delivery mode.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dayparting": {"name": "dayparting", "description": "Ad delivery period, the default is always and the format is 48 * 7 character string, represented by 0 or 1. > That is, with half an hour as the minimum granularity, a day (24 hours) is divided by the minimum granularity(30 mins) from Monday to Sunday. Resulting in a 48*7 format.0 represents not to be delivered, 1 represents delivery. no transmission, full transmission 0, full transmission 1 all represent full time delivery", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deep_bid_type": {"name": "deep_bid_type", "description": "Bidding strategy for in-app events.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deep_cpabid": {"name": "deep_cpabid", "description": "Deep bid", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deep_external_action": {"name": "deep_external_action", "description": "Deep conversion event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Display name of ad group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "enable_inventory_filter": {"name": "enable_inventory_filter", "description": "Inventory filtering (Unsafe videos will not be displayed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "excluded_audience": {"name": "excluded_audience", "description": "A list of audience ID to be excluded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_action": {"name": "external_action", "description": "Conversion event for the ad group. It is required when the promoted object is an app with tracking urls, or when pixel_id is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fallback_type": {"name": "fallback_type", "description": "Fallback Type. If the audience do not have the app installed, you can have them fall back to install the app, or to view a specific web page. Not applicable for Deferred Deeplink. Allowed values; APP_INSTALL, WEBSITE, UNSET. If website is chosen, you need to specify the url via landing_page_url field.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "frequency, together with frequency_schedule, controls how often people see your ad (only available for REACH ads). For example, frequency = 2 frequency_schedule = 3 means \"show ads no more than twice every 3 day\".\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency_schedule": {"name": "frequency_schedule", "description": "frequency, together with frequency, controls how often people see your ad (only available for REACH ads).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_tracking_url": {"name": "impression_tracking_url", "description": "Display monitoring URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "interest_category_v2": {"name": "interest_category_v2", "description": "Interest classification. If the interest is specified, users that do not meet interest target will be excluded during delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ios_osv": {"name": "ios_osv", "description": "Minimum iOS version.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_comment_disable": {"name": "is_comment_disable", "description": "Whether to allow comments on your ads on TikTok, Vigo, Helo.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hfss": {"name": "is_hfss", "description": "Whether the promoted content is HFSS foods (foods that are high in fat, salt, or sugar).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_new_structure": {"name": "is_new_structure", "description": "Whether the campaign is a new structure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "keywords": {"name": "keywords", "description": "Keywords used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "landing_page_url": {"name": "landing_page_url", "description": "Landing page URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "languages": {"name": "languages", "description": "Codes of the languages that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "IDs of the locations that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "open_url": {"name": "open_url", "description": "The specific location where you want your audience to go if they have your app installed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "open_url_type": {"name": "open_url_type", "description": "The open URL type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operation_system": {"name": "operation_system", "description": "Device operating systems that you want to target.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opt_status": {"name": "opt_status", "description": "Operation status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimize_goal": {"name": "optimize_goal", "description": "Optimization goal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pacing": {"name": "pacing", "description": "You can choose between PACING_MODE_SMOOTH and PACING_MODE_FAST. For PACING_MODE_SMOOTH, the budget is allocated evenly within the scheduled time. PACING_MODE_FAST would consume budget and produce results as soon as possible. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "package": {"name": "package", "description": "Package name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pangle_block_app_list_id": {"name": "pangle_block_app_list_id", "description": "Pangle app block list ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pixel_id": {"name": "pixel_id", "description": "Pixel ID. Only application for landing pages.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "The apps where you want to deliver your ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement_type": {"name": "placement_type", "description": "Placement type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_image": {"name": "profile_image", "description": "Avatar URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_end_time": {"name": "schedule_end_time", "description": "Ad delivery end time (UTC+0). Format should be YYYY-MM-DD HH:MM:SS", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_start_time": {"name": "schedule_start_time", "description": "Ad delivery start time (UTC+0). Format should be YYYY-MM-DD HH:MM:SS", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_type": {"name": "schedule_type", "description": "The schedule type, which can be either SCHEDULE_START_END or SCHEDULE_FROM_NOW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "skip_learning_phase": {"name": "skip_learning_phase", "description": "Whether to skip the learning stage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "statistic_type": {"name": "statistic_type", "description": "conversion bid statistic type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Ad group status", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_actions": {"name": "video_actions", "description": "Number of video actions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_download": {"name": "video_download", "description": "Whether users can download your video ads on TikTok(cannot be updated once created).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"tiktok_adgroup_history_data\"", "created_at": 1734462186.821175}, "source.tiktok_ads_source.tiktok_ads.ad_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_history", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_history", "fqn": ["tiktok_ads_source", "tiktok_ads", "ad_history"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_ad_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of a TikTok ad.", "columns": {"ad_id": {"name": "ad_id", "description": "Ad ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Time the record was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adgroup_id": {"name": "adgroup_id", "description": "Ad group ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_id": {"name": "advertiser_id", "description": "Advertiser ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Campaign ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Ad Name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_text": {"name": "ad_text", "description": "The ad text.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_name": {"name": "app_name", "description": "The display name of app download ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "call_to_action": {"name": "call_to_action", "description": "Call to action values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "click_tracking_url": {"name": "click_tracking_url", "description": "Click monitoring URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "create_time": {"name": "create_time", "description": "Time at which the ad was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The display name of landing page or pure exposure ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "image_ids": {"name": "image_ids", "description": "A list of image IDs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impression_tracking_url": {"name": "impression_tracking_url", "description": "Display monitoring URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_aco": {"name": "is_aco", "description": "Whether the ad is an automated ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_creative_authorized": {"name": "is_creative_authorized", "description": "Whether you grant displaying some of your ads in our TikTok For Business Creative Center. Only valid for non-US advertisers, the default value is false.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_new_structure": {"name": "is_new_structure", "description": "Whether the campaign is a new structure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "landing_page_url": {"name": "landing_page_url", "description": "Landing page URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "open_url": {"name": "open_url", "description": "The specific location where you want your audience to go if they have your app installed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opt_status": {"name": "opt_status", "description": "Operation status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "playable_url": {"name": "playable_url", "description": "Playable material url.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_image": {"name": "profile_image", "description": "Avatar URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Ad status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_id": {"name": "video_id", "description": "The video ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"tiktok_ad_history_data\"", "created_at": 1734462186.821301}, "source.tiktok_ads_source.tiktok_ads.ad_report_hourly": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_report_hourly", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_report_hourly", "fqn": ["tiktok_ads_source", "tiktok_ads", "ad_report_hourly"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_ad_report_hourly_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents data for each ad for each hour.", "columns": {"ad_id": {"name": "ad_id", "description": "Ad id", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_conversion": {"name": "cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_play_actions": {"name": "video_play_actions", "description": "The number of times your video starts to play. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_rate": {"name": "conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "result": {"name": "result", "description": "The number of times your ad achieved an outcome, based on the optimization goal you selected. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the results. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_cost_per_result": {"name": "real_time_cost_per_result", "description": "As a campaign may have different optimization goals, the total number of result is not supported in campaign section now, please go to the ad group section to view the cost per Result. (The total count is based on when the conversion actually happened.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_result": {"name": "real_time_result", "description": "The number of times your ad achieved an outcome, based on the optimization goal you selected. As a campaign may have different optimization goals, the total number of result is not supported in campaign section now , Please go to the ad group section to view the result. (The total count is based on when the conversion actually happened.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_view_p_100": {"name": "video_view_p_100", "description": "The number of times your video was played at 100% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion_rate": {"name": "real_time_conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is based on when the conversion actually happened.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_secondary_goal_result": {"name": "cost_per_secondary_goal_result", "description": "The average cost for each secondary goal result from your adverts. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_goal_result_rate": {"name": "secondary_goal_result_rate", "description": "The percentage of secondary goal results you achieved out of all of the installs of your adverts. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. The total count is calculated based on the time each ad impression occurred.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_1000_reached": {"name": "cost_per_1000_reached", "description": "The average cost to reach 1,000 unique users. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_cost_per_conversion": {"name": "real_time_cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is based on when the conversion actually happened.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits_rate": {"name": "profile_visits_rate", "description": "The rate of profile visits per impression the paid ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play": {"name": "average_video_play", "description": "The average time your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits the ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of new followers that were gained within 1 day of a user seeing a paid ad. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "result_rate": {"name": "result_rate", "description": "The percentage of results you achieved out of all of the views/clicks on your ads. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the result rate. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_goal_result": {"name": "secondary_goal_result", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_result": {"name": "cost_per_result", "description": "The average cost for each result from your ads. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the cost per result. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play_per_user": {"name": "average_video_play_per_user", "description": "The average time your video was played per person, including any time spent replaying the video. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_result_rate": {"name": "real_time_result_rate", "description": "As a campaign may have different optimization goals, the total number of result is not supported in campaign section now ,Please go to the ad group section to view the Result Rate. (The total count is based on when the conversion actually happened.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The estimated total amount of money you've spent on your campaign, ad group or ad during its schedule.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"tiktok_ad_report_hourly_data\"", "created_at": 1734462186.8217359}, "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_report_hourly", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly", "fqn": ["tiktok_ads_source", "tiktok_ads", "campaign_report_hourly"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_campaign_report_hourly_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents data for each campaign for each hour.", "columns": {"campaign_id": {"name": "campaign_id", "description": "Campaign id", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_conversion": {"name": "cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_play_actions": {"name": "video_play_actions", "description": "The number of times your video starts to play. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_rate": {"name": "conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "result": {"name": "result", "description": "The number of times your ad achieved an outcome, based on the optimization goal you selected. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the results. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_cost_per_result": {"name": "real_time_cost_per_result", "description": "As a campaign may have different optimization goals, the total number of result is not supported in campaign section now, please go to the ad group section to view the cost per Result. (The total count is based on when the conversion actually happened.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_result": {"name": "real_time_result", "description": "The number of times your ad achieved an outcome, based on the optimization goal you selected. As a campaign may have different optimization goals, the total number of result is not supported in campaign section now , Please go to the ad group section to view the result. (The total count is based on when the conversion actually happened.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_view_p_100": {"name": "video_view_p_100", "description": "The number of times your video was played at 100% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion_rate": {"name": "real_time_conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is based on when the conversion actually happened.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_secondary_goal_result": {"name": "cost_per_secondary_goal_result", "description": "The average cost for each secondary goal result from your adverts. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_goal_result_rate": {"name": "secondary_goal_result_rate", "description": "The percentage of secondary goal results you achieved out of all of the installs of your adverts. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. The total count is calculated based on the time each ad impression occurred.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_1000_reached": {"name": "cost_per_1000_reached", "description": "The average cost to reach 1,000 unique users. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_cost_per_conversion": {"name": "real_time_cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is based on when the conversion actually happened.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits_rate": {"name": "profile_visits_rate", "description": "The rate of profile visits per impression the paid ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play": {"name": "average_video_play", "description": "The average time your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits the ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of new followers that were gained within 1 day of a user seeing a paid ad. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "result_rate": {"name": "result_rate", "description": "The percentage of results you achieved out of all of the views/clicks on your ads. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the result rate. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_goal_result": {"name": "secondary_goal_result", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_result": {"name": "cost_per_result", "description": "The average cost for each result from your ads. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the cost per result. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play_per_user": {"name": "average_video_play_per_user", "description": "The average time your video was played per person, including any time spent replaying the video. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_result_rate": {"name": "real_time_result_rate", "description": "As a campaign may have different optimization goals, the total number of result is not supported in campaign section now ,Please go to the ad group section to view the Result Rate. (The total count is based on when the conversion actually happened.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The estimated total amount of money you've spent on your campaign, ad group or ad during its schedule.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"tiktok_campaign_report_hourly_data\"", "created_at": 1734462186.821901}, "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": {"database": "postgres", "schema": "zz_ad_reporting", "name": "adgroup_report_hourly", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly", "fqn": ["tiktok_ads_source", "tiktok_ads", "adgroup_report_hourly"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "tiktok_adgroup_report_hourly_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents data for each ad group for each hour.", "columns": {"adgroup_id": {"name": "adgroup_id", "description": "Ad group id", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stat_time_hour": {"name": "stat_time_hour", "description": "Hour of activity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_conversion": {"name": "cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion": {"name": "real_time_conversion", "description": "Number of times your ad resulted in the optimization event you selected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The average amount of money you've spent on a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_play_actions": {"name": "video_play_actions", "description": "The number of times your video starts to play. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_rate": {"name": "conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is calculated based on the time each ad impression occurred.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_75": {"name": "video_views_p_75", "description": "The number of times your video was played at 75% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "result": {"name": "result", "description": "The number of times your ad achieved an outcome, based on the optimization goal you selected. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the results. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_50": {"name": "video_views_p_50", "description": "The number of times your video was played at 50% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of times your ads were on screen.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "The number of comments your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_cost_per_result": {"name": "real_time_cost_per_result", "description": "As a campaign may have different optimization goals, the total number of result is not supported in campaign section now, please go to the ad group section to view the cost per Result. (The total count is based on when the conversion actually happened.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion": {"name": "conversion", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_result": {"name": "real_time_result", "description": "The number of times your ad achieved an outcome, based on the optimization goal you selected. As a campaign may have different optimization goals, the total number of result is not supported in campaign section now , Please go to the ad group section to view the result. (The total count is based on when the conversion actually happened.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_view_p_100": {"name": "video_view_p_100", "description": "The number of times your video was played at 100% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "The number of shares your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_conversion_rate": {"name": "real_time_conversion_rate", "description": "The percentage of results you received out of all the clicks of your ads. (The total count is based on when the conversion actually happened.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_secondary_goal_result": {"name": "cost_per_secondary_goal_result", "description": "The average cost for each secondary goal result from your adverts. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_goal_result_rate": {"name": "secondary_goal_result_rate", "description": "The percentage of secondary goal results you achieved out of all of the installs of your adverts. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. The total count is calculated based on the time each ad impression occurred.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks on your ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_1000_reached": {"name": "cost_per_1000_reached", "description": "The average cost to reach 1,000 unique users. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views_p_25": {"name": "video_views_p_25", "description": "The number of times your video was played at 25% of its length. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of unique users who saw your ads at least once. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_cost_per_conversion": {"name": "real_time_cost_per_conversion", "description": "The average amount of money you've spent on a conversion. (The total count is based on when the conversion actually happened.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits_rate": {"name": "profile_visits_rate", "description": "The rate of profile visits per impression the paid ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play": {"name": "average_video_play", "description": "The average time your video was played per single video view, including any time spent replaying the video.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "profile_visits": {"name": "profile_visits", "description": "The number of profile visits the ad drove during the campaign. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cpm": {"name": "cpm", "description": "The average amount of money you've spent per 1,000 impressions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The percentage of times people saw your ad and performed a click.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_2_s": {"name": "video_watched_2_s", "description": "The number of times your video played for at least 2 seconds. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follows": {"name": "follows", "description": "The number of new followers that were gained within 1 day of a user seeing a paid ad. This metric is only for Boosted TikToks.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "result_rate": {"name": "result_rate", "description": "The percentage of results you achieved out of all of the views/clicks on your ads. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the result rate. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_watched_6_s": {"name": "video_watched_6_s", "description": "The number of times your video played for at least 6 seconds, or completely played. Replays will not be counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_goal_result": {"name": "secondary_goal_result", "description": "The number of times your ad achieved an outcome, based on the secondary goal you selected. As one campaign may have a number of different secondary goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_per_result": {"name": "cost_per_result", "description": "The average cost for each result from your ads. As one campaign may have a number of different optimization goals, this statistic is not supported for campaigns. Please go to ad groups or ads to view the cost per result. (The total count is calculated based on the time each ad impression occurred.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_video_play_per_user": {"name": "average_video_play_per_user", "description": "The average time your video was played per person, including any time spent replaying the video. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "real_time_result_rate": {"name": "real_time_result_rate", "description": "As a campaign may have different optimization goals, the total number of result is not supported in campaign section now ,Please go to the ad group section to view the Result Rate. (The total count is based on when the conversion actually happened.)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The estimated total amount of money you've spent on your campaign, ad group or ad during its schedule.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "likes": {"name": "likes", "description": "The number of likes your video creative received within 1 day of a user seeing a paid ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_purchase_value": {"name": "total_purchase_value", "description": "The total value of purchase events that occurred in your app that were recorded by your measurement partner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sales_lead_value": {"name": "total_sales_lead_value", "description": "The monetary worth or potential value assigned to a lead generated through ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"tiktok_adgroup_report_hourly_data\"", "created_at": 1734462186.8220632}, "source.facebook_ads_source.facebook_ads.account_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "account_history", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.account_history", "fqn": ["facebook_ads_source", "facebook_ads", "account_history"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_account_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table reflects a version of a Facebook ad account.", "columns": {"id": {"name": "id", "description": "The ID of the ad account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_status": {"name": "account_status", "description": "Current status of account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_country_code": {"name": "business_country_code", "description": "Country code of business associated to account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The time account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency associated with account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone_name": {"name": "timezone_name", "description": "Timezone associated with account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"facebook_ads_account_history_data\"", "created_at": 1734462186.82217}, "source.facebook_ads_source.facebook_ads.ad_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_history", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.ad_history", "fqn": ["facebook_ads_source", "facebook_ads", "ad_history"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_ad_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table reflects a version of a Facebook ad.", "columns": {"id": {"name": "id", "description": "The ID of this ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_set_id": {"name": "ad_set_id", "description": "ID of the ad set that contains the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Ad campaign that contains this ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the ad creative to be used by this ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_time": {"name": "updated_time", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_domain": {"name": "conversion_domain", "description": "The domain you've configured the ad to convert to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"facebook_ads_ad_history_data\"", "created_at": 1734462186.8222778}, "source.facebook_ads_source.facebook_ads.ad_set_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_set_history", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.ad_set_history", "fqn": ["facebook_ads_source", "facebook_ads", "ad_set_history"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_ad_set_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table reflects a version of a Facebook ad set.", "columns": {"id": {"name": "id", "description": "The ID of the ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad set belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "Ad campaign that contains this ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_time": {"name": "updated_time", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Timestamp of designated ad set start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "Timestamp of designated ad set end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_strategy": {"name": "bid_strategy", "description": "Bid strategy values are - 'LOWEST_COST_WITHOUT_CAP', 'LOWEST_COST_WITH_BID_CAP', 'COST_CAP', 'LOWEST_COST_WITH_MIN_ROAS'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of ad set.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization_goal": {"name": "optimization_goal", "description": "The optimization goal this ad set is using. Possible values defined [here](https://developers.facebook.com/docs/marketing-api/reference/ad-campaign/#fields).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"facebook_ads_ad_set_history_data\"", "created_at": 1734462186.822392}, "source.facebook_ads_source.facebook_ads.basic_ad": {"database": "postgres", "schema": "zz_ad_reporting", "name": "basic_ad", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad", "fqn": ["facebook_ads_source", "facebook_ads", "basic_ad"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_basic_ad_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of an ad in Facebook.", "columns": {"ad_id": {"name": "ad_id", "description": "The ID of the ad the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of the ad the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adset_name": {"name": "adset_name", "description": "Name of the ad set the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the reported performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this ad belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inline_link_clicks": {"name": "inline_link_clicks", "description": "The number of clicks the ad had on the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The spend on the ad in the given day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reach": {"name": "reach", "description": "The number of people who saw any content from your Page or about your Page. This metric is estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The average number of times each person saw your ad; it is calculated as impressions divided by reach.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"facebook_ads_basic_ad_data\"", "created_at": 1734462186.822504}, "source.facebook_ads_source.facebook_ads.basic_ad_actions": {"database": "postgres", "schema": "zz_ad_reporting", "name": "basic_ad_actions", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad_actions", "fqn": ["facebook_ads_source", "facebook_ads", "basic_ad_actions"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_basic_ad_actions_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily conversion performance of an ad in Facebook. This is the prebuilt `basic_ad` report broken down by `action_type`.", "columns": {"_1_d_view": {"name": "_1_d_view", "description": "Conversion metric value using an attribution window of \"1 day after viewing the ad\". Not included in downstream models by default, but can be added using the `facebook_ads__basic_ad_actions_passthrough_metrics` var.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_7_d_click": {"name": "_7_d_click", "description": "Conversion metric value using an attribution window of \"7 days after clicking the ad\". Not included in downstream models by default, but can be added using the `facebook_ads__basic_ad_actions_passthrough_metrics` var.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_28_d_click": {"name": "_28_d_click", "description": "Conversion metric value using an attribution window of \"28 days after clicking the ad\". Deprecated by Facebook due to digital privacy initiatives. Not included in downstream models by default, but can be added using the `facebook_ads__basic_ad_actions_passthrough_metrics` var.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "Defunct field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "action_type": {"name": "action_type", "description": "The kind of actions taken on your ad, Page, app or event after your ad was served to someone, even if they didn't click on it. Action types include Page likes, app installs, conversions, event responses and more. Actions prepended by app_custom_event come from mobile app events and actions prepended by offsite_conversion come from the Facebook Pixel.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the reported performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "Index reflecting the `action_type` tracked for this ad on this day. Column of not much consequence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inline": {"name": "inline", "description": "Conversion metric value using the attribution window that occurs on the ad itself. Not included in downstream models by default, but can be added using the `facebook_ads__basic_ad_actions_passthrough_metrics` var.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "value": {"name": "value", "description": "Conversion metric value using the default attribution window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"facebook_ads_basic_ad_actions_data\"", "created_at": 1734462186.822614}, "source.facebook_ads_source.facebook_ads.basic_ad_action_values": {"database": "postgres", "schema": "zz_ad_reporting", "name": "basic_ad_action_values", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad_action_values", "fqn": ["facebook_ads_source", "facebook_ads", "basic_ad_action_values"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_basic_ad_action_values_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": null, "external": null, "description": "Each record represents the daily conversion values associated with an ad in Facebook. This is the prebuilt `basic_ad` report broken down by `action_type` and `action_value`.", "columns": {"_7_d_click": {"name": "_7_d_click", "description": "Conversion metric value using an attribution window of \"7 days after clicking the ad\". Not included in downstream models by default, but can be added using the `facebook_ads__basic_ad_actions_passthrough_metrics` var.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_id": {"name": "_fivetran_id", "description": "Defunct field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "action_type": {"name": "action_type", "description": "The kind of actions taken on your ad, Page, app or event after your ad was served to someone, even if they didn't click on it. Action types include Page likes, app installs, conversions, event responses and more. Actions prepended by app_custom_event come from mobile app events and actions prepended by offsite_conversion come from the Facebook Pixel.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the ad the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the reported performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "Index reflecting the `action_type` tracked for this ad on this day. Column of not much consequence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "value": {"name": "value", "description": "Monetary value associated with the convesion action using the default attribution window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"facebook_ads_basic_ad_action_values_data\"", "created_at": 1734462186.822717}, "source.facebook_ads_source.facebook_ads.campaign_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_history", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.campaign_history", "fqn": ["facebook_ads_source", "facebook_ads", "campaign_history"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table reflects a version of a Facebook campaign.", "columns": {"id": {"name": "id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the ad account that this campaign belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_time": {"name": "updated_time", "description": "The timestamp of the last update of a record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_time": {"name": "created_time", "description": "The time the campaign was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "Timestamp of designated campaign start time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_time": {"name": "stop_time", "description": "Timestamp of designated campaign end time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "budget_remaining": {"name": "budget_remaining", "description": "Remaining budget of campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "lifetime_budget": {"name": "lifetime_budget", "description": "Lifetime budget of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status values are - 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"facebook_ads_campaign_history_data\"", "created_at": 1734462186.822858}, "source.facebook_ads_source.facebook_ads.creative_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "creative_history", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.creative_history", "fqn": ["facebook_ads_source", "facebook_ads", "creative_history"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "facebook_ads_creative_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table reflects a version of a Facebook creative.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique record identifier", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_link": {"name": "page_link", "description": "URL destination of Facebook ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_page_link": {"name": "template_page_link", "description": "URL destination of Facebook dynamic ads.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique ID for an ad creative.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Ad account ID for the account this ad creative belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of this ad creative as seen in the ad account's library.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_tags": {"name": "url_tags", "description": "A set of query string parameters which will replace or be appended to urls clicked from page post ads, message of the post, and canvas app install creatives only.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "asset_feed_spec_link_urls": {"name": "asset_feed_spec_link_urls", "description": "Link to the asset feed spec", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_child_attachments": {"name": "object_story_link_data_child_attachments", "description": "Link of the object story child attachments", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_caption": {"name": "object_story_link_data_caption", "description": "Link of the object story caption", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_description": {"name": "object_story_link_data_description", "description": "Link of the object story description", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_link": {"name": "object_story_link_data_link", "description": "Link of the object story link", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "object_story_link_data_message": {"name": "object_story_link_data_message", "description": "Link of the object story message", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_app_link_spec_ios": {"name": "template_app_link_spec_ios", "description": "Link of the object story spec for ios", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_app_link_spec_ipad": {"name": "template_app_link_spec_ipad", "description": "Link of the template app spec for ipad", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_app_link_spec_android": {"name": "template_app_link_spec_android", "description": "Link of the template app for android", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "template_app_link_spec_iphone": {"name": "template_app_link_spec_iphone", "description": "Link of the template app for iphone", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"facebook_ads_creative_history_data\"", "created_at": 1734462186.822976}, "source.snapchat_ads_source.snapchat_ads.ad_account_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_account_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_account_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "ad_account_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_account_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a historic version of an ad account in Snapchat.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser": {"name": "advertiser", "description": "Name of advertiser", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "Currency used by account", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Account timezone", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_ad_account_history_data\"", "created_at": 1734462186.8230872}, "source.snapchat_ads_source.snapchat_ads.ad_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "ad_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a historic version of an ad in Snapchat.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the ad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_squad_id": {"name": "ad_squad_id", "description": "The ID of the related ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the ad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_ad_history_data\"", "created_at": 1734462186.823188}, "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_hourly_report", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_hourly_report", "fqn": ["snapchat_ads_source", "snapchat_ads", "ad_hourly_report"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_hourly_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents an hourly performance summary for an ad in Snapchat.", "columns": {"ad_id": {"name": "ad_id", "description": "The ID of the ad that the report relates to in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_1": {"name": "attachment_quartile_1", "description": "Number of times your Long Form Video was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_2": {"name": "attachment_quartile_2", "description": "Number of times your Long Form Video was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_3": {"name": "attachment_quartile_3", "description": "Number of times your Long Form Video was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_total_view_time_millis": {"name": "attachment_total_view_time_millis", "description": "Total time Snapchatters spent on the attachment (HH:MM:SS)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_view_completion": {"name": "attachment_view_completion", "description": "The number of times your Long Form Video was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_time_millis": {"name": "screen_time_millis", "description": "The number of milli seconds spent watching your ad across all paid impressions. Screen time starts recording as soon as the media is fully rendered on the device and the autoplay video starts", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views": {"name": "video_views", "description": "The number of times your video was watched at least 2 seconds or swiped up, whichever comes first", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_completion": {"name": "view_completion", "description": "The number of times your video ad was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_time_millis": {"name": "view_time_millis", "description": "The number of milli seconds spent watching your ad across all users reached.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend in microdollars for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes for an ad in the hour of the record. Swipes are when your ad was swiped up on or the CTA was tapped to view the attachment below.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases attributed to an ad in the hour of the record (microcurrency in Ad Account's currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases attributed to an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_add_billing": {"name": "conversion_add_billing", "description": "Total number of attributed \"ADD_BILLING\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_save": {"name": "conversion_save", "description": "Total number of attributed \"SAVE\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_add_cart": {"name": "conversion_add_cart", "description": "Total number of attributed \"ADD_CART\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups": {"name": "conversion_sign_ups", "description": "Total number of attributed \"SIGN_UP\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_start_checkout": {"name": "conversion_start_checkout", "description": "Total number of attributed \"START_CHECKOUT\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_searches": {"name": "conversion_searches", "description": "Total number of attributed \"SEARCH\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_view_content": {"name": "conversion_view_content", "description": "Total number of attributed \"VIEW_CONTENT\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_app_opens": {"name": "conversion_app_opens", "description": "Total number of attributed \"APP_OPEN\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_level_completes": {"name": "conversion_level_completes", "description": "Total number of attributed \"LEVEL_COMPLETE\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_page_views": {"name": "conversion_page_views", "description": "Total number of attributed \"PAGE_VIEW\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_ad_hourly_report_data\"", "created_at": 1734462186.8233259}, "source.snapchat_ads_source.snapchat_ads.ad_squad_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_squad_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "ad_squad_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_squad_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a historic version of an ad squad in Snapchat.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the ad squad in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_ad_squad_history_data\"", "created_at": 1734462186.823425}, "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "ad_squad_hourly_report", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report", "fqn": ["snapchat_ads_source", "snapchat_ads", "ad_squad_hourly_report"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_ad_squad_hourly_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents an hourly performance summary for each ad squad.", "columns": {"ad_squad_id": {"name": "ad_squad_id", "description": "ID of the ad squad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_1": {"name": "attachment_quartile_1", "description": "Number of times your Long Form Video was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_2": {"name": "attachment_quartile_2", "description": "Number of times your Long Form Video was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_3": {"name": "attachment_quartile_3", "description": "Number of times your Long Form Video was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_total_view_time_millis": {"name": "attachment_total_view_time_millis", "description": "Total time Snapchatters spent on the attachment (HH:MM:SS)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_view_completion": {"name": "attachment_view_completion", "description": "The number of times your Long Form Video was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_time_millis": {"name": "screen_time_millis", "description": "The number of milli seconds spent watching your ad across all paid impressions. Screen time starts recording as soon as the media is fully rendered on the device and the autoplay video starts", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views": {"name": "video_views", "description": "The number of times your video was watched at least 2 seconds or swiped up, whichever comes first", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_completion": {"name": "view_completion", "description": "The number of times your video ad was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_time_millis": {"name": "view_time_millis", "description": "The number of milli seconds spent watching your ad across all users reached.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend in microdollars for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes for an ad in the hour of the record. Swipes are when your ad was swiped up on or the CTA was tapped to view the attachment below.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases attributed to an ad in the hour of the record (microcurrency in Ad Account's currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases attributed to an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_add_billing": {"name": "conversion_add_billing", "description": "Total number of attributed \"ADD_BILLING\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_save": {"name": "conversion_save", "description": "Total number of attributed \"SAVE\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_add_cart": {"name": "conversion_add_cart", "description": "Total number of attributed \"ADD_CART\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups": {"name": "conversion_sign_ups", "description": "Total number of attributed \"SIGN_UP\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_start_checkout": {"name": "conversion_start_checkout", "description": "Total number of attributed \"START_CHECKOUT\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_searches": {"name": "conversion_searches", "description": "Total number of attributed \"SEARCH\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_view_content": {"name": "conversion_view_content", "description": "Total number of attributed \"VIEW_CONTENT\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_app_opens": {"name": "conversion_app_opens", "description": "Total number of attributed \"APP_OPEN\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_level_completes": {"name": "conversion_level_completes", "description": "Total number of attributed \"LEVEL_COMPLETE\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_page_views": {"name": "conversion_page_views", "description": "Total number of attributed \"PAGE_VIEW\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_ad_squad_hourly_report_data\"", "created_at": 1734462186.823562}, "source.snapchat_ads_source.snapchat_ads.campaign_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "campaign_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a historic version of a campaign in Snapchat.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related ad account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the campaign in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_campaign_history_data\"", "created_at": 1734462186.823662}, "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_hourly_report", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report", "fqn": ["snapchat_ads_source", "snapchat_ads", "campaign_hourly_report"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_campaign_hourly_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents an hourly performance summary for each campaign.", "columns": {"campaign_id": {"name": "campaign_id", "description": "ID of campaign", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The hour that the report relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_1": {"name": "attachment_quartile_1", "description": "Number of times your Long Form Video was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_2": {"name": "attachment_quartile_2", "description": "Number of times your Long Form Video was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_quartile_3": {"name": "attachment_quartile_3", "description": "Number of times your Long Form Video was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_total_view_time_millis": {"name": "attachment_total_view_time_millis", "description": "Total time Snapchatters spent on the attachment (HH:MM:SS)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attachment_view_completion": {"name": "attachment_view_completion", "description": "The number of times your Long Form Video was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_1": {"name": "quartile_1", "description": "The number of times your video ad was viewed to 25%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_2": {"name": "quartile_2", "description": "The number of times your video ad was viewed to 50%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quartile_3": {"name": "quartile_3", "description": "The number of times your video ad was viewed to 75%", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "saves": {"name": "saves", "description": "Number of times a lens/filter was saved to Memories", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shares": {"name": "shares", "description": "Number of times a lens/filter was shared in a Chat or Story", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_time_millis": {"name": "screen_time_millis", "description": "The number of milli seconds spent watching your ad across all paid impressions. Screen time starts recording as soon as the media is fully rendered on the device and the autoplay video starts", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "video_views": {"name": "video_views", "description": "The number of times your video was watched at least 2 seconds or swiped up, whichever comes first", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_completion": {"name": "view_completion", "description": "The number of times your video ad was viewed to completion (97% )", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_time_millis": {"name": "view_time_millis", "description": "The number of milli seconds spent watching your ad across all users reached.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount of spend in microdollars for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "swipes": {"name": "swipes", "description": "The number of swipes for an ad in the hour of the record. Swipes are when your ad was swiped up on or the CTA was tapped to view the attachment below.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_value": {"name": "conversion_purchases_value", "description": "The total value of purchases attributed to an ad in the hour of the record (microcurrency in Ad Account's currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases": {"name": "conversion_purchases", "description": "The total number of purchases attributed to an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_add_billing": {"name": "conversion_add_billing", "description": "Total number of attributed \"ADD_BILLING\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_save": {"name": "conversion_save", "description": "Total number of attributed \"SAVE\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_add_cart": {"name": "conversion_add_cart", "description": "Total number of attributed \"ADD_CART\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups": {"name": "conversion_sign_ups", "description": "Total number of attributed \"SIGN_UP\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_start_checkout": {"name": "conversion_start_checkout", "description": "Total number of attributed \"START_CHECKOUT\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_searches": {"name": "conversion_searches", "description": "Total number of attributed \"SEARCH\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_view_content": {"name": "conversion_view_content", "description": "Total number of attributed \"VIEW_CONTENT\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_app_opens": {"name": "conversion_app_opens", "description": "Total number of attributed \"APP_OPEN\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_level_completes": {"name": "conversion_level_completes", "description": "Total number of attributed \"LEVEL_COMPLETE\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_page_views": {"name": "conversion_page_views", "description": "Total number of attributed \"PAGE_VIEW\" conversion events for an ad in the hour of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_campaign_hourly_report_data\"", "created_at": 1734462186.82382}, "source.snapchat_ads_source.snapchat_ads.creative_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "creative_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "creative_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_creative_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a historic version of a creative in Snapchat.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the creative in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ad_account_id": {"name": "ad_account_id", "description": "The ID of the related ad account in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the creative in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "web_view_url": {"name": "web_view_url", "description": "The URL of the creative if the creative is of type 'web view'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_creative_history_data\"", "created_at": 1734462186.823924}, "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "creative_url_tag_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "creative_url_tag_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "snapchat_creative_url_tag_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents a URL parameter key-value pair for a creative in Snapchat.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_id": {"name": "creative_id", "description": "The ID of the related creative in Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Created at timestamp.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "key": {"name": "key", "description": "The URL parameter key, i.e. UTM_SOURCE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "value": {"name": "value", "description": "The URL parameter value, i.e. Snapchat.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"snapchat_creative_url_tag_history_data\"", "created_at": 1734462186.824028}, "source.twitter_ads_source.twitter_ads.account_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "account_history", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.account_history", "fqn": ["twitter_ads_source", "twitter_ads", "account_history"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_account_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of each account. The versions can be differentiated by the updated_at timestamp.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_id": {"name": "business_id", "description": "The ID of the related business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_name": {"name": "business_name", "description": "The name of the related business.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deleted": {"name": "deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "industry_type": {"name": "industry_type", "description": "The industry of the accounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The timezone the account is set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone_switch_at": {"name": "timezone_switch_at", "description": "The timestamp the account's timezone was last changed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "salt": {"name": "salt", "description": "The random encryption key used to has data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_account_history_data\"", "created_at": 1734462186.824141}, "source.twitter_ads_source.twitter_ads.campaign_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_history", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.campaign_history", "fqn": ["twitter_ads_source", "twitter_ads", "campaign_history"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_campaign_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of each campaign. The versions can be differentiated by the updated_at timestamp.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currently all metrics for the account are set to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "daily_budget_amount_local_micro": {"name": "daily_budget_amount_local_micro", "description": "The daily budget amount to be allocated to the campaign. The currency associated with the specified funding instrument will be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deleted": {"name": "deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duration_in_days": {"name": "duration_in_days", "description": "The time period within which the frequency_cap is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The time the campaign will end", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency_cap": {"name": "frequency_cap", "description": "The maximum number of times an ad could be delivered to a user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "servable": {"name": "servable", "description": "Whether the campaign is in a state to be actively served to users.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "standard_delivery": {"name": "standard_delivery", "description": "Whether standard delivery is enabled (vs accelerated delivery).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "The time the campaign will start.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_budget_amount_local_micro": {"name": "total_budget_amount_local_micro", "description": "The total budget amount to be allocated to the campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Reference to the funding instrument.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_campaign_history_data\"", "created_at": 1734462186.824276}, "source.twitter_ads_source.twitter_ads.line_item_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "line_item_history", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_history", "fqn": ["twitter_ads_source", "twitter_ads", "line_item_history"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_line_item_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of each line item. The versions can be differentiated by the updated_at timestamp.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_domain": {"name": "advertiser_domain", "description": "The website domain for this advertiser, without the protocol specification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "advertiser_user_id": {"name": "advertiser_user_id", "description": "The Twitter user identifier for the handle promoting the ad.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "automatically_select_bid": {"name": "automatically_select_bid", "description": "Whether automatically optimize bidding is enabled based on daily budget and campaign flight dates.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_amount_local_micro": {"name": "bid_amount_local_micro", "description": "The bid amount to be associated with this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_type": {"name": "bid_type", "description": "The bidding mechanism.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bid_unit": {"name": "bid_unit", "description": "The bid unit for this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the related campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "charge_by": {"name": "charge_by", "description": "The unit to charge this line item by.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creative_source": {"name": "creative_source", "description": "The source of the creatives for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency in which metrics will be reported.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deleted": {"name": "deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The timestamp at which the line item will stop being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The campaign objective for this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "optimization": {"name": "optimization", "description": "The optimization setting to use with this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_web_event_tag": {"name": "primary_web_event_tag", "description": "The identifier of the primary web event tag. Allows more accurate tracking of engagements for the campaign pertaining to this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "product_type": {"name": "product_type", "description": "The type of promoted product that this line item will contain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "The timestamp at which the line item will start being served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "target_cpa_local_micro": {"name": "target_cpa_local_micro", "description": "The target cost per acquisition for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_budget_amount_local_micro": {"name": "total_budget_amount_local_micro", "description": "The total budget amount to be allocated to the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_line_item_history_data\"", "created_at": 1734462186.8244019}, "source.twitter_ads_source.twitter_ads.promoted_tweet_history": {"database": "postgres", "schema": "zz_ad_reporting", "name": "promoted_tweet_history", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_history", "fqn": ["twitter_ads_source", "twitter_ads", "promoted_tweet_history"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_promoted_tweet_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a version of each promoted tweet. The versions can be differentiated by the updated_at timestamp.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_status": {"name": "approval_status", "description": "The approval status of the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The timestamp the account was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deleted": {"name": "deleted", "description": "Whether the record has been deleted or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_status": {"name": "entity_status", "description": "The status of the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the related line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the related tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "The timestamp the account was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_promoted_tweet_history_data\"", "created_at": 1734462186.824508}, "source.twitter_ads_source.twitter_ads.tweet_url": {"database": "postgres", "schema": "zz_ad_reporting", "name": "tweet_url", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.tweet_url", "fqn": ["twitter_ads_source", "twitter_ads", "tweet_url"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_tweet_url_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a URL used in a tweet.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "The URL as it will be displayed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expanded_url": {"name": "expanded_url", "description": "The fully expanded URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "The index of the URL within the tweet (ie if there are multiple URLs in the tweet).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "indices": {"name": "indices", "description": "The start and end point of where the URL is placed in the tweet text.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tweet_id": {"name": "tweet_id", "description": "The ID of the related tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url": {"name": "url", "description": "The 't.co' shortened URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_tweet_url_data\"", "created_at": 1734462186.824609}, "source.twitter_ads_source.twitter_ads.promoted_tweet_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "promoted_tweet_report", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_report", "fqn": ["twitter_ads_source", "twitter_ads", "promoted_tweet_report"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_promoted_tweet_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the performance of a promoted tweet on a given day, in its defined placement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "billed_charge_local_micro": {"name": "billed_charge_local_micro", "description": "The spend for the promoted tweet on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the promoted tweet on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the promoted tweet on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "promoted_tweet_id": {"name": "promoted_tweet_id", "description": "The ID of the related promoted tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the promoted tweet on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_assisted": {"name": "mobile_conversion_payment_info_additions_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_post_engagement": {"name": "mobile_conversion_payment_info_additions_post_engagement", "description": "Number of **post-engagement** mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_post_view": {"name": "mobile_conversion_payment_info_additions_post_view", "description": "Number of **post-view** mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_assisted": {"name": "mobile_conversion_add_to_wishlists_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_post_engagement": {"name": "mobile_conversion_add_to_wishlists_post_engagement", "description": "Number of **post-engagement** mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_post_view": {"name": "mobile_conversion_add_to_wishlists_post_view", "description": "Number of **post-view** mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_assisted": {"name": "mobile_conversion_add_to_carts_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_post_engagement": {"name": "mobile_conversion_add_to_carts_post_engagement", "description": "Number of **post-engagement** mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_post_view": {"name": "mobile_conversion_add_to_carts_post_view", "description": "Number of **post-view** mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups_metric": {"name": "conversion_sign_ups_metric", "description": "Total number of sign ups. This is the same as the sum of post views, post engagements and assisted sign ups. This is also the sum of website and mobile app sign ups", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_assisted": {"name": "mobile_conversion_checkouts_initiated_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_post_engagement": {"name": "mobile_conversion_checkouts_initiated_post_engagement", "description": "Number of **post-engagement** mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_post_view": {"name": "mobile_conversion_checkouts_initiated_post_view", "description": "Number of **post-view** mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_assisted": {"name": "mobile_conversion_searches_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_post_engagement": {"name": "mobile_conversion_searches_post_engagement", "description": "Number of **post-engagement** mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_post_view": {"name": "mobile_conversion_searches_post_view", "description": "Number of **post-view** mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_assisted": {"name": "mobile_conversion_content_views_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_post_engagement": {"name": "mobile_conversion_content_views_post_engagement", "description": "Number of **post-engagement** mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_post_view": {"name": "mobile_conversion_content_views_post_view", "description": "Number of **post-view** mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_sale_amount": {"name": "mobile_conversion_payment_info_additions_sale_amount", "description": "The sale amount corresponding to mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_sale_amount": {"name": "mobile_conversion_add_to_wishlists_sale_amount", "description": "The sale amount corresponding to mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_sale_amount": {"name": "mobile_conversion_add_to_carts_sale_amount", "description": "The sale amount corresponding to mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups_sale_amount": {"name": "conversion_sign_ups_sale_amount", "description": "The sale amount corresponding to sign ups.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_sale_amount": {"name": "mobile_conversion_checkouts_initiated_sale_amount", "description": "The sale amount corresponding to mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_sale_amount": {"name": "mobile_conversion_searches_sale_amount", "description": "The sale amount corresponding to mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_sale_amount": {"name": "mobile_conversion_content_views_sale_amount", "description": "The sale amount corresponding to mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_promoted_tweet_report_data\"", "created_at": 1734462186.824755}, "source.twitter_ads_source.twitter_ads.tweet": {"database": "postgres", "schema": "zz_ad_reporting", "name": "tweet", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.tweet", "fqn": ["twitter_ads_source", "twitter_ads", "tweet"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_tweet_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a tweet, promoted or not.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of the tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "If provided, the non-public title of the tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_text": {"name": "full_text", "description": "Full text of the tweet's content.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "lang": {"name": "lang", "description": "Two-letter language code of the tweet.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_tweet_data\"", "created_at": 1734462186.824856}, "source.twitter_ads_source.twitter_ads.campaign_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "campaign_report", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.campaign_report", "fqn": ["twitter_ads_source", "twitter_ads", "campaign_report"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_campaign_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the performance of an ad campaign on a given day.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "billed_charge_local_micro": {"name": "billed_charge_local_micro", "description": "The spend for the campaign on that day, in micros and in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the campaign on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the campaign on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the ad campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the campaign on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_assisted": {"name": "mobile_conversion_payment_info_additions_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_post_engagement": {"name": "mobile_conversion_payment_info_additions_post_engagement", "description": "Number of **post-engagement** mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_post_view": {"name": "mobile_conversion_payment_info_additions_post_view", "description": "Number of **post-view** mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_assisted": {"name": "mobile_conversion_add_to_wishlists_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_post_engagement": {"name": "mobile_conversion_add_to_wishlists_post_engagement", "description": "Number of **post-engagement** mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_post_view": {"name": "mobile_conversion_add_to_wishlists_post_view", "description": "Number of **post-view** mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_assisted": {"name": "mobile_conversion_add_to_carts_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_post_engagement": {"name": "mobile_conversion_add_to_carts_post_engagement", "description": "Number of **post-engagement** mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_post_view": {"name": "mobile_conversion_add_to_carts_post_view", "description": "Number of **post-view** mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups_metric": {"name": "conversion_sign_ups_metric", "description": "Total number of sign ups. This is the same as the sum of post views, post engagements and assisted sign ups. This is also the sum of website and mobile app sign ups", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_assisted": {"name": "mobile_conversion_checkouts_initiated_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_post_engagement": {"name": "mobile_conversion_checkouts_initiated_post_engagement", "description": "Number of **post-engagement** mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_post_view": {"name": "mobile_conversion_checkouts_initiated_post_view", "description": "Number of **post-view** mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_assisted": {"name": "mobile_conversion_searches_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_post_engagement": {"name": "mobile_conversion_searches_post_engagement", "description": "Number of **post-engagement** mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_post_view": {"name": "mobile_conversion_searches_post_view", "description": "Number of **post-view** mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_assisted": {"name": "mobile_conversion_content_views_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_post_engagement": {"name": "mobile_conversion_content_views_post_engagement", "description": "Number of **post-engagement** mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_post_view": {"name": "mobile_conversion_content_views_post_view", "description": "Number of **post-view** mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_sale_amount": {"name": "mobile_conversion_payment_info_additions_sale_amount", "description": "The sale amount corresponding to mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_sale_amount": {"name": "mobile_conversion_add_to_wishlists_sale_amount", "description": "The sale amount corresponding to mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_sale_amount": {"name": "mobile_conversion_add_to_carts_sale_amount", "description": "The sale amount corresponding to mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups_sale_amount": {"name": "conversion_sign_ups_sale_amount", "description": "The sale amount corresponding to sign ups.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_sale_amount": {"name": "mobile_conversion_checkouts_initiated_sale_amount", "description": "The sale amount corresponding to mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_sale_amount": {"name": "mobile_conversion_searches_sale_amount", "description": "The sale amount corresponding to mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_sale_amount": {"name": "mobile_conversion_content_views_sale_amount", "description": "The sale amount corresponding to mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_campaign_report_data\"", "created_at": 1734462186.825021}, "source.twitter_ads_source.twitter_ads.line_item_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "line_item_report", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_report", "fqn": ["twitter_ads_source", "twitter_ads", "line_item_report"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_line_item_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the performance of a line item (ad group) on a given day.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "billed_charge_local_micro": {"name": "billed_charge_local_micro", "description": "The spend for the line item on that day, in micros and in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the line item on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the line item on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_assisted": {"name": "mobile_conversion_payment_info_additions_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_post_engagement": {"name": "mobile_conversion_payment_info_additions_post_engagement", "description": "Number of **post-engagement** mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_post_view": {"name": "mobile_conversion_payment_info_additions_post_view", "description": "Number of **post-view** mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_assisted": {"name": "mobile_conversion_add_to_wishlists_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_post_engagement": {"name": "mobile_conversion_add_to_wishlists_post_engagement", "description": "Number of **post-engagement** mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_post_view": {"name": "mobile_conversion_add_to_wishlists_post_view", "description": "Number of **post-view** mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_assisted": {"name": "mobile_conversion_add_to_carts_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_post_engagement": {"name": "mobile_conversion_add_to_carts_post_engagement", "description": "Number of **post-engagement** mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_post_view": {"name": "mobile_conversion_add_to_carts_post_view", "description": "Number of **post-view** mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups_metric": {"name": "conversion_sign_ups_metric", "description": "Total number of sign ups. This is the same as the sum of post views, post engagements and assisted sign ups. This is also the sum of website and mobile app sign ups", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_assisted": {"name": "mobile_conversion_checkouts_initiated_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_post_engagement": {"name": "mobile_conversion_checkouts_initiated_post_engagement", "description": "Number of **post-engagement** mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_post_view": {"name": "mobile_conversion_checkouts_initiated_post_view", "description": "Number of **post-view** mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_assisted": {"name": "mobile_conversion_searches_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_post_engagement": {"name": "mobile_conversion_searches_post_engagement", "description": "Number of **post-engagement** mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_post_view": {"name": "mobile_conversion_searches_post_view", "description": "Number of **post-view** mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_assisted": {"name": "mobile_conversion_content_views_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_post_engagement": {"name": "mobile_conversion_content_views_post_engagement", "description": "Number of **post-engagement** mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_post_view": {"name": "mobile_conversion_content_views_post_view", "description": "Number of **post-view** mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_sale_amount": {"name": "mobile_conversion_payment_info_additions_sale_amount", "description": "The sale amount corresponding to mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_sale_amount": {"name": "mobile_conversion_add_to_wishlists_sale_amount", "description": "The sale amount corresponding to mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_sale_amount": {"name": "mobile_conversion_add_to_carts_sale_amount", "description": "The sale amount corresponding to mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups_sale_amount": {"name": "conversion_sign_ups_sale_amount", "description": "The sale amount corresponding to sign ups.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_sale_amount": {"name": "mobile_conversion_checkouts_initiated_sale_amount", "description": "The sale amount corresponding to mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_sale_amount": {"name": "mobile_conversion_searches_sale_amount", "description": "The sale amount corresponding to mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_sale_amount": {"name": "mobile_conversion_content_views_sale_amount", "description": "The sale amount corresponding to mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_line_item_report_data\"", "created_at": 1734462186.825165}, "source.twitter_ads_source.twitter_ads.line_item_keywords_report": {"database": "postgres", "schema": "zz_ad_reporting", "name": "line_item_keywords_report", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_keywords_report", "fqn": ["twitter_ads_source", "twitter_ads", "line_item_keywords_report"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "twitter_line_item_keywords_report_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the performance of a line item (ad group) and keyword combination on a given day.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the related account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "billed_charge_local_micro": {"name": "billed_charge_local_micro", "description": "The spend for the line item + keyword on that day, in micros and in whichever currency was selected during account creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The clicks for the line item + keyword on that day. Includes clicks on the URL (shortened or regular links), profile pic, screen name, username, detail, hashtags, and likes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the performance.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The impressions for the line item + keyword on that day. This is the number of users who see a Promoted Ad either in their home timeline or search results.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_item_id": {"name": "line_item_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url_clicks": {"name": "url_clicks", "description": "The url clicks for the line item + keyword on that day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "segment": {"name": "segment", "description": "The keyword whose performance is being tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "placement": {"name": "placement", "description": "Where on Twitter the ad is being displayed. Possible values include 'ALL_ON_TWITTER', 'PUBLISHER_NETWORK', 'TWITTER_PROFILE', 'TWITTER_SEARCH', 'TWITTER_TIMELINE', and 'TAP_*', which are more granular options for `PUBLISHER_NETWORK`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_metric": {"name": "conversion_purchases_metric", "description": "Total number of purchases. The sum of post view, post engagement, and assisted purchases for both your website and mobile app. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_metric": {"name": "conversion_custom_metric", "description": "The number of conversions of type CUSTOM. Included by the `twitter_ads__conversion_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_assisted": {"name": "mobile_conversion_payment_info_additions_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_post_engagement": {"name": "mobile_conversion_payment_info_additions_post_engagement", "description": "Number of **post-engagement** mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_post_view": {"name": "mobile_conversion_payment_info_additions_post_view", "description": "Number of **post-view** mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_assisted": {"name": "mobile_conversion_add_to_wishlists_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_post_engagement": {"name": "mobile_conversion_add_to_wishlists_post_engagement", "description": "Number of **post-engagement** mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_post_view": {"name": "mobile_conversion_add_to_wishlists_post_view", "description": "Number of **post-view** mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_assisted": {"name": "mobile_conversion_add_to_carts_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_post_engagement": {"name": "mobile_conversion_add_to_carts_post_engagement", "description": "Number of **post-engagement** mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_post_view": {"name": "mobile_conversion_add_to_carts_post_view", "description": "Number of **post-view** mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups_metric": {"name": "conversion_sign_ups_metric", "description": "Total number of sign ups. This is the same as the sum of post views, post engagements and assisted sign ups. This is also the sum of website and mobile app sign ups", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_assisted": {"name": "mobile_conversion_checkouts_initiated_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_post_engagement": {"name": "mobile_conversion_checkouts_initiated_post_engagement", "description": "Number of **post-engagement** mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_post_view": {"name": "mobile_conversion_checkouts_initiated_post_view", "description": "Number of **post-view** mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_assisted": {"name": "mobile_conversion_searches_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_post_engagement": {"name": "mobile_conversion_searches_post_engagement", "description": "Number of **post-engagement** mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_post_view": {"name": "mobile_conversion_searches_post_view", "description": "Number of **post-view** mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_assisted": {"name": "mobile_conversion_content_views_assisted", "description": "Number of **assisted** (engaged with ad but did not immediately convert) mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_post_engagement": {"name": "mobile_conversion_content_views_post_engagement", "description": "Number of **post-engagement** mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_post_view": {"name": "mobile_conversion_content_views_post_view", "description": "Number of **post-view** mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_purchases_sale_amount": {"name": "conversion_purchases_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_custom_sale_amount": {"name": "conversion_custom_sale_amount", "description": "The sale amount corresponding to PURCHASE conversion events. Included by the `twitter_ads__conversion_sale_amount_fields` variable by default.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_payment_info_additions_sale_amount": {"name": "mobile_conversion_payment_info_additions_sale_amount", "description": "The sale amount corresponding to mobile conversions of type PAYMENT_INFO_ADDITION.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_wishlists_sale_amount": {"name": "mobile_conversion_add_to_wishlists_sale_amount", "description": "The sale amount corresponding to mobile conversions of type ADD_TO_WISHLIST.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_add_to_carts_sale_amount": {"name": "mobile_conversion_add_to_carts_sale_amount", "description": "The sale amount corresponding to mobile conversions of type ADD_TO_CART.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conversion_sign_ups_sale_amount": {"name": "conversion_sign_ups_sale_amount", "description": "The sale amount corresponding to sign ups.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_checkouts_initiated_sale_amount": {"name": "mobile_conversion_checkouts_initiated_sale_amount", "description": "The sale amount corresponding to mobile conversions of type CHECKOUT_INITIATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_searches_sale_amount": {"name": "mobile_conversion_searches_sale_amount", "description": "The sale amount corresponding to mobile conversions of type SEARCH.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_conversion_content_views_sale_amount": {"name": "mobile_conversion_content_views_sale_amount", "description": "The sale amount corresponding to mobile conversions of type CONTENT_VIEW.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_ad_reporting\".\"twitter_line_item_keywords_report_data\"", "created_at": 1734462186.82531}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.348379, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.348591, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3486981, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3488011, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3489048, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n when 'm' then 'MATERIALIZED VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.35042, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3507829, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.351451, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.351578, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.360471, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3609338, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.361227, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.361525, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.361963, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.362452, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.362619, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.362942, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.363302, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3640802, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.364265, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.364563, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.364821, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.365224, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.365437, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3659909, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.366185, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.366297, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3664699, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.366604, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.366962, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.367656, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.367795, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.368074, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3682072, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.368373, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3693068, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }}\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\t{{ ';' if not loop.last else \"\" }}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.369809, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config.model) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.370091, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}{{ ';' if not loop.last else \"\" }}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.37051, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.370642, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.371299, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.37147, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3716, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3721259, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.372292, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.372498, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3730931, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.376247, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.376398, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3768692, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.377259, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3782778, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.378464, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3786, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.378734, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.37887, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3792279, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3795068, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.379791, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.380372, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n merge into {{ target.render() }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }} = DBT_INTERNAL_DEST.{{ columns.dbt_scd_id }}\n\n when matched\n and DBT_INTERNAL_DEST.{{ columns.dbt_valid_to }} is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3808482, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3840199, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.384185, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.384396, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set primary_key = config.get('unique_key') %}\n {% set updated_at = config.get('updated_at') %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes') or false %}\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.{{ columns.dbt_valid_from }} < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3852, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3853598, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3855202, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.386867, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set check_cols_config = config.get('check_cols') %}\n {% set primary_key = config.get('unique_key') %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes') or false %}\n {% set updated_at = config.get('updated_at') or snapshot_get_time() %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.388195, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.394964, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation.render() }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3952472, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.395405, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.395492, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.395627, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.395744, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.39594, "supported_languages": null}, "macro.dbt.get_snapshot_table_column_names": {"name": "get_snapshot_table_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_snapshot_table_column_names", "macro_sql": "{% macro get_snapshot_table_column_names() %}\n {{ return({'dbt_valid_to': 'dbt_valid_to', 'dbt_valid_from': 'dbt_valid_from', 'dbt_scd_id': 'dbt_scd_id', 'dbt_updated_at': 'dbt_updated_at'}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3961542, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where {{ columns.dbt_valid_to }} is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as {{ columns.dbt_valid_to }},\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }}\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_to }}\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.{{ columns.dbt_scd_id }}\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_to }},\n snapshotted_data.{{ columns.dbt_scd_id }}\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3973691, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.397553, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n\n select *,\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as {{ columns.dbt_valid_to }}\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.39797, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3983722, "supported_languages": null}, "macro.dbt.get_updated_at_column_data_type": {"name": "get_updated_at_column_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_updated_at_column_data_type", "macro_sql": "{% macro get_updated_at_column_data_type(snapshot_sql) %}\n {% set snapshot_sql_column_schema = get_column_schema_from_query(snapshot_sql) %}\n {% set dbt_updated_at_data_type = null %}\n {% set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {% set ns.dbt_updated_at_data_type = null -%}\n {% for column in snapshot_sql_column_schema %}\n {% if ((column.column == 'dbt_updated_at') or (column.column == 'DBT_UPDATED_AT')) %}\n {% set ns.dbt_updated_at_data_type = column.dtype %}\n {% endif %}\n {% endfor %}\n {{ return(ns.dbt_updated_at_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.3989172, "supported_languages": null}, "macro.dbt.check_time_data_types": {"name": "check_time_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.check_time_data_types", "macro_sql": "{% macro check_time_data_types(sql) %}\n {% set dbt_updated_at_data_type = get_updated_at_column_data_type(sql) %}\n {% set snapshot_get_time_data_type = get_snapshot_get_time_data_type() %}\n {% if snapshot_get_time_data_type is not none and dbt_updated_at_data_type is not none and snapshot_get_time_data_type != dbt_updated_at_data_type %}\n {% if exceptions.warn_snapshot_timestamp_data_types %}\n {{ exceptions.warn_snapshot_timestamp_data_types(snapshot_get_time_data_type, dbt_updated_at_data_type) }}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_updated_at_column_data_type", "macro.dbt.get_snapshot_get_time_data_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.399387, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {# The model['config'] parameter below is no longer used, but passing anyway for compatibility #}\n {# It was a dictionary of config, instead of the config object from the context #}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", model['config'], target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set build_or_select_sql = build_sql %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\n\n {{ adapter.valid_snapshot_target(target_relation, columns) }}\n\n {% set build_or_select_sql = snapshot_staging_table(strategy, sql, target_relation) %}\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n\n {{ check_time_data_types(build_or_select_sql) }}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_staging_table", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.check_time_data_types", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.404614, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.407219, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.408336, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.408627, "supported_languages": null}, "macro.dbt.get_unit_test_sql": {"name": "get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_unit_test_sql", "macro_sql": "{% macro get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n {{ adapter.dispatch('get_unit_test_sql', 'dbt')(main_sql, expected_fixture_sql, expected_column_names) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_unit_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.408823, "supported_languages": null}, "macro.dbt.default__get_unit_test_sql": {"name": "default__get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_unit_test_sql", "macro_sql": "{% macro default__get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n-- Build actual result given inputs\nwith dbt_internal_unit_test_actual as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%},{% endif %}{%- endfor -%}, {{ dbt.string_literal(\"actual\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ main_sql }}\n ) _dbt_internal_unit_test_actual\n),\n-- Build expected result\ndbt_internal_unit_test_expected as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%}, {% endif %}{%- endfor -%}, {{ dbt.string_literal(\"expected\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ expected_fixture_sql }}\n ) _dbt_internal_unit_test_expected\n)\n-- Union actual and expected results\nselect * from dbt_internal_unit_test_actual\nunion all\nselect * from dbt_internal_unit_test_expected\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.40939, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4097521, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4101079, "supported_languages": null}, "macro.dbt.materialization_unit_default": {"name": "materialization_unit_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/unit.sql", "original_file_path": "macros/materializations/tests/unit.sql", "unique_id": "macro.dbt.materialization_unit_default", "macro_sql": "{%- materialization unit, default -%}\n\n {% set relations = [] %}\n\n {% set expected_rows = config.get('expected_rows') %}\n {% set expected_sql = config.get('expected_sql') %}\n {% set tested_expected_column_names = expected_rows[0].keys() if (expected_rows | length ) > 0 else get_columns_in_query(sql) %} %}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {% do run_query(get_create_table_as_sql(True, temp_relation, get_empty_subquery_sql(sql))) %}\n {%- set columns_in_relation = adapter.get_columns_in_relation(temp_relation) -%}\n {%- set column_name_to_data_types = {} -%}\n {%- for column in columns_in_relation -%}\n {%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n {%- endfor -%}\n\n {% if not expected_sql %}\n {% set expected_sql = get_expected_sql(expected_rows, column_name_to_data_types) %}\n {% endif %}\n {% set unit_test_sql = get_unit_test_sql(sql, expected_sql, tested_expected_column_names) %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ unit_test_sql }}\n\n {%- endcall %}\n\n {% do adapter.drop_relation(temp_relation) %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt.make_temp_relation", "macro.dbt.run_query", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_empty_subquery_sql", "macro.dbt.get_expected_sql", "macro.dbt.get_unit_test_sql", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.411762, "supported_languages": ["sql"]}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4166121, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.416982, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.41722, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation.render() ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation.render() ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.418504, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.418725, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.419334, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4220958, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4248252, "supported_languages": ["sql"]}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.426395, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4269, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.42751, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.427735, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4284081, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.43473, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.436277, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4365282, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4374652, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4377222, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4383261, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.43892, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.439998, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4402182, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.440403, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.440684, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4408572, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4411361, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.441312, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.441559, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.441735, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.441875, "supported_languages": null}, "macro.dbt.get_incremental_microbatch_sql": {"name": "get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_microbatch_sql", "macro_sql": "{% macro get_incremental_microbatch_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_microbatch_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_microbatch_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.442048, "supported_languages": null}, "macro.dbt.default__get_incremental_microbatch_sql": {"name": "default__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_microbatch_sql", "macro_sql": "{% macro default__get_incremental_microbatch_sql(arg_dict) %}\n\n {{ exceptions.raise_not_implemented('microbatch materialization strategy not implemented for adapter ' + adapter.type()) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.442198, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.442464, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% set contract_config = config.get('contract') %}\n {% if not contract_config or not contract_config.enforced %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {% endif %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.447406, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4530728, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.454292, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.455434, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4562402, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.456485, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.456602, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.456887, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation.render() }} clone {{ defer_relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.457047, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation.render() ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {% if target_relation and defer_relation and target_relation == defer_relation %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation.render()) }}\n {% else %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endif %}\n\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.460763, "supported_languages": ["sql"]}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation.render())) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.463831, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4688482, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.469694, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.469919, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation.render() %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.470389, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.470571, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4706979, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.470835, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.470947, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4711301, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4712489, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.471696, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.471884, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4730828, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.473496, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.473854, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4743612, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4746082, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.474874, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.475251, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.475488, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4761841, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation.render() }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4765491, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.476723, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.476916, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4771001, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.477862, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.479062, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.47943, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.479677, "supported_languages": null}, "macro.dbt.drop_schema_named": {"name": "drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.drop_schema_named", "macro_sql": "{% macro drop_schema_named(schema_name) %}\n {{ return(adapter.dispatch('drop_schema_named', 'dbt') (schema_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_schema_named"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.479934, "supported_languages": null}, "macro.dbt.default__drop_schema_named": {"name": "default__drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.default__drop_schema_named", "macro_sql": "{% macro default__drop_schema_named(schema_name) %}\n {% set schema_relation = api.Relation.create(schema=schema_name) %}\n {{ adapter.drop_schema(schema_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.480143, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4804459, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.48064, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.481322, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.481729, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.481931, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation.render() }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.482214, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4825459, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.482801, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.483257, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.483676, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.483996, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4842088, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{- adapter.dispatch('drop_materialized_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.484451, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.484568, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.484832, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.485039, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.485334, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.485465, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.485728, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.485866, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4864619, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4866402, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.486915, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.487052, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.487317, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4874518, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.488427, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4885418, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.489032, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.489196, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.489325, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.490595, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4909508, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.491273, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{- adapter.dispatch('drop_table', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4915159, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.491633, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.49189, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.492029, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.492286, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4924228, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.493248, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.493421, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.493834, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4944792, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4949188, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4950988, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4952672, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{- adapter.dispatch('drop_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4955032, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.49562, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4964638, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4966059, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4977212, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.497911, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation.render() ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.498136, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.498396, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4985359, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.498931, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.499084, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.499257, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation.render() }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.4996722, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.500015, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.500293, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5005288, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.50107, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.502469, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.503006, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.503278, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.505079, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5062451, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.506939, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.507157, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.507374, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.507447, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.508183, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.508739, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5089548, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.509299, "supported_languages": null}, "macro.dbt.date": {"name": "date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.date", "macro_sql": "{% macro date(year, month, day) %}\n {{ return(adapter.dispatch('date', 'dbt') (year, month, day)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5096161, "supported_languages": null}, "macro.dbt.default__date": {"name": "default__date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.default__date", "macro_sql": "{% macro default__date(year, month, day) -%}\n {%- set dt = modules.datetime.date(year, month, day) -%}\n {%- set iso_8601_formatted_date = dt.strftime('%Y-%m-%d') -%}\n to_date('{{ iso_8601_formatted_date }}', 'YYYY-MM-DD')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5098891, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5102131, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.510367, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.510599, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5107179, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5115252, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.511914, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.512094, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.512576, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.512821, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.512922, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.513255, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5134878, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5137, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.513776, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5140228, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.514164, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.514441, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.514571, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.515182, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.515566, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5158882, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.516045, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.516316, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5164459, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5166888, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.51684, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.517069, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.51722, "supported_languages": null}, "macro.dbt.cast": {"name": "cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.cast", "macro_sql": "{% macro cast(field, type) %}\n {{ return(adapter.dispatch('cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.517479, "supported_languages": null}, "macro.dbt.default__cast": {"name": "default__cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.default__cast", "macro_sql": "{% macro default__cast(field, type) %}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5176, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.517838, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5180001, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.518278, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.51841, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.518641, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.51874, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.519659, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.519809, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5199628, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5201101, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.52027, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5204108, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.520564, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.520731, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.520885, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.521025, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.521178, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.521315, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.521464, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.521601, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.521863, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.522053, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.522284, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.522385, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5227032, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5229518, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.523093, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.523602, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5237591, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.523971, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.524231, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.524357, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5247118, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.524936, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5252, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.525324, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5256782, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.52585, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.526005, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.526175, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.526824, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.52703, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.527167, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.527266, "supported_languages": null}, "macro.dbt.get_snapshot_get_time_data_type": {"name": "get_snapshot_get_time_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.get_snapshot_get_time_data_type", "macro_sql": "{% macro get_snapshot_get_time_data_type() %}\n {% set snapshot_time = adapter.dispatch('snapshot_get_time', 'dbt')() %}\n {% set time_data_type_sql = 'select ' ~ snapshot_time ~ ' as dbt_snapshot_time' %}\n {% set snapshot_time_column_schema = get_column_schema_from_query(time_data_type_sql) %}\n {% set time_data_type = snapshot_time_column_schema[0].dtype %}\n {{ return(time_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt_postgres.postgres__snapshot_get_time", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.527652, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.527812, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5278878, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.528043, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.528202, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.529012, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.529142, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5292952, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5296729, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.529846, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.529978, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5301251, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.530245, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5321972, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.532362, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.532567, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.532902, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.533129, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.533431, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.533605, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation.render() }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.533772, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.534008, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.534529, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.534747, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.534882, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.535278, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.535678, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.535947, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.53616, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.537834, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.537944, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.538103, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5382102, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.538531, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.538713, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.538826, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.539239, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation.render() }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.539434, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.539653, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation.render() }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.539854, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.54008, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5407019, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5408828, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5411131, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.541331, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation.render() ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.542399, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header is not none -%}\n {{ sql_header }}\n {%- endif %}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5427809, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "\n{%- macro get_limit_subquery_sql(sql, limit) -%}\n {{ adapter.dispatch('get_limit_sql', 'dbt')(sql, limit) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_limit_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.542954, "supported_languages": null}, "macro.dbt.default__get_limit_sql": {"name": "default__get_limit_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_sql", "macro_sql": "{% macro default__get_limit_sql(sql, limit) %}\n {{ compiled_code }}\n {% if limit is not none %}\n limit {{ limit }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.543134, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5437849, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.543941, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.544132, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.544287, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.544541, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5450518, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.548366, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5486069, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.548797, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.54904, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.549216, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.54937, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5495381, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5497758, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5499709, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.550256, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.550435, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.550587, "supported_languages": null}, "macro.dbt.get_catalog_for_single_relation": {"name": "get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_for_single_relation", "macro_sql": "{% macro get_catalog_for_single_relation(relation) %}\n {{ return(adapter.dispatch('get_catalog_for_single_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_catalog_for_single_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.550761, "supported_languages": null}, "macro.dbt.default__get_catalog_for_single_relation": {"name": "default__get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_for_single_relation", "macro_sql": "{% macro default__get_catalog_for_single_relation(relation) %}\n {{ exceptions.raise_not_implemented(\n 'get_catalog_for_single_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.55091, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5510678, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.551211, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.55141, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5516338, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.553853, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.554004, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.554295, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5545049, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.554702, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.554872, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n {{ cast('null', col['data_type']) }} as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5559921, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.556334, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.556513, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5568378, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.557054, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation.render() }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation.render() }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation.render() }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation.render() }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5576699, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.55792, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation.render() }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.558718, "supported_languages": null}, "macro.dbt.get_fixture_sql": {"name": "get_fixture_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_fixture_sql", "macro_sql": "{% macro get_fixture_sql(rows, column_name_to_data_types) %}\n-- Fixture for {{ model.name }}\n{% set default_row = {} %}\n\n{%- if not column_name_to_data_types -%}\n{#-- Use defer_relation IFF it is available in the manifest and 'this' is missing from the database --#}\n{%- set this_or_defer_relation = defer_relation if (defer_relation and not load_relation(this)) else this -%}\n{%- set columns_in_relation = adapter.get_columns_in_relation(this_or_defer_relation) -%}\n\n{%- set column_name_to_data_types = {} -%}\n{%- for column in columns_in_relation -%}\n{#-- This needs to be a case-insensitive comparison --#}\n{%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n{%- endfor -%}\n{%- endif -%}\n\n{%- if not column_name_to_data_types -%}\n {{ exceptions.raise_compiler_error(\"Not able to get columns for unit test '\" ~ model.name ~ \"' from relation \" ~ this ~ \" because the relation doesn't exist\") }}\n{%- endif -%}\n\n{%- for column_name, column_type in column_name_to_data_types.items() -%}\n {%- do default_row.update({column_name: (safe_cast(\"null\", column_type) | trim )}) -%}\n{%- endfor -%}\n\n{{ validate_fixture_rows(rows, row_number) }}\n\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\n{%- set default_row_copy = default_row.copy() -%}\n{%- do default_row_copy.update(formatted_row) -%}\nselect\n{%- for column_name, column_value in default_row_copy.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n\n{%- if (rows | length) == 0 -%}\n select\n {%- for column_name, column_value in default_row.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%},{%- endif %}\n {%- endfor %}\n limit 0\n{%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.safe_cast", "macro.dbt.validate_fixture_rows", "macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.561965, "supported_languages": null}, "macro.dbt.get_expected_sql": {"name": "get_expected_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_expected_sql", "macro_sql": "{% macro get_expected_sql(rows, column_name_to_data_types) %}\n\n{%- if (rows | length) == 0 -%}\n select * from dbt_internal_unit_test_actual\n limit 0\n{%- else -%}\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\nselect\n{%- for column_name, column_value in formatted_row.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n{%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5624802, "supported_languages": null}, "macro.dbt.format_row": {"name": "format_row", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.format_row", "macro_sql": "\n\n{%- macro format_row(row, column_name_to_data_types) -%}\n {#-- generate case-insensitive formatted row --#}\n {% set formatted_row = {} %}\n {%- for column_name, column_value in row.items() -%}\n {% set column_name = column_name|lower %}\n\n {%- if column_name not in column_name_to_data_types %}\n {#-- if user-provided row contains column name that relation does not contain, raise an error --#}\n {% set fixture_name = \"expected output\" if model.resource_type == 'unit_test' else (\"'\" ~ model.name ~ \"'\") %}\n {{ exceptions.raise_compiler_error(\n \"Invalid column name: '\" ~ column_name ~ \"' in unit test fixture for \" ~ fixture_name ~ \".\"\n \"\\nAccepted columns for \" ~ fixture_name ~ \" are: \" ~ (column_name_to_data_types.keys()|list)\n ) }}\n {%- endif -%}\n\n {%- set column_type = column_name_to_data_types[column_name] %}\n\n {#-- sanitize column_value: wrap yaml strings in quotes, apply cast --#}\n {%- set column_value_clean = column_value -%}\n {%- if column_value is string -%}\n {%- set column_value_clean = dbt.string_literal(dbt.escape_single_quotes(column_value)) -%}\n {%- elif column_value is none -%}\n {%- set column_value_clean = 'null' -%}\n {%- endif -%}\n\n {%- set row_update = {column_name: safe_cast(column_value_clean, column_type) } -%}\n {%- do formatted_row.update(row_update) -%}\n {%- endfor -%}\n {{ return(formatted_row) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.string_literal", "macro.dbt.escape_single_quotes", "macro.dbt.safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.56352, "supported_languages": null}, "macro.dbt.validate_fixture_rows": {"name": "validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.validate_fixture_rows", "macro_sql": "{%- macro validate_fixture_rows(rows, row_number) -%}\n {{ return(adapter.dispatch('validate_fixture_rows', 'dbt')(rows, row_number)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__validate_fixture_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.563722, "supported_languages": null}, "macro.dbt.default__validate_fixture_rows": {"name": "default__validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.default__validate_fixture_rows", "macro_sql": "{%- macro default__validate_fixture_rows(rows, row_number) -%}\n {# This is an abstract method for adapter overrides as needed #}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5638132, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.565425, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.565572, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.566337, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.566717, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5672598, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5677052, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.567778, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.568277, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.568513, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5688052, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.569085, "supported_languages": null}, "macro.microsoft_ads_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.microsoft_ads_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.569942, "supported_languages": null}, "macro.microsoft_ads_source.microsoft_ads_add_pass_through_columns": {"name": "microsoft_ads_add_pass_through_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/microsoft_ads_add_pass_through_columns.sql", "original_file_path": "macros/microsoft_ads_add_pass_through_columns.sql", "unique_id": "macro.microsoft_ads_source.microsoft_ads_add_pass_through_columns", "macro_sql": "{% macro microsoft_ads_add_pass_through_columns(base_columns, pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for column in pass_through_fields %}\n\n {% if column is mapping %}\n {% set col_name = column.alias|default(column.name)|lower %}\n\n {% if col_name not in except_fields %}\n {% if column.alias %}\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% else %}\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% else %}\n {% if column|lower not in except_fields %}\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.571412, "supported_languages": null}, "macro.microsoft_ads_source.microsoft_ads_fill_pass_through_columns": {"name": "microsoft_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/microsoft_ads_fill_pass_through_columns.sql", "original_file_path": "macros/microsoft_ads_fill_pass_through_columns.sql", "unique_id": "macro.microsoft_ads_source.microsoft_ads_fill_pass_through_columns", "macro_sql": "{% macro microsoft_ads_fill_pass_through_columns(pass_through_fields, except=[]) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if (field.alias if field.alias else field.name) not in except %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5723689, "supported_languages": null}, "macro.microsoft_ads_source.get_campaign_daily_report_columns": {"name": "get_campaign_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_campaign_daily_report_columns.sql", "original_file_path": "macros/get_campaign_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_campaign_daily_report_columns", "macro_sql": "{% macro get_campaign_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget_association_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"revenue\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"all_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_revenue\", \"datatype\": dbt.type_numeric()}\n] %} \n\n{{ microsoft_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('microsoft_ads__campaign_passthrough_metrics'), except_fields=['conversions_qualified', 'conversions', 'revenue', 'all_conversions_qualified', 'all_conversions', 'all_revenue']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.microsoft_ads_source.microsoft_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.574958, "supported_languages": null}, "macro.microsoft_ads_source.get_ad_group_daily_report_columns": {"name": "get_ad_group_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_ad_group_daily_report_columns.sql", "original_file_path": "macros/get_ad_group_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_ad_group_daily_report_columns", "macro_sql": "{% macro get_ad_group_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()},\n {\"name\": \"conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"revenue\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"all_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_revenue\", \"datatype\": dbt.type_numeric()}\n] %} \n\n{{ microsoft_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('microsoft_ads__ad_group_passthrough_metrics'), except_fields=['conversions_qualified', 'conversions', 'revenue', 'all_conversions_qualified', 'all_conversions', 'all_revenue']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.microsoft_ads_source.microsoft_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.577447, "supported_languages": null}, "macro.microsoft_ads_source.get_account_daily_report_columns": {"name": "get_account_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_account_daily_report_columns.sql", "original_file_path": "macros/get_account_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_account_daily_report_columns", "macro_sql": "{% macro get_account_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()},\n {\"name\": \"conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"revenue\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"all_conversions_qualified\", \"datatype\": dbt.type_int()}\n] %} \n\n{{ microsoft_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('microsoft_ads__account_passthrough_metrics'), except_fields=['conversions_qualified', 'conversions', 'revenue', 'all_conversions_qualified']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.microsoft_ads_source.microsoft_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.579392, "supported_languages": null}, "macro.microsoft_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.microsoft_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.580203, "supported_languages": null}, "macro.microsoft_ads_source.get_account_history_columns": {"name": "get_account_history_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "unique_id": "macro.microsoft_ads_source.get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5808399, "supported_languages": null}, "macro.microsoft_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.microsoft_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title_part_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"final_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.581654, "supported_languages": null}, "macro.microsoft_ads_source.get_ad_daily_report_columns": {"name": "get_ad_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_ad_daily_report_columns.sql", "original_file_path": "macros/get_ad_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_ad_daily_report_columns", "macro_sql": "{% macro get_ad_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()},\n {\"name\": \"conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"revenue\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"all_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_revenue\", \"datatype\": dbt.type_numeric()}\n] %} \n\n{{ microsoft_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('microsoft_ads__ad_passthrough_metrics'), except_fields=['conversions_qualified', 'conversions', 'revenue', 'all_conversions_qualified', 'all_conversions', 'all_revenue']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.microsoft_ads_source.microsoft_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.584264, "supported_languages": null}, "macro.microsoft_ads_source.get_keyword_daily_report_columns": {"name": "get_keyword_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_keyword_daily_report_columns.sql", "original_file_path": "macros/get_keyword_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_keyword_daily_report_columns", "macro_sql": "{% macro get_keyword_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()},\n {\"name\": \"conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"revenue\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"all_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_revenue\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ microsoft_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('microsoft_ads__keyword_passthrough_metrics'), except_fields=['conversions_qualified', 'conversions', 'revenue', 'all_conversions_qualified', 'all_conversions', 'all_revenue']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.microsoft_ads_source.microsoft_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5869591, "supported_languages": null}, "macro.microsoft_ads_source.get_keyword_history_columns": {"name": "get_keyword_history_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "unique_id": "macro.microsoft_ads_source.get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.587691, "supported_languages": null}, "macro.microsoft_ads_source.get_search_daily_report_columns": {"name": "get_search_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_search_daily_report_columns.sql", "original_file_path": "macros/get_search_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_search_daily_report_columns", "macro_sql": "{% macro get_search_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"search_query\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()},\n {\"name\": \"conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"revenue\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"all_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_conversions_qualified\", \"datatype\": dbt.type_int()},\n {\"name\": \"all_revenue\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ microsoft_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('microsoft_ads__search_passthrough_metrics'), except_fields=['conversions_qualified', 'conversions', 'revenue', 'all_conversions_qualified', 'all_conversions', 'all_revenue']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.microsoft_ads_source.microsoft_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.590271, "supported_languages": null}, "macro.tiktok_ads.tiktok_ads_persist_pass_through_columns": {"name": "tiktok_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "tiktok_ads", "path": "macros/tiktok_ads_persist_pass_through_columns.sql", "original_file_path": "macros/tiktok_ads_persist_pass_through_columns.sql", "unique_id": "macro.tiktok_ads.tiktok_ads_persist_pass_through_columns", "macro_sql": "{% macro tiktok_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, exclude_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n {% if field_name not in exclude_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field_name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.59124, "supported_languages": null}, "macro.twitter_ads.twitter_ads_persist_pass_through_columns": {"name": "twitter_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "twitter_ads", "path": "macros/twitter_ads_persist_pass_through_columns.sql", "original_file_path": "macros/twitter_ads_persist_pass_through_columns.sql", "unique_id": "macro.twitter_ads.twitter_ads_persist_pass_through_columns", "macro_sql": "{% macro twitter_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, except_variable=none, exclude_fields=[]) %}\n\n{% set except_fields = [] %}\n{% if except_variable is not none %}\n {# Start creating list of fields to exclude #}\n {% for item in var(except_variable) %}\n {% do except_fields.append(item.name) %}\n {% endfor %}\n{% endif %}\n\n{% for field in exclude_fields %}\n {% do except_fields.append(field) %}\n{% endfor %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% if field not in except_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5925472, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.592895, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.593344, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.593808, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.5944178, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.594718, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.595018, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.596082, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.59703, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.597864, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.598923, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.59957, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.59989, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.600584, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.601368, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.601797, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.60222, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6028101, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.603253, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.60378, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.604138, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.604797, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n {% if group_by_columns|length() == 0 %}\n where {{ column_name }} is not null\n limit 1\n {% endif %}\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6055932, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.606198, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6067882, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.60733, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.607649, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.608025, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6084218, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.609068, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as {{ dbt.type_numeric() }}) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.609858, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6107361, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.611577, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns, exclude_columns, precision)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.613469, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n\n{%- if compare_columns and exclude_columns -%}\n {{ exceptions.raise_compiler_error(\"Both a compare and an ignore list were provided to the `equality` macro. Only one is allowed\") }}\n{%- endif -%}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{# Ensure there are no extra columns in the compare_model vs model #}\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- do dbt_utils._is_ephemeral(compare_model, 'test_equality') -%}\n\n {%- set model_columns = adapter.get_columns_in_relation(model) -%}\n {%- set compare_model_columns = adapter.get_columns_in_relation(compare_model) -%}\n\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- set include_model_columns = [] %}\n {%- for column in model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n {%- for column in compare_model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_model_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns_set = set(include_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(include_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- else -%}\n {%- set compare_columns_set = set(model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(compare_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- endif -%}\n\n {% if compare_columns_set != compare_model_columns_set %}\n {{ exceptions.raise_compiler_error(compare_model ~\" has less columns than \" ~ model ~ \", please ensure they have the same columns or use the `compare_columns` or `exclude_columns` arguments to subset them.\") }}\n {% endif %}\n\n\n{% endif %}\n\n{%- if not precision -%}\n {%- if not compare_columns -%}\n {# \n You cannot get the columns in an ephemeral model (due to not existing in the information schema),\n so if the user does not provide an explicit list of columns we must error in the case it is ephemeral\n #}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model)-%}\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- for column in compare_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns = include_columns | map(attribute='quoted') %}\n {%- else -%} {# Compare columns provided #}\n {%- set compare_columns = compare_columns | map(attribute='quoted') %}\n {%- endif -%}\n {%- endif -%}\n\n {% set compare_cols_csv = compare_columns | join(', ') %}\n\n{% else %} {# Precision required #}\n {#-\n If rounding is required, we need to get the types, so it cannot be ephemeral even if they provide column names\n -#}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set columns = adapter.get_columns_in_relation(model) -%}\n\n {% set columns_list = [] %}\n {%- for col in columns -%}\n {%- if (\n (col.name|lower in compare_columns|map('lower') or not compare_columns) and\n (col.name|lower not in exclude_columns|map('lower') or not exclude_columns)\n ) -%}\n {# Databricks double type is not picked up by any number type checks in dbt #}\n {%- if col.is_float() or col.is_numeric() or col.data_type == 'double' -%}\n {# Cast is required due to postgres not having round for a double precision number #}\n {%- do columns_list.append('round(cast(' ~ col.quoted ~ ' as ' ~ dbt.type_numeric() ~ '),' ~ precision ~ ') as ' ~ col.quoted) -%}\n {%- else -%} {# Non-numeric type #}\n {%- do columns_list.append(col.quoted) -%}\n {%- endif -%}\n {% endif %}\n {%- endfor -%}\n\n {% set compare_cols_csv = columns_list | join(', ') %}\n\n{% endif %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_numeric", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.617162, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.617675, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6179562, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.621493, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6229079, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.623164, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.623318, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.623738, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6239948, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.624177, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.624424, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.624583, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{% if not string %}\n{{ return('') }}\n{% endif %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.625251, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6260328, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6267169, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.627264, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.627479, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.627819, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.628182, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.628746, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.629042, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.629363, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.630017, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.63081, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.631628, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.632011, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6321878, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.632666, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6333199, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.634102, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6344872, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.634752, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.635984, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.637357, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, quote_identifiers)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.638866, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n {%- set current_col_name = adapter.quote(col.column) if quote_identifiers else col.column -%}\n select\n {%- for exclude_col in exclude %}\n {{ adapter.quote(exclude_col) if quote_identifiers else exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ adapter.quote(field_name) if quote_identifiers else field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(current_col_name) }}\n {% else %}\n {{ current_col_name }}\n {% endif %}\n as {{ cast_to }}) as {{ adapter.quote(value_name) if quote_identifiers else value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.640588, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.640867, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.640993, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.644203, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6473951, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.647681, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6479192, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.648788, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.648994, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }} as tt\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.649152, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.64933, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6494899, "supported_languages": null}, "macro.dbt_utils.databricks__deduplicate": {"name": "databricks__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.databricks__deduplicate", "macro_sql": "\n{%- macro databricks__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.649645, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6498098, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.650176, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.650398, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.650765, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.651273, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6515992, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.651907, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6551418, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.655481, "supported_languages": null}, "macro.dbt_utils.redshift__get_tables_by_pattern_sql": {"name": "redshift__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.redshift__get_tables_by_pattern_sql", "macro_sql": "{% macro redshift__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% set sql %}\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from \"{{ database }}\".\"information_schema\".\"tables\"\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n union all\n select distinct\n schemaname as {{ adapter.quote('table_schema') }},\n tablename as {{ adapter.quote('table_name') }},\n 'external' as {{ adapter.quote('table_type') }}\n from svv_external_tables\n where redshift_database_name = '{{ database }}'\n and schemaname ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n {% endset %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6562839, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.656946, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.657408, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6585112, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.659908, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6609411, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.66172, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.662166, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.662843, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6636071, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.664039, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6642199, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.664588, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.665139, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.665579, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6661701, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.666694, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.666827, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.666958, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6670878, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.667579, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.668339, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.669405, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6696699, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.670188, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.670936, "supported_languages": null}, "macro.reddit_ads.reddit_ads_extract_url_parameter": {"name": "reddit_ads_extract_url_parameter", "resource_type": "macro", "package_name": "reddit_ads", "path": "macros/reddit_ads_extract_url_parameters.sql", "original_file_path": "macros/reddit_ads_extract_url_parameters.sql", "unique_id": "macro.reddit_ads.reddit_ads_extract_url_parameter", "macro_sql": "{% macro reddit_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('reddit_ads_extract_url_parameter', 'reddit_ads') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.reddit_ads.default__reddit_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.671284, "supported_languages": null}, "macro.reddit_ads.default__reddit_ads_extract_url_parameter": {"name": "default__reddit_ads_extract_url_parameter", "resource_type": "macro", "package_name": "reddit_ads", "path": "macros/reddit_ads_extract_url_parameters.sql", "original_file_path": "macros/reddit_ads_extract_url_parameters.sql", "unique_id": "macro.reddit_ads.default__reddit_ads_extract_url_parameter", "macro_sql": "{% macro default__reddit_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.671427, "supported_languages": null}, "macro.reddit_ads.spark__reddit_ads_extract_url_parameter": {"name": "spark__reddit_ads_extract_url_parameter", "resource_type": "macro", "package_name": "reddit_ads", "path": "macros/reddit_ads_extract_url_parameters.sql", "original_file_path": "macros/reddit_ads_extract_url_parameters.sql", "unique_id": "macro.reddit_ads.spark__reddit_ads_extract_url_parameter", "macro_sql": "{% macro spark__reddit_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6716118, "supported_languages": null}, "macro.reddit_ads.reddit_ads_persist_pass_through_columns": {"name": "reddit_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "reddit_ads", "path": "macros/reddit_ads_persist_pass_through_columns.sql", "original_file_path": "macros/reddit_ads_persist_pass_through_columns.sql", "unique_id": "macro.reddit_ads.reddit_ads_persist_pass_through_columns", "macro_sql": "{% macro reddit_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, alias_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n , {{ transform ~ '(cast(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ' as ' ~ dbt.type_float() ~ '))' }} \n as {{ field_name ~ ('_c' if field_name in alias_fields else '') }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6726022, "supported_languages": null}, "macro.pinterest.pinterest_ads_persist_pass_through_columns": {"name": "pinterest_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "pinterest", "path": "macros/pinterest_ads_persist_pass_through_columns.sql", "original_file_path": "macros/pinterest_ads_persist_pass_through_columns.sql", "unique_id": "macro.pinterest.pinterest_ads_persist_pass_through_columns", "macro_sql": "{% macro pinterest_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, exclude_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n {% if field_name not in exclude_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field_name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6735628, "supported_languages": null}, "macro.reddit_ads_source.get_account_columns": {"name": "get_account_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_account_columns.sql", "original_file_path": "macros/get_account_columns.sql", "unique_id": "macro.reddit_ads_source.get_account_columns", "macro_sql": "{% macro get_account_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"attribution_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_attribution_window\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_zone_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"view_attribution_window\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.674573, "supported_languages": null}, "macro.reddit_ads_source.get_ad_group_conversions_report_columns": {"name": "get_ad_group_conversions_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_ad_group_conversions_report_columns.sql", "original_file_path": "macros/get_ad_group_conversions_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_ad_group_conversions_report_columns", "macro_sql": "{% macro get_ad_group_conversions_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_through_conversion_attribution_window_month\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"event_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_items\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversion_attribution_window_month\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__ad_group_conversions_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.675663, "supported_languages": null}, "macro.reddit_ads_source.get_campaign_columns": {"name": "get_campaign_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_campaign_columns.sql", "original_file_path": "macros/get_campaign_columns.sql", "unique_id": "macro.reddit_ads_source.get_campaign_columns", "macro_sql": "{% macro get_campaign_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"configured_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"funding_instrument_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_processing\", \"datatype\": \"boolean\"},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"objective\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.676651, "supported_languages": null}, "macro.reddit_ads_source.get_ad_conversions_report_columns": {"name": "get_ad_conversions_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_ad_conversions_report_columns.sql", "original_file_path": "macros/get_ad_conversions_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_ad_conversions_report_columns", "macro_sql": "{% macro get_ad_conversions_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_through_conversion_attribution_window_month\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"event_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_items\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversion_attribution_window_month\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__ad_conversions_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6777332, "supported_languages": null}, "macro.reddit_ads_source.get_ad_columns": {"name": "get_ad_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_ad_columns.sql", "original_file_path": "macros/get_ad_columns.sql", "unique_id": "macro.reddit_ads_source.get_ad_columns", "macro_sql": "{% macro get_ad_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"configured_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_processing\", \"datatype\": \"boolean\"},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"post_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"post_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"rejection_reason\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.679146, "supported_languages": null}, "macro.reddit_ads_source.get_campaign_report_columns": {"name": "get_campaign_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_campaign_report_columns", "macro_sql": "{% macro get_campaign_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"region\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()}\n] %}\n\n{% if target.type in ('bigquery', 'spark', 'databricks') %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"quote\": True, \"alias\": \"date_day\" } ) }}\n\n{% else %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"alias\": \"date_day\"} ) }}\n\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__campaign_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.680619, "supported_languages": null}, "macro.reddit_ads_source.get_ad_report_columns": {"name": "get_ad_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_ad_report_columns.sql", "original_file_path": "macros/get_ad_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_ad_report_columns", "macro_sql": "{% macro get_ad_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"region\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()}\n] %}\n\n{% if target.type in ('bigquery', 'spark', 'databricks') %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"quote\": True, \"alias\": \"date_day\" } ) }}\n\n{% else %}\n {{ columns.append( {\"name\": \"date\", \"datatype\": \"date\", \"alias\": \"date_day\"} ) }}\n\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__ad_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6820889, "supported_languages": null}, "macro.reddit_ads_source.get_campaign_conversions_report_columns": {"name": "get_campaign_conversions_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_campaign_conversions_report_columns.sql", "original_file_path": "macros/get_campaign_conversions_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_campaign_conversions_report_columns", "macro_sql": "{% macro get_campaign_conversions_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_through_conversion_attribution_window_month\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"event_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_items\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversion_attribution_window_month\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__campaign_conversions_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.68318, "supported_languages": null}, "macro.reddit_ads_source.get_ad_group_report_columns": {"name": "get_ad_group_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_ad_group_report_columns.sql", "original_file_path": "macros/get_ad_group_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_ad_group_report_columns", "macro_sql": "{% macro get_ad_group_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()}, \n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"region\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()}\n] %}\n\n{% if target.type in ('bigquery', 'spark', 'databricks') %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"quote\": True, \"alias\": \"date_day\" } ) }}\n\n{% else %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"alias\": \"date_day\"} ) }}\n\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__ad_group_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6846552, "supported_languages": null}, "macro.reddit_ads_source.get_account_report_columns": {"name": "get_account_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_account_report_columns.sql", "original_file_path": "macros/get_account_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_account_report_columns", "macro_sql": "{% macro get_account_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"region\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()}\n] %}\n\n{% if target.type in ('bigquery', 'spark', 'databricks') %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"quote\": True, \"alias\": \"date_day\" } ) }}\n\n{% else %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"alias\": \"date_day\"} ) }}\n\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__account_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.686039, "supported_languages": null}, "macro.reddit_ads_source.get_ad_group_columns": {"name": "get_ad_group_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_ad_group_columns.sql", "original_file_path": "macros/get_ad_group_columns.sql", "unique_id": "macro.reddit_ads_source.get_ad_group_columns", "macro_sql": "{% macro get_ad_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"configured_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"expand_targeting\", \"datatype\": \"boolean\"},\n {\"name\": \"goal_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"goal_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_processing\", \"datatype\": \"boolean\"},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"optimization_strategy_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.687677, "supported_languages": null}, "macro.reddit_ads_source.get_account_conversions_report_columns": {"name": "get_account_conversions_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_account_conversions_report_columns.sql", "original_file_path": "macros/get_account_conversions_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_account_conversions_report_columns", "macro_sql": "{% macro get_account_conversions_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_through_conversion_attribution_window_month\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"event_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_items\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversion_attribution_window_month\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__account_conversions_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.688673, "supported_languages": null}, "macro.google_ads.google_ads_persist_pass_through_columns": {"name": "google_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "google_ads", "path": "macros/google_ads_persist_pass_through_columns.sql", "original_file_path": "macros/google_ads_persist_pass_through_columns.sql", "unique_id": "macro.google_ads.google_ads_persist_pass_through_columns", "macro_sql": "{% macro google_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, exclude_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n {% if field_name not in exclude_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field_name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6896331, "supported_languages": null}, "macro.amazon_ads_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.amazon_ads_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"default_bid\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6905448, "supported_languages": null}, "macro.amazon_ads_source.get_product_ad_history_columns": {"name": "get_product_ad_history_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_product_ad_history_columns.sql", "original_file_path": "macros/get_product_ad_history_columns.sql", "unique_id": "macro.amazon_ads_source.get_product_ad_history_columns", "macro_sql": "{% macro get_product_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"asin\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.691541, "supported_languages": null}, "macro.amazon_ads_source.get_profile_columns": {"name": "get_profile_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_profile_columns.sql", "original_file_path": "macros/get_profile_columns.sql", "unique_id": "macro.amazon_ads_source.get_profile_columns", "macro_sql": "{% macro get_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_marketplace_string_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_valid_payment_method\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.692822, "supported_languages": null}, "macro.amazon_ads_source.amazon_ads_add_pass_through_columns": {"name": "amazon_ads_add_pass_through_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/amazon_ads_add_pass_though_columns.sql", "original_file_path": "macros/amazon_ads_add_pass_though_columns.sql", "unique_id": "macro.amazon_ads_source.amazon_ads_add_pass_through_columns", "macro_sql": "{% macro amazon_ads_add_pass_through_columns(base_columns, pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for column in pass_through_fields %}\n \n {% if column is mapping %}\n {% set col_name = column.alias|default(column.name)|lower %}\n\n {% if col_name not in except_fields %}\n {% if column.alias %}\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% else %}\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% else %}\n {% if column|lower not in except_fields %}\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.6942878, "supported_languages": null}, "macro.amazon_ads_source.get_advertised_product_report_columns": {"name": "get_advertised_product_report_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_advertised_product_report_columns.sql", "original_file_path": "macros/get_advertised_product_report_columns.sql", "unique_id": "macro.amazon_ads_source.get_advertised_product_report_columns", "macro_sql": "{% macro get_advertised_product_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"advertised_asin\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertised_sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"purchases_30_d\", \"datatype\": dbt.type_int()},\n {\"name\": \"sales_30_d\", \"datatype\": dbt.type_float()}\n] %}\n\n{# Add backwards compatibility if conversion metrics were added via passthrough columns prior to them being brought in by default #}\n{{ amazon_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('amazon_ads__advertised_product_passthrough_metrics'), except_fields=['purchases_30_d', 'sales_30_d']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.amazon_ads_source.amazon_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.695987, "supported_languages": null}, "macro.amazon_ads_source.get_ad_group_level_report_columns": {"name": "get_ad_group_level_report_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_ad_group_level_report_columns.sql", "original_file_path": "macros/get_ad_group_level_report_columns.sql", "unique_id": "macro.amazon_ads_source.get_ad_group_level_report_columns", "macro_sql": "{% macro get_ad_group_level_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_bidding_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"purchases_30_d\", \"datatype\": dbt.type_int()},\n {\"name\": \"sales_30_d\", \"datatype\": dbt.type_float()}\n] %}\n\n{# Add backwards compatibility if conversion metrics were added via passthrough columns prior to them being brought in by default #}\n{{ amazon_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('amazon_ads__ad_group_passthrough_metrics'), except_fields=['purchases_30_d', 'sales_30_d']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.amazon_ads_source.amazon_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.697058, "supported_languages": null}, "macro.amazon_ads_source.get_search_term_ad_keyword_report_columns": {"name": "get_search_term_ad_keyword_report_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_search_term_ad_keyword_report_columns.sql", "original_file_path": "macros/get_search_term_ad_keyword_report_columns.sql", "unique_id": "macro.amazon_ads_source.get_search_term_ad_keyword_report_columns", "macro_sql": "{% macro get_search_term_ad_keyword_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_keyword_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_bid\", \"datatype\": dbt.type_float()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"search_term\", \"datatype\": dbt.type_string()},\n {\"name\": \"targeting\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchases_30_d\", \"datatype\": dbt.type_int()},\n {\"name\": \"sales_30_d\", \"datatype\": dbt.type_float()}\n] %}\n\n{# Add backwards compatibility if conversion metrics were added via passthrough columns prior to them being brought in by default #}\n{{ amazon_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('amazon_ads__search_term_ad_keyword_passthrough_metrics'), except_fields=['purchases_30_d', 'sales_30_d']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.amazon_ads_source.amazon_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.698879, "supported_languages": null}, "macro.amazon_ads_source.get_campaign_level_report_columns": {"name": "get_campaign_level_report_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_campaign_level_report_columns.sql", "original_file_path": "macros/get_campaign_level_report_columns.sql", "unique_id": "macro.amazon_ads_source.get_campaign_level_report_columns", "macro_sql": "{% macro get_campaign_level_report_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_applicable_budget_rule_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_applicable_budget_rule_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_bidding_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_rule_based_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"purchases_30_d\", \"datatype\": dbt.type_int()},\n {\"name\": \"sales_30_d\", \"datatype\": dbt.type_float()}\n] %}\n\n{# Add backwards compatibility if conversion metrics were added via passthrough columns prior to them being brought in by default #}\n{{ amazon_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('amazon_ads__campaign_passthrough_metrics'), except_fields=['purchases_30_d', 'sales_30_d']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int", "macro.amazon_ads_source.amazon_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.700516, "supported_languages": null}, "macro.amazon_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.amazon_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"bidding_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"portfolio_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"profile_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"targeting_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget\", \"datatype\": dbt.type_float()},\n {\"name\": \"budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_budget\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.702057, "supported_languages": null}, "macro.amazon_ads_source.get_portfolio_history_columns": {"name": "get_portfolio_history_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_portfolio_history_columns.sql", "original_file_path": "macros/get_portfolio_history_columns.sql", "unique_id": "macro.amazon_ads_source.get_portfolio_history_columns", "macro_sql": "{% macro get_portfolio_history_columns() %}\n\n{% set columns = [\n {\"name\": \"budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget_end_date\", \"datatype\": \"date\"},\n {\"name\": \"budget_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget_start_date\", \"datatype\": \"date\"},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"in_budget\", \"datatype\": \"boolean\"},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"profile_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7033951, "supported_languages": null}, "macro.amazon_ads_source.get_targeting_keyword_report_columns": {"name": "get_targeting_keyword_report_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_targeting_keyword_report_columns.sql", "original_file_path": "macros/get_targeting_keyword_report_columns.sql", "unique_id": "macro.amazon_ads_source.get_targeting_keyword_report_columns", "macro_sql": "{% macro get_targeting_keyword_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_keyword_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_bid\", \"datatype\": dbt.type_float()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"targeting\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchases_30_d\", \"datatype\": dbt.type_int()},\n {\"name\": \"sales_30_d\", \"datatype\": dbt.type_float()}\n] %}\n\n{# Add backwards compatibility if conversion metrics were added via passthrough columns prior to them being brought in by default #}\n{{ amazon_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('amazon_ads__targeting_keyword_passthrough_metrics'), except_fields=['purchases_30_d', 'sales_30_d']) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.amazon_ads_source.amazon_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.705317, "supported_languages": null}, "macro.amazon_ads_source.get_keyword_history_columns": {"name": "get_keyword_history_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "unique_id": "macro.amazon_ads_source.get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_language_keyword\", \"datatype\": dbt.type_string()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_language_locale\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.706602, "supported_languages": null}, "macro.amazon_ads_source.amazon_ads_fill_pass_through_columns": {"name": "amazon_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/amazon_ads_fill_pass_through_columns.sql", "original_file_path": "macros/amazon_ads_fill_pass_through_columns.sql", "unique_id": "macro.amazon_ads_source.amazon_ads_fill_pass_through_columns", "macro_sql": "{% macro amazon_ads_fill_pass_through_columns(pass_through_fields, except=[]) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if (field.alias if field.alias else field.name) not in except %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.70754, "supported_languages": null}, "macro.linkedin_source.get_creative_history_columns": {"name": "get_creative_history_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_creative_history_columns.sql", "original_file_path": "macros/get_creative_history_columns.sql", "unique_id": "macro.linkedin_source.get_creative_history_columns", "macro_sql": "{% macro get_creative_history_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"click_uri\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"last_modified_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"intended_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"text_ad_landing_page\", \"datatype\": dbt.type_string()},\n {\"name\": \"spotlight_landing_page\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.708729, "supported_languages": null}, "macro.linkedin_source.linkedin_ads_extract_url_parameter": {"name": "linkedin_ads_extract_url_parameter", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/linkedin_ads_extract_url_parameters.sql", "original_file_path": "macros/linkedin_ads_extract_url_parameters.sql", "unique_id": "macro.linkedin_source.linkedin_ads_extract_url_parameter", "macro_sql": "{% macro linkedin_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('linkedin_ads_extract_url_parameter', 'linkedin_source') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.linkedin_source.default__linkedin_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.709076, "supported_languages": null}, "macro.linkedin_source.default__linkedin_ads_extract_url_parameter": {"name": "default__linkedin_ads_extract_url_parameter", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/linkedin_ads_extract_url_parameters.sql", "original_file_path": "macros/linkedin_ads_extract_url_parameters.sql", "unique_id": "macro.linkedin_source.default__linkedin_ads_extract_url_parameter", "macro_sql": "{% macro default__linkedin_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.709219, "supported_languages": null}, "macro.linkedin_source.spark__linkedin_ads_extract_url_parameter": {"name": "spark__linkedin_ads_extract_url_parameter", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/linkedin_ads_extract_url_parameters.sql", "original_file_path": "macros/linkedin_ads_extract_url_parameters.sql", "unique_id": "macro.linkedin_source.spark__linkedin_ads_extract_url_parameter", "macro_sql": "{% macro spark__linkedin_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.709404, "supported_languages": null}, "macro.linkedin_source.linkedin_ads_add_pass_through_columns": {"name": "linkedin_ads_add_pass_through_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/linkedin_ads_add_pass_through_columns.sql", "original_file_path": "macros/linkedin_ads_add_pass_through_columns.sql", "unique_id": "macro.linkedin_source.linkedin_ads_add_pass_through_columns", "macro_sql": "{% macro linkedin_ads_add_pass_through_columns(base_columns, pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for column in pass_through_fields %}\n\n {% if column is mapping %}\n {% set col_name = column.alias|default(column.name)|lower %}\n \n {% if col_name not in except_fields %}\n {% if column.alias %}\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% else %}\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% else %}\n {% if column|lower not in except_fields %}\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.710928, "supported_languages": null}, "macro.linkedin_source.linkedin_ads_fill_pass_through_columns": {"name": "linkedin_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/linkedin_ads_fill_pass_through_columns.sql", "original_file_path": "macros/linkedin_ads_fill_pass_through_columns.sql", "unique_id": "macro.linkedin_source.linkedin_ads_fill_pass_through_columns", "macro_sql": "{% macro linkedin_ads_fill_pass_through_columns(pass_through_fields, except=[]) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if (field.alias if field.alias else field.name) not in except %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.711879, "supported_languages": null}, "macro.linkedin_source.get_campaign_group_history_columns": {"name": "get_campaign_group_history_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_campaign_group_history_columns.sql", "original_file_path": "macros/get_campaign_group_history_columns.sql", "unique_id": "macro.linkedin_source.get_campaign_group_history_columns", "macro_sql": "{% macro get_campaign_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"backfilled\", \"datatype\": \"boolean\"},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"run_schedule_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"run_schedule_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.712877, "supported_languages": null}, "macro.linkedin_source.get_ad_analytics_by_campaign_columns": {"name": "get_ad_analytics_by_campaign_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_ad_analytics_by_campaign_columns.sql", "original_file_path": "macros/get_ad_analytics_by_campaign_columns.sql", "unique_id": "macro.linkedin_source.get_ad_analytics_by_campaign_columns", "macro_sql": "{% macro get_ad_analytics_by_campaign_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_in_local_currency\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"cost_in_usd\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"day\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversion_value_in_local_currency\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('linkedin_ads__conversion_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ linkedin_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('linkedin_ads__campaign_passthrough_metrics'), except_fields=(var('linkedin_ads__conversion_fields') + ['conversion_value_in_local_currency'])) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns", "macro.linkedin_source.linkedin_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.713999, "supported_languages": null}, "macro.linkedin_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.linkedin_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"audience_expansion_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"campaign_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creative_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"daily_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"format\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"locale_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"locale_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"objective_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"offsite_delivery_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"optimization_target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"run_schedule_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"run_schedule_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"version_tag\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.716455, "supported_languages": null}, "macro.linkedin_source.get_ad_analytics_by_creative_columns": {"name": "get_ad_analytics_by_creative_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_ad_analytics_by_creative_columns.sql", "original_file_path": "macros/get_ad_analytics_by_creative_columns.sql", "unique_id": "macro.linkedin_source.get_ad_analytics_by_creative_columns", "macro_sql": "{% macro get_ad_analytics_by_creative_columns() %}\n\n{% set columns = [\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_in_local_currency\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"cost_in_usd\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"creative_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"day\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversion_value_in_local_currency\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('linkedin_ads__conversion_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ linkedin_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('linkedin_ads__creative_passthrough_metrics'), except_fields=(var('linkedin_ads__conversion_fields') + ['conversion_value_in_local_currency'])) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns", "macro.linkedin_source.linkedin_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.717582, "supported_languages": null}, "macro.linkedin_source.get_account_history_columns": {"name": "get_account_history_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "unique_id": "macro.linkedin_source.get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"version_tag\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.718507, "supported_languages": null}, "macro.spark_utils.get_tables": {"name": "get_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_tables", "macro_sql": "{% macro get_tables(table_regex_pattern='.*') %}\n\n {% set tables = [] %}\n {% for database in spark__list_schemas('not_used') %}\n {% for table in spark__list_relations_without_caching(database[0]) %}\n {% set db_tablename = database[0] ~ \".\" ~ table[1] %}\n {% set is_match = modules.re.match(table_regex_pattern, db_tablename) %}\n {% if is_match %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('type', 'TYPE', 'Type'))|first %}\n {% if table_type[1]|lower != 'view' %}\n {{ tables.append(db_tablename) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% endfor %}\n {{ return(tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.723692, "supported_languages": null}, "macro.spark_utils.get_delta_tables": {"name": "get_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_delta_tables", "macro_sql": "{% macro get_delta_tables(table_regex_pattern='.*') %}\n\n {% set delta_tables = [] %}\n {% for db_tablename in get_tables(table_regex_pattern) %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('provider', 'PROVIDER', 'Provider'))|first %}\n {% if table_type[1]|lower == 'delta' %}\n {{ delta_tables.append(db_tablename) }}\n {% endif %}\n {% endfor %}\n {{ return(delta_tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7243361, "supported_languages": null}, "macro.spark_utils.get_statistic_columns": {"name": "get_statistic_columns", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_statistic_columns", "macro_sql": "{% macro get_statistic_columns(table) %}\n\n {% call statement('input_columns', fetch_result=True) %}\n SHOW COLUMNS IN {{ table }}\n {% endcall %}\n {% set input_columns = load_result('input_columns').table %}\n\n {% set output_columns = [] %}\n {% for column in input_columns %}\n {% call statement('column_information', fetch_result=True) %}\n DESCRIBE TABLE {{ table }} `{{ column[0] }}`\n {% endcall %}\n {% if not load_result('column_information').table[1][1].startswith('struct') and not load_result('column_information').table[1][1].startswith('array') %}\n {{ output_columns.append('`' ~ column[0] ~ '`') }}\n {% endif %}\n {% endfor %}\n {{ return(output_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.725156, "supported_languages": null}, "macro.spark_utils.spark_optimize_delta_tables": {"name": "spark_optimize_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_optimize_delta_tables", "macro_sql": "{% macro spark_optimize_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Optimizing \" ~ table) }}\n {% do run_query(\"optimize \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.725888, "supported_languages": null}, "macro.spark_utils.spark_vacuum_delta_tables": {"name": "spark_vacuum_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_vacuum_delta_tables", "macro_sql": "{% macro spark_vacuum_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Vacuuming \" ~ table) }}\n {% do run_query(\"vacuum \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.726571, "supported_languages": null}, "macro.spark_utils.spark_analyze_tables": {"name": "spark_analyze_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_analyze_tables", "macro_sql": "{% macro spark_analyze_tables(table_regex_pattern='.*') %}\n\n {% for table in get_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set columns = get_statistic_columns(table) | join(',') %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Analyzing \" ~ table) }}\n {% if columns != '' %}\n {% do run_query(\"analyze table \" ~ table ~ \" compute statistics for columns \" ~ columns) %}\n {% endif %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.spark_utils.get_statistic_columns", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.727395, "supported_languages": null}, "macro.spark_utils.spark__concat": {"name": "spark__concat", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/concat.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/concat.sql", "unique_id": "macro.spark_utils.spark__concat", "macro_sql": "{% macro spark__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.727563, "supported_languages": null}, "macro.spark_utils.spark__type_numeric": {"name": "spark__type_numeric", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "unique_id": "macro.spark_utils.spark__type_numeric", "macro_sql": "{% macro spark__type_numeric() %}\n decimal(28, 6)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.727668, "supported_languages": null}, "macro.spark_utils.spark__dateadd": {"name": "spark__dateadd", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "unique_id": "macro.spark_utils.spark__dateadd", "macro_sql": "{% macro spark__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {%- set clock_component -%}\n {# make sure the dates + timestamps are real, otherwise raise an error asap #}\n to_unix_timestamp({{ spark_utils.assert_not_null('to_timestamp', from_date_or_timestamp) }})\n - to_unix_timestamp({{ spark_utils.assert_not_null('date', from_date_or_timestamp) }})\n {%- endset -%}\n\n {%- if datepart in ['day', 'week'] -%}\n \n {%- set multiplier = 7 if datepart == 'week' else 1 -%}\n\n to_timestamp(\n to_unix_timestamp(\n date_add(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ['month', 'quarter', 'year'] -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'month' -%} 1\n {%- elif datepart == 'quarter' -%} 3\n {%- elif datepart == 'year' -%} 12\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n to_unix_timestamp(\n add_months(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n {{ spark_utils.assert_not_null('to_unix_timestamp', from_date_or_timestamp) }}\n + cast({{interval}} * {{multiplier}} as int)\n )\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro dateadd not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7304251, "supported_languages": null}, "macro.spark_utils.spark__datediff": {"name": "spark__datediff", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datediff.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datediff.sql", "unique_id": "macro.spark_utils.spark__datediff", "macro_sql": "{% macro spark__datediff(first_date, second_date, datepart) %}\n\n {%- if datepart in ['day', 'week', 'month', 'quarter', 'year'] -%}\n \n {# make sure the dates are real, otherwise raise an error asap #}\n {% set first_date = spark_utils.assert_not_null('date', first_date) %}\n {% set second_date = spark_utils.assert_not_null('date', second_date) %}\n \n {%- endif -%}\n \n {%- if datepart == 'day' -%}\n \n datediff({{second_date}}, {{first_date}})\n \n {%- elif datepart == 'week' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(datediff({{second_date}}, {{first_date}})/7)\n else ceil(datediff({{second_date}}, {{first_date}})/7)\n end\n \n -- did we cross a week boundary (Sunday)?\n + case\n when {{first_date}} < {{second_date}} and dayofweek({{second_date}}) < dayofweek({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofweek({{second_date}}) > dayofweek({{first_date}}) then -1\n else 0 end\n\n {%- elif datepart == 'month' -%}\n\n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}})))\n else ceil(months_between(date({{second_date}}), date({{first_date}})))\n end\n \n -- did we cross a month boundary?\n + case\n when {{first_date}} < {{second_date}} and dayofmonth({{second_date}}) < dayofmonth({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofmonth({{second_date}}) > dayofmonth({{first_date}}) then -1\n else 0 end\n \n {%- elif datepart == 'quarter' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}}))/3)\n else ceil(months_between(date({{second_date}}), date({{first_date}}))/3)\n end\n \n -- did we cross a quarter boundary?\n + case\n when {{first_date}} < {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n < (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then 1\n when {{first_date}} > {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n > (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then -1\n else 0 end\n\n {%- elif datepart == 'year' -%}\n \n year({{second_date}}) - year({{first_date}})\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set divisor -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n case when {{first_date}} < {{second_date}}\n then ceil((\n {# make sure the timestamps are real, otherwise raise an error asap #}\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n else floor((\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n end\n \n {% if datepart == 'millisecond' %}\n + cast(date_format({{second_date}}, 'SSS') as int)\n - cast(date_format({{first_date}}, 'SSS') as int)\n {% endif %}\n \n {% if datepart == 'microsecond' %} \n {% set capture_str = '[0-9]{4}-[0-9]{2}-[0-9]{2}.[0-9]{2}:[0-9]{2}:[0-9]{2}.([0-9]{6})' %}\n -- Spark doesn't really support microseconds, so this is a massive hack!\n -- It will only work if the timestamp-string is of the format\n -- 'yyyy-MM-dd-HH mm.ss.SSSSSS'\n + cast(regexp_extract({{second_date}}, '{{capture_str}}', 1) as int)\n - cast(regexp_extract({{first_date}}, '{{capture_str}}', 1) as int) \n {% endif %}\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro datediff not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7378838, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp": {"name": "spark__current_timestamp", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp", "macro_sql": "{% macro spark__current_timestamp() %}\n current_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.738017, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp_in_utc": {"name": "spark__current_timestamp_in_utc", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp_in_utc", "macro_sql": "{% macro spark__current_timestamp_in_utc() %}\n unix_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.73809, "supported_languages": null}, "macro.spark_utils.spark__split_part": {"name": "spark__split_part", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/split_part.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/split_part.sql", "unique_id": "macro.spark_utils.spark__split_part", "macro_sql": "{% macro spark__split_part(string_text, delimiter_text, part_number) %}\n\n {% set delimiter_expr %}\n \n -- escape if starts with a special character\n case when regexp_extract({{ delimiter_text }}, '([^A-Za-z0-9])(.*)', 1) != '_'\n then concat('\\\\', {{ delimiter_text }})\n else {{ delimiter_text }} end\n \n {% endset %}\n\n {% set split_part_expr %}\n \n split(\n {{ string_text }},\n {{ delimiter_expr }}\n )[({{ part_number - 1 }})]\n \n {% endset %}\n \n {{ return(split_part_expr) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.738636, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_pattern": {"name": "spark__get_relations_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_pattern", "macro_sql": "{% macro spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n show table extended in {{ schema_pattern }} like '{{ table_pattern }}'\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=None,\n schema=row[0],\n identifier=row[1],\n type=('view' if 'Type: VIEW' in row[3] else 'table')\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.740146, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_prefix": {"name": "spark__get_relations_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_prefix", "macro_sql": "{% macro spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {% set table_pattern = table_pattern ~ '*' %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.740462, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_pattern": {"name": "spark__get_tables_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_pattern", "macro_sql": "{% macro spark__get_tables_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.740722, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_prefix": {"name": "spark__get_tables_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_prefix", "macro_sql": "{% macro spark__get_tables_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7409768, "supported_languages": null}, "macro.spark_utils.assert_not_null": {"name": "assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.assert_not_null", "macro_sql": "{% macro assert_not_null(function, arg) -%}\n {{ return(adapter.dispatch('assert_not_null', 'spark_utils')(function, arg)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.spark_utils.default__assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.741278, "supported_languages": null}, "macro.spark_utils.default__assert_not_null": {"name": "default__assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.default__assert_not_null", "macro_sql": "{% macro default__assert_not_null(function, arg) %}\n\n coalesce({{function}}({{arg}}), nvl2({{function}}({{arg}}), assert_true({{function}}({{arg}}) is not null), null))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.741463, "supported_languages": null}, "macro.spark_utils.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/snowplow/convert_timezone.sql", "original_file_path": "macros/snowplow/convert_timezone.sql", "unique_id": "macro.spark_utils.spark__convert_timezone", "macro_sql": "{% macro spark__convert_timezone(in_tz, out_tz, in_timestamp) %}\n from_utc_timestamp(to_utc_timestamp({{in_timestamp}}, {{in_tz}}), {{out_tz}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.741654, "supported_languages": null}, "macro.amazon_ads.amazon_ads_persist_pass_through_columns": {"name": "amazon_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "amazon_ads", "path": "macros/amazon_ads_persist_pass_through_columns.sql", "original_file_path": "macros/amazon_ads_persist_pass_through_columns.sql", "unique_id": "macro.amazon_ads.amazon_ads_persist_pass_through_columns", "macro_sql": "{% macro amazon_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, exclude_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n {% if field_name not in exclude_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field_name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.74261, "supported_languages": null}, "macro.facebook_ads.facebook_ads_extract_url_parameter": {"name": "facebook_ads_extract_url_parameter", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/facebook_ads_extract_url_parameters.sql", "original_file_path": "macros/facebook_ads_extract_url_parameters.sql", "unique_id": "macro.facebook_ads.facebook_ads_extract_url_parameter", "macro_sql": "{% macro facebook_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('facebook_ads_extract_url_parameter', 'facebook_ads') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.facebook_ads.default__facebook_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.742955, "supported_languages": null}, "macro.facebook_ads.default__facebook_ads_extract_url_parameter": {"name": "default__facebook_ads_extract_url_parameter", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/facebook_ads_extract_url_parameters.sql", "original_file_path": "macros/facebook_ads_extract_url_parameters.sql", "unique_id": "macro.facebook_ads.default__facebook_ads_extract_url_parameter", "macro_sql": "{% macro default__facebook_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.743097, "supported_languages": null}, "macro.facebook_ads.spark__facebook_ads_extract_url_parameter": {"name": "spark__facebook_ads_extract_url_parameter", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/facebook_ads_extract_url_parameters.sql", "original_file_path": "macros/facebook_ads_extract_url_parameters.sql", "unique_id": "macro.facebook_ads.spark__facebook_ads_extract_url_parameter", "macro_sql": "{% macro spark__facebook_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.743295, "supported_languages": null}, "macro.facebook_ads.get_url_tags_query": {"name": "get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.get_url_tags_query", "macro_sql": "{% macro get_url_tags_query() %}\n {{ return(adapter.dispatch('get_url_tags_query') ()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.facebook_ads.postgres__get_url_tags_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.744522, "supported_languages": null}, "macro.facebook_ads.bigquery__get_url_tags_query": {"name": "bigquery__get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.bigquery__get_url_tags_query", "macro_sql": "{% macro bigquery__get_url_tags_query() %}\n\n cleaned_json as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n json_extract_array(replace(trim(url_tags, '\"'),'\\\\','')) as cleaned_url_tags\n from required_fields\n ), \n\n unnested as (\n\n select \n source_relation,\n _fivetran_id, \n creative_id, \n url_tag_element\n from cleaned_json\n left join unnest(cleaned_url_tags) as url_tag_element\n where cleaned_url_tags is not null\n ), \n\n fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n json_extract_scalar(url_tag_element, '$.key') as key,\n json_extract_scalar(url_tag_element, '$.value') as value,\n json_extract_scalar(url_tag_element, '$.type') as type\n from unnested\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7446458, "supported_languages": null}, "macro.facebook_ads.postgres__get_url_tags_query": {"name": "postgres__get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.postgres__get_url_tags_query", "macro_sql": "{% macro postgres__get_url_tags_query() %}\n\n cleaned_json as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n replace(trim(url_tags::text, '\"'),'\\\\','')::json as cleaned_url_tags\n from required_fields\n ), \n\n unnested as (\n\n select \n source_relation,\n _fivetran_id, \n creative_id, \n url_tag_element\n from cleaned_json\n left join lateral json_array_elements(cleaned_url_tags) as url_tag_element on True\n where cleaned_url_tags is not null\n ), \n\n fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n url_tag_element->>'key' as key,\n url_tag_element->>'value' as value,\n url_tag_element->>'type' as type\n from unnested\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.744766, "supported_languages": null}, "macro.facebook_ads.redshift__get_url_tags_query": {"name": "redshift__get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.redshift__get_url_tags_query", "macro_sql": "{% macro redshift__get_url_tags_query() %}\n\n numbers as (\n\n {{ dbt_utils.generate_series(upper_bound=1000) }}\n\n ), \n\n flattened_url_tags as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n json_extract_array_element_text(required_fields.url_tags, numbers.generated_number::int - 1, true) as element\n from required_fields\n inner join numbers\n on json_array_length(required_fields.url_tags) >= numbers.generated_number\n ), \n\n fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n json_extract_path_text(element,'key') as key,\n json_extract_path_text(element,'value') as value,\n json_extract_path_text(element,'type') as type\n from flattened_url_tags\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.744937, "supported_languages": null}, "macro.facebook_ads.snowflake__get_url_tags_query": {"name": "snowflake__get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.snowflake__get_url_tags_query", "macro_sql": "{% macro snowflake__get_url_tags_query() %}\n\n cleaned_fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n parse_json(url_tags) as url_tags\n from required_fields\n where url_tags is not null\n ), \n\n fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n url_tags.value:key::string as key,\n url_tags.value:value::string as value,\n url_tags.value:type::string as type\n from cleaned_fields,\n lateral flatten( input => url_tags ) as url_tags\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.745046, "supported_languages": null}, "macro.facebook_ads.spark__get_url_tags_query": {"name": "spark__get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.spark__get_url_tags_query", "macro_sql": "{% macro spark__get_url_tags_query() %}\n\n cleaned_fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n explode(from_json(url_tags, 'array>')) as url_tags\n from required_fields\n where url_tags is not null\n ), \n\n fields as (\n\n select\n source_relation,\n _fivetran_id,\n creative_id,\n url_tags.key as key,\n url_tags.value as value,\n url_tags.type as type\n from cleaned_fields\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.745208, "supported_languages": null}, "macro.facebook_ads.facebook_ads_persist_pass_through_columns": {"name": "facebook_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/facebook_ads_persist_pass_through_columns.sql", "original_file_path": "macros/facebook_ads_persist_pass_through_columns.sql", "unique_id": "macro.facebook_ads.facebook_ads_persist_pass_through_columns", "macro_sql": "{% macro facebook_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, exclude_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n {% if field_name not in exclude_fields %}\n , {{ transform ~ '(cast(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ' as ' ~ dbt.type_float() ~ '))' }} as {{ field_name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.746219, "supported_languages": null}, "macro.snapchat_ads.snapchat_ads_persist_pass_through_columns": {"name": "snapchat_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "snapchat_ads", "path": "macros/snapchat_ads_persist_pass_through_columns.sql", "original_file_path": "macros/snapchat_ads_persist_pass_through_columns.sql", "unique_id": "macro.snapchat_ads.snapchat_ads_persist_pass_through_columns", "macro_sql": "{% macro snapchat_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, except_variable=none, exclude_fields=[]) %}\n\n{% set except_fields = [] %}\n{% if except_variable is not none %}\n {# Start creating list of fields to exclude #}\n {% for item in var(except_variable) %}\n {% do except_fields.append(item.name) %}\n {% endfor %}\n{% endif %}\n\n{% for field in exclude_fields %}\n {% do except_fields.append(field) %}\n{% endfor %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field|lower %}\n \n {% if field_name not in except_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field_name }}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7476969, "supported_languages": null}, "macro.snapchat_ads.snapchat_ads_extract_url_parameter": {"name": "snapchat_ads_extract_url_parameter", "resource_type": "macro", "package_name": "snapchat_ads", "path": "macros/snapchat_ads_extract_url_parameters.sql", "original_file_path": "macros/snapchat_ads_extract_url_parameters.sql", "unique_id": "macro.snapchat_ads.snapchat_ads_extract_url_parameter", "macro_sql": "{% macro snapchat_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('snapchat_ads_extract_url_parameter', 'snapchat_ads') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snapchat_ads.default__snapchat_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.748045, "supported_languages": null}, "macro.snapchat_ads.default__snapchat_ads_extract_url_parameter": {"name": "default__snapchat_ads_extract_url_parameter", "resource_type": "macro", "package_name": "snapchat_ads", "path": "macros/snapchat_ads_extract_url_parameters.sql", "original_file_path": "macros/snapchat_ads_extract_url_parameters.sql", "unique_id": "macro.snapchat_ads.default__snapchat_ads_extract_url_parameter", "macro_sql": "{% macro default__snapchat_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.748189, "supported_languages": null}, "macro.snapchat_ads.spark__snapchat_ads_extract_url_parameter": {"name": "spark__snapchat_ads_extract_url_parameter", "resource_type": "macro", "package_name": "snapchat_ads", "path": "macros/snapchat_ads_extract_url_parameters.sql", "original_file_path": "macros/snapchat_ads_extract_url_parameters.sql", "unique_id": "macro.snapchat_ads.spark__snapchat_ads_extract_url_parameter", "macro_sql": "{% macro spark__snapchat_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.748375, "supported_languages": null}, "macro.dbt_date.get_date_dimension": {"name": "get_date_dimension", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "unique_id": "macro.dbt_date.get_date_dimension", "macro_sql": "{% macro get_date_dimension(start_date, end_date) %}\n {{ adapter.dispatch('get_date_dimension', 'dbt_date') (start_date, end_date) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.postgres__get_date_dimension"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7574348, "supported_languages": null}, "macro.dbt_date.default__get_date_dimension": {"name": "default__get_date_dimension", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "unique_id": "macro.dbt_date.default__get_date_dimension", "macro_sql": "{% macro default__get_date_dimension(start_date, end_date) %}\nwith base_dates as (\n {{ dbt_date.get_base_dates(start_date, end_date) }}\n),\ndates_with_prior_year_dates as (\n\n select\n cast(d.date_day as date) as date_day,\n cast({{ dbt.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt.dateadd('day', -364 , 'd.date_day') }} as date) as prior_year_over_year_date_day\n from\n \tbase_dates d\n\n)\nselect\n d.date_day,\n {{ dbt_date.yesterday('d.date_day') }} as prior_date_day,\n {{ dbt_date.tomorrow('d.date_day') }} as next_date_day,\n d.prior_year_date_day as prior_year_date_day,\n d.prior_year_over_year_date_day,\n {{ dbt_date.day_of_week('d.date_day', isoweek=false) }} as day_of_week,\n {{ dbt_date.day_of_week('d.date_day', isoweek=true) }} as day_of_week_iso,\n {{ dbt_date.day_name('d.date_day', short=false) }} as day_of_week_name,\n {{ dbt_date.day_name('d.date_day', short=true) }} as day_of_week_name_short,\n {{ dbt_date.day_of_month('d.date_day') }} as day_of_month,\n {{ dbt_date.day_of_year('d.date_day') }} as day_of_year,\n\n {{ dbt_date.week_start('d.date_day') }} as week_start_date,\n {{ dbt_date.week_end('d.date_day') }} as week_end_date,\n {{ dbt_date.week_start('d.prior_year_over_year_date_day') }} as prior_year_week_start_date,\n {{ dbt_date.week_end('d.prior_year_over_year_date_day') }} as prior_year_week_end_date,\n {{ dbt_date.week_of_year('d.date_day') }} as week_of_year,\n\n {{ dbt_date.iso_week_start('d.date_day') }} as iso_week_start_date,\n {{ dbt_date.iso_week_end('d.date_day') }} as iso_week_end_date,\n {{ dbt_date.iso_week_start('d.prior_year_over_year_date_day') }} as prior_year_iso_week_start_date,\n {{ dbt_date.iso_week_end('d.prior_year_over_year_date_day') }} as prior_year_iso_week_end_date,\n {{ dbt_date.iso_week_of_year('d.date_day') }} as iso_week_of_year,\n\n {{ dbt_date.week_of_year('d.prior_year_over_year_date_day') }} as prior_year_week_of_year,\n {{ dbt_date.iso_week_of_year('d.prior_year_over_year_date_day') }} as prior_year_iso_week_of_year,\n\n cast({{ dbt_date.date_part('month', 'd.date_day') }} as {{ dbt.type_int() }}) as month_of_year,\n {{ dbt_date.month_name('d.date_day', short=false) }} as month_name,\n {{ dbt_date.month_name('d.date_day', short=true) }} as month_name_short,\n\n cast({{ dbt.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ last_day('d.prior_year_date_day', 'month') }} as date) as prior_year_month_end_date,\n\n cast({{ dbt_date.date_part('quarter', 'd.date_day') }} as {{ dbt.type_int() }}) as quarter_of_year,\n cast({{ dbt.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n cast({{ last_day('d.date_day', 'quarter') }} as date) as quarter_end_date,\n\n cast({{ dbt_date.date_part('year', 'd.date_day') }} as {{ dbt.type_int() }}) as year_number,\n cast({{ dbt.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ last_day('d.date_day', 'year') }} as date) as year_end_date\nfrom\n dates_with_prior_year_dates d\norder by 1\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt.dateadd", "macro.dbt_date.yesterday", "macro.dbt_date.tomorrow", "macro.dbt_date.day_of_week", "macro.dbt_date.day_name", "macro.dbt_date.day_of_month", "macro.dbt_date.day_of_year", "macro.dbt_date.week_start", "macro.dbt_date.week_end", "macro.dbt_date.week_of_year", "macro.dbt_date.iso_week_start", "macro.dbt_date.iso_week_end", "macro.dbt_date.iso_week_of_year", "macro.dbt_date.date_part", "macro.dbt.type_int", "macro.dbt_date.month_name", "macro.dbt.date_trunc", "macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.759594, "supported_languages": null}, "macro.dbt_date.postgres__get_date_dimension": {"name": "postgres__get_date_dimension", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "unique_id": "macro.dbt_date.postgres__get_date_dimension", "macro_sql": "{% macro postgres__get_date_dimension(start_date, end_date) %}\nwith base_dates as (\n {{ dbt_date.get_base_dates(start_date, end_date) }}\n),\ndates_with_prior_year_dates as (\n\n select\n cast(d.date_day as date) as date_day,\n cast({{ dbt.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt.dateadd('day', -364 , 'd.date_day') }} as date) as prior_year_over_year_date_day\n from\n \tbase_dates d\n\n)\nselect\n d.date_day,\n {{ dbt_date.yesterday('d.date_day') }} as prior_date_day,\n {{ dbt_date.tomorrow('d.date_day') }} as next_date_day,\n d.prior_year_date_day as prior_year_date_day,\n d.prior_year_over_year_date_day,\n {{ dbt_date.day_of_week('d.date_day', isoweek=true) }} as day_of_week,\n\n {{ dbt_date.day_name('d.date_day', short=false) }} as day_of_week_name,\n {{ dbt_date.day_name('d.date_day', short=true) }} as day_of_week_name_short,\n {{ dbt_date.day_of_month('d.date_day') }} as day_of_month,\n {{ dbt_date.day_of_year('d.date_day') }} as day_of_year,\n\n {{ dbt_date.week_start('d.date_day') }} as week_start_date,\n {{ dbt_date.week_end('d.date_day') }} as week_end_date,\n {{ dbt_date.week_start('d.prior_year_over_year_date_day') }} as prior_year_week_start_date,\n {{ dbt_date.week_end('d.prior_year_over_year_date_day') }} as prior_year_week_end_date,\n {{ dbt_date.week_of_year('d.date_day') }} as week_of_year,\n\n {{ dbt_date.iso_week_start('d.date_day') }} as iso_week_start_date,\n {{ dbt_date.iso_week_end('d.date_day') }} as iso_week_end_date,\n {{ dbt_date.iso_week_start('d.prior_year_over_year_date_day') }} as prior_year_iso_week_start_date,\n {{ dbt_date.iso_week_end('d.prior_year_over_year_date_day') }} as prior_year_iso_week_end_date,\n {{ dbt_date.iso_week_of_year('d.date_day') }} as iso_week_of_year,\n\n {{ dbt_date.week_of_year('d.prior_year_over_year_date_day') }} as prior_year_week_of_year,\n {{ dbt_date.iso_week_of_year('d.prior_year_over_year_date_day') }} as prior_year_iso_week_of_year,\n\n cast({{ dbt_date.date_part('month', 'd.date_day') }} as {{ dbt.type_int() }}) as month_of_year,\n {{ dbt_date.month_name('d.date_day', short=false) }} as month_name,\n {{ dbt_date.month_name('d.date_day', short=true) }} as month_name_short,\n\n cast({{ dbt.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ last_day('d.prior_year_date_day', 'month') }} as date) as prior_year_month_end_date,\n\n cast({{ dbt_date.date_part('quarter', 'd.date_day') }} as {{ dbt.type_int() }}) as quarter_of_year,\n cast({{ dbt.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n {# last_day does not support quarter because postgresql does not support quarter interval. #}\n cast({{dbt.dateadd('day', '-1', dbt.dateadd('month', '3', dbt.date_trunc('quarter', 'd.date_day')))}} as date) as quarter_end_date,\n\n cast({{ dbt_date.date_part('year', 'd.date_day') }} as {{ dbt.type_int() }}) as year_number,\n cast({{ dbt.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ last_day('d.date_day', 'year') }} as date) as year_end_date\nfrom\n dates_with_prior_year_dates d\norder by 1\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt.dateadd", "macro.dbt_date.yesterday", "macro.dbt_date.tomorrow", "macro.dbt_date.day_of_week", "macro.dbt_date.day_name", "macro.dbt_date.day_of_month", "macro.dbt_date.day_of_year", "macro.dbt_date.week_start", "macro.dbt_date.week_end", "macro.dbt_date.week_of_year", "macro.dbt_date.iso_week_start", "macro.dbt_date.iso_week_end", "macro.dbt_date.iso_week_of_year", "macro.dbt_date.date_part", "macro.dbt.type_int", "macro.dbt_date.month_name", "macro.dbt.date_trunc", "macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.761732, "supported_languages": null}, "macro.dbt_date.get_base_dates": {"name": "get_base_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "unique_id": "macro.dbt_date.get_base_dates", "macro_sql": "{% macro get_base_dates(start_date=None, end_date=None, n_dateparts=None, datepart=\"day\") %}\n {{ adapter.dispatch('get_base_dates', 'dbt_date') (start_date, end_date, n_dateparts, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_base_dates"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.76335, "supported_languages": null}, "macro.dbt_date.default__get_base_dates": {"name": "default__get_base_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "unique_id": "macro.dbt_date.default__get_base_dates", "macro_sql": "{% macro default__get_base_dates(start_date, end_date, n_dateparts, datepart) %}\n\n{%- if start_date and end_date -%}\n{%- set start_date=\"cast('\" ~ start_date ~ \"' as \" ~ dbt.type_timestamp() ~ \")\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as \" ~ dbt.type_timestamp() ~ \")\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt.dateadd(datepart, -1 * n_dateparts, dbt_date.today()) -%}\n{%- set end_date = dbt_date.tomorrow() -%}\n{%- endif -%}\n\nwith date_spine as\n(\n\n {{ dbt_date.date_spine(\n datepart=datepart,\n start_date=start_date,\n end_date=end_date,\n )\n }}\n\n)\nselect\n cast(d.date_{{ datepart }} as {{ dbt.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.764044, "supported_languages": null}, "macro.dbt_date.bigquery__get_base_dates": {"name": "bigquery__get_base_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "unique_id": "macro.dbt_date.bigquery__get_base_dates", "macro_sql": "{% macro bigquery__get_base_dates(start_date, end_date, n_dateparts, datepart) %}\n\n{%- if start_date and end_date -%}\n{%- set start_date=\"cast('\" ~ start_date ~ \"' as datetime )\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as datetime )\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt.dateadd(datepart, -1 * n_dateparts, dbt_date.today()) -%}\n{%- set end_date = dbt_date.tomorrow() -%}\n{%- endif -%}\n\nwith date_spine as\n(\n\n {{ dbt_date.date_spine(\n datepart=datepart,\n start_date=start_date,\n end_date=end_date,\n )\n }}\n\n)\nselect\n cast(d.date_{{ datepart }} as {{ dbt.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.764673, "supported_languages": null}, "macro.dbt_date.trino__get_base_dates": {"name": "trino__get_base_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "unique_id": "macro.dbt_date.trino__get_base_dates", "macro_sql": "{% macro trino__get_base_dates(start_date, end_date, n_dateparts, datepart) %}\n\n{%- if start_date and end_date -%}\n{%- set start_date=\"cast('\" ~ start_date ~ \"' as \" ~ dbt.type_timestamp() ~ \")\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as \" ~ dbt.type_timestamp() ~ \")\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt.dateadd(datepart, -1 * n_dateparts, dbt_date.now()) -%}\n{%- set end_date = dbt_date.tomorrow() -%}\n{%- endif -%}\n\nwith date_spine as\n(\n\n {{ dbt_date.date_spine(\n datepart=datepart,\n start_date=start_date,\n end_date=end_date,\n )\n }}\n\n)\nselect\n cast(d.date_{{ datepart }} as {{ dbt.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.dateadd", "macro.dbt_date.now", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7653608, "supported_languages": null}, "macro.dbt_date.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_date')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.766052, "supported_languages": null}, "macro.dbt_date.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.766602, "supported_languages": null}, "macro.dbt_date.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_date')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7668202, "supported_languages": null}, "macro.dbt_date.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{\n dbt_date.generate_series(\n dbt_date.get_intervals_between(start_date, end_date, datepart)\n )\n }}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"(row_number() over (order by 1) - 1)\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.generate_series", "macro.dbt_date.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7671611, "supported_languages": null}, "macro.dbt_date.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_date')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.767976, "supported_languages": null}, "macro.dbt_date.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7683609, "supported_languages": null}, "macro.dbt_date.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_date')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.768539, "supported_languages": null}, "macro.dbt_date.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_date.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.769017, "supported_languages": null}, "macro.dbt_date.date": {"name": "date", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/modules_datetime.sql", "original_file_path": "macros/_utils/modules_datetime.sql", "unique_id": "macro.dbt_date.date", "macro_sql": "{% macro date(year, month, day) %}\n {{ return(modules.datetime.date(year, month, day)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7693381, "supported_languages": null}, "macro.dbt_date.datetime": {"name": "datetime", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/modules_datetime.sql", "original_file_path": "macros/_utils/modules_datetime.sql", "unique_id": "macro.dbt_date.datetime", "macro_sql": "{% macro datetime(year, month, day, hour=0, minute=0, second=0, microsecond=0, tz=None) %}\n {% set tz = tz if tz else var(\"dbt_date:time_zone\") %}\n {{ return(\n modules.datetime.datetime(\n year=year, month=month, day=day, hour=hour,\n minute=minute, second=second, microsecond=microsecond,\n tzinfo=modules.pytz.timezone(tz)\n )\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.769852, "supported_languages": null}, "macro.dbt_date.get_fiscal_year_dates": {"name": "get_fiscal_year_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "unique_id": "macro.dbt_date.get_fiscal_year_dates", "macro_sql": "{% macro get_fiscal_year_dates(dates, year_end_month=12, week_start_day=1, shift_year=1) %}\n{{ adapter.dispatch('get_fiscal_year_dates', 'dbt_date') (dates, year_end_month, week_start_day, shift_year) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_fiscal_year_dates"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.771669, "supported_languages": null}, "macro.dbt_date.default__get_fiscal_year_dates": {"name": "default__get_fiscal_year_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "unique_id": "macro.dbt_date.default__get_fiscal_year_dates", "macro_sql": "{% macro default__get_fiscal_year_dates(dates, year_end_month, week_start_day, shift_year) %}\n-- this gets all the dates within a fiscal year\n-- determined by the given year-end-month\n-- ending on the saturday closest to that month's end date\nwith fsc_date_dimension as (\n select * from {{ dates }}\n),\nyear_month_end as (\n\n select\n d.year_number - {{ shift_year }} as fiscal_year_number,\n d.month_end_date\n from\n fsc_date_dimension d\n where\n d.month_of_year = {{ year_end_month }}\n group by 1,2\n\n),\nweeks as (\n\n select\n d.year_number,\n d.month_of_year,\n d.date_day as week_start_date,\n cast({{ dbt.dateadd('day', 6, 'd.date_day') }} as date) as week_end_date\n from\n fsc_date_dimension d\n where\n d.day_of_week = {{ week_start_day }}\n\n),\n-- get all the weeks that start in the month the year ends\nyear_week_ends as (\n\n select\n d.year_number - {{ shift_year }} as fiscal_year_number,\n d.week_end_date\n from\n weeks d\n where\n d.month_of_year = {{ year_end_month }}\n group by\n 1,2\n\n),\n-- then calculate which Saturday is closest to month end\nweeks_at_month_end as (\n\n select\n d.fiscal_year_number,\n d.week_end_date,\n m.month_end_date,\n rank() over\n (partition by d.fiscal_year_number\n order by\n abs({{ dbt.datediff('d.week_end_date', 'm.month_end_date', 'day') }})\n\n ) as closest_to_month_end\n from\n year_week_ends d\n join\n year_month_end m on d.fiscal_year_number = m.fiscal_year_number\n),\nfiscal_year_range as (\n\n select\n w.fiscal_year_number,\n cast(\n {{ dbt.dateadd('day', 1,\n 'lag(w.week_end_date) over(order by w.week_end_date)') }}\n as date) as fiscal_year_start_date,\n w.week_end_date as fiscal_year_end_date\n from\n weeks_at_month_end w\n where\n w.closest_to_month_end = 1\n\n),\nfiscal_year_dates as (\n\n select\n d.date_day,\n m.fiscal_year_number,\n m.fiscal_year_start_date,\n m.fiscal_year_end_date,\n w.week_start_date,\n w.week_end_date,\n -- we reset the weeks of the year starting with the merch year start date\n dense_rank()\n over(\n partition by m.fiscal_year_number\n order by w.week_start_date\n ) as fiscal_week_of_year\n from\n fsc_date_dimension d\n join\n fiscal_year_range m on d.date_day between m.fiscal_year_start_date and m.fiscal_year_end_date\n join\n weeks w on d.date_day between w.week_start_date and w.week_end_date\n\n)\nselect * from fiscal_year_dates order by 1\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.772238, "supported_languages": null}, "macro.dbt_date.get_fiscal_periods": {"name": "get_fiscal_periods", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/fiscal_date/get_fiscal_periods.sql", "original_file_path": "macros/fiscal_date/get_fiscal_periods.sql", "unique_id": "macro.dbt_date.get_fiscal_periods", "macro_sql": "{% macro get_fiscal_periods(dates, year_end_month, week_start_day, shift_year=1) %}\n{#\nThis macro requires you to pass in a ref to a date dimension, created via\ndbt_date.get_date_dimension()s\n#}\nwith fscl_year_dates_for_periods as (\n {{ dbt_date.get_fiscal_year_dates(dates, year_end_month, week_start_day, shift_year) }}\n),\nfscl_year_w13 as (\n\n select\n f.*,\n -- We count the weeks in a 13 week period\n -- and separate the 4-5-4 week sequences\n mod(cast(\n (f.fiscal_week_of_year-1) as {{ dbt.type_int() }}\n ), 13) as w13_number,\n -- Chop weeks into 13 week merch quarters\n cast(\n least(\n floor((f.fiscal_week_of_year-1)/13.0)\n , 3)\n as {{ dbt.type_int() }}) as quarter_number\n from\n fscl_year_dates_for_periods f\n\n),\nfscl_periods as (\n\n select\n f.date_day,\n f.fiscal_year_number,\n f.week_start_date,\n f.week_end_date,\n f.fiscal_week_of_year,\n case\n -- we move week 53 into the 3rd period of the quarter\n when f.fiscal_week_of_year = 53 then 3\n when f.w13_number between 0 and 3 then 1\n when f.w13_number between 4 and 8 then 2\n when f.w13_number between 9 and 12 then 3\n end as period_of_quarter,\n f.quarter_number\n from\n fscl_year_w13 f\n\n),\nfscl_periods_quarters as (\n\n select\n f.*,\n cast((\n (f.quarter_number * 3) + f.period_of_quarter\n ) as {{ dbt.type_int() }}) as fiscal_period_number\n from\n fscl_periods f\n\n)\nselect\n date_day,\n fiscal_year_number,\n week_start_date,\n week_end_date,\n fiscal_week_of_year,\n dense_rank() over(partition by fiscal_period_number order by fiscal_week_of_year) as fiscal_week_of_period,\n fiscal_period_number,\n quarter_number+1 as fiscal_quarter_number,\n period_of_quarter as fiscal_period_of_quarter\nfrom\n fscl_periods_quarters\norder by 1,2\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_fiscal_year_dates", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7731829, "supported_languages": null}, "macro.dbt_date.tomorrow": {"name": "tomorrow", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/tomorrow.sql", "original_file_path": "macros/calendar_date/tomorrow.sql", "unique_id": "macro.dbt_date.tomorrow", "macro_sql": "{%- macro tomorrow(date=None, tz=None) -%}\n{{ dbt_date.n_days_away(1, date, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.773391, "supported_languages": null}, "macro.dbt_date.next_week": {"name": "next_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_week.sql", "original_file_path": "macros/calendar_date/next_week.sql", "unique_id": "macro.dbt_date.next_week", "macro_sql": "{%- macro next_week(tz=None) -%}\n{{ dbt_date.n_weeks_away(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_weeks_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.77356, "supported_languages": null}, "macro.dbt_date.next_month_name": {"name": "next_month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_month_name.sql", "original_file_path": "macros/calendar_date/next_month_name.sql", "unique_id": "macro.dbt_date.next_month_name", "macro_sql": "{%- macro next_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.next_month(tz), short=short) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.month_name", "macro.dbt_date.next_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.773849, "supported_languages": null}, "macro.dbt_date.next_month": {"name": "next_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_month.sql", "original_file_path": "macros/calendar_date/next_month.sql", "unique_id": "macro.dbt_date.next_month", "macro_sql": "{%- macro next_month(tz=None) -%}\n{{ dbt_date.n_months_away(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_months_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7740219, "supported_languages": null}, "macro.dbt_date.day_name": {"name": "day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.day_name", "macro_sql": "{%- macro day_name(date, short=True) -%}\n {{ adapter.dispatch('day_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.postgres__day_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.774822, "supported_languages": null}, "macro.dbt_date.default__day_name": {"name": "default__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.default__day_name", "macro_sql": "\n\n{%- macro default__day_name(date, short) -%}\n{%- set f = 'Dy' if short else 'Day' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.775011, "supported_languages": null}, "macro.dbt_date.snowflake__day_name": {"name": "snowflake__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.snowflake__day_name", "macro_sql": "\n\n{%- macro snowflake__day_name(date, short) -%}\n {%- if short -%}\n dayname({{ date }})\n {%- else -%}\n -- long version not implemented on Snowflake so we're doing it manually :/\n case dayname({{ date }})\n when 'Mon' then 'Monday'\n when 'Tue' then 'Tuesday'\n when 'Wed' then 'Wednesday'\n when 'Thu' then 'Thursday'\n when 'Fri' then 'Friday'\n when 'Sat' then 'Saturday'\n when 'Sun' then 'Sunday'\n end\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.775209, "supported_languages": null}, "macro.dbt_date.bigquery__day_name": {"name": "bigquery__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.bigquery__day_name", "macro_sql": "\n\n{%- macro bigquery__day_name(date, short) -%}\n{%- set f = '%a' if short else '%A' -%}\n format_date('{{ f }}', cast({{ date }} as date))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7753952, "supported_languages": null}, "macro.dbt_date.postgres__day_name": {"name": "postgres__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.postgres__day_name", "macro_sql": "\n\n{%- macro postgres__day_name(date, short) -%}\n{# FM = Fill mode, which suppresses padding blanks #}\n{%- set f = 'FMDy' if short else 'FMDay' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.775585, "supported_languages": null}, "macro.dbt_date.duckdb__day_name": {"name": "duckdb__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.duckdb__day_name", "macro_sql": "\n\n{%- macro duckdb__day_name(date, short) -%}\n {%- if short -%}\n substr(dayname({{ date }}), 1, 3)\n {%- else -%}\n dayname({{ date }})\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.77576, "supported_languages": null}, "macro.dbt_date.spark__day_name": {"name": "spark__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.spark__day_name", "macro_sql": "\n\n{%- macro spark__day_name(date, short) -%}\n{%- set f = 'E' if short else 'EEEE' -%}\n date_format({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.775945, "supported_languages": null}, "macro.dbt_date.trino__day_name": {"name": "trino__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.trino__day_name", "macro_sql": "\n\n{%- macro trino__day_name(date, short) -%}\n{%- set f = 'a' if short else 'W' -%}\n date_format({{ date }}, '%{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7761369, "supported_languages": null}, "macro.dbt_date.to_unixtimestamp": {"name": "to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.to_unixtimestamp", "macro_sql": "{%- macro to_unixtimestamp(timestamp) -%}\n {{ adapter.dispatch('to_unixtimestamp', 'dbt_date') (timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__to_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.776526, "supported_languages": null}, "macro.dbt_date.default__to_unixtimestamp": {"name": "default__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.default__to_unixtimestamp", "macro_sql": "\n\n{%- macro default__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch', timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7766578, "supported_languages": null}, "macro.dbt_date.snowflake__to_unixtimestamp": {"name": "snowflake__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.snowflake__to_unixtimestamp", "macro_sql": "\n\n{%- macro snowflake__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch_seconds', timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.776788, "supported_languages": null}, "macro.dbt_date.bigquery__to_unixtimestamp": {"name": "bigquery__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.bigquery__to_unixtimestamp", "macro_sql": "\n\n{%- macro bigquery__to_unixtimestamp(timestamp) -%}\n unix_seconds({{ timestamp }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.776887, "supported_languages": null}, "macro.dbt_date.spark__to_unixtimestamp": {"name": "spark__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.spark__to_unixtimestamp", "macro_sql": "\n\n{%- macro spark__to_unixtimestamp(timestamp) -%}\n unix_timestamp({{ timestamp }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7769852, "supported_languages": null}, "macro.dbt_date.trino__to_unixtimestamp": {"name": "trino__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.trino__to_unixtimestamp", "macro_sql": "\n\n{%- macro trino__to_unixtimestamp(timestamp) -%}\n to_unixtime({{ timestamp }} AT TIME ZONE 'UTC')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.777081, "supported_languages": null}, "macro.dbt_date.n_days_away": {"name": "n_days_away", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_days_away.sql", "original_file_path": "macros/calendar_date/n_days_away.sql", "unique_id": "macro.dbt_date.n_days_away", "macro_sql": "{%- macro n_days_away(n, date=None, tz=None) -%}\n{{ dbt_date.n_days_ago(-1 * n, date, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.777306, "supported_languages": null}, "macro.dbt_date.week_start": {"name": "week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.week_start", "macro_sql": "{%- macro week_start(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_start', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.postgres__week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7777731, "supported_languages": null}, "macro.dbt_date.default__week_start": {"name": "default__week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.default__week_start", "macro_sql": "{%- macro default__week_start(date) -%}\ncast({{ dbt.date_trunc('week', date) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.777911, "supported_languages": null}, "macro.dbt_date.snowflake__week_start": {"name": "snowflake__week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.snowflake__week_start", "macro_sql": "\n\n{%- macro snowflake__week_start(date) -%}\n {#\n Get the day of week offset: e.g. if the date is a Sunday,\n dbt_date.day_of_week returns 1, so we subtract 1 to get a 0 offset\n #}\n {% set off_set = dbt_date.day_of_week(date, isoweek=False) ~ \" - 1\" %}\n cast({{ dbt.dateadd(\"day\", \"-1 * (\" ~ off_set ~ \")\", date) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.day_of_week", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.778244, "supported_languages": null}, "macro.dbt_date.postgres__week_start": {"name": "postgres__week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.postgres__week_start", "macro_sql": "\n\n{%- macro postgres__week_start(date) -%}\n-- Sunday as week start date\ncast({{ dbt.dateadd('day', -1, dbt.date_trunc('week', dbt.dateadd('day', 1, date))) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7784908, "supported_languages": null}, "macro.dbt_date.duckdb__week_start": {"name": "duckdb__week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.duckdb__week_start", "macro_sql": "\n\n{%- macro duckdb__week_start(date) -%}\n{{ return(dbt_date.postgres__week_start(date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.postgres__week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.778631, "supported_languages": null}, "macro.dbt_date.iso_week_start": {"name": "iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.iso_week_start", "macro_sql": "{%- macro iso_week_start(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_start', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.postgres__iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.77926, "supported_languages": null}, "macro.dbt_date._iso_week_start": {"name": "_iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date._iso_week_start", "macro_sql": "{%- macro _iso_week_start(date, week_type) -%}\ncast({{ dbt.date_trunc(week_type, date) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.779405, "supported_languages": null}, "macro.dbt_date.default__iso_week_start": {"name": "default__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.default__iso_week_start", "macro_sql": "\n\n{%- macro default__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'isoweek') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.779535, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_start": {"name": "snowflake__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.snowflake__iso_week_start", "macro_sql": "\n\n{%- macro snowflake__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.779665, "supported_languages": null}, "macro.dbt_date.postgres__iso_week_start": {"name": "postgres__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.postgres__iso_week_start", "macro_sql": "\n\n{%- macro postgres__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.779797, "supported_languages": null}, "macro.dbt_date.duckdb__iso_week_start": {"name": "duckdb__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.duckdb__iso_week_start", "macro_sql": "\n\n{%- macro duckdb__iso_week_start(date) -%}\n{{ return(dbt_date.postgres__iso_week_start(date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.postgres__iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.779937, "supported_languages": null}, "macro.dbt_date.spark__iso_week_start": {"name": "spark__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.spark__iso_week_start", "macro_sql": "\n\n{%- macro spark__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.780067, "supported_languages": null}, "macro.dbt_date.trino__iso_week_start": {"name": "trino__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.trino__iso_week_start", "macro_sql": "\n\n{%- macro trino__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7802, "supported_languages": null}, "macro.dbt_date.n_days_ago": {"name": "n_days_ago", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_days_ago.sql", "original_file_path": "macros/calendar_date/n_days_ago.sql", "unique_id": "macro.dbt_date.n_days_ago", "macro_sql": "{%- macro n_days_ago(n, date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{%- set n = n|int -%}\ncast({{ dbt.dateadd('day', -1 * n, dt) }} as date)\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.780582, "supported_languages": null}, "macro.dbt_date.last_week": {"name": "last_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_week.sql", "original_file_path": "macros/calendar_date/last_week.sql", "unique_id": "macro.dbt_date.last_week", "macro_sql": "{%- macro last_week(tz=None) -%}\n{{ dbt_date.n_weeks_ago(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_weeks_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.780756, "supported_languages": null}, "macro.dbt_date.now": {"name": "now", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/now.sql", "original_file_path": "macros/calendar_date/now.sql", "unique_id": "macro.dbt_date.now", "macro_sql": "{%- macro now(tz=None) -%}\n{{ dbt_date.convert_timezone(dbt.current_timestamp(), tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.convert_timezone", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.780941, "supported_languages": null}, "macro.dbt_date.periods_since": {"name": "periods_since", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/periods_since.sql", "original_file_path": "macros/calendar_date/periods_since.sql", "unique_id": "macro.dbt_date.periods_since", "macro_sql": "{%- macro periods_since(date_col, period_name='day', tz=None) -%}\n{{ dbt.datediff(date_col, dbt_date.now(tz), period_name) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.781185, "supported_languages": null}, "macro.dbt_date.today": {"name": "today", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/today.sql", "original_file_path": "macros/calendar_date/today.sql", "unique_id": "macro.dbt_date.today", "macro_sql": "{%- macro today(tz=None) -%}\ncast({{ dbt_date.now(tz) }} as date)\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.781346, "supported_languages": null}, "macro.dbt_date.last_month": {"name": "last_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_month.sql", "original_file_path": "macros/calendar_date/last_month.sql", "unique_id": "macro.dbt_date.last_month", "macro_sql": "{%- macro last_month(tz=None) -%}\n{{ dbt_date.n_months_ago(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_months_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7815151, "supported_languages": null}, "macro.dbt_date.day_of_year": {"name": "day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.day_of_year", "macro_sql": "{%- macro day_of_year(date) -%}\n{{ adapter.dispatch('day_of_year', 'dbt_date') (date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.postgres__day_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.78191, "supported_languages": null}, "macro.dbt_date.default__day_of_year": {"name": "default__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.default__day_of_year", "macro_sql": "\n\n{%- macro default__day_of_year(date) -%}\n {{ dbt_date.date_part('dayofyear', date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.782044, "supported_languages": null}, "macro.dbt_date.postgres__day_of_year": {"name": "postgres__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.postgres__day_of_year", "macro_sql": "\n\n{%- macro postgres__day_of_year(date) -%}\n {{ dbt_date.date_part('doy', date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.782176, "supported_languages": null}, "macro.dbt_date.redshift__day_of_year": {"name": "redshift__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.redshift__day_of_year", "macro_sql": "\n\n{%- macro redshift__day_of_year(date) -%}\n cast({{ dbt_date.date_part('dayofyear', date) }} as {{ dbt.type_bigint() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.782349, "supported_languages": null}, "macro.dbt_date.spark__day_of_year": {"name": "spark__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.spark__day_of_year", "macro_sql": "\n\n{%- macro spark__day_of_year(date) -%}\n dayofyear({{ date }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.78251, "supported_languages": null}, "macro.dbt_date.trino__day_of_year": {"name": "trino__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.trino__day_of_year", "macro_sql": "\n\n{%- macro trino__day_of_year(date) -%}\n {{ dbt_date.date_part('day_of_year', date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7826402, "supported_languages": null}, "macro.dbt_date.round_timestamp": {"name": "round_timestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/round_timestamp.sql", "original_file_path": "macros/calendar_date/round_timestamp.sql", "unique_id": "macro.dbt_date.round_timestamp", "macro_sql": "{% macro round_timestamp(timestamp) %}\n {{ dbt.date_trunc(\"day\", dbt.dateadd(\"hour\", 12, timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7828648, "supported_languages": null}, "macro.dbt_date.from_unixtimestamp": {"name": "from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.from_unixtimestamp", "macro_sql": "{%- macro from_unixtimestamp(epochs, format=\"seconds\") -%}\n {{ adapter.dispatch('from_unixtimestamp', 'dbt_date') (epochs, format) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.postgres__from_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7854688, "supported_languages": null}, "macro.dbt_date.default__from_unixtimestamp": {"name": "default__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.default__from_unixtimestamp", "macro_sql": "\n\n{%- macro default__from_unixtimestamp(epochs, format=\"seconds\") -%}\n {%- if format != \"seconds\" -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n to_timestamp({{ epochs }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.785714, "supported_languages": null}, "macro.dbt_date.postgres__from_unixtimestamp": {"name": "postgres__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.postgres__from_unixtimestamp", "macro_sql": "\n\n{%- macro postgres__from_unixtimestamp(epochs, format=\"seconds\") -%}\n {%- if format != \"seconds\" -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n cast(to_timestamp({{ epochs }}) at time zone 'UTC' as timestamp)\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.78596, "supported_languages": null}, "macro.dbt_date.snowflake__from_unixtimestamp": {"name": "snowflake__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.snowflake__from_unixtimestamp", "macro_sql": "\n\n{%- macro snowflake__from_unixtimestamp(epochs, format) -%}\n {%- if format == \"seconds\" -%}\n {%- set scale = 0 -%}\n {%- elif format == \"milliseconds\" -%}\n {%- set scale = 3 -%}\n {%- elif format == \"microseconds\" -%}\n {%- set scale = 6 -%}\n {%- else -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n to_timestamp_ntz({{ epochs }}, {{ scale }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7863941, "supported_languages": null}, "macro.dbt_date.bigquery__from_unixtimestamp": {"name": "bigquery__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.bigquery__from_unixtimestamp", "macro_sql": "\n\n{%- macro bigquery__from_unixtimestamp(epochs, format) -%}\n {%- if format == \"seconds\" -%}\n timestamp_seconds({{ epochs }})\n {%- elif format == \"milliseconds\" -%}\n timestamp_millis({{ epochs }})\n {%- elif format == \"microseconds\" -%}\n timestamp_micros({{ epochs }})\n {%- else -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.786759, "supported_languages": null}, "macro.dbt_date.trino__from_unixtimestamp": {"name": "trino__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.trino__from_unixtimestamp", "macro_sql": "\n\n{%- macro trino__from_unixtimestamp(epochs, format) -%}\n {%- if format == \"seconds\" -%}\n cast(from_unixtime({{ epochs }}) AT TIME ZONE 'UTC' as {{ dbt.type_timestamp() }})\n {%- elif format == \"milliseconds\" -%}\n cast(from_unixtime_nanos({{ epochs }} * pow(10, 6)) AT TIME ZONE 'UTC' as {{ dbt.type_timestamp() }})\n {%- elif format == \"microseconds\" -%}\n cast(from_unixtime_nanos({{ epochs }} * pow(10, 3)) AT TIME ZONE 'UTC' as {{ dbt.type_timestamp() }})\n {%- elif format == \"nanoseconds\" -%}\n cast(from_unixtime_nanos({{ epochs }}) AT TIME ZONE 'UTC' as {{ dbt.type_timestamp() }})\n {%- else -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.787317, "supported_languages": null}, "macro.dbt_date.duckdb__from_unixtimestamp": {"name": "duckdb__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.duckdb__from_unixtimestamp", "macro_sql": "\n\n\n{%- macro duckdb__from_unixtimestamp(epochs, format=\"seconds\") -%}\n {%- if format != \"seconds\" -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n cast(to_timestamp({{ epochs }}) at time zone 'UTC' as timestamp)\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.787565, "supported_languages": null}, "macro.dbt_date.n_months_ago": {"name": "n_months_ago", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_months_ago.sql", "original_file_path": "macros/calendar_date/n_months_ago.sql", "unique_id": "macro.dbt_date.n_months_ago", "macro_sql": "{%- macro n_months_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('month',\n dbt.dateadd('month', -1 * n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.78791, "supported_languages": null}, "macro.dbt_date.date_part": {"name": "date_part", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "unique_id": "macro.dbt_date.date_part", "macro_sql": "{% macro date_part(datepart, date) -%}\n {{ adapter.dispatch('date_part', 'dbt_date') (datepart, date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.788256, "supported_languages": null}, "macro.dbt_date.default__date_part": {"name": "default__date_part", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "unique_id": "macro.dbt_date.default__date_part", "macro_sql": "{% macro default__date_part(datepart, date) -%}\n date_part('{{ datepart }}', {{ date }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.788385, "supported_languages": null}, "macro.dbt_date.bigquery__date_part": {"name": "bigquery__date_part", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "unique_id": "macro.dbt_date.bigquery__date_part", "macro_sql": "{% macro bigquery__date_part(datepart, date) -%}\n extract({{ datepart }} from {{ date }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7885098, "supported_languages": null}, "macro.dbt_date.trino__date_part": {"name": "trino__date_part", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "unique_id": "macro.dbt_date.trino__date_part", "macro_sql": "{% macro trino__date_part(datepart, date) -%}\n extract({{ datepart }} from {{ date }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7886322, "supported_languages": null}, "macro.dbt_date.n_weeks_away": {"name": "n_weeks_away", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_weeks_away.sql", "original_file_path": "macros/calendar_date/n_weeks_away.sql", "unique_id": "macro.dbt_date.n_weeks_away", "macro_sql": "{%- macro n_weeks_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('week',\n dbt.dateadd('week', n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.788954, "supported_languages": null}, "macro.dbt_date.day_of_month": {"name": "day_of_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "unique_id": "macro.dbt_date.day_of_month", "macro_sql": "{%- macro day_of_month(date) -%}\n{{ dbt_date.date_part('day', date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7891562, "supported_languages": null}, "macro.dbt_date.redshift__day_of_month": {"name": "redshift__day_of_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "unique_id": "macro.dbt_date.redshift__day_of_month", "macro_sql": "\n\n{%- macro redshift__day_of_month(date) -%}\ncast({{ dbt_date.date_part('day', date) }} as {{ dbt.type_bigint() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.789325, "supported_languages": null}, "macro.dbt_date.yesterday": {"name": "yesterday", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/yesterday.sql", "original_file_path": "macros/calendar_date/yesterday.sql", "unique_id": "macro.dbt_date.yesterday", "macro_sql": "{%- macro yesterday(date=None, tz=None) -%}\n{{ dbt_date.n_days_ago(1, date, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.789529, "supported_languages": null}, "macro.dbt_date.day_of_week": {"name": "day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.day_of_week", "macro_sql": "{%- macro day_of_week(date, isoweek=true) -%}\n{{ adapter.dispatch('day_of_week', 'dbt_date') (date, isoweek) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.postgres__day_of_week"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.792418, "supported_languages": null}, "macro.dbt_date.default__day_of_week": {"name": "default__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.default__day_of_week", "macro_sql": "\n\n{%- macro default__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (0) to Monday (1)\n when {{ dow }} = 0 then 7\n else {{ dow }}\n end\n {%- else -%}\n {{ dow }} + 1\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.792692, "supported_languages": null}, "macro.dbt_date.snowflake__day_of_week": {"name": "snowflake__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.snowflake__day_of_week", "macro_sql": "\n\n{%- macro snowflake__day_of_week(date, isoweek) -%}\n\n {%- if isoweek -%}\n {%- set dow_part = 'dayofweekiso' -%}\n {{ dbt_date.date_part(dow_part, date) }}\n {%- else -%}\n {%- set dow_part = 'dayofweek' -%}\n case\n when {{ dbt_date.date_part(dow_part, date) }} = 7 then 1\n else {{ dbt_date.date_part(dow_part, date) }} + 1\n end\n {%- endif -%}\n\n\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7930722, "supported_languages": null}, "macro.dbt_date.bigquery__day_of_week": {"name": "bigquery__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.bigquery__day_of_week", "macro_sql": "\n\n{%- macro bigquery__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (1) to Monday (2)\n when {{ dow }} = 1 then 7\n else {{ dow }} - 1\n end\n {%- else -%}\n {{ dow }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7933419, "supported_languages": null}, "macro.dbt_date.postgres__day_of_week": {"name": "postgres__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.postgres__day_of_week", "macro_sql": "\n\n\n{%- macro postgres__day_of_week(date, isoweek) -%}\n\n {%- if isoweek -%}\n {%- set dow_part = 'isodow' -%}\n -- Monday(1) to Sunday (7)\n cast({{ dbt_date.date_part(dow_part, date) }} as {{ dbt.type_int() }})\n {%- else -%}\n {%- set dow_part = 'dow' -%}\n -- Sunday(1) to Saturday (7)\n cast({{ dbt_date.date_part(dow_part, date) }} + 1 as {{ dbt.type_int() }})\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.793731, "supported_languages": null}, "macro.dbt_date.redshift__day_of_week": {"name": "redshift__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.redshift__day_of_week", "macro_sql": "\n\n\n{%- macro redshift__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (0) to Monday (1)\n when {{ dow }} = 0 then 7\n else cast({{ dow }} as {{ dbt.type_bigint() }})\n end\n {%- else -%}\n cast({{ dow }} + 1 as {{ dbt.type_bigint() }})\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.794077, "supported_languages": null}, "macro.dbt_date.duckdb__day_of_week": {"name": "duckdb__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.duckdb__day_of_week", "macro_sql": "\n\n{%- macro duckdb__day_of_week(date, isoweek) -%}\n{{ return(dbt_date.postgres__day_of_week(date, isoweek)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.postgres__day_of_week"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.794234, "supported_languages": null}, "macro.dbt_date.spark__day_of_week": {"name": "spark__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.spark__day_of_week", "macro_sql": "\n\n\n{%- macro spark__day_of_week(date, isoweek) -%}\n\n {%- set dow = \"dayofweek_iso\" if isoweek else \"dayofweek\" -%}\n\n {{ dbt_date.date_part(dow, date) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.794436, "supported_languages": null}, "macro.dbt_date.trino__day_of_week": {"name": "trino__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.trino__day_of_week", "macro_sql": "\n\n\n{%- macro trino__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('day_of_week', date) -%}\n\n {%- if isoweek -%}\n {{ dow }}\n {%- else -%}\n case\n when {{ dow }} = 7 then 1\n else {{ dow }} + 1\n end\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.794698, "supported_languages": null}, "macro.dbt_date.iso_week_end": {"name": "iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date.iso_week_end", "macro_sql": "{%- macro iso_week_end(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_end', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.795149, "supported_languages": null}, "macro.dbt_date._iso_week_end": {"name": "_iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date._iso_week_end", "macro_sql": "{%- macro _iso_week_end(date, week_type) -%}\n{%- set dt = dbt_date.iso_week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.iso_week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.795348, "supported_languages": null}, "macro.dbt_date.default__iso_week_end": {"name": "default__iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date.default__iso_week_end", "macro_sql": "\n\n{%- macro default__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'isoweek') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7954822, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_end": {"name": "snowflake__iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date.snowflake__iso_week_end", "macro_sql": "\n\n{%- macro snowflake__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'weekiso') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7956102, "supported_languages": null}, "macro.dbt_date.n_weeks_ago": {"name": "n_weeks_ago", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_weeks_ago.sql", "original_file_path": "macros/calendar_date/n_weeks_ago.sql", "unique_id": "macro.dbt_date.n_weeks_ago", "macro_sql": "{%- macro n_weeks_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('week',\n dbt.dateadd('week', -1 * n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7959502, "supported_languages": null}, "macro.dbt_date.month_name": {"name": "month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.month_name", "macro_sql": "{%- macro month_name(date, short=True) -%}\n {{ adapter.dispatch('month_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.postgres__month_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.796602, "supported_languages": null}, "macro.dbt_date.default__month_name": {"name": "default__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.default__month_name", "macro_sql": "\n\n{%- macro default__month_name(date, short) -%}\n{%- set f = 'MON' if short else 'MONTH' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7967901, "supported_languages": null}, "macro.dbt_date.bigquery__month_name": {"name": "bigquery__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.bigquery__month_name", "macro_sql": "\n\n{%- macro bigquery__month_name(date, short) -%}\n{%- set f = '%b' if short else '%B' -%}\n format_date('{{ f }}', cast({{ date }} as date))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.796976, "supported_languages": null}, "macro.dbt_date.snowflake__month_name": {"name": "snowflake__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.snowflake__month_name", "macro_sql": "\n\n{%- macro snowflake__month_name(date, short) -%}\n{%- set f = 'MON' if short else 'MMMM' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.797158, "supported_languages": null}, "macro.dbt_date.postgres__month_name": {"name": "postgres__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.postgres__month_name", "macro_sql": "\n\n{%- macro postgres__month_name(date, short) -%}\n{# FM = Fill mode, which suppresses padding blanks #}\n{%- set f = 'FMMon' if short else 'FMMonth' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.797351, "supported_languages": null}, "macro.dbt_date.duckdb__month_name": {"name": "duckdb__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.duckdb__month_name", "macro_sql": "\n\n\n{%- macro duckdb__month_name(date, short) -%}\n {%- if short -%}\n substr(monthname({{ date }}), 1, 3)\n {%- else -%}\n monthname({{ date }})\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.7975302, "supported_languages": null}, "macro.dbt_date.spark__month_name": {"name": "spark__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.spark__month_name", "macro_sql": "\n\n{%- macro spark__month_name(date, short) -%}\n{%- set f = 'MMM' if short else 'MMMM' -%}\n date_format({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.79778, "supported_languages": null}, "macro.dbt_date.trino__month_name": {"name": "trino__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.trino__month_name", "macro_sql": "\n\n{%- macro trino__month_name(date, short) -%}\n{%- set f = 'b' if short else 'M' -%}\n date_format({{ date }}, '%{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.797972, "supported_languages": null}, "macro.dbt_date.last_month_name": {"name": "last_month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_month_name.sql", "original_file_path": "macros/calendar_date/last_month_name.sql", "unique_id": "macro.dbt_date.last_month_name", "macro_sql": "{%- macro last_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.last_month(tz), short=short) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.month_name", "macro.dbt_date.last_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.798207, "supported_languages": null}, "macro.dbt_date.week_of_year": {"name": "week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "unique_id": "macro.dbt_date.week_of_year", "macro_sql": "{%- macro week_of_year(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_of_year', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.postgres__week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.798626, "supported_languages": null}, "macro.dbt_date.default__week_of_year": {"name": "default__week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "unique_id": "macro.dbt_date.default__week_of_year", "macro_sql": "{%- macro default__week_of_year(date) -%}\ncast({{ dbt_date.date_part('week', date) }} as {{ dbt.type_int() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.798796, "supported_languages": null}, "macro.dbt_date.postgres__week_of_year": {"name": "postgres__week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "unique_id": "macro.dbt_date.postgres__week_of_year", "macro_sql": "\n\n{%- macro postgres__week_of_year(date) -%}\n{# postgresql 'week' returns isoweek. Use to_char instead.\n WW = the first week starts on the first day of the year #}\ncast(to_char({{ date }}, 'WW') as {{ dbt.type_int() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.798934, "supported_languages": null}, "macro.dbt_date.duckdb__week_of_year": {"name": "duckdb__week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "unique_id": "macro.dbt_date.duckdb__week_of_year", "macro_sql": "\n\n{%- macro duckdb__week_of_year(date) -%}\ncast(ceil(dayofyear({{ date }}) / 7) as int)\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.799031, "supported_languages": null}, "macro.dbt_date.convert_timezone": {"name": "convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.convert_timezone", "macro_sql": "{%- macro convert_timezone(column, target_tz=None, source_tz=None) -%}\n{%- set source_tz = \"UTC\" if not source_tz else source_tz -%}\n{%- set target_tz = var(\"dbt_date:time_zone\") if not target_tz else target_tz -%}\n{{ adapter.dispatch('convert_timezone', 'dbt_date') (column, target_tz, source_tz) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.postgres__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.800255, "supported_languages": null}, "macro.dbt_date.default__convert_timezone": {"name": "default__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.default__convert_timezone", "macro_sql": "{% macro default__convert_timezone(column, target_tz, source_tz) -%}\nconvert_timezone('{{ source_tz }}', '{{ target_tz }}',\n cast({{ column }} as {{ dbt.type_timestamp() }})\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.800444, "supported_languages": null}, "macro.dbt_date.bigquery__convert_timezone": {"name": "bigquery__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.bigquery__convert_timezone", "macro_sql": "{%- macro bigquery__convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.800586, "supported_languages": null}, "macro.dbt_date.postgres__convert_timezone": {"name": "postgres__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.postgres__convert_timezone", "macro_sql": "{% macro postgres__convert_timezone(column, target_tz, source_tz) -%}\ncast(\n cast({{ column }} as {{ dbt.type_timestamp() }})\n at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ dbt.type_timestamp() }}\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8008058, "supported_languages": null}, "macro.dbt_date.redshift__convert_timezone": {"name": "redshift__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.redshift__convert_timezone", "macro_sql": "{%- macro redshift__convert_timezone(column, target_tz, source_tz) -%}\n{{ return(dbt_date.default__convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.default__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8009841, "supported_languages": null}, "macro.dbt_date.duckdb__convert_timezone": {"name": "duckdb__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.duckdb__convert_timezone", "macro_sql": "{% macro duckdb__convert_timezone(column, target_tz, source_tz) -%}\n{{ return(dbt_date.postgres__convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.postgres__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8011642, "supported_languages": null}, "macro.dbt_date.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.spark__convert_timezone", "macro_sql": "{%- macro spark__convert_timezone(column, target_tz, source_tz) -%}\nfrom_utc_timestamp(\n to_utc_timestamp({{ column }}, '{{ source_tz }}'),\n '{{ target_tz }}'\n )\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8013172, "supported_languages": null}, "macro.dbt_date.trino__convert_timezone": {"name": "trino__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.trino__convert_timezone", "macro_sql": "{%- macro trino__convert_timezone(column, target_tz, source_tz) -%}\n cast((at_timezone(with_timezone(cast({{ column }} as {{ dbt.type_timestamp() }}), '{{ source_tz }}'), '{{ target_tz }}')) as {{ dbt.type_timestamp() }})\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.801534, "supported_languages": null}, "macro.dbt_date.n_months_away": {"name": "n_months_away", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_months_away.sql", "original_file_path": "macros/calendar_date/n_months_away.sql", "unique_id": "macro.dbt_date.n_months_away", "macro_sql": "{%- macro n_months_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('month',\n dbt.dateadd('month', n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8018649, "supported_languages": null}, "macro.dbt_date.iso_week_of_year": {"name": "iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.iso_week_of_year", "macro_sql": "{%- macro iso_week_of_year(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_of_year', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.postgres__iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8025548, "supported_languages": null}, "macro.dbt_date._iso_week_of_year": {"name": "_iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date._iso_week_of_year", "macro_sql": "{%- macro _iso_week_of_year(date, week_type) -%}\ncast({{ dbt_date.date_part(week_type, date) }} as {{ dbt.type_int() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.802738, "supported_languages": null}, "macro.dbt_date.default__iso_week_of_year": {"name": "default__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.default__iso_week_of_year", "macro_sql": "\n\n{%- macro default__iso_week_of_year(date) -%}\n{{ dbt_date._iso_week_of_year(date, 'isoweek') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.802869, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_of_year": {"name": "snowflake__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.snowflake__iso_week_of_year", "macro_sql": "\n\n{%- macro snowflake__iso_week_of_year(date) -%}\n{{ dbt_date._iso_week_of_year(date, 'weekiso') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8029969, "supported_languages": null}, "macro.dbt_date.postgres__iso_week_of_year": {"name": "postgres__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.postgres__iso_week_of_year", "macro_sql": "\n\n{%- macro postgres__iso_week_of_year(date) -%}\n-- postgresql week is isoweek, the first week of a year containing January 4 of that year.\n{{ dbt_date._iso_week_of_year(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.803205, "supported_languages": null}, "macro.dbt_date.duckdb__iso_week_of_year": {"name": "duckdb__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.duckdb__iso_week_of_year", "macro_sql": "\n\n{%- macro duckdb__iso_week_of_year(date) -%}\n{{ return(dbt_date.postgres__iso_week_of_year(date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.postgres__iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.803342, "supported_languages": null}, "macro.dbt_date.spark__iso_week_of_year": {"name": "spark__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.spark__iso_week_of_year", "macro_sql": "\n\n{%- macro spark__iso_week_of_year(date) -%}\n{{ dbt_date._iso_week_of_year(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.803473, "supported_languages": null}, "macro.dbt_date.trino__iso_week_of_year": {"name": "trino__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.trino__iso_week_of_year", "macro_sql": "\n\n{%- macro trino__iso_week_of_year(date) -%}\n{{ dbt_date._iso_week_of_year(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.803604, "supported_languages": null}, "macro.dbt_date.week_end": {"name": "week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.week_end", "macro_sql": "{%- macro week_end(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_end', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.postgres__week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.804087, "supported_languages": null}, "macro.dbt_date.default__week_end": {"name": "default__week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.default__week_end", "macro_sql": "{%- macro default__week_end(date) -%}\n{{ last_day(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.804211, "supported_languages": null}, "macro.dbt_date.snowflake__week_end": {"name": "snowflake__week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.snowflake__week_end", "macro_sql": "\n\n{%- macro snowflake__week_end(date) -%}\n{%- set dt = dbt_date.week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.804396, "supported_languages": null}, "macro.dbt_date.postgres__week_end": {"name": "postgres__week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.postgres__week_end", "macro_sql": "\n\n{%- macro postgres__week_end(date) -%}\n{%- set dt = dbt_date.week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8045871, "supported_languages": null}, "macro.dbt_date.duckdb__week_end": {"name": "duckdb__week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.duckdb__week_end", "macro_sql": "\n\n{%- macro duckdb__week_end(date) -%}\n{{ return(dbt_date.postgres__week_end(date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.postgres__week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.804725, "supported_languages": null}, "macro.dbt_date.next_month_number": {"name": "next_month_number", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_month_number.sql", "original_file_path": "macros/calendar_date/next_month_number.sql", "unique_id": "macro.dbt_date.next_month_number", "macro_sql": "{%- macro next_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.next_month(tz)) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_date.next_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8049269, "supported_languages": null}, "macro.dbt_date.last_month_number": {"name": "last_month_number", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_month_number.sql", "original_file_path": "macros/calendar_date/last_month_number.sql", "unique_id": "macro.dbt_date.last_month_number", "macro_sql": "{%- macro last_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.last_month(tz)) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_date.last_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.805129, "supported_languages": null}, "macro.google_ads_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.google_ads_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_active\", \"datatype\": \"boolean\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8060281, "supported_languages": null}, "macro.google_ads_source.google_ads_add_pass_through_columns": {"name": "google_ads_add_pass_through_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/google_ads_add_pass_through_columns.sql", "original_file_path": "macros/google_ads_add_pass_through_columns.sql", "unique_id": "macro.google_ads_source.google_ads_add_pass_through_columns", "macro_sql": "{% macro google_ads_add_pass_through_columns(base_columns, pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for column in pass_through_fields %}\n\n {% if column is mapping %}\n {% set col_name = column.alias|default(column.name)|lower %}\n \n {% if col_name not in except_fields %}\n {% if column.alias %}\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% else %}\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% else %}\n {% if column|lower not in except_fields %}\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.807513, "supported_languages": null}, "macro.google_ads_source.google_ads_extract_url_parameter": {"name": "google_ads_extract_url_parameter", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/google_ads_extract_url_parameters.sql", "original_file_path": "macros/google_ads_extract_url_parameters.sql", "unique_id": "macro.google_ads_source.google_ads_extract_url_parameter", "macro_sql": "{% macro google_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('google_ads_extract_url_parameter', 'google_ads_source') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.google_ads_source.default__google_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.807863, "supported_languages": null}, "macro.google_ads_source.default__google_ads_extract_url_parameter": {"name": "default__google_ads_extract_url_parameter", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/google_ads_extract_url_parameters.sql", "original_file_path": "macros/google_ads_extract_url_parameters.sql", "unique_id": "macro.google_ads_source.default__google_ads_extract_url_parameter", "macro_sql": "{% macro default__google_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8080058, "supported_languages": null}, "macro.google_ads_source.spark__google_ads_extract_url_parameter": {"name": "spark__google_ads_extract_url_parameter", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/google_ads_extract_url_parameters.sql", "original_file_path": "macros/google_ads_extract_url_parameters.sql", "unique_id": "macro.google_ads_source.spark__google_ads_extract_url_parameter", "macro_sql": "{% macro spark__google_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.808196, "supported_languages": null}, "macro.google_ads_source.get_ad_group_stats_columns": {"name": "get_ad_group_stats_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_ad_group_stats_columns.sql", "original_file_path": "macros/get_ad_group_stats_columns.sql", "unique_id": "macro.google_ads_source.get_ad_group_stats_columns", "macro_sql": "{% macro get_ad_group_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversions\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ google_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('google_ads__ad_group_stats_passthrough_metrics'), except_fields=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.google_ads_source.google_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.809901, "supported_languages": null}, "macro.google_ads_source.google_ads_fill_pass_through_columns": {"name": "google_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/google_ads_fill_pass_through_columns.sql", "original_file_path": "macros/google_ads_fill_pass_through_columns.sql", "unique_id": "macro.google_ads_source.google_ads_fill_pass_through_columns", "macro_sql": "{% macro google_ads_fill_pass_through_columns(pass_through_fields, except=[]) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if (field.alias if field.alias else field.name) not in except %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.810839, "supported_languages": null}, "macro.google_ads_source.get_campaign_stats_columns": {"name": "get_campaign_stats_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_campaign_stats_columns.sql", "original_file_path": "macros/get_campaign_stats_columns.sql", "unique_id": "macro.google_ads_source.get_campaign_stats_columns", "macro_sql": "{% macro get_campaign_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversions\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ google_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('google_ads__campaign_stats_passthrough_metrics'), except_fields=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.google_ads_source.google_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8123891, "supported_languages": null}, "macro.google_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.google_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"advertising_channel_subtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertising_channel_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"end_date\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_date\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_url_template\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_active\", \"datatype\": \"boolean\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.813659, "supported_languages": null}, "macro.google_ads_source.get_ad_stats_columns": {"name": "get_ad_stats_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_ad_stats_columns.sql", "original_file_path": "macros/get_ad_stats_columns.sql", "unique_id": "macro.google_ads_source.get_ad_stats_columns", "macro_sql": "{% macro get_ad_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_ad_group_criterion\", \"datatype\": dbt.type_string()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversions\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ google_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('google_ads__ad_stats_passthrough_metrics'), except_fields=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.google_ads_source.google_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.815402, "supported_languages": null}, "macro.google_ads_source.get_account_history_columns": {"name": "get_account_history_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "unique_id": "macro.google_ads_source.get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"auto_tagging_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"descriptive_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_active\", \"datatype\": \"boolean\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.816289, "supported_languages": null}, "macro.google_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.google_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"display_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"final_urls\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_active\", \"datatype\": \"boolean\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.817268, "supported_languages": null}, "macro.google_ads_source.get_ad_group_criterion_history_columns": {"name": "get_ad_group_criterion_history_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_ad_group_criterion_history_columns.sql", "original_file_path": "macros/get_ad_group_criterion_history_columns.sql", "unique_id": "macro.google_ads_source.get_ad_group_criterion_history_columns", "macro_sql": "{% macro get_ad_group_criterion_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"base_campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_active\", \"datatype\": \"boolean\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.818351, "supported_languages": null}, "macro.google_ads_source.get_keyword_stats_columns": {"name": "get_keyword_stats_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_keyword_stats_columns.sql", "original_file_path": "macros/get_keyword_stats_columns.sql", "unique_id": "macro.google_ads_source.get_keyword_stats_columns", "macro_sql": "{% macro get_keyword_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_criterion_criterion_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversions\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ google_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('google_ads__keyword_stats_passthrough_metrics'), except_fields=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.google_ads_source.google_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8200881, "supported_languages": null}, "macro.google_ads_source.get_account_stats_columns": {"name": "get_account_stats_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_account_stats_columns.sql", "original_file_path": "macros/get_account_stats_columns.sql", "unique_id": "macro.google_ads_source.get_account_stats_columns", "macro_sql": "{% macro get_account_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_through_conversions\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ google_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('google_ads__account_stats_passthrough_metrics'), except_fields=['conversions', \"conversions_value\", \"view_through_conversions\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.google_ads_source.google_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.821546, "supported_languages": null}, "macro.apple_search_ads.apple_search_ads_persist_pass_through_columns": {"name": "apple_search_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "apple_search_ads", "path": "macros/apple_search_ads_persist_pass_through_columns.sql", "original_file_path": "macros/apple_search_ads_persist_pass_through_columns.sql", "unique_id": "macro.apple_search_ads.apple_search_ads_persist_pass_through_columns", "macro_sql": "{% macro apple_search_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, exclude_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n {% if field_name not in exclude_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field_name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.822517, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8228989, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.823838, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.823997, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.82415, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.824304, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.824439, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.82459, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8253891, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.82599, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.827313, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8275468, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.82778, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.828008, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8282392, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.828486, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8287308, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8289542, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.829262, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.829358, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8294551, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8295512, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.829891, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8305721, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.831562, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.832103, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8328362, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.833298, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.833426, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8335528, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.833674, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.833801, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.836753, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.836907, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.837058, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.837203, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.83882, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.839744, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.839874, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.840132, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8404, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8405252, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8406441, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8407629, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8408818, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.841356, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.841888, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8423638, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.842558, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.842766, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.843005, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8440802, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8478668, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.848206, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8485591, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8501198, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.850639, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.851189, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.851339, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.851485, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8516579, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.851805, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.851948, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.852764, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.853939, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.854631, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.85479, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.854939, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.855089, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.855237, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.855399, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.855636, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.855733, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.855826, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.856412, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.857766, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.857933, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.858717, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.862257, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.866533, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8678532, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.868186, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.868334, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.868524, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.868845, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.868952, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8690581, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.869153, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.869246, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.869492, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.869589, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.869685, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.870056, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8704152, "supported_languages": null}, "macro.ad_reporting.is_enabled": {"name": "is_enabled", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/is_enabled.sql", "original_file_path": "macros/is_enabled.sql", "unique_id": "macro.ad_reporting.is_enabled", "macro_sql": "{% macro is_enabled(enabled_packages) %}\n\n{% if enabled_packages != [] %}\n {% set is_enabled = True %}\n{% else %}\n {% set is_enabled = False %}\n{% endif %}\n{{ return(is_enabled) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "This macro takes in a list of packages and determines if there is at least one package, if there is, it returns True, else false.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "enabled_packages", "type": "list", "description": "List of packages enabled where each package name is a string."}], "created_at": 1734462186.23702, "supported_languages": null}, "macro.ad_reporting.get_date_from_timestamp": {"name": "get_date_from_timestamp", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "unique_id": "macro.ad_reporting.get_date_from_timestamp", "macro_sql": "{% macro get_date_from_timestamp(column) %}\n {{ return(adapter.dispatch('get_date_from_timestamp') (column)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.ad_reporting.default__get_date_from_timestamp"]}, "description": "This macro takes a column of type timestamp or forces the column into a timestamp (depending on the data warehouse) and extracts the date in the format of e.g. 2022-01-01.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "column", "type": "string", "description": "Specifies the column of type timestamp to extract the date from."}], "created_at": 1734462186.2351182, "supported_languages": null}, "macro.ad_reporting.default__get_date_from_timestamp": {"name": "default__get_date_from_timestamp", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "unique_id": "macro.ad_reporting.default__get_date_from_timestamp", "macro_sql": "{% macro default__get_date_from_timestamp(column) %}\n date({{column}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.871192, "supported_languages": null}, "macro.ad_reporting.bigquery__get_date_from_timestamp": {"name": "bigquery__get_date_from_timestamp", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "unique_id": "macro.ad_reporting.bigquery__get_date_from_timestamp", "macro_sql": "{% macro bigquery__get_date_from_timestamp(column) %}\n\n cast({{column}} as date)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.871285, "supported_languages": null}, "macro.ad_reporting.spark__get_date_from_timestamp": {"name": "spark__get_date_from_timestamp", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "unique_id": "macro.ad_reporting.spark__get_date_from_timestamp", "macro_sql": "{% macro spark__get_date_from_timestamp(column) %}\n\n to_date(to_timestamp({{ column }}),'yyyyMMdd')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.871381, "supported_languages": null}, "macro.ad_reporting.snowflake__get_date_from_timestamp": {"name": "snowflake__get_date_from_timestamp", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "unique_id": "macro.ad_reporting.snowflake__get_date_from_timestamp", "macro_sql": "{% macro snowflake__get_date_from_timestamp(column) %}\n\n to_date(to_timestamp({{ column }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.8715441, "supported_languages": null}, "macro.ad_reporting.union_ctes": {"name": "union_ctes", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/union_ctes.sql", "original_file_path": "macros/union_ctes.sql", "unique_id": "macro.ad_reporting.union_ctes", "macro_sql": "{% macro union_ctes(ctes=[]) %}\n\n{% for cte in ctes %}\nselect * from {{ cte }}\n\n{% if not loop.last -%}\n union all\n{% endif -%}\n\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "This macro allows for the unioning (union all) of specified CTEs.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "ctes", "type": "list", "description": "List of strings for CTE names"}], "created_at": 1734462186.237401, "supported_languages": null}, "macro.ad_reporting.get_query": {"name": "get_query", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_query.sql", "original_file_path": "macros/get_query.sql", "unique_id": "macro.ad_reporting.get_query", "macro_sql": "{% macro get_query(platform=None, report_type=None, field_mapping=None, relation=None) %}\n\n{%- set consistent_fields = ['spend', 'impressions', 'clicks', 'conversions', 'conversions_value'] -%}\n{%- set account_fields = ['account_id', 'account_name'] -%}\n{%- set campaign_fields = ['campaign_id', 'campaign_name'] -%}\n{%- set ad_group_fields = ['ad_group_id', 'ad_group_name'] -%}\n{%- set ad_fields = ['ad_id', 'ad_name'] -%}\n{%- set url_fields = ['base_url', 'url_host', 'url_path', 'utm_source', 'utm_medium', 'utm_campaign', 'utm_content', 'utm_term'] -%}\n{%- set keyword_fields = ['keyword_id','keyword_text','keyword_match_type'] -%}\n{%- set search_fields = ['keyword_id', 'keyword_text', 'search_match_type', 'search_query'] -%}\n\n{%- if field_mapping is not none -%}\n{%- set fields = field_mapping.keys() -%}\n{%- endif -%}\n\n{%- set final_fields_superset={} -%}\n\n{#- Add the consistent_fields and account_fields to all reports regardless of type -#}\n{%- if report_type -%}\n {%- for consistent_field in consistent_fields -%}\n {%- do final_fields_superset.update({consistent_field: consistent_field}) -%}\n {%- endfor -%}\n {%- for account_field in account_fields -%}\n {%- do final_fields_superset.update({account_field: account_field}) -%}\n {%- endfor -%}\n{%- endif -%}\n\n{#- For account level reports and lower, add account_fields -#}\n{%- if report_type in ['campaign', 'ad_group', 'ad', 'url', 'keyword', 'search', 'account'] -%}\n {%- for account_field in account_fields -%}\n {#- When campaign_passthrough_metrics are defined, add them too but only to the ad_group report_type -#}\n {%- if report_type == 'account' and var('ad_reporting__account_passthrough_metrics', []) -%}\n {% set account_passthrough_metric_array_of_dicts = var('ad_reporting__account_passthrough_metrics') %}\n {%- for account_passthrough_metric_dict in account_passthrough_metric_array_of_dicts -%}\n {%- for account_passthrough_metric_value in account_passthrough_metric_dict.values() -%}\n\n {#- Add _c suffix if conversions are present in the passthrough metrics -#}\n {%- if account_passthrough_metric_value == 'conversions' or account_passthrough_metric_value == 'conversions_value' -%}\n {%- do final_fields_superset.update({account_passthrough_metric_value ~ '_c': account_passthrough_metric_value}) -%}\n {%- else -%}\n {%- do final_fields_superset.update({account_passthrough_metric_value: account_passthrough_metric_value}) -%}\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n {%- endif -%}\n {%- do final_fields_superset.update({account_field: account_field}) -%}\n {%- endfor -%}\n{%- endif -%}\n\n{#- For campaign level reports and lower, add campaign_fields -#}\n{%- if report_type in ['campaign', 'ad_group', 'ad', 'url', 'keyword', 'search'] -%}\n {%- for campaign_field in campaign_fields -%}\n {#- When campaign_passthrough_metrics are defined, add them too but only to the ad_group report_type -#}\n {%- if report_type == 'campaign' and var('ad_reporting__campaign_passthrough_metrics', []) -%}\n {% set campaign_passthrough_metric_array_of_dicts = var('ad_reporting__campaign_passthrough_metrics') %}\n {%- for campaign_passthrough_metric_dict in campaign_passthrough_metric_array_of_dicts -%}\n {%- for campaign_passthrough_metric_value in campaign_passthrough_metric_dict.values() -%}\n\n {#- Add _c suffix if conversions are present in the passthrough metrics -#}\n {%- if campaign_passthrough_metric_value == 'conversions' or campaign_passthrough_metric_value == 'conversions_value' -%}\n {%- do final_fields_superset.update({campaign_passthrough_metric_value ~ '_c': campaign_passthrough_metric_value}) -%}\n {%- else -%}\n {%- do final_fields_superset.update({campaign_passthrough_metric_value: campaign_passthrough_metric_value}) -%}\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n {%- endif -%}\n {%- do final_fields_superset.update({campaign_field: campaign_field}) -%}\n {%- endfor -%}\n{%- endif -%}\n\n{#- For ad_group level reports, equivalent and lower, add ad_group_fields -#}\n{%- if report_type in ['ad_group', 'ad', 'url', 'keyword', 'search'] -%}\n {%- for ad_group_field in ad_group_fields -%}\n {#- When ad_group_passthrough_metrics are defined, add them too but only to the ad_group report_type -#}\n {%- if report_type == 'ad_group' and var('ad_reporting__ad_group_passthrough_metrics', []) -%}\n {% set ad_group_passthrough_metric_array_of_dicts = var('ad_reporting__ad_group_passthrough_metrics') %}\n {%- for ad_group_passthrough_metric_dict in ad_group_passthrough_metric_array_of_dicts -%}\n {%- for ad_group_passthrough_metric_value in ad_group_passthrough_metric_dict.values() -%}\n\n {#- Add _c suffix if conversions are present in the passthrough metrics -#}\n {%- if ad_group_passthrough_metric_value == 'conversions' or ad_group_passthrough_metric_value == 'conversions_value' -%}\n {%- do final_fields_superset.update({ad_group_passthrough_metric_value ~ '_c': ad_group_passthrough_metric_value}) -%}\n {%- else -%}\n {%- do final_fields_superset.update({ad_group_passthrough_metric_value: ad_group_passthrough_metric_value}) -%}\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n {%- endif -%}\n {%- do final_fields_superset.update({ad_group_field: ad_group_field}) -%}\n {%- endfor -%}\n{%- endif -%}\n\n{#- For ad reports, add ad_fields and ad_passthrough_metrics (if any) -#}\n{%- if report_type == 'ad' -%}\n {%- if var('ad_reporting__ad_passthrough_metrics', []) -%}\n {%- set ad_passthrough_metrics_values = [] -%}\n {%- set ad_passthrough_metrics_array_of_dicts = var('ad_reporting__ad_passthrough_metrics') -%}\n {%- for ad_passthrough_metrics_dict in ad_passthrough_metrics_array_of_dicts -%}\n {%- for _, value in ad_passthrough_metrics_dict.items() -%}\n {%- do ad_passthrough_metrics_values.append(value) -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- set combined_ad_fields = ad_fields + ad_passthrough_metrics_values -%}\n {%- else -%}\n {%- set combined_ad_fields = ad_fields -%}\n {%- endif -%}\n {%- for ad_field in combined_ad_fields -%}\n\n {#- Add _c suffix if conversions are present in the passthrough metrics -#}\n {%- if ad_field == 'conversions' or ad_field == 'conversions_value' -%}\n {%- do final_fields_superset.update({ad_field ~ '_c': ad_field}) -%}\n {%- else -%}\n {%- do final_fields_superset.update({ad_field: ad_field}) -%}\n {%- endif -%}\n\n {%- endfor -%}\n{%- endif -%}\n\n{#- For url level reports, add ad_fields and ad_passthrough_metrics (if any) -#}\n{%- if report_type == 'url' -%}\n {%- if var('ad_reporting__ad_passthrough_metrics', []) -%}\n {%- set ad_passthrough_metrics_values = [] -%}\n {%- set ad_passthrough_metrics_array_of_dicts = var('ad_reporting__ad_passthrough_metrics') -%}\n {%- for ad_passthrough_metrics_dict in ad_passthrough_metrics_array_of_dicts -%}\n {%- for _, value in ad_passthrough_metrics_dict.items() -%}\n {%- do ad_passthrough_metrics_values.append(value) -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- set combined_ad_fields = url_fields + ad_passthrough_metrics_values -%}\n {%- else -%}\n {%- set combined_ad_fields = url_fields -%}\n {%- endif -%}\n {%- for ad_field in combined_ad_fields -%}\n\n {#- Add _c suffix if conversions are present in the passthrough metrics -#}\n {%- if ad_field == 'conversions' or ad_field == 'conversions_value' -%}\n {%- do final_fields_superset.update({ad_field ~ '_c': ad_field}) -%}\n {%- else -%}\n {%- do final_fields_superset.update({ad_field: ad_field}) -%}\n {%- endif -%}\n\n {%- endfor -%}\n{%- endif -%}\n\n{#- For keyword level reports, add keyword_fields and keyword_passthrough_metrics (if any) -#}\n{%- if report_type == 'keyword' -%}\n {%- if var('ad_reporting__keyword_passthrough_metrics', []) -%}\n {%- set keyword_passthrough_metrics_values = [] -%}\n {%- set keyword_passthrough_metrics_array_of_dicts = var('ad_reporting__keyword_passthrough_metrics') -%}\n {%- for keyword_passthrough_metrics_dict in keyword_passthrough_metrics_array_of_dicts -%}\n {%- for _, value in keyword_passthrough_metrics_dict.items() -%}\n {%- do keyword_passthrough_metrics_values.append(value) -%}\n\n {%- endfor -%}\n {%- endfor -%}\n {%- set combined_keyword_fields = keyword_fields + keyword_passthrough_metrics_values -%}\n {%- else -%}\n {%- set combined_keyword_fields = keyword_fields -%}\n {%- endif -%}\n {%- for keyword_field in combined_keyword_fields -%}\n\n {#- Add _c suffix if conversions are present in the passthrough metrics -#}\n {%- if keyword_field == 'conversions' or keyword_field == 'conversions_value' -%}\n {%- do final_fields_superset.update({keyword_field ~ '_c': keyword_field}) -%}\n {%- else -%}\n {%- do final_fields_superset.update({keyword_field: keyword_field}) -%}\n {%- endif -%}\n\n {%- endfor -%}\n{%- endif -%}\n\n{#- For search level reports, add search_fields and search_passthrough_metrics (if any) -#}\n{%- if report_type == 'search' -%}\n {%- if var('ad_reporting__search_passthrough_metrics',[]) -%}\n {%- set search_passthrough_metrics_values = [] -%}\n {%- set search_passthrough_metrics_array_of_dicts = var('ad_reporting__search_passthrough_metrics') -%}\n {%- for search_passthrough_metrics_dict in search_passthrough_metrics_array_of_dicts -%}\n {%- for _, value in search_passthrough_metrics_dict.items() -%}\n {%- do search_passthrough_metrics_values.append(value) -%}\n\n {%- endfor -%}\n {%- endfor -%}\n {%- set combined_search_fields = search_fields + search_passthrough_metrics_values -%}\n {%- else -%}\n {%- set combined_search_fields = search_fields -%}\n {%- endif -%}\n {%- for search_field in combined_search_fields -%}\n\n {#- Add _c suffix if conversions are present in the passthrough metrics -#}\n {%- if search_field == 'conversions' or search_field == 'conversions_value' -%}\n {%- do final_fields_superset.update({search_field ~ '_c': search_field}) -%}\n {%- else -%}\n {%- do final_fields_superset.update({search_field: search_field}) -%}\n {%- endif -%}\n\n {%- endfor -%}\n{%- endif -%}\n\n{%- if field_mapping is not none -%}\n {%- for field in fields -%}\n {%- do final_fields_superset.update({field:field_mapping[field]}) -%}\n {%- endfor -%}\n{%- endif -%}\n\nselect \n source_relation,\n {{ get_date_from_timestamp('date_day') }} as date_day,\n cast( '{{ platform }}' as {{ dbt.type_string() }}) as platform,\n\n {% for field in final_fields_superset.keys()|sort() -%}\n {% if field in consistent_fields and field not in ['spend', 'conversions', 'conversions_value'] -%}\n cast({{ final_fields_superset[field] }} as {{ dbt.type_int() }}) as {{ field }}\n\n {% elif field in ['spend', 'conversions', 'conversions_value'] -%}\n cast({{ final_fields_superset[field] }} as {{ dbt.type_float() }}) as {{ field }}\n\n {% elif '_id' in field or '_name' in field or 'url' in field or 'utm' in field or field in ['keyword_match_type', 'keyword_text', 'search_match_type', 'search_query'] -%}\n cast({{ final_fields_superset[field] }} as {{ dbt.type_string() }}) as {{ field }}\n\n {# This is the case for the rest of fields (passthrough_metrics) #}\n {% else %}\n cast({{ final_fields_superset[field] }} as {{ dbt.type_float() }}) as {{ field }}\n {% endif -%}\n {%- if not loop.last -%},{%- endif -%}\n {%- endfor %}\nfrom {{ relation }}\n{% endmacro %}", "depends_on": {"macros": ["macro.ad_reporting.get_date_from_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "This macro compiles the final query with all aliasing and casting incorporated.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "platform", "type": "string", "description": "Specifies the platform for the CTE; this value should match exactly one value for the `all_packages` variable within `macros/get_enabled_packages.sql`.\n"}, {"name": "report_type", "type": "string", "description": "Specifies the report type and should map to the respective model; could take on one of the following values ['account', 'campaign', 'ad_group', 'ad', 'url', 'keyword', 'search'].\n"}, {"name": "field_mapping", "type": null, "description": "A dictionary that specifies any column name overriding as necessary since standard names in Ad Reporting may map to a different name as it appears natively within each platform. Each key will have exactly one corresponding string value; if a value is NULL then it will map to the string 'null'.\n"}, {"name": "relation", "type": null, "description": "This is a reference to the upstream model that the query will be selecting from; an example argument would look like this: relation=ref('tiktok_ads__advertiser_report').\n"}], "created_at": 1734462186.236636, "supported_languages": null}, "macro.ad_reporting.ad_reporting_persist_pass_through_columns": {"name": "ad_reporting_persist_pass_through_columns", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/ad_reporting_persist_pass_through_columns.sql", "original_file_path": "macros/ad_reporting_persist_pass_through_columns.sql", "unique_id": "macro.ad_reporting.ad_reporting_persist_pass_through_columns", "macro_sql": "{% macro ad_reporting_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, alias_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ('_c' if field_name in alias_fields else '') ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} \n as {{ field_name ~ ('_c' if field_name in alias_fields else '') }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.906815, "supported_languages": null}, "macro.ad_reporting.get_enabled_packages": {"name": "get_enabled_packages", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_enabled_packages.sql", "original_file_path": "macros/get_enabled_packages.sql", "unique_id": "macro.ad_reporting.get_enabled_packages", "macro_sql": "{% macro get_enabled_packages(exclude=[], include=[]) %}\n\n{%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided `get_enabled_packages` macro. Only one is allowed\") }}\n{%- endif -%}\n\n{% set all_packages = [\n 'amazon_ads',\n 'apple_search_ads', \n 'facebook_ads', \n 'google_ads', \n 'linkedin_ads',\n 'microsoft_ads', \n 'pinterest_ads',\n 'snapchat_ads',\n 'tiktok_ads',\n 'twitter_ads',\n 'reddit_ads'] %}\n\n{% set enabled_packages = [] %}\n\n{% if include != [] %}\n {% for package in include %}\n {% if var('ad_reporting__' ~ package ~ '_enabled', True) %}\n {{ enabled_packages.append(package) }}\n {% endif %}\n {% endfor %}\n\n{% elif exclude != [] %}\n {% for package in all_packages %}\n {% if var('ad_reporting__' ~ package ~ '_enabled', True) and package not in exclude %}\n {{ enabled_packages.append(package) }}\n {% endif %}\n {% endfor %}\n\n{% else %}\n {% for package in all_packages %}\n {% if var('ad_reporting__' ~ package ~ '_enabled', True) %}\n {{ enabled_packages.append(package) }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{{ return(enabled_packages) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "This macro evaluates all `ad_reporting___enabled` variables in the user's `dbt_project.yml` and returns a list of packages that are enabled.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "exclude", "type": "list", "description": "This argument is optional and is the list of platforms to exclude in the enabled package evaluation."}, {"name": "include", "type": "list", "description": "This argument is optional and is the list of platforms to include in the enabled package evaluation."}], "created_at": 1734462186.235896, "supported_languages": null}, "macro.apple_search_ads_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.apple_search_ads_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.909499, "supported_languages": null}, "macro.apple_search_ads_source.get_ad_level_report_columns": {"name": "get_ad_level_report_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_ad_level_report_columns.sql", "original_file_path": "macros/get_ad_level_report_columns.sql", "unique_id": "macro.apple_search_ads_source.get_ad_level_report_columns", "macro_sql": "{% macro get_ad_level_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ apple_search_ads_add_pass_through_columns(\n base_columns=columns,\n pass_through_fields=var('apple_search_ads__ad_passthrough_metrics'),\n except_fields=['conversions']\n ) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.apple_search_ads_source.apple_search_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9108312, "supported_languages": null}, "macro.apple_search_ads_source.get_search_term_report_columns": {"name": "get_search_term_report_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_search_term_report_columns.sql", "original_file_path": "macros/get_search_term_report_columns.sql", "unique_id": "macro.apple_search_ads_source.get_search_term_report_columns", "macro_sql": "{% macro get_search_term_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_amount_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"bid_amount_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_display_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"search_term_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"search_term_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ apple_search_ads_add_pass_through_columns(\n base_columns=columns,\n pass_through_fields=var('apple_search_ads__search_term_passthrough_metrics'),\n except_fields=['conversions']\n ) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_numeric", "macro.apple_search_ads_source.apple_search_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.913219, "supported_languages": null}, "macro.apple_search_ads_source.apple_search_ads_fill_pass_through_columns": {"name": "apple_search_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/apple_search_ads_fill_passthrough_columns.sql", "original_file_path": "macros/apple_search_ads_fill_passthrough_columns.sql", "unique_id": "macro.apple_search_ads_source.apple_search_ads_fill_pass_through_columns", "macro_sql": "{% macro apple_search_ads_fill_pass_through_columns(pass_through_fields, except=[]) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if (field.alias if field.alias else field.name) not in except %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.91416, "supported_languages": null}, "macro.apple_search_ads_source.get_keyword_report_columns": {"name": "get_keyword_report_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_keyword_report_columns.sql", "original_file_path": "macros/get_keyword_report_columns.sql", "unique_id": "macro.apple_search_ads_source.get_keyword_report_columns", "macro_sql": "{% macro get_keyword_report_columns() %}\n\n{% set columns = [\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ apple_search_ads_add_pass_through_columns(\n base_columns=columns,\n pass_through_fields=var('apple_search_ads__keyword_passthrough_metrics'),\n except_fields=['conversions']\n ) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.apple_search_ads_source.apple_search_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.915297, "supported_languages": null}, "macro.apple_search_ads_source.get_campaign_report_columns": {"name": "get_campaign_report_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "unique_id": "macro.apple_search_ads_source.get_campaign_report_columns", "macro_sql": "{% macro get_campaign_report_columns() %}\n\n{% set columns = [\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ apple_search_ads_add_pass_through_columns(\n base_columns=columns,\n pass_through_fields=var('apple_search_ads__campaign_passthrough_metrics'),\n except_fields=['conversions']\n ) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.apple_search_ads_source.apple_search_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.91643, "supported_languages": null}, "macro.apple_search_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.apple_search_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.917244, "supported_languages": null}, "macro.apple_search_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.apple_search_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creation_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"org_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.918157, "supported_languages": null}, "macro.apple_search_ads_source.get_ad_group_report_columns": {"name": "get_ad_group_report_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_ad_group_report_columns.sql", "original_file_path": "macros/get_ad_group_report_columns.sql", "unique_id": "macro.apple_search_ads_source.get_ad_group_report_columns", "macro_sql": "{% macro get_ad_group_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ apple_search_ads_add_pass_through_columns(\n base_columns=columns,\n pass_through_fields=var('apple_search_ads__ad_group_passthrough_metrics'),\n except_fields=['conversions']\n ) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.apple_search_ads_source.apple_search_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9192939, "supported_languages": null}, "macro.apple_search_ads_source.apple_search_ads_add_pass_through_columns": {"name": "apple_search_ads_add_pass_through_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/apple_search_ads_add_pass_through_columns.sql", "original_file_path": "macros/apple_search_ads_add_pass_through_columns.sql", "unique_id": "macro.apple_search_ads_source.apple_search_ads_add_pass_through_columns", "macro_sql": "{% macro apple_search_ads_add_pass_through_columns(base_columns, pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for column in pass_through_fields %}\n\n {% if column is mapping %}\n {% set col_name = column.alias|default(column.name)|lower %}\n \n {% if col_name not in except_fields %}\n {% if column.alias %}\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% else %}\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% else %}\n {% if column|lower not in except_fields %}\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.92077, "supported_languages": null}, "macro.apple_search_ads_source.get_organization_columns": {"name": "get_organization_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_organization_columns.sql", "original_file_path": "macros/get_organization_columns.sql", "unique_id": "macro.apple_search_ads_source.get_organization_columns", "macro_sql": "{% macro get_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_model\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.921411, "supported_languages": null}, "macro.apple_search_ads_source.get_keyword_history_columns": {"name": "get_keyword_history_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "unique_id": "macro.apple_search_ads_source.get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"bid_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"modification_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"text\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.922405, "supported_languages": null}, "macro.pinterest_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.pinterest_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"pacing_delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"placement_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary_status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9237509, "supported_languages": null}, "macro.pinterest_source.get_pin_promotion_history_columns": {"name": "get_pin_promotion_history_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_pin_promotion_history_columns.sql", "original_file_path": "macros/get_pin_promotion_history_columns.sql", "unique_id": "macro.pinterest_source.get_pin_promotion_history_columns", "macro_sql": "{% macro get_pin_promotion_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"android_deep_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_tracking_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creative_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"destination_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ios_deep_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_pin_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"is_removable\", \"datatype\": \"boolean\"},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"pin_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"review_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"view_tracking_url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.925601, "supported_languages": null}, "macro.pinterest_source.pinterest_ads_fill_pass_through_columns": {"name": "pinterest_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/pinterest_ads_fill_pass_through_columns.sql", "original_file_path": "macros/pinterest_ads_fill_pass_through_columns.sql", "unique_id": "macro.pinterest_source.pinterest_ads_fill_pass_through_columns", "macro_sql": "{% macro pinterest_ads_fill_pass_through_columns(pass_through_fields, except=[]) %}\t\n\n{% if pass_through_fields %}\t\n {% for field in pass_through_fields %}\t\n {% if (field.alias if field.alias else field.name) not in except %}\t\n {% if field.transform_sql %}\t\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\t\n {% else %}\t\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\t\n {% endif %}\t\n {% endif %}\t\n {% endfor %}\t\n{% endif %}\t\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9265542, "supported_languages": null}, "macro.pinterest_source.pinterest_ads_extract_url_parameter": {"name": "pinterest_ads_extract_url_parameter", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/pinterest_ads_extract_url_parameters.sql", "original_file_path": "macros/pinterest_ads_extract_url_parameters.sql", "unique_id": "macro.pinterest_source.pinterest_ads_extract_url_parameter", "macro_sql": "{% macro pinterest_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('pinterest_ads_extract_url_parameter', 'pinterest_source') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.pinterest_source.default__pinterest_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.926899, "supported_languages": null}, "macro.pinterest_source.default__pinterest_ads_extract_url_parameter": {"name": "default__pinterest_ads_extract_url_parameter", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/pinterest_ads_extract_url_parameters.sql", "original_file_path": "macros/pinterest_ads_extract_url_parameters.sql", "unique_id": "macro.pinterest_source.default__pinterest_ads_extract_url_parameter", "macro_sql": "{% macro default__pinterest_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.92704, "supported_languages": null}, "macro.pinterest_source.spark__pinterest_ads_extract_url_parameter": {"name": "spark__pinterest_ads_extract_url_parameter", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/pinterest_ads_extract_url_parameters.sql", "original_file_path": "macros/pinterest_ads_extract_url_parameters.sql", "unique_id": "macro.pinterest_source.spark__pinterest_ads_extract_url_parameter", "macro_sql": "{% macro spark__pinterest_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.927225, "supported_languages": null}, "macro.pinterest_source.pinterest_ads_add_passthrough_columns": {"name": "pinterest_ads_add_passthrough_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/pinterest_ads_add_passthrough_columns.sql", "original_file_path": "macros/pinterest_ads_add_passthrough_columns.sql", "unique_id": "macro.pinterest_source.pinterest_ads_add_passthrough_columns", "macro_sql": "{% macro pinterest_ads_add_passthrough_columns(base_columns, pass_through_fields, except_fields=[]) %}\t\n\n{% if pass_through_fields %}\t\n {% for column in pass_through_fields %}\t\n\n {% if column is mapping %}\t\n {% set col_name = column.alias|default(column.name)|lower %}\t\n\n {% if col_name not in except_fields %}\t\n {% if column.alias %}\t\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\t\n {% else %}\t\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\t\n {% endif %}\t\n {% endif %}\t\n\n {% else %}\t\n {% if column|lower not in except_fields %}\t\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\t\n {% endif %}\t\n {% endif %}\t\n\n {% endfor %}\t\n{% endif %}\t\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.928704, "supported_languages": null}, "macro.pinterest_source.get_keyword_report_columns": {"name": "get_keyword_report_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_keyword_report_columns.sql", "original_file_path": "macros/get_keyword_report_columns.sql", "unique_id": "macro.pinterest_source.get_keyword_report_columns", "macro_sql": "{% macro get_keyword_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"pin_promotion_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_value_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Make backwards compatible in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ pinterest_ads_add_passthrough_columns(base_columns=columns, pass_through_fields=var('pinterest__keyword_report_passthrough_metrics'), except_fields=['total_conversions', \"total_conversions_quantity\", \"total_conversions_value_in_micro_dollar\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.pinterest_source.pinterest_ads_add_passthrough_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.930708, "supported_languages": null}, "macro.pinterest_source.get_pin_promotion_report_columns": {"name": "get_pin_promotion_report_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_pin_promotion_report_columns.sql", "original_file_path": "macros/get_pin_promotion_report_columns.sql", "unique_id": "macro.pinterest_source.get_pin_promotion_report_columns", "macro_sql": "{% macro get_pin_promotion_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"pin_promotion_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_value_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Make backwards compatible in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ pinterest_ads_add_passthrough_columns(base_columns=columns, pass_through_fields=var('pinterest__pin_promotion_report_passthrough_metrics'), except_fields=['total_conversions', \"total_conversions_quantity\", \"total_conversions_value_in_micro_dollar\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.type_int", "macro.pinterest_source.pinterest_ads_add_passthrough_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.932402, "supported_languages": null}, "macro.pinterest_source.get_campaign_report_columns": {"name": "get_campaign_report_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "unique_id": "macro.pinterest_source.get_campaign_report_columns", "macro_sql": "{% macro get_campaign_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_value_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Make backwards compatible in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ pinterest_ads_add_passthrough_columns(base_columns=columns, pass_through_fields=var('pinterest__campaign_report_passthrough_metrics'), except_fields=['total_conversions', \"total_conversions_quantity\", \"total_conversions_value_in_micro_dollar\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.pinterest_source.pinterest_ads_add_passthrough_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.934078, "supported_languages": null}, "macro.pinterest_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.pinterest_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"default_ad_group_budget_in_micro_currency\", \"datatype\": dbt.type_int()},\n {\"name\": \"is_automated_campaign\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"is_campaign_budget_optimization\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"is_flexible_daily_budgets\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9351711, "supported_languages": null}, "macro.pinterest_source.get_advertiser_history_columns": {"name": "get_advertiser_history_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_advertiser_history_columns.sql", "original_file_path": "macros/get_advertiser_history_columns.sql", "unique_id": "macro.pinterest_source.get_advertiser_history_columns", "macro_sql": "{% macro get_advertiser_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_username\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"permissions\", \"datatype\": dbt.type_string(), \"quote\": True, \"alias\": \"advertiser_permissions\"},\n {\"name\": \"updated_time\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9363258, "supported_languages": null}, "macro.pinterest_source.get_ad_group_report_columns": {"name": "get_ad_group_report_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_ad_group_report_columns.sql", "original_file_path": "macros/get_ad_group_report_columns.sql", "unique_id": "macro.pinterest_source.get_ad_group_report_columns", "macro_sql": "{% macro get_ad_group_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_value_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Make backwards compatible in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ pinterest_ads_add_passthrough_columns(base_columns=columns, pass_through_fields=var('pinterest__ad_group_report_passthrough_metrics'), except_fields=['total_conversions', \"total_conversions_quantity\", \"total_conversions_value_in_micro_dollar\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.pinterest_source.pinterest_ads_add_passthrough_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.938158, "supported_languages": null}, "macro.pinterest_source.get_keyword_history_columns": {"name": "get_keyword_history_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "unique_id": "macro.pinterest_source.get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"archived\", \"datatype\": \"boolean\"},\n {\"name\": \"bid\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.939327, "supported_languages": null}, "macro.pinterest_source.get_advertiser_report_columns": {"name": "get_advertiser_report_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_advertiser_report_columns.sql", "original_file_path": "macros/get_advertiser_report_columns.sql", "unique_id": "macro.pinterest_source.get_advertiser_report_columns", "macro_sql": "{% macro get_advertiser_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_conversions_value_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{# Make backwards compatible in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ pinterest_ads_add_passthrough_columns(base_columns=columns, pass_through_fields=var('pinterest__advertiser_report_passthrough_metrics'), except_fields=['total_conversions', \"total_conversions_quantity\", \"total_conversions_value_in_micro_dollar\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.pinterest_source.pinterest_ads_add_passthrough_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.940715, "supported_languages": null}, "macro.tiktok_ads_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.tiktok_ads_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"action_days\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"adgroup_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"adgroup_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"audience_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"category\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"frequency_schedule\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"interest_category_v_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"action_categories\", \"datatype\": dbt.type_string()},\n {\"name\": \"age_groups\", \"datatype\": dbt.type_string()},\n {\"name\": \"languages\", \"datatype\": dbt.type_string()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.94258, "supported_languages": null}, "macro.tiktok_ads_source.get_ad_group_report_hourly_columns": {"name": "get_ad_group_report_hourly_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_ad_group_report_hourly_columns.sql", "original_file_path": "macros/get_ad_group_report_hourly_columns.sql", "unique_id": "macro.tiktok_ads_source.get_ad_group_report_hourly_columns", "macro_sql": "{% macro get_ad_group_report_hourly_columns() %}\n\n{% set columns = [\n {\"name\": \"adgroup_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"reach\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"real_time_conversion\", \"datatype\": dbt.type_int()},\n {\"name\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"total_purchase_value\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_sales_lead_value\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ tiktok_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('tiktok_ads__ad_group_hourly_passthrough_metrics'), except_fields=[\"real_time_conversion\", \"total_purchase_value\", \"total_sales_lead_value\"]) }}\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.tiktok_ads_source.tiktok_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9456792, "supported_languages": null}, "macro.tiktok_ads_source.tiktok_ads_add_pass_through_columns": {"name": "tiktok_ads_add_pass_through_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/tiktok_ads_add_pass_through_columns.sql", "original_file_path": "macros/tiktok_ads_add_pass_through_columns.sql", "unique_id": "macro.tiktok_ads_source.tiktok_ads_add_pass_through_columns", "macro_sql": "{% macro tiktok_ads_add_pass_through_columns(base_columns, pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for column in pass_through_fields %}\n\n {% if column is mapping %}\n {% set col_name = column.alias|default(column.name)|lower %}\n\n {% if col_name not in except_fields %}\n {% if column.alias %}\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% else %}\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% else %}\n {% if column|lower not in except_fields %}\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9471529, "supported_languages": null}, "macro.tiktok_ads_source.tiktok_ads_fill_pass_through_columns": {"name": "tiktok_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/tiktok_ads_fill_pass_through_columns.sql", "original_file_path": "macros/tiktok_ads_fill_pass_through_columns.sql", "unique_id": "macro.tiktok_ads_source.tiktok_ads_fill_pass_through_columns", "macro_sql": "{% macro tiktok_ads_fill_pass_through_columns(pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if (field.alias if field.alias else field.name) not in except_fields %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.948097, "supported_languages": null}, "macro.tiktok_ads_source.get_advertiser_columns": {"name": "get_advertiser_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_advertiser_columns.sql", "original_file_path": "macros/get_advertiser_columns.sql", "unique_id": "macro.tiktok_ads_source.get_advertiser_columns", "macro_sql": "{% macro get_advertiser_columns() %}\n\n{% set columns = [\n {\"name\": \"address\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"cellphone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"contacter\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"industry\", \"datatype\": dbt.type_string()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"telephone\", \"datatype\": dbt.type_string()},\n {\"name\": \"telephone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.949885, "supported_languages": null}, "macro.tiktok_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.tiktok_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"campaign_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"split_test_variable\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9506712, "supported_languages": null}, "macro.tiktok_ads_source.tiktok_ads_extract_url_parameter": {"name": "tiktok_ads_extract_url_parameter", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/tiktok_ads_extract_url_parameters.sql", "original_file_path": "macros/tiktok_ads_extract_url_parameters.sql", "unique_id": "macro.tiktok_ads_source.tiktok_ads_extract_url_parameter", "macro_sql": "{% macro tiktok_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('tiktok_ads_extract_url_parameter', 'tiktok_ads_source') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.tiktok_ads_source.default__tiktok_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9510279, "supported_languages": null}, "macro.tiktok_ads_source.default__tiktok_ads_extract_url_parameter": {"name": "default__tiktok_ads_extract_url_parameter", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/tiktok_ads_extract_url_parameters.sql", "original_file_path": "macros/tiktok_ads_extract_url_parameters.sql", "unique_id": "macro.tiktok_ads_source.default__tiktok_ads_extract_url_parameter", "macro_sql": "{% macro default__tiktok_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.951175, "supported_languages": null}, "macro.tiktok_ads_source.spark__tiktok_ads_extract_url_parameter": {"name": "spark__tiktok_ads_extract_url_parameter", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/tiktok_ads_extract_url_parameters.sql", "original_file_path": "macros/tiktok_ads_extract_url_parameters.sql", "unique_id": "macro.tiktok_ads_source.spark__tiktok_ads_extract_url_parameter", "macro_sql": "{% macro spark__tiktok_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9513652, "supported_languages": null}, "macro.tiktok_ads_source.get_campaign_report_hourly_columns": {"name": "get_campaign_report_hourly_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_campaign_report_hourly_columns.sql", "original_file_path": "macros/get_campaign_report_hourly_columns.sql", "unique_id": "macro.tiktok_ads_source.get_campaign_report_hourly_columns", "macro_sql": "{% macro get_campaign_report_hourly_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"reach\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"real_time_conversion\", \"datatype\": dbt.type_int()},\n {\"name\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"total_purchase_value\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_sales_lead_value\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ tiktok_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('tiktok_ads__campaign_hourly_passthrough_metrics'), except_fields=[\"real_time_conversion\", \"total_purchase_value\", \"total_sales_lead_value\"]) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.tiktok_ads_source.tiktok_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.95454, "supported_languages": null}, "macro.tiktok_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.tiktok_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"ad_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"adgroup_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"call_to_action\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"click_tracking_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"impression_tracking_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.955651, "supported_languages": null}, "macro.tiktok_ads_source.get_ad_report_hourly_columns": {"name": "get_ad_report_hourly_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_ad_report_hourly_columns.sql", "original_file_path": "macros/get_ad_report_hourly_columns.sql", "unique_id": "macro.tiktok_ads_source.get_ad_report_hourly_columns", "macro_sql": "{% macro get_ad_report_hourly_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"real_time_conversion\", \"datatype\": dbt.type_int()},\n {\"name\": \"reach\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"total_purchase_value\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_sales_lead_value\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt.type_numeric()}\n] %}\n \n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ tiktok_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('tiktok_ads__ad_hourly_passthrough_metrics'), except_fields=[\"real_time_conversion\", \"total_purchase_value\", \"total_sales_lead_value\"]) }}\n\n{{ return(columns) }} \n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.tiktok_ads_source.tiktok_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9588249, "supported_languages": null}, "macro.facebook_ads_source.get_ad_set_history_columns": {"name": "get_ad_set_history_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_ad_set_history_columns.sql", "original_file_path": "macros/get_ad_set_history_columns.sql", "unique_id": "macro.facebook_ads_source.get_ad_set_history_columns", "macro_sql": "{% macro get_ad_set_history_columns() %}\n\n{% set columns = [\n {\"name\": \"updated_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bid_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"budget_remaining\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"optimization_goal\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.960151, "supported_languages": null}, "macro.facebook_ads_source.get_creative_history_columns": {"name": "get_creative_history_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_creative_history_columns.sql", "original_file_path": "macros/get_creative_history_columns.sql", "unique_id": "macro.facebook_ads_source.get_creative_history_columns", "macro_sql": "{% macro get_creative_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"page_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_page_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_tags\", \"datatype\": dbt.type_string()},\n {\"name\": \"asset_feed_spec_link_urls\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_child_attachments\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_caption\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_message\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_app_link_spec_android\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_app_link_spec_ios\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_app_link_spec_ipad\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_app_link_spec_iphone\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.962066, "supported_languages": null}, "macro.facebook_ads_source.get_basic_ad_actions_columns": {"name": "get_basic_ad_actions_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_basic_ad_actions_columns.sql", "original_file_path": "macros/get_basic_ad_actions_columns.sql", "unique_id": "macro.facebook_ads_source.get_basic_ad_actions_columns", "macro_sql": "{% macro get_basic_ad_actions_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"action_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('facebook_ads__basic_ad_actions_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.962997, "supported_languages": null}, "macro.facebook_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.facebook_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"updated_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"stop_time\", \"datatype\": dbt.type_timestamp()}, \n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"lifetime_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"budget_remaining\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.964255, "supported_languages": null}, "macro.facebook_ads_source.get_basic_ad_columns": {"name": "get_basic_ad_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_basic_ad_columns.sql", "original_file_path": "macros/get_basic_ad_columns.sql", "unique_id": "macro.facebook_ads_source.get_basic_ad_columns", "macro_sql": "{% macro get_basic_ad_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"adset_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"inline_link_clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt.type_float()},\n {\"name\": \"reach\", \"datatype\": dbt.type_int()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_float()}\n] %}\n\n{# \n Reach and Frequency are not included in downstream models by default, though they are included in the staging model.\n The below ensures that users can add Reach and Frequency to downstream models with the `facebook_ads__basic_ad_passthrough_metrics` variable\n while avoiding duplicate column errors.\n #}\n{% set unique_passthrough = [] %}\n{% for field in var('facebook_ads__basic_ad_passthrough_metrics') %}\n {% if (field.alias if field.alias else field.name)|lower not in ('reach', 'frequency') %}\n {% do unique_passthrough.append({\"name\": field.name, \"alias\": field.alias}) %}\n {% endif %}\n{% endfor %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, unique_passthrough) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.965905, "supported_languages": null}, "macro.facebook_ads_source.facebook_ads_fill_pass_through_columns": {"name": "facebook_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/facebook_ads_fill_pass_through_columns.sql", "original_file_path": "macros/facebook_ads_fill_pass_through_columns.sql", "unique_id": "macro.facebook_ads_source.facebook_ads_fill_pass_through_columns", "macro_sql": "{% macro facebook_ads_fill_pass_through_columns(pass_through_fields) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9666612, "supported_languages": null}, "macro.facebook_ads_source.get_account_history_columns": {"name": "get_account_history_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "unique_id": "macro.facebook_ads_source.get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.967575, "supported_languages": null}, "macro.facebook_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.facebook_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"updated_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_set_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creative_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversion_domain\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.968492, "supported_languages": null}, "macro.facebook_ads_source.get_basic_ad_action_values_columns": {"name": "get_basic_ad_action_values_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_basic_ad_action_values_columns.sql", "original_file_path": "macros/get_basic_ad_action_values_columns.sql", "unique_id": "macro.facebook_ads_source.get_basic_ad_action_values_columns", "macro_sql": "{% macro get_basic_ad_action_values_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"action_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('facebook_ads__basic_ad_action_values_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.969387, "supported_languages": null}, "macro.snapchat_ads_source.get_campaign_hourly_report_columns": {"name": "get_campaign_hourly_report_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_campaign_hourly_report_columns.sql", "original_file_path": "macros/get_campaign_hourly_report_columns.sql", "unique_id": "macro.snapchat_ads_source.get_campaign_hourly_report_columns", "macro_sql": "{% macro get_campaign_hourly_report_columns() %}\n\n{% set columns = [\n {\"name\": \"attachment_quartile_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_3\", \"datatype\": dbt.type_int()},\n {\"name\": \"saves\", \"datatype\": dbt.type_int()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"shares\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()},\n {\"name\": \"swipes\", \"datatype\": dbt.type_int()},\n {\"name\": \"video_views\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_completion\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversion_purchases_value\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__conversion_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ snapchat_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('snapchat_ads__campaign_hourly_report_passthrough_metrics'), except_fields=(var('snapchat_ads__conversion_fields') + ['conversion_purchases_value'])) }}\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns", "macro.snapchat_ads_source.snapchat_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.971819, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_squad_history_columns": {"name": "get_ad_squad_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_ad_squad_history_columns.sql", "original_file_path": "macros/get_ad_squad_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_ad_squad_history_columns", "macro_sql": "{% macro get_ad_squad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.972564, "supported_languages": null}, "macro.snapchat_ads_source.snapchat_ads_add_pass_through_columns": {"name": "snapchat_ads_add_pass_through_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/snapchat_ads_add_pass_through_columns.sql", "original_file_path": "macros/snapchat_ads_add_pass_through_columns.sql", "unique_id": "macro.snapchat_ads_source.snapchat_ads_add_pass_through_columns", "macro_sql": "{% macro snapchat_ads_add_pass_through_columns(base_columns, pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for column in pass_through_fields %}\n\n {% if column is mapping %}\n {% set col_name = column.alias|default(column.name)|lower %}\n \n {% if col_name not in except_fields %}\n {% if column.alias %}\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% else %}\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% else %}\n {% if column|lower not in except_fields %}\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.97404, "supported_languages": null}, "macro.snapchat_ads_source.get_creative_history_columns": {"name": "get_creative_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_creative_history_columns.sql", "original_file_path": "macros/get_creative_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_creative_history_columns", "macro_sql": "{% macro get_creative_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"web_view_url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.974869, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_hourly_report_columns": {"name": "get_ad_hourly_report_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_ad_hourly_report_columns.sql", "original_file_path": "macros/get_ad_hourly_report_columns.sql", "unique_id": "macro.snapchat_ads_source.get_ad_hourly_report_columns", "macro_sql": "{% macro get_ad_hourly_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"attachment_quartile_1\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quartile_1\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quartile_2\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quartile_3\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"saves\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"swipes\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"view_completion\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion_purchases_value\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__conversion_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ snapchat_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('snapchat_ads__ad_hourly_passthrough_metrics'), except_fields=(var('snapchat_ads__conversion_fields') + ['conversion_purchases_value'])) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns", "macro.snapchat_ads_source.snapchat_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9772391, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_squad_hourly_report_columns": {"name": "get_ad_squad_hourly_report_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_ad_squad_hourly_report_columns.sql", "original_file_path": "macros/get_ad_squad_hourly_report_columns.sql", "unique_id": "macro.snapchat_ads_source.get_ad_squad_hourly_report_columns", "macro_sql": "{% macro get_ad_squad_hourly_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_squad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"attachment_quartile_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_3\", \"datatype\": dbt.type_int()},\n {\"name\": \"saves\", \"datatype\": dbt.type_int()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"shares\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()},\n {\"name\": \"swipes\", \"datatype\": dbt.type_int()},\n {\"name\": \"video_views\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_completion\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"conversion_purchases_value\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__conversion_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ snapchat_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('snapchat_ads__ad_squad_hourly_passthrough_metrics'), except_fields=(var('snapchat_ads__conversion_fields') + ['conversion_purchases_value'])) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns", "macro.snapchat_ads_source.snapchat_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9796019, "supported_languages": null}, "macro.snapchat_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9803321, "supported_languages": null}, "macro.snapchat_ads_source.get_creative_url_tag_history_columns": {"name": "get_creative_url_tag_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_creative_url_tag_history_columns.sql", "original_file_path": "macros/get_creative_url_tag_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_creative_url_tag_history_columns", "macro_sql": "{% macro get_creative_url_tag_history_columns() %}\n\n{% set columns = [\n {\"name\": \"creative_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.980887, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_squad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creative_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.981699, "supported_languages": null}, "macro.snapchat_ads_source.snapchat_ads_fill_pass_through_columns": {"name": "snapchat_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/snapchat_ads_fill_pass_through_columns.sql", "original_file_path": "macros/snapchat_ads_fill_pass_through_columns.sql", "unique_id": "macro.snapchat_ads_source.snapchat_ads_fill_pass_through_columns", "macro_sql": "{% macro snapchat_ads_fill_pass_through_columns(pass_through_fields, except=[]) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if (field.alias if field.alias else field.name) not in except %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.982643, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_account_history_columns": {"name": "get_ad_account_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_ad_account_history_columns.sql", "original_file_path": "macros/get_ad_account_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_ad_account_history_columns", "macro_sql": "{% macro get_ad_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"advertiser\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.983642, "supported_languages": null}, "macro.microsoft_ads.microsoft_ads_persist_pass_through_columns": {"name": "microsoft_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "microsoft_ads", "path": "macros/microsoft_ads_persist_pass_through_columns.sql", "original_file_path": "macros/microsoft_ads_persist_pass_through_columns.sql", "unique_id": "macro.microsoft_ads.microsoft_ads_persist_pass_through_columns", "macro_sql": "{% macro microsoft_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, exclude_fields=[]) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field %}\n {% set original_name = field.name if field is mapping else field %}\n \n {% if field_name not in exclude_fields and original_name not in exclude_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field_name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9847412, "supported_languages": null}, "macro.microsoft_ads.microsoft_ads_extract_url_parameter": {"name": "microsoft_ads_extract_url_parameter", "resource_type": "macro", "package_name": "microsoft_ads", "path": "macros/microsoft_ads_extract_url_parameters.sql", "original_file_path": "macros/microsoft_ads_extract_url_parameters.sql", "unique_id": "macro.microsoft_ads.microsoft_ads_extract_url_parameter", "macro_sql": "{% macro microsoft_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('microsoft_ads_extract_url_parameter', 'microsoft_ads') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.microsoft_ads.default__microsoft_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.98509, "supported_languages": null}, "macro.microsoft_ads.default__microsoft_ads_extract_url_parameter": {"name": "default__microsoft_ads_extract_url_parameter", "resource_type": "macro", "package_name": "microsoft_ads", "path": "macros/microsoft_ads_extract_url_parameters.sql", "original_file_path": "macros/microsoft_ads_extract_url_parameters.sql", "unique_id": "macro.microsoft_ads.default__microsoft_ads_extract_url_parameter", "macro_sql": "{% macro default__microsoft_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.985237, "supported_languages": null}, "macro.microsoft_ads.spark__microsoft_ads_extract_url_parameter": {"name": "spark__microsoft_ads_extract_url_parameter", "resource_type": "macro", "package_name": "microsoft_ads", "path": "macros/microsoft_ads_extract_url_parameters.sql", "original_file_path": "macros/microsoft_ads_extract_url_parameters.sql", "unique_id": "macro.microsoft_ads.spark__microsoft_ads_extract_url_parameter", "macro_sql": "{% macro spark__microsoft_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9854238, "supported_languages": null}, "macro.twitter_ads_source.get_tweet_columns": {"name": "get_tweet_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/get_tweet_columns.sql", "original_file_path": "macros/get_tweet_columns.sql", "unique_id": "macro.twitter_ads_source.get_tweet_columns", "macro_sql": "{% macro get_tweet_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"lang\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.986062, "supported_languages": null}, "macro.twitter_ads_source.get_line_item_keywords_report_columns": {"name": "get_line_item_keywords_report_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/get_line_item_keywords_report_columns.sql", "original_file_path": "macros/get_line_item_keywords_report_columns.sql", "unique_id": "macro.twitter_ads_source.get_line_item_keywords_report_columns", "macro_sql": "{% macro get_line_item_keywords_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"line_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"segment\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__conversion_fields')) }}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__conversion_sale_amount_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ twitter_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('twitter_ads__line_item_keywords_report_passthrough_metrics'), except_fields=(var('twitter_ads__conversion_fields') + var('twitter_ads__conversion_sale_amount_fields'))) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns", "macro.twitter_ads_source.twitter_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9875479, "supported_languages": null}, "macro.twitter_ads_source.twitter_ads_extract_url_parameter": {"name": "twitter_ads_extract_url_parameter", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/twitter_ads_extract_url_parameters.sql", "original_file_path": "macros/twitter_ads_extract_url_parameters.sql", "unique_id": "macro.twitter_ads_source.twitter_ads_extract_url_parameter", "macro_sql": "{% macro twitter_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ return(adapter.dispatch('twitter_ads_extract_url_parameter', 'twitter_ads_source') (field, url_parameter)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.twitter_ads_source.default__twitter_ads_extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.987895, "supported_languages": null}, "macro.twitter_ads_source.default__twitter_ads_extract_url_parameter": {"name": "default__twitter_ads_extract_url_parameter", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/twitter_ads_extract_url_parameters.sql", "original_file_path": "macros/twitter_ads_extract_url_parameters.sql", "unique_id": "macro.twitter_ads_source.default__twitter_ads_extract_url_parameter", "macro_sql": "{% macro default__twitter_ads_extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9880362, "supported_languages": null}, "macro.twitter_ads_source.spark__twitter_ads_extract_url_parameter": {"name": "spark__twitter_ads_extract_url_parameter", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/twitter_ads_extract_url_parameters.sql", "original_file_path": "macros/twitter_ads_extract_url_parameters.sql", "unique_id": "macro.twitter_ads_source.spark__twitter_ads_extract_url_parameter", "macro_sql": "{% macro spark__twitter_ads_extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.988223, "supported_languages": null}, "macro.twitter_ads_source.twitter_ads_fill_pass_through_columns": {"name": "twitter_ads_fill_pass_through_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/twitter_ads_fill_pass_through_columns.sql", "original_file_path": "macros/twitter_ads_fill_pass_through_columns.sql", "unique_id": "macro.twitter_ads_source.twitter_ads_fill_pass_through_columns", "macro_sql": "{% macro twitter_ads_fill_pass_through_columns(pass_through_fields, except=[]) %}\n\n{% if pass_through_fields %}\n {% for field in pass_through_fields %}\n {% if (field.alias if field.alias else field.name) not in except %}\n {% if field.transform_sql %}\n , coalesce(cast({{ field.transform_sql }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% else %}\n , coalesce(cast({{ field.alias if field.alias else field.name }} as {{ dbt.type_float() }}), 0) as {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.989179, "supported_languages": null}, "macro.twitter_ads_source.get_line_item_report_columns": {"name": "get_line_item_report_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/get_line_item_report_columns.sql", "original_file_path": "macros/get_line_item_report_columns.sql", "unique_id": "macro.twitter_ads_source.get_line_item_report_columns", "macro_sql": "{% macro get_line_item_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"line_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt.type_int()},\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__conversion_fields')) }}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__conversion_sale_amount_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ twitter_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('twitter_ads__line_item_report_passthrough_metrics'), except_fields=(var('twitter_ads__conversion_fields') + var('twitter_ads__conversion_sale_amount_fields'))) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns", "macro.twitter_ads_source.twitter_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9905071, "supported_languages": null}, "macro.twitter_ads_source.get_campaign_report_columns": {"name": "get_campaign_report_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "unique_id": "macro.twitter_ads_source.get_campaign_report_columns", "macro_sql": "{% macro get_campaign_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__conversion_fields')) }}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__conversion_sale_amount_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ twitter_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('twitter_ads__campaign_report_passthrough_metrics'), except_fields=(var('twitter_ads__conversion_fields') + var('twitter_ads__conversion_sale_amount_fields'))) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns", "macro.twitter_ads_source.twitter_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.9918442, "supported_languages": null}, "macro.twitter_ads_source.get_account_history_columns": {"name": "get_account_history_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"approval_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"industry_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"salt\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_switch_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.995183, "supported_languages": null}, "macro.twitter_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget_amount_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"duration_in_days\", \"datatype\": dbt.type_int()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"entity_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency_cap\", \"datatype\": dbt.type_int()},\n {\"name\": \"funding_instrument_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"servable\", \"datatype\": \"boolean\"},\n {\"name\": \"standard_delivery\", \"datatype\": \"boolean\"},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"total_budget_amount_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.996655, "supported_languages": null}, "macro.twitter_ads_source.get_line_item_history_columns": {"name": "get_line_item_history_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_line_item_history_columns", "macro_sql": "{% macro get_line_item_history_columns() %}\n\n{% set columns = [\n {\"name\": \"advertiser_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_user_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"automatically_select_bid\", \"datatype\": \"boolean\"},\n {\"name\": \"bid_amount_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"charge_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creative_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"entity_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"objective\", \"datatype\": dbt.type_string()},\n {\"name\": \"optimization\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_web_event_tag\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"target_cpa_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_budget_amount_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.998646, "supported_languages": null}, "macro.twitter_ads_source.get_promoted_tweet_history_columns": {"name": "get_promoted_tweet_history_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_promoted_tweet_history_columns", "macro_sql": "{% macro get_promoted_tweet_history_columns() %}\n\n{% set columns = [\n {\"name\": \"approval_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"entity_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tweet_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462180.99942, "supported_languages": null}, "macro.twitter_ads_source.get_tweet_url_columns": {"name": "get_tweet_url_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_tweet_url_columns", "macro_sql": "{% macro get_tweet_url_columns() %}\n\n{% set columns = [\n {\"name\": \"display_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"expanded_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"indices\", \"datatype\": dbt.type_string()},\n {\"name\": \"tweet_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462181.000042, "supported_languages": null}, "macro.twitter_ads_source.get_promoted_tweet_report_columns": {"name": "get_promoted_tweet_report_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_promoted_tweet_report_columns", "macro_sql": "{% macro get_promoted_tweet_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"promoted_tweet_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__conversion_fields')) }}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__conversion_sale_amount_fields')) }}\n\n{# Doing it this way in case users were bringing in conversion metrics via passthrough columns prior to us adding them by default #}\n{{ twitter_ads_add_pass_through_columns(base_columns=columns, pass_through_fields=var('twitter_ads__promoted_tweet_report_passthrough_metrics'), except_fields=(var('twitter_ads__conversion_fields') + var('twitter_ads__conversion_sale_amount_fields'))) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns", "macro.twitter_ads_source.twitter_ads_add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462181.001127, "supported_languages": null}, "macro.twitter_ads_source.twitter_ads_add_pass_through_columns": {"name": "twitter_ads_add_pass_through_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/twitter_ads_add_pass_through_columns.sql", "original_file_path": "macros/twitter_ads_add_pass_through_columns.sql", "unique_id": "macro.twitter_ads_source.twitter_ads_add_pass_through_columns", "macro_sql": "{% macro twitter_ads_add_pass_through_columns(base_columns, pass_through_fields, except_fields=[]) %}\n\n{% if pass_through_fields %}\n {% for column in pass_through_fields %}\n\n {% if column is mapping %}\n {% set col_name = column.alias|default(column.name)|lower %}\n \n {% if col_name not in except_fields %}\n {% if column.alias %}\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% else %}\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% else %}\n {% if column|lower not in except_fields %}\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n {% endif %}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462181.002614, "supported_languages": null}, "macro.linkedin.linkedin_ads_persist_pass_through_columns": {"name": "linkedin_ads_persist_pass_through_columns", "resource_type": "macro", "package_name": "linkedin", "path": "macros/linkedin_ads_persist_pass_through_columns.sql", "original_file_path": "macros/linkedin_ads_persist_pass_through_columns.sql", "unique_id": "macro.linkedin.linkedin_ads_persist_pass_through_columns", "macro_sql": "{% macro linkedin_ads_persist_pass_through_columns(pass_through_variable, identifier=none, transform='', coalesce_with=none, except_variable=none, exclude_fields=[]) %}\n\n{% set except_fields = [] %}\n{% if except_variable is not none %}\n {# Start creating list of fields to exclude #}\n {% for item in var(except_variable) %}\n {% do except_fields.append(item.name) %}\n {% endfor %}\n{% endif %}\n\n{% for field in exclude_fields %}\n {% do except_fields.append(field) %}\n{% endfor %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n {% set field_name = field.alias|default(field.name)|lower if field is mapping else field|lower %}\n \n {% if field_name not in except_fields %}\n , {{ transform ~ '(' ~ ('coalesce(' if coalesce_with is not none else '') ~ (identifier ~ '.' if identifier else '') ~ field_name ~ ((', ' ~ coalesce_with ~ ')') if coalesce_with is not none else '') ~ ')' }} as {{ field_name }}\n {% endif %}\n\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1734462181.004103, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.microsoft_ads_source.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.account_id", "block_contents": "The ID of the account."}, "doc.microsoft_ads_source.account_name": {"name": "account_name", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.account_name", "block_contents": "The name of the account."}, "doc.microsoft_ads_source.account_timezone": {"name": "account_timezone", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.account_timezone", "block_contents": "The time zone associated with this account."}, "doc.microsoft_ads_source.ad_distribution": {"name": "ad_distribution", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_distribution", "block_contents": "The distribution medium associated with this record."}, "doc.microsoft_ads_source.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_id", "block_contents": "The ID of the corresponding ad."}, "doc.microsoft_ads_source.ad_group_status": {"name": "ad_group_status", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_group_status", "block_contents": "The status of this ad group; see the following [documentation](https://help.ads.microsoft.com/apex/index/3/en/53094) for more information on values and definitions."}, "doc.microsoft_ads_source.ad_name": {"name": "ad_name", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_name", "block_contents": "The name of the corresponding ad; `title_part_1` is used as the ad name as a proxy as one is not provided by the data source."}, "doc.microsoft_ads_source.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_group_id", "block_contents": "The ID of the corresponding ad group."}, "doc.microsoft_ads_source.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_group_name", "block_contents": "The name of the corresponding ad group."}, "doc.microsoft_ads_source.ad_status": {"name": "ad_status", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_status", "block_contents": "The status of this ad; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/adstatus?view=bingads-13) for more information on values and definitions."}, "doc.microsoft_ads_source.ad_type": {"name": "ad_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_type", "block_contents": "The ad type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/adtype?view=bingads-13) for more information on values and definitions."}, "doc.microsoft_ads_source.bid_match_type": {"name": "bid_match_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.bid_match_type", "block_contents": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'."}, "doc.microsoft_ads_source.budget_association_status": {"name": "budget_association_status", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.budget_association_status", "block_contents": "Indicates whether or not the campaign is currently spending from the budget mentioned in the BudgetName column. The possible values are `Current` and `Ended`."}, "doc.microsoft_ads_source.budget_name": {"name": "budget_name", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.budget_name", "block_contents": "The name of the budget. This column will be empty for unshared budgets."}, "doc.microsoft_ads_source.budget_status": {"name": "budget_status", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.budget_status", "block_contents": "The budget status. The possible values are `Active` and `Deleted`. This column will be empty for unshared budgets."}, "doc.microsoft_ads_source.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.campaign_id", "block_contents": "The ID of the campaign."}, "doc.microsoft_ads_source.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.campaign_name", "block_contents": "The name of the campaign."}, "doc.microsoft_ads_source.campaign_status": {"name": "campaign_status", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.campaign_status", "block_contents": "The status of this campaign; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaignstatus?view=bingads-13) for more information on values and definitions."}, "doc.microsoft_ads_source.campaign_timezone": {"name": "campaign_timezone", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.campaign_timezone", "block_contents": "The time zone associated with this campaign."}, "doc.microsoft_ads_source.campaign_type": {"name": "campaign_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.campaign_type", "block_contents": "The campaign type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaigntype?view=bingads-13) for more information on values and definitions."}, "doc.microsoft_ads_source.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.clicks", "block_contents": "The number of clicks that occurred by the grain of the report."}, "doc.microsoft_ads_source.conversions_qualified": {"name": "conversions_qualified", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.conversions_qualified", "block_contents": "Number of [conversions](https://learn.microsoft.com/en-us/advertising/reporting-service/conversionperformancereportcolumn?view=bingads-13#conversionsqualified), measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true."}, "doc.microsoft_ads_source.conversions": {"name": "conversions", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.conversions", "block_contents": "Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the convesion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true. This field coalesces the source `conversions_qualifed` and `conversions` fields, and will be 0 if both are null."}, "doc.microsoft_ads_source.conversions_src": {"name": "conversions_src", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.conversions_src", "block_contents": "(Deprecated in 2022 in favor of `conversions_qualified`) Number of conversions, measured by completion of an action by a customer after viewing your ad. This will **exclude** any conversions where the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true."}, "doc.microsoft_ads_source.revenue": {"name": "revenue", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.revenue", "block_contents": "The revenue optionally reported by the advertiser as a result of the `conversions` figure. This will **exclude** revenue from conversions in which the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads is set to true."}, "doc.microsoft_ads_source.all_conversions": {"name": "all_conversions", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.all_conversions", "block_contents": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads. This field coalesces the source `all_conversions_qualifed` and `all_conversions` fields, and will be 0 if both are null."}, "doc.microsoft_ads_source.all_conversions_qualified": {"name": "all_conversions_qualified", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.all_conversions_qualified", "block_contents": "Number of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** data from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads."}, "doc.microsoft_ads_source.all_conversions_src": {"name": "all_conversions_src", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.all_conversions_src", "block_contents": "(Deprecated in 2022 in favor of `conversions_qualified`)\nNumber of all conversions, measured by completion of an action by a customer after viewing your ad. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads."}, "doc.microsoft_ads_source.all_revenue": {"name": "all_revenue", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.all_revenue", "block_contents": "The revenue reported by the advertiser as a result of the `all_conversions` figure. This will **include** revenue from conversions regardless of the value of the conversion goal's [ExcludeFromBidding](https://learn.microsoft.com/en-us/advertising/campaign-management-service/conversiongoal?view=bingads-13#excludefrombidding) property in Microsoft Ads."}, "doc.microsoft_ads_source.currency_code": {"name": "currency_code", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.currency_code", "block_contents": "The currency code associated with spend and, if applicable, other metrics associated with currency."}, "doc.microsoft_ads_source.date_day": {"name": "date_day", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.date_day", "block_contents": "The date of the performance report."}, "doc.microsoft_ads_source.delivered_match_type": {"name": "delivered_match_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.delivered_match_type", "block_contents": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'."}, "doc.microsoft_ads_source.device_os": {"name": "device_os", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.device_os", "block_contents": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'."}, "doc.microsoft_ads_source.device_type": {"name": "device_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.device_type", "block_contents": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'."}, "doc.microsoft_ads_source.end_date": {"name": "end_date", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.end_date", "block_contents": "The date in which this ad group will no longer run."}, "doc.microsoft_ads_source.final_url": {"name": "final_url", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.final_url", "block_contents": "The full URL that the ad links to."}, "doc.microsoft_ads_source.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.impressions", "block_contents": "The number of impressions that occurred by the grain of the report."}, "doc.microsoft_ads_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.is_most_recent_record", "block_contents": "Boolean representing whether a record is the most recent version of that record."}, "doc.microsoft_ads_source.keyword_id": {"name": "keyword_id", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.keyword_id", "block_contents": "The ID of the keyword."}, "doc.microsoft_ads_source.keyword_name": {"name": "keyword_name", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.keyword_name", "block_contents": "The keyword(s) associated with this record."}, "doc.microsoft_ads_source.keyword_status": {"name": "keyword_status", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.keyword_status", "block_contents": "The status of this keyword; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/keywordstatus?view=bingads-13) for more information on values and definitions."}, "doc.microsoft_ads_source.language": {"name": "language", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.language", "block_contents": "The language that the associated ad was viewed in."}, "doc.microsoft_ads_source.match_type": {"name": "match_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.match_type", "block_contents": "The match type associated with this record; values contain but may not be limited to 'Broad', 'Exact', 'Phrase'. Please refer to Microsoft Ad's [documentation](https://help.ads.microsoft.com/#apex/ads/en/50822/1)."}, "doc.microsoft_ads_source.modified_at": {"name": "modified_at", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.modified_at", "block_contents": "The time each version of the object was last modified, i.e. when that version of the object was 'created'."}, "doc.microsoft_ads_source.network": {"name": "network", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.network", "block_contents": "The network associated with this record."}, "doc.microsoft_ads_source.search_query": {"name": "search_query", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.search_query", "block_contents": "The search query string associated with this record."}, "doc.microsoft_ads_source.spend": {"name": "spend", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.spend", "block_contents": "The amount of spend that occurred by the grain of the report."}, "doc.microsoft_ads_source.start_date": {"name": "start_date", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.start_date", "block_contents": "The date in which an ad group starts running."}, "doc.microsoft_ads_source.time_zone": {"name": "time_zone", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.time_zone", "block_contents": "The time zone associated with this record."}, "doc.microsoft_ads_source.top_vs_other": {"name": "top_vs_other", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.top_vs_other", "block_contents": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009)."}, "doc.microsoft_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.reddit_ads._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads._fivetran_synced", "block_contents": "Timestamp of when Fivetran synced a record."}, "doc.reddit_ads.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.account_id", "block_contents": "The ID of the account."}, "doc.reddit_ads.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.ad_id", "block_contents": "The ID of the ad."}, "doc.reddit_ads.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.ad_group_id", "block_contents": "The ID of the ad group."}, "doc.reddit_ads.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.campaign_id", "block_contents": "The ID of the campaign."}, "doc.reddit_ads.post_id": {"name": "post_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.post_id", "block_contents": "The ID of the post."}, "doc.reddit_ads.ad_name": {"name": "ad_name", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.ad_name", "block_contents": "Name of ad."}, "doc.reddit_ads.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.ad_group_name", "block_contents": "Name of ad group."}, "doc.reddit_ads.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.campaign_name", "block_contents": "Name of campaign."}, "doc.reddit_ads.created_at": {"name": "created_at", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.created_at", "block_contents": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp."}, "doc.reddit_ads.currency": {"name": "currency", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.currency", "block_contents": "The currency this account uses (ISO-4217)"}, "doc.reddit_ads.status": {"name": "status", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.status", "block_contents": "The current state of the advertiser. \"PENDING_BILLING\", \"VALID\", \"TRUSTED\", \"ADMIN\", \"FAILED_BILLING\", \"SUSPICIOUS\", \"SUSPENDED\", or \"BANNED\""}, "doc.reddit_ads.time_zone_id": {"name": "time_zone_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.time_zone_id", "block_contents": "The time zone id preference for this account"}, "doc.reddit_ads.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.clicks", "block_contents": "The number of clicks detected for this report period"}, "doc.reddit_ads.date_day": {"name": "date_day", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.date_day", "block_contents": "YYYY-MM-DD formatted date"}, "doc.reddit_ads.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.impressions", "block_contents": "The number of impressions served for this report period"}, "doc.reddit_ads.spend": {"name": "spend", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.spend", "block_contents": "The amount (in microcurrency) spent for this report period in Ad Account's currency"}, "doc.reddit_ads.click_url": {"name": "click_url", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.click_url", "block_contents": "The destination url, or the website address, that a visitor goes to when they click on the ad"}, "doc.reddit_ads.post_url": {"name": "post_url", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.post_url", "block_contents": "The URL belonging to the post."}, "doc.reddit_ads.attribution_type": {"name": "attribution_type", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.attribution_type", "block_contents": "Attribution type: \"CLICK_THROUGH_CONVERSION\", \"VIEW_THROUGH_CONVERSION\", or \"ALL_CONVERSION\".\nCLICK_THROUGH_CONVERSION: A user clicked on your ad and then completed the conversion action on your site. \nVIEW_THROUGH_CONVERSION: A user saw your ad and did not click it, but did complete the conversion action on your site.\nALL_CONVERSION: Combination of both."}, "doc.reddit_ads.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.reddit_ads.total_items": {"name": "total_items", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.total_items", "block_contents": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion."}, "doc.reddit_ads.total_value": {"name": "total_value", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.total_value", "block_contents": "The total monetary value associated with a conversion event."}, "doc.reddit_ads.view_through_conversion_attribution_window_month": {"name": "view_through_conversion_attribution_window_month", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.view_through_conversion_attribution_window_month", "block_contents": "The total view-through conversions attributed, for the given month-long window."}, "doc.reddit_ads.click_through_conversion_attribution_window_month": {"name": "click_through_conversion_attribution_window_month", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.click_through_conversion_attribution_window_month", "block_contents": "The total click-through conversions attributed, for the given month-long window."}, "doc.reddit_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source._fivetran_synced", "block_contents": "Timestamp of when Fivetran synced a record."}, "doc.reddit_ads_source.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.account_id", "block_contents": "The ID of the account."}, "doc.reddit_ads_source.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ad_id", "block_contents": "The ID of the ad."}, "doc.reddit_ads_source.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ad_group_id", "block_contents": "The ID of the ad group."}, "doc.reddit_ads_source.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.campaign_id", "block_contents": "The ID of the campaign."}, "doc.reddit_ads_source.post_id": {"name": "post_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.post_id", "block_contents": "The ID of the post."}, "doc.reddit_ads_source.ad_name": {"name": "ad_name", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ad_name", "block_contents": "Name of ad."}, "doc.reddit_ads_source.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ad_group_name", "block_contents": "Name of ad group."}, "doc.reddit_ads_source.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.campaign_name", "block_contents": "Name of campaign."}, "doc.reddit_ads_source.attribution_type": {"name": "attribution_type", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.attribution_type", "block_contents": "Attribution type: \"CLICK_THROUGH_CONVERSION\", \"VIEW_THROUGH_CONVERSION\", or \"ALL_CONVERSION\".\nCLICK_THROUGH_CONVERSION: A user clicked on your ad and then completed the conversion action on your site. \nVIEW_THROUGH_CONVERSION: A user saw your ad and did not click it, but did complete the conversion action on your site.\nALL_CONVERSION: Combination of both."}, "doc.reddit_ads_source.click_attribution_window": {"name": "click_attribution_window", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.click_attribution_window", "block_contents": "Determines how long after clicking on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\""}, "doc.reddit_ads_source.created_at": {"name": "created_at", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.created_at", "block_contents": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp."}, "doc.reddit_ads_source.currency": {"name": "currency", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.currency", "block_contents": "The currency this account uses (ISO-4217)"}, "doc.reddit_ads_source.status": {"name": "status", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.status", "block_contents": "The current state of the advertiser. \"PENDING_BILLING\", \"VALID\", \"TRUSTED\", \"ADMIN\", \"FAILED_BILLING\", \"SUSPICIOUS\", \"SUSPENDED\", or \"BANNED\""}, "doc.reddit_ads_source.time_zone_id": {"name": "time_zone_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.time_zone_id", "block_contents": "The time zone id preference for this account"}, "doc.reddit_ads_source.view_attribution_window": {"name": "view_attribution_window", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.view_attribution_window", "block_contents": "Determines how long after viewing on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\""}, "doc.reddit_ads_source.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.clicks", "block_contents": "The number of clicks detected for this report period"}, "doc.reddit_ads_source.comment_downvotes": {"name": "comment_downvotes", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.comment_downvotes", "block_contents": "The number comment downvotes for this report period"}, "doc.reddit_ads_source.comment_upvotes": {"name": "comment_upvotes", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.comment_upvotes", "block_contents": "The number comment upvotes for this report period"}, "doc.reddit_ads_source.comments_page_views": {"name": "comments_page_views", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.comments_page_views", "block_contents": "The number of times the comments page was viewed for this report period"}, "doc.reddit_ads_source.conversion_roas": {"name": "conversion_roas", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.conversion_roas", "block_contents": "Return on ad spend for purchases for this period"}, "doc.reddit_ads_source.cpc": {"name": "cpc", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.cpc", "block_contents": "The cost-per-click for this period"}, "doc.reddit_ads_source.ctr": {"name": "ctr", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ctr", "block_contents": "The click-through-rate for this period"}, "doc.reddit_ads_source.date": {"name": "date", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.date", "block_contents": "YYYY-MM-DD formatted date"}, "doc.reddit_ads_source.ecpm": {"name": "ecpm", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ecpm", "block_contents": "The effective CPM for this period"}, "doc.reddit_ads_source.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.impressions", "block_contents": "The number of impressions served for this report period"}, "doc.reddit_ads_source.region": {"name": "region", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.region", "block_contents": "The region (US state or UK country) targeted for the reports"}, "doc.reddit_ads_source.spend": {"name": "spend", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.spend", "block_contents": "The amount (in microcurrency) spent for this report period in Ad Account's currency, as defined [here](https://ads-api.reddit.com/docs/#tag/Reporting/paths/~1api~1v2.0~1accounts~1{account_id}~1reports/get)"}, "doc.reddit_ads_source.video_started": {"name": "video_started", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_started", "block_contents": "The number of times the ad was served and the video began playing"}, "doc.reddit_ads_source.video_watched_25_percent": {"name": "video_watched_25_percent", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_watched_25_percent", "block_contents": "The number of times the ad was served and at least 25% of the video has played"}, "doc.reddit_ads_source.video_watched_3_seconds": {"name": "video_watched_3_seconds", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_watched_3_seconds", "block_contents": "The number of times the ad was served and at least 3 seconds of the video has played"}, "doc.reddit_ads_source.video_watched_50_percent": {"name": "video_watched_50_percent", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_watched_50_percent", "block_contents": "The number of times the ad was served and at least 50% of the video has played"}, "doc.reddit_ads_source.video_watched_5_seconds": {"name": "video_watched_5_seconds", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_watched_5_seconds", "block_contents": "The number of times the ad was served and at least 5 seconds of the video has played"}, "doc.reddit_ads_source.video_watched_75_percent": {"name": "video_watched_75_percent", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_watched_75_percent", "block_contents": "The number of times the ad was served and at least 75% of the video has played"}, "doc.reddit_ads_source.viewer_comments": {"name": "viewer_comments", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.viewer_comments", "block_contents": "The number of times a user saw the post, and also commented on it. We count per view + comment combination (similar to a conversion)"}, "doc.reddit_ads_source.click_url": {"name": "click_url", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.click_url", "block_contents": "The destination url, or the website address, that a visitor goes to when they click on the ad"}, "doc.reddit_ads_source.configured_status": {"name": "configured_status", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.configured_status", "block_contents": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\""}, "doc.reddit_ads_source.effective_status": {"name": "effective_status", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.effective_status", "block_contents": "The calculated status determining the real status of this entity."}, "doc.reddit_ads_source.is_processing": {"name": "is_processing", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.is_processing", "block_contents": "Whether or not effective status is processing"}, "doc.reddit_ads_source.post_url": {"name": "post_url", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.post_url", "block_contents": "The URL belonging to the post."}, "doc.reddit_ads_source.rejection_reason": {"name": "rejection_reason", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.rejection_reason", "block_contents": "Reason why entity was rejected."}, "doc.reddit_ads_source.bid_strategy": {"name": "bid_strategy", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.bid_strategy", "block_contents": "The bid strategy for this entity. \"MAXIMIZE_VOLUME\", \"MANUAL_BIDDING\", or \"BIDLESS\""}, "doc.reddit_ads_source.bid_value": {"name": "bid_value", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.bid_value", "block_contents": "The amount to pay in microcurrency per bidding event."}, "doc.reddit_ads_source.end_time": {"name": "end_time", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.end_time", "block_contents": "When the entity will stop delivering."}, "doc.reddit_ads_source.expand_targeting": {"name": "expand_targeting", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.expand_targeting", "block_contents": "Boolean that when selected, allows Reddit to expand your targeting to maximize your results."}, "doc.reddit_ads_source.goal_type": {"name": "goal_type", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.goal_type", "block_contents": "The type of goal for the entity. \"IMPRESSIONS\", \"PERCENTAGE\", \"CLICKS\", \"CONVERSIONS\", \"LIFETIME_SPEND\", \"DAILY_SPEND\", or \"VIDEO_VIEWABLE_IMPRESSIONS\""}, "doc.reddit_ads_source.goal_value": {"name": "goal_value", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.goal_value", "block_contents": "The value used to determine the goal has been met. This is measured in microcurrency for monetary goals types."}, "doc.reddit_ads_source.optimization_strategy_type": {"name": "optimization_strategy_type", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.optimization_strategy_type", "block_contents": "The strategy to use when optimizing the delivery of an ad. \"DOWNSTREAM_CONVERSIONS\" or \"APP_INSTALLS\""}, "doc.reddit_ads_source.start_time": {"name": "start_time", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.start_time", "block_contents": "When the entity will begin to deliver."}, "doc.reddit_ads_source.funding_instrument_id": {"name": "funding_instrument_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.funding_instrument_id", "block_contents": "Campaign level funding instrument id"}, "doc.reddit_ads_source.objective": {"name": "objective", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.objective", "block_contents": "The objective type of a campaign."}, "doc.reddit_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.reddit_ads_source.account_conversions_report": {"name": "account_conversions_report", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.account_conversions_report", "block_contents": "Provides a summary of conversion events at the account level, aggregating key metrics by event and day."}, "doc.reddit_ads_source.stg_reddit_ads__account_conversions_report": {"name": "stg_reddit_ads__account_conversions_report", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.stg_reddit_ads__account_conversions_report", "block_contents": "Provides a summary of conversion events at the account level, aggregating key metrics by event and day such as view-through and click-through conversions."}, "doc.reddit_ads_source.avg_value": {"name": "avg_value", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.avg_value", "block_contents": "The average value of conversions over a given period."}, "doc.reddit_ads_source.click_through_conversion_attribution_window_month": {"name": "click_through_conversion_attribution_window_month", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.click_through_conversion_attribution_window_month", "block_contents": "The total click-through conversions attributed, for the given month-long window."}, "doc.reddit_ads_source.click_through_conversion_attribution_window_day": {"name": "click_through_conversion_attribution_window_day", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.click_through_conversion_attribution_window_day", "block_contents": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default."}, "doc.reddit_ads_source.click_through_conversion_attribution_window_week": {"name": "click_through_conversion_attribution_window_week", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.click_through_conversion_attribution_window_week", "block_contents": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default."}, "doc.reddit_ads_source.event_name": {"name": "event_name", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.event_name", "block_contents": "The name of the conversion event or action being tracked, such as a purchase, form submission, or sign-up. This field categorizes different conversion types within the dataset."}, "doc.reddit_ads_source.total_items": {"name": "total_items", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.total_items", "block_contents": "The total number of items involved in a conversion event. This is typically used in e-commerce reports to track the quantity of products sold during a conversion."}, "doc.reddit_ads_source.total_value": {"name": "total_value", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.total_value", "block_contents": "The total monetary value associated with a conversion event."}, "doc.reddit_ads_source.view_through_conversion_attribution_window_month": {"name": "view_through_conversion_attribution_window_month", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.view_through_conversion_attribution_window_month", "block_contents": "The total view-through conversions attributed, for the given month-long window."}, "doc.reddit_ads_source.view_through_conversion_attribution_window_day": {"name": "view_through_conversion_attribution_window_day", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.view_through_conversion_attribution_window_day", "block_contents": "The total click-through conversions attributed, for the given day-long window. Not included by the package by default."}, "doc.reddit_ads_source.view_through_conversion_attribution_window_week": {"name": "view_through_conversion_attribution_window_week", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.view_through_conversion_attribution_window_week", "block_contents": "The total click-through conversions attributed, for the given week-long window. Not included by the package by default."}, "doc.reddit_ads_source.ad_group_conversions_report": {"name": "ad_group_conversions_report", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ad_group_conversions_report", "block_contents": "Provides a summary of conversion events at the ad group level, aggregating key metrics by event and day."}, "doc.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report": {"name": "stg_reddit_ads__ad_group_conversions_report", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report", "block_contents": "Provides a summary of conversion events at the ad group level, aggregating key metrics by event and day such as view-through and click-through conversions."}, "doc.reddit_ads_source.ad_conversions_report": {"name": "ad_conversions_report", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ad_conversions_report", "block_contents": "Provides a summary of conversion events at the individual ad level, aggregating key metrics by event and day."}, "doc.reddit_ads_source.stg_reddit_ads__ad_conversions_report": {"name": "stg_reddit_ads__ad_conversions_report", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.stg_reddit_ads__ad_conversions_report", "block_contents": "Provides a summary of conversion events at the individual ad level, aggregating key metrics by event and day such as view-through and click-through conversions."}, "doc.reddit_ads_source.campaign_conversions_report": {"name": "campaign_conversions_report", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.campaign_conversions_report", "block_contents": "Provides a summary of conversion events at the campaign level, aggregating key metrics by event and day."}, "doc.reddit_ads_source.stg_reddit_ads__campaign_conversions_report": {"name": "stg_reddit_ads__campaign_conversions_report", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.stg_reddit_ads__campaign_conversions_report", "block_contents": "Provides a summary of conversion events at the campaign level, aggregating key metrics by event and day such as view-through and click-through conversions."}, "doc.amazon_ads_source._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source._fivetran_deleted", "block_contents": "Boolean created by Fivetran to indicate whether the record has been deleted."}, "doc.amazon_ads_source._fivetran_id": {"name": "_fivetran_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source._fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "doc.amazon_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source._fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "doc.amazon_ads_source.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.account_id", "block_contents": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces."}, "doc.amazon_ads_source.account_name": {"name": "account_name", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.account_name", "block_contents": "Account Name. Not currently populated for sellers."}, "doc.amazon_ads_source.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.ad_group_id", "block_contents": "The ID of the AdGroup."}, "doc.amazon_ads_source.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.ad_group_name", "block_contents": "The name of the AdGroup."}, "doc.amazon_ads_source.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.ad_id", "block_contents": "The ID of the Ad."}, "doc.amazon_ads_source.ad_keyword_status": {"name": "ad_keyword_status", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.ad_keyword_status", "block_contents": "Current status of a keyword."}, "doc.amazon_ads_source.advertised_asin": {"name": "advertised_asin", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.advertised_asin", "block_contents": "The ASIN associated to an advertised product."}, "doc.amazon_ads_source.advertised_sku": {"name": "advertised_sku", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.advertised_sku", "block_contents": "The SKU being advertised."}, "doc.amazon_ads_source.bid_keyword": {"name": "bid_keyword", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.bid_keyword", "block_contents": "Bid associated with this keyword."}, "doc.amazon_ads_source.campaign_applicable_budget_rule_id": {"name": "campaign_applicable_budget_rule_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_applicable_budget_rule_id", "block_contents": "The ID associated to the active budget rule for a campaign."}, "doc.amazon_ads_source.campaign_applicable_budget_rule_name": {"name": "campaign_applicable_budget_rule_name", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_applicable_budget_rule_name", "block_contents": "The name associated to the active budget rule for a campaign."}, "doc.amazon_ads_source.campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_bidding_strategy", "block_contents": "The bidding strategy associated with a campaign."}, "doc.amazon_ads_source.campaign_budget_amount": {"name": "campaign_budget_amount", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_budget_amount", "block_contents": "Total budget allocated to the campaign."}, "doc.amazon_ads_source.campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_budget_currency_code", "block_contents": "The currency code associated with the campaign."}, "doc.amazon_ads_source.campaign_budget_type": {"name": "campaign_budget_type", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_budget_type", "block_contents": "One of: daily or lifetime."}, "doc.amazon_ads_source.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_id", "block_contents": "The ID of the Campaign."}, "doc.amazon_ads_source.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_name", "block_contents": "The name of the Campaign."}, "doc.amazon_ads_source.campaign_rule_based_budget_amount": {"name": "campaign_rule_based_budget_amount", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_rule_based_budget_amount", "block_contents": "The value of the rule-based budget for a campaign."}, "doc.amazon_ads_source.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.clicks", "block_contents": "Total number of ad clicks."}, "doc.amazon_ads_source.cost": {"name": "cost", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.cost", "block_contents": "Total cost of ad clicks."}, "doc.amazon_ads_source.country_code": {"name": "country_code", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.country_code", "block_contents": "The code for a given country."}, "doc.amazon_ads_source.creation_date": {"name": "creation_date", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.creation_date", "block_contents": "The date of creation of the record."}, "doc.amazon_ads_source.currency_code": {"name": "currency_code", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.currency_code", "block_contents": "The currency used for all monetary values for entities under this profile."}, "doc.amazon_ads_source.default_bid": {"name": "default_bid", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.default_bid", "block_contents": "The date of creation of the record."}, "doc.amazon_ads_source.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.impressions", "block_contents": "Total number of ad impressions."}, "doc.amazon_ads_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.is_most_recent_record", "block_contents": "Boolean indicating whether record was the most recent instance."}, "doc.amazon_ads_source.keyword_bid": {"name": "keyword_bid", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.keyword_bid", "block_contents": "Bid associated with a keyword or targeting expression."}, "doc.amazon_ads_source.keyword_id": {"name": "keyword_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.keyword_id", "block_contents": "The ID of the keyword."}, "doc.amazon_ads_source.keyword_match_type": {"name": "keyword_match_type", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.keyword_match_type", "block_contents": "One of (broad, exact, or phrase.)"}, "doc.amazon_ads_source.keyword_type": {"name": "keyword_type", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.keyword_type", "block_contents": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT."}, "doc.amazon_ads_source.last_updated_date": {"name": "last_updated_date", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.last_updated_date", "block_contents": "Date of last update to record."}, "doc.amazon_ads_source.match_type": {"name": "match_type", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.match_type", "block_contents": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT."}, "doc.amazon_ads_source.negative_keyword_id": {"name": "negative_keyword_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.negative_keyword_id", "block_contents": "The ID of the negative keyword."}, "doc.amazon_ads_source.portfolio_id": {"name": "portfolio_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.portfolio_id", "block_contents": "The ID of the Portfolio."}, "doc.amazon_ads_source.portfolio_name": {"name": "portfolio_name", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.portfolio_name", "block_contents": "The name of the Portfolio."}, "doc.amazon_ads_source.profile_id": {"name": "profile_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.profile_id", "block_contents": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace."}, "doc.amazon_ads_source.report_date": {"name": "report_date", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.report_date", "block_contents": "The date of the report."}, "doc.amazon_ads_source.search_term": {"name": "search_term", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.search_term", "block_contents": "The search term used by the customer."}, "doc.amazon_ads_source.serving_status": {"name": "serving_status", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.serving_status", "block_contents": "The current serving status of the record."}, "doc.amazon_ads_source.state": {"name": "state", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.state", "block_contents": "The state of the record (enabled, paused, or archived)."}, "doc.amazon_ads_source.targeting": {"name": "targeting", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.targeting", "block_contents": "A string representation of the expression object used in the targeting clause."}, "doc.amazon_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.amazon_ads_source.purchases_30_d": {"name": "purchases_30_d", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.purchases_30_d", "block_contents": "Number of attributed conversion events occurring within 30 days of an ad click."}, "doc.amazon_ads_source.sales_30_d": {"name": "sales_30_d", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.sales_30_d", "block_contents": "Total value of sales occurring within 30 days of an ad click."}, "doc.linkedin_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "linkedin_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.linkedin_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.amazon_ads._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads._fivetran_deleted", "block_contents": "Boolean created by Fivetran to indicate whether the record has been deleted."}, "doc.amazon_ads._fivetran_id": {"name": "_fivetran_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads._fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "doc.amazon_ads._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads._fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "doc.amazon_ads.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.account_id", "block_contents": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces."}, "doc.amazon_ads.account_name": {"name": "account_name", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.account_name", "block_contents": "Account Name. Not currently populated for sellers."}, "doc.amazon_ads.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.ad_group_id", "block_contents": "The ID of the AdGroup."}, "doc.amazon_ads.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.ad_group_name", "block_contents": "The name of the AdGroup."}, "doc.amazon_ads.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.ad_id", "block_contents": "The ID of the Ad."}, "doc.amazon_ads.ad_keyword_status": {"name": "ad_keyword_status", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.ad_keyword_status", "block_contents": "Current status of a keyword."}, "doc.amazon_ads.advertised_asin": {"name": "advertised_asin", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.advertised_asin", "block_contents": "The ASIN associated to an advertised product."}, "doc.amazon_ads.advertised_sku": {"name": "advertised_sku", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.advertised_sku", "block_contents": "The SKU being advertised."}, "doc.amazon_ads.bid_keyword": {"name": "bid_keyword", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.bid_keyword", "block_contents": "Bid associated with this keyword."}, "doc.amazon_ads.campaign_applicable_budget_rule_id": {"name": "campaign_applicable_budget_rule_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_applicable_budget_rule_id", "block_contents": "The ID associated to the active budget rule for a campaign."}, "doc.amazon_ads.campaign_applicable_budget_rule_name": {"name": "campaign_applicable_budget_rule_name", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_applicable_budget_rule_name", "block_contents": "The name associated to the active budget rule for a campaign."}, "doc.amazon_ads.campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_bidding_strategy", "block_contents": "The bidding strategy associated with a campaign."}, "doc.amazon_ads.campaign_budget_amount": {"name": "campaign_budget_amount", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_budget_amount", "block_contents": "Total budget allocated to the campaign."}, "doc.amazon_ads.campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_budget_currency_code", "block_contents": "The currency code associated with the campaign."}, "doc.amazon_ads.campaign_budget_type": {"name": "campaign_budget_type", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_budget_type", "block_contents": "One of: daily or lifetime."}, "doc.amazon_ads.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_id", "block_contents": "The ID of the Campaign."}, "doc.amazon_ads.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_name", "block_contents": "The name of the Campaign."}, "doc.amazon_ads.campaign_rule_based_budget_amount": {"name": "campaign_rule_based_budget_amount", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_rule_based_budget_amount", "block_contents": "The value of the rule-based budget for a campaign."}, "doc.amazon_ads.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.clicks", "block_contents": "Total number of ad clicks."}, "doc.amazon_ads.cost": {"name": "cost", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.cost", "block_contents": "Total cost of ad clicks."}, "doc.amazon_ads.country_code": {"name": "country_code", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.country_code", "block_contents": "The code for a given country."}, "doc.amazon_ads.creation_date": {"name": "creation_date", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.creation_date", "block_contents": "The date of creation of the record."}, "doc.amazon_ads.currency_code": {"name": "currency_code", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.currency_code", "block_contents": "The currency used for all monetary values for entities under this profile."}, "doc.amazon_ads.default_bid": {"name": "default_bid", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.default_bid", "block_contents": "The date of creation of the record."}, "doc.amazon_ads.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.impressions", "block_contents": "Total number of ad impressions."}, "doc.amazon_ads.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.is_most_recent_record", "block_contents": "Boolean indicating whether record was the most recent instance."}, "doc.amazon_ads.keyword_bid": {"name": "keyword_bid", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.keyword_bid", "block_contents": "Bid associated with a keyword or targeting expression."}, "doc.amazon_ads.keyword_id": {"name": "keyword_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.keyword_id", "block_contents": "The ID of the keyword."}, "doc.amazon_ads.keyword_match_type": {"name": "keyword_match_type", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.keyword_match_type", "block_contents": "One of (broad, exact, or phrase.)"}, "doc.amazon_ads.keyword_text": {"name": "keyword_text", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.keyword_text", "block_contents": "The exact text for the keyword."}, "doc.amazon_ads.keyword_type": {"name": "keyword_type", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.keyword_type", "block_contents": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT."}, "doc.amazon_ads.last_updated_date": {"name": "last_updated_date", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.last_updated_date", "block_contents": "Date of last update to record."}, "doc.amazon_ads.match_type": {"name": "match_type", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.match_type", "block_contents": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT."}, "doc.amazon_ads.negative_keyword_id": {"name": "negative_keyword_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.negative_keyword_id", "block_contents": "The ID of the negative keyword."}, "doc.amazon_ads.portfolio_id": {"name": "portfolio_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.portfolio_id", "block_contents": "The ID of the Portfolio."}, "doc.amazon_ads.portfolio_name": {"name": "portfolio_name", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.portfolio_name", "block_contents": "The name of the Portfolio."}, "doc.amazon_ads.profile_id": {"name": "profile_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.profile_id", "block_contents": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace."}, "doc.amazon_ads.report_date": {"name": "report_date", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.report_date", "block_contents": "The date of the report."}, "doc.amazon_ads.search_term": {"name": "search_term", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.search_term", "block_contents": "The search term used by the customer."}, "doc.amazon_ads.serving_status": {"name": "serving_status", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.serving_status", "block_contents": "The current serving status of the record."}, "doc.amazon_ads.state": {"name": "state", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.state", "block_contents": "The state of the record (enabled, paused, or archived)."}, "doc.amazon_ads.targeting": {"name": "targeting", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.targeting", "block_contents": "A string representation of the expression object used in the targeting clause."}, "doc.amazon_ads.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.amazon_ads.purchases_30_d": {"name": "purchases_30_d", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.purchases_30_d", "block_contents": "Number of attributed conversion events occurring within 30 days of an ad click."}, "doc.amazon_ads.sales_30_d": {"name": "sales_30_d", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.sales_30_d", "block_contents": "Total value of sales occurring within 30 days of an ad click."}, "doc.google_ads_source._fivetran_id": {"name": "_fivetran_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source._fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "doc.google_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source._fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "doc.google_ads_source.account_descriptive_name": {"name": "account_descriptive_name", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.account_descriptive_name", "block_contents": "The descriptive name of the Customer account."}, "doc.google_ads_source.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_group_id", "block_contents": "The ID of the AdGroup."}, "doc.google_ads_source.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_group_name", "block_contents": "The name of the AdGroup."}, "doc.google_ads_source.ad_group_status": {"name": "ad_group_status", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_group_status", "block_contents": "Status of the ad group."}, "doc.google_ads_source.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.campaign_id", "block_contents": "The ID of the Campaign."}, "doc.google_ads_source.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_id", "block_contents": "The ID of the Ad."}, "doc.google_ads_source.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.account_id", "block_contents": "The ID of the Account."}, "doc.google_ads_source.ad_status": {"name": "ad_status", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_status", "block_contents": "Status of the Ad."}, "doc.google_ads_source.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.campaign_name", "block_contents": "The name of the Campaign."}, "doc.google_ads_source.campaign_status": {"name": "campaign_status", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.campaign_status", "block_contents": "Status of the Campaign."}, "doc.google_ads_source.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.clicks", "block_contents": "The number of clicks."}, "doc.google_ads_source.conversions": {"name": "conversions", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.conversions", "block_contents": "The number of conversions you've received, across your conversion actions. Conversions are measured with conversion tracking and may include [modeled](https://support.google.com/google-ads/answer/10081327?sjid=12862894247631803415-NC) conversions in cases where you are not able to observe all conversions that took place. You can use this column to see how often your ads led customers to actions that you\u2019ve defined as valuable for your business."}, "doc.google_ads_source.conversions_value": {"name": "conversions_value", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.conversions_value", "block_contents": "The sum of monetary values for your `conversions`. You have to enter a value in the Google Ads UI for your conversion actions to make this metric useful."}, "doc.google_ads_source.view_through_conversions": {"name": "view_through_conversions", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.view_through_conversions", "block_contents": "For video campaigns, view-through conversions tell you when an _impression_ of your video ad leads to a conversion on your site. The last impression of a video ad will get credit for the view-through conversion.\n\nKeep in mind: An impression is different than a \u201cview\u201d of a video ad. A \u201cview\u201d is counted when someone watches 30 seconds (or the whole ad if it\u2019s shorter than 30 seconds) or clicks on a part of the ad. A \u201cview\u201d that leads to a conversion is counted in the `conversions` column."}, "doc.google_ads_source.cost": {"name": "cost", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.cost", "block_contents": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period."}, "doc.google_ads_source.date": {"name": "date", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.date", "block_contents": "The date being reported on."}, "doc.google_ads_source.effective_final_url": {"name": "effective_final_url", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.effective_final_url", "block_contents": "Effective final URL of the impressions."}, "doc.google_ads_source.external_customer_id": {"name": "external_customer_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.external_customer_id", "block_contents": "The Customer ID."}, "doc.google_ads_source.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.impressions", "block_contents": "Count of how often your ad has appeared on a search results page or website on the Google Network."}, "doc.google_ads_source.criteria_id": {"name": "criteria_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.criteria_id", "block_contents": "The Criterion ID."}, "doc.google_ads_source.gcl_id": {"name": "gcl_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.gcl_id", "block_contents": "The Google Click ID."}, "doc.google_ads_source.criteria": {"name": "criteria", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.criteria", "block_contents": "Descriptive string for the Criterion."}, "doc.google_ads_source.criteria_destination_url": {"name": "criteria_destination_url", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.criteria_destination_url", "block_contents": "Destination URL of the criterion that triggered ads."}, "doc.google_ads_source.criteria_type": {"name": "criteria_type", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.criteria_type", "block_contents": "The type of the Criterion."}, "doc.google_ads_source.base_url": {"name": "base_url", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.base_url", "block_contents": "The base URL of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.url_host": {"name": "url_host", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.url_host", "block_contents": "The URL host of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.url_path": {"name": "url_path", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.url_path", "block_contents": "The URL path of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.utm_source": {"name": "utm_source", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.utm_source", "block_contents": "The utm_source parameter of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.utm_medium": {"name": "utm_medium", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.utm_medium", "block_contents": "The utm_medium parameter of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.utm_campaign": {"name": "utm_campaign", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.utm_campaign", "block_contents": "The utm_campaign parameter of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.utm_content": {"name": "utm_content", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.utm_content", "block_contents": "The utm_content parameter of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.utm_term": {"name": "utm_term", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.utm_term", "block_contents": "The utm_term parameter of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.updated_at": {"name": "updated_at", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.updated_at", "block_contents": "Timestamp of when the record was last updated in Google Ads."}, "doc.google_ads_source.ad_type": {"name": "ad_type", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_type", "block_contents": "The type of the ad in Google Ads."}, "doc.google_ads_source.ad_group_type": {"name": "ad_group_type", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_group_type", "block_contents": "The type of the ad group in Google Ads."}, "doc.google_ads_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.is_most_recent_record", "block_contents": "Boolean representing whether the record is the most recent version of the object."}, "doc.google_ads_source.ad_network_type": {"name": "ad_network_type", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_network_type", "block_contents": "The Google Ad network type used across the account."}, "doc.google_ads_source.device": {"name": "device", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.device", "block_contents": "Account ad performance per unique device where the ads were served."}, "doc.google_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.ad_reporting.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.account_id", "block_contents": "The ID representing the account."}, "doc.ad_reporting.account_name": {"name": "account_name", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.account_name", "block_contents": "The name of the account, if present in the source data."}, "doc.ad_reporting.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.ad_group_id", "block_contents": "The ID representing the ad group, if present in the source data."}, "doc.ad_reporting.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.ad_group_name", "block_contents": "The name of the ad group, if present in the source data."}, "doc.ad_reporting.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.ad_id", "block_contents": "The ID representing the ad, if present in the source data."}, "doc.ad_reporting.ad_name": {"name": "ad_name", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.ad_name", "block_contents": "The name of the ad, if present in the source data."}, "doc.ad_reporting.base_url": {"name": "base_url", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.base_url", "block_contents": "The base url of the ad."}, "doc.ad_reporting.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.campaign_id", "block_contents": "The ID representing the campaign, if present in the source data."}, "doc.ad_reporting.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.campaign_name", "block_contents": "The name of the campaign, if present in the source data."}, "doc.ad_reporting.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.clicks", "block_contents": "The count of clicks."}, "doc.ad_reporting.conversions": {"name": "conversions", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.conversions", "block_contents": "The count of attributed conversion events."}, "doc.ad_reporting.conversions_value": {"name": "conversions_value", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.conversions_value", "block_contents": "The monetary value of attributed conversion events."}, "doc.ad_reporting.date_day": {"name": "date_day", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.date_day", "block_contents": "The date of the report."}, "doc.ad_reporting.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.impressions", "block_contents": "The count of impressions."}, "doc.ad_reporting.keyword_id": {"name": "keyword_id", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.keyword_id", "block_contents": "The ID representing the keyword, if present in the source data."}, "doc.ad_reporting.keyword_match_type": {"name": "keyword_match_type", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.keyword_match_type", "block_contents": "The keyword match type associated with this record."}, "doc.ad_reporting.keyword_text": {"name": "keyword_text", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.keyword_text", "block_contents": "The keyword text."}, "doc.ad_reporting.platform": {"name": "platform", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.platform", "block_contents": "The ad platform associated with this record."}, "doc.ad_reporting.search_match_type": {"name": "search_match_type", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.search_match_type", "block_contents": "The search match type associated with this record."}, "doc.ad_reporting.search_query": {"name": "search_query", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.search_query", "block_contents": "The search query text."}, "doc.ad_reporting.spend": {"name": "spend", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.spend", "block_contents": "The cost of the ads."}, "doc.ad_reporting.url_host": {"name": "url_host", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.url_host", "block_contents": "The URL host of the ad."}, "doc.ad_reporting.url_path": {"name": "url_path", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.url_path", "block_contents": "The URL path of the ad."}, "doc.ad_reporting.utm_campaign": {"name": "utm_campaign", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.utm_campaign", "block_contents": "The utm_campaign parameter of the ad."}, "doc.ad_reporting.utm_content": {"name": "utm_content", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.utm_content", "block_contents": "The utm_content parameter of the ad."}, "doc.ad_reporting.utm_medium": {"name": "utm_medium", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.utm_medium", "block_contents": "The utm_medium parameter of the ad."}, "doc.ad_reporting.utm_source": {"name": "utm_source", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.utm_source", "block_contents": "The utm_source parameter of the ad."}, "doc.ad_reporting.utm_term": {"name": "utm_term", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.utm_term", "block_contents": "The utm_term parameter of the ad."}, "doc.ad_reporting.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.apple_search_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "apple_search_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.apple_search_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.pinterest_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source._fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "doc.pinterest_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.is_most_recent_record", "block_contents": "Boolean representing whether the record is the most recent version of the object."}, "doc.pinterest_source.date_day": {"name": "date_day", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.date_day", "block_contents": "The performance date of the record."}, "doc.pinterest_source.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.ad_group_id", "block_contents": "The ID of the related Ad group."}, "doc.pinterest_source.pin_promotion_id": {"name": "pin_promotion_id", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.pin_promotion_id", "block_contents": "The ID of the related Pin promotion."}, "doc.pinterest_source.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.campaign_id", "block_contents": "The ID of the related Campaign."}, "doc.pinterest_source.ad_account_id": {"name": "ad_account_id", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.ad_account_id", "block_contents": "The ID of the related Advertiser."}, "doc.pinterest_source.advertiser_id": {"name": "advertiser_id", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.advertiser_id", "block_contents": "The ID of the related Advertiser."}, "doc.pinterest_source.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.impressions", "block_contents": "The number of paid and earned impressions that occurred on the day of the record."}, "doc.pinterest_source.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.clicks", "block_contents": "The number of paid and earned clicks that occurred on the day of the record."}, "doc.pinterest_source.spend": {"name": "spend", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.spend", "block_contents": "The amount of spend that occurred on the day of the record."}, "doc.pinterest_source.updated_at": {"name": "updated_at", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.updated_at", "block_contents": "Timestamp of when a record was last updated."}, "doc.pinterest_source.created_at": {"name": "created_at", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.created_at", "block_contents": "Timestamp of when a record was created."}, "doc.pinterest_source.spend_in_micro_dollar": {"name": "spend_in_micro_dollar", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.spend_in_micro_dollar", "block_contents": "The amount of spend in micro dollars that occurred on the day of the record."}, "doc.pinterest_source.clickthrough_1": {"name": "clickthrough_1", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.clickthrough_1", "block_contents": "The number of paid pin clicks that occurred on the day of the record."}, "doc.pinterest_source.clickthrough_2": {"name": "clickthrough_2", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.clickthrough_2", "block_contents": "The number of earned outbound clicks that occurred on the day of the record."}, "doc.pinterest_source.impression_1": {"name": "impression_1", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.impression_1", "block_contents": "The number of paid pin impressions that occurred on the day of the record."}, "doc.pinterest_source.impression_2": {"name": "impression_2", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.impression_2", "block_contents": "The number of earned pin impressions that occurred on the day of the record."}, "doc.pinterest_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.pinterest_source.total_conversions": {"name": "total_conversions", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.total_conversions", "block_contents": "This is the sum of all website conversions, otherwise known as the number of conversion events. For example, if you track sign-ups and checkouts on your website, it's the sum of all sign-ups and checkouts attributed from clicks, engagements, and views on Pinterest. Example: If a user clicks on a Pinterest ad and completes two different conversion actions (e.g., signs up and checks out), this would be counted as 2 total conversions."}, "doc.pinterest_source.total_conversions_quantity": {"name": "total_conversions_quantity", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.total_conversions_quantity", "block_contents": "Refers to the total count of items or units involved in the conversions. This metric is often more granular and relates to the specific quantity of products or services purchased or actions taken. Example: If a single checkout includes three items, the total_conversions_quantity would be 3, even though it counts as one total_conversion."}, "doc.pinterest_source.total_conversions_value_in_micro_dollar": {"name": "total_conversions_value_in_micro_dollar", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.total_conversions_value_in_micro_dollar", "block_contents": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. The value is expressed in microdollars, where one microdollar is one-millionth of a US dollar. Example: If the total order value from conversions is $50,000, this would be represented as 50,000,000,000 microdollars."}, "doc.pinterest_source.total_conversions_value": {"name": "total_conversions_value", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.total_conversions_value", "block_contents": "Total conversions order value. The total value of the conversions, calculated by summing up the revenue or order values attributed to conversions. Converted from the source `total_conversions_value_in_micro_dollar` field."}, "doc.tiktok_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "tiktok_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.tiktok_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.facebook_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "facebook_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.facebook_ads_source._fivetran_synced", "block_contents": "When the record was last synced by Fivetran."}, "doc.facebook_ads_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "facebook_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.facebook_ads_source.is_most_recent_record", "block_contents": "Boolean representing whether a record is the most recent version of that record. All records should have this value set to True given we filter on it."}, "doc.facebook_ads_source.updated_time": {"name": "updated_time", "resource_type": "doc", "package_name": "facebook_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.facebook_ads_source.updated_time", "block_contents": "The timestamp of the last update of a record."}, "doc.facebook_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "facebook_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.facebook_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.snapchat_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "snapchat_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.snapchat_ads_source._fivetran_synced", "block_contents": "When the record was last synced by Fivetran."}, "doc.snapchat_ads_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "snapchat_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.snapchat_ads_source.is_most_recent_record", "block_contents": "Boolean representing whether a record is the most recent version of that record."}, "doc.snapchat_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "snapchat_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.snapchat_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}, "doc.twitter_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.twitter_ads_source._fivetran_synced", "block_contents": "When the record was last synced by Fivetran."}, "doc.twitter_ads_source.created_at": {"name": "created_at", "resource_type": "doc", "package_name": "twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.twitter_ads_source.created_at", "block_contents": "The timestamp the account was created."}, "doc.twitter_ads_source.updated_at": {"name": "updated_at", "resource_type": "doc", "package_name": "twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.twitter_ads_source.updated_at", "block_contents": "The timestamp the account was last updated."}, "doc.twitter_ads_source.deleted": {"name": "deleted", "resource_type": "doc", "package_name": "twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.twitter_ads_source.deleted", "block_contents": "Whether the record has been deleted or not."}, "doc.twitter_ads_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.twitter_ads_source.source_relation", "block_contents": "The source of the record if the unioning functionality is being used. If not this field will be empty."}}, "exposures": {}, "metrics": {"metric.ad_reporting.active_ads": {"name": "active_ads", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.active_ads", "fqn": ["ad_reporting", "metrics", "active_ads"], "description": "Count of ads witth spend > 0.", "label": "Active Ads (Fivetran)", "type": "simple", "type_params": {"measure": {"name": "active_ads", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, "input_measures": [{"name": "active_ads", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": null, "window": null, "grain_to_date": null, "metrics": [], "conversion_type_params": null}, "filter": {"where_filters": [{"where_sql_template": "{{Dimension('ad__spend')}} > 0\n"}]}, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["semantic_model.ad_reporting.ad_report"]}, "refs": [], "metrics": [], "created_at": 1734462186.194826, "group": null}, "metric.ad_reporting.avg_spend_nonzero": {"name": "avg_spend_nonzero", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.avg_spend_nonzero", "fqn": ["ad_reporting", "metrics", "avg_spend_nonzero"], "description": "Average ad spend, ignores zero-spend days.", "label": "Avg Spend Non-Zero (Fivetran)", "type": "simple", "type_params": {"measure": {"name": "avg_spend_nonzero", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, "input_measures": [{"name": "avg_spend_nonzero", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": null, "window": null, "grain_to_date": null, "metrics": [], "conversion_type_params": null}, "filter": {"where_filters": [{"where_sql_template": "{{Dimension('ad__spend')}} > 0\n"}]}, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["semantic_model.ad_reporting.ad_report"]}, "refs": [], "metrics": [], "created_at": 1734462186.195426, "group": null}, "metric.ad_reporting.avg_spend": {"name": "avg_spend", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.avg_spend", "fqn": ["ad_reporting", "metrics", "avg_spend"], "description": "Average ad spend, does not ignore zero-spend days.", "label": "Avg Spend (Fivetran)", "type": "simple", "type_params": {"measure": {"name": "avg_spend", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, "input_measures": [{"name": "avg_spend", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": null, "window": null, "grain_to_date": null, "metrics": [], "conversion_type_params": null}, "filter": null, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["semantic_model.ad_reporting.ad_report"]}, "refs": [], "metrics": [], "created_at": 1734462186.195931, "group": null}, "metric.ad_reporting.clicks": {"name": "clicks", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.clicks", "fqn": ["ad_reporting", "metrics", "clicks"], "description": "Total clicks", "label": "Ad Clicks (Fivetran)", "type": "simple", "type_params": {"measure": {"name": "clicks", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, "input_measures": [{"name": "clicks", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": null, "window": null, "grain_to_date": null, "metrics": [], "conversion_type_params": null}, "filter": null, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["semantic_model.ad_reporting.ad_report"]}, "refs": [], "metrics": [], "created_at": 1734462186.196264, "group": null}, "metric.ad_reporting.impressions": {"name": "impressions", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.impressions", "fqn": ["ad_reporting", "metrics", "impressions"], "description": "Total impressions", "label": "Ad Impressions (Fivetran)", "type": "simple", "type_params": {"measure": {"name": "impressions", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, "input_measures": [{"name": "impressions", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": null, "window": null, "grain_to_date": null, "metrics": [], "conversion_type_params": null}, "filter": null, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["semantic_model.ad_reporting.ad_report"]}, "refs": [], "metrics": [], "created_at": 1734462186.196589, "group": null}, "metric.ad_reporting.spend": {"name": "spend", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.spend", "fqn": ["ad_reporting", "metrics", "spend"], "description": "Total spend (in currency of individual platforms)", "label": "Ad Spend (Fivetran)", "type": "simple", "type_params": {"measure": {"name": "ad_spend", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, "input_measures": [{"name": "ad_spend", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": null, "window": null, "grain_to_date": null, "metrics": [], "conversion_type_params": null}, "filter": null, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["semantic_model.ad_reporting.ad_report"]}, "refs": [], "metrics": [], "created_at": 1734462186.1971998, "group": null}, "metric.ad_reporting.clickthrough_rate": {"name": "clickthrough_rate", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.clickthrough_rate", "fqn": ["ad_reporting", "metrics", "clickthrough_rate"], "description": "Percentage of impressions that did convert into clicks.", "label": "Ad Clickthrough Rate (Fivetran)", "type": "derived", "type_params": {"measure": null, "input_measures": [{"name": "clicks", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, {"name": "impressions", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": "clicks/impressions", "window": null, "grain_to_date": null, "metrics": [{"name": "clicks", "filter": null, "alias": null, "offset_window": null, "offset_to_grain": null}, {"name": "impressions", "filter": null, "alias": null, "offset_window": null, "offset_to_grain": null}], "conversion_type_params": null}, "filter": null, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["metric.ad_reporting.clicks", "metric.ad_reporting.impressions"]}, "refs": [], "metrics": [], "created_at": 1734462186.199185, "group": null}, "metric.ad_reporting.cost_per_click": {"name": "cost_per_click", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.cost_per_click", "fqn": ["ad_reporting", "metrics", "cost_per_click"], "description": "The ratio of spend to clicks", "label": "Average Ad Cost Per Click (Fivetran)", "type": "derived", "type_params": {"measure": null, "input_measures": [{"name": "clicks", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, {"name": "ad_spend", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": "spend/clicks", "window": null, "grain_to_date": null, "metrics": [{"name": "clicks", "filter": null, "alias": null, "offset_window": null, "offset_to_grain": null}, {"name": "spend", "filter": null, "alias": null, "offset_window": null, "offset_to_grain": null}], "conversion_type_params": null}, "filter": null, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["metric.ad_reporting.clicks", "metric.ad_reporting.spend"]}, "refs": [], "metrics": [], "created_at": 1734462186.199888, "group": null}, "metric.ad_reporting.bounce_rate": {"name": "bounce_rate", "resource_type": "metric", "package_name": "ad_reporting", "path": "metrics/ad_reporting__ad_report_metrics.yml", "original_file_path": "models/metrics/ad_reporting__ad_report_metrics.yml", "unique_id": "metric.ad_reporting.bounce_rate", "fqn": ["ad_reporting", "metrics", "bounce_rate"], "description": "Percentage of impressions that did not convert into clicks.", "label": "Average Ad Bounce Rate (Fivetran)", "type": "derived", "type_params": {"measure": null, "input_measures": [{"name": "impressions", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}, {"name": "clicks", "filter": null, "alias": null, "join_to_timespine": false, "fill_nulls_with": null}], "numerator": null, "denominator": null, "expr": "impressions - clicks/impressions", "window": null, "grain_to_date": null, "metrics": [{"name": "impressions", "filter": null, "alias": null, "offset_window": null, "offset_to_grain": null}, {"name": "clicks", "filter": null, "alias": null, "offset_window": null, "offset_to_grain": null}], "conversion_type_params": null}, "filter": null, "metadata": null, "meta": {}, "tags": [], "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "sources": [], "depends_on": {"macros": [], "nodes": ["metric.ad_reporting.impressions", "metric.ad_reporting.clicks"]}, "refs": [], "metrics": [], "created_at": 1734462186.2005482, "group": null}}, "groups": {}, "selectors": {}, "disabled": {"test.ad_reporting_integration_tests.consistency_url_report": [{"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "consistency_url_report", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "consistency/consistency_url_report.sql", "original_file_path": "tests/consistency/consistency_url_report.sql", "unique_id": "test.ad_reporting_integration_tests.consistency_url_report", "fqn": ["ad_reporting_integration_tests", "consistency", "consistency_url_report"], "alias": "consistency_url_report", "checksum": {"name": "sha256", "checksum": "17c3b080c06e2158301de23beb7b67d7e0f253c311758e49c80c99bcdb67fd9b"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1734462181.545213, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n base_url,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value\n from {{ target.schema }}_ad_reporting_prod.ad_reporting__url_report\n group by 1\n),\n\ndev as (\n select\n base_url,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__url_report\n group by 1\n),\n\nfinal as (\n select \n prod.base_url,\n prod.clicks as prod_clicks,\n dev.clicks as dev_clicks,\n prod.impressions as prod_impressions,\n dev.impressions as dev_impressions,\n prod.spend as prod_spend,\n dev.spend as dev_spend\n prod.conversions as prod_conversions,\n dev.conversions as dev_conversions,\n prod.conversions_value as prod_conversions_value,\n dev.conversions_value as dev_conversions_value\n from prod\n full outer join dev \n on dev.base_url = prod.base_url\n)\n\nselect *\nfrom final\nwhere\n abs(prod_clicks - dev_clicks) >= .01\n or abs(prod_impressions - dev_impressions) >= .01\n or abs(prod_spend - dev_spend) >= .01\n or abs(prod_conversions - dev_conversions) >= .01\n or abs(prod_conversions_value - dev_conversions_value) >= .01", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.consistency_keyword_report": [{"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "consistency_keyword_report", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "consistency/consistency_keyword_report.sql", "original_file_path": "tests/consistency/consistency_keyword_report.sql", "unique_id": "test.ad_reporting_integration_tests.consistency_keyword_report", "fqn": ["ad_reporting_integration_tests", "consistency", "consistency_keyword_report"], "alias": "consistency_keyword_report", "checksum": {"name": "sha256", "checksum": "336460ac653a3b3c7bc62707818ab1ee08cbb44d140002f3642f20ab4cb0fc6f"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1734462181.5624, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n keyword_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_prod.ad_reporting__keyword_report\n group by 1\n),\n\ndev as (\n select\n keyword_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__keyword_report\n group by 1\n),\n\nfinal as (\n select \n prod.keyword_id,\n prod.clicks as prod_clicks,\n dev.clicks as dev_clicks,\n prod.impressions as prod_impressions,\n dev.impressions as dev_impressions,\n prod.spend as prod_spend,\n dev.spend as dev_spend\n {# prod.conversions as prod_conversions,\n dev.conversions as dev_conversions,\n prod.conversions_value as prod_conversions_value,\n dev.conversions_value as dev_conversions_value #}\n from prod\n full outer join dev \n on dev.keyword_id = prod.keyword_id\n)\n\nselect *\nfrom final\nwhere\n abs(prod_clicks - dev_clicks) >= .01\n or abs(prod_impressions - dev_impressions) >= .01\n or abs(prod_spend - dev_spend) >= .01\n {# or abs(prod_conversions - dev_conversions) >= .01\n or abs(prod_conversions_value - dev_conversions_value) >= .01 #}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.consistency_ad_group_report": [{"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "consistency_ad_group_report", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "consistency/consistency_ad_group_report.sql", "original_file_path": "tests/consistency/consistency_ad_group_report.sql", "unique_id": "test.ad_reporting_integration_tests.consistency_ad_group_report", "fqn": ["ad_reporting_integration_tests", "consistency", "consistency_ad_group_report"], "alias": "consistency_ad_group_report", "checksum": {"name": "sha256", "checksum": "bde04468e727f69013d1bf5ee8140e38a54cf0d9d1223bb9185ba757846cd787"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1734462181.565871, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n ad_group_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_prod.ad_reporting__ad_group_report\n group by 1\n),\n\ndev as (\n select\n ad_group_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__ad_group_report\n group by 1\n),\n\nfinal as (\n select \n prod.ad_group_id,\n prod.clicks as prod_clicks,\n dev.clicks as dev_clicks,\n prod.impressions as prod_impressions,\n dev.impressions as dev_impressions,\n prod.spend as prod_spend,\n dev.spend as dev_spend\n {# prod.conversions as prod_conversions,\n dev.conversions as dev_conversions,\n prod.conversions_value as prod_conversions_value,\n dev.conversions_value as dev_conversions_value #}\n from prod\n full outer join dev \n on dev.ad_group_id = prod.ad_group_id\n)\n\nselect *\nfrom final\nwhere\n abs(prod_clicks - dev_clicks) >= .01\n or abs(prod_impressions - dev_impressions) >= .01\n or abs(prod_spend - dev_spend) >= .01\n {# or abs(prod_conversions - dev_conversions) >= .01\n or abs(prod_conversions_value - dev_conversions_value) >= .01 #}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.consistency_campaign_report": [{"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "consistency_campaign_report", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "consistency/consistency_campaign_report.sql", "original_file_path": "tests/consistency/consistency_campaign_report.sql", "unique_id": "test.ad_reporting_integration_tests.consistency_campaign_report", "fqn": ["ad_reporting_integration_tests", "consistency", "consistency_campaign_report"], "alias": "consistency_campaign_report", "checksum": {"name": "sha256", "checksum": "69c91b8bbe9d9cbcc02fe0ff288ed9c2c99e25cb99ee4e81e0b4c2de33a7c721"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1734462181.56916, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n campaign_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_prod.ad_reporting__campaign_report\n group by 1\n),\n\ndev as (\n select\n campaign_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__campaign_report\n group by 1\n),\n\nfinal as (\n select \n prod.campaign_id,\n prod.clicks as prod_clicks,\n dev.clicks as dev_clicks,\n prod.impressions as prod_impressions,\n dev.impressions as dev_impressions,\n prod.spend as prod_spend,\n dev.spend as dev_spend\n {# prod.conversions as prod_conversions,\n dev.conversions as dev_conversions,\n prod.conversions_value as prod_conversions_value,\n dev.conversions_value as dev_conversions_value #}\n from prod\n full outer join dev \n on dev.campaign_id = prod.campaign_id\n)\n\nselect *\nfrom final\nwhere\n abs(prod_clicks - dev_clicks) >= .01\n or abs(prod_impressions - dev_impressions) >= .01\n or abs(prod_spend - dev_spend) >= .01\n {# or abs(prod_conversions - dev_conversions) >= .01\n or abs(prod_conversions_value - dev_conversions_value) >= .01 #}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.consistency_ad_report": [{"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "consistency_ad_report", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "consistency/consistency_ad_report.sql", "original_file_path": "tests/consistency/consistency_ad_report.sql", "unique_id": "test.ad_reporting_integration_tests.consistency_ad_report", "fqn": ["ad_reporting_integration_tests", "consistency", "consistency_ad_report"], "alias": "consistency_ad_report", "checksum": {"name": "sha256", "checksum": "dd6c2ded2749e6823100f3debd76a03fbb01610b04336cfadf71e18ee671c9eb"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1734462181.572329, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n ad_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value\n from {{ target.schema }}_ad_reporting_prod.ad_reporting__ad_report\n group by 1\n),\n\ndev as (\n select\n ad_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__ad_report\n group by 1\n),\n\nfinal as (\n select \n prod.ad_id,\n prod.clicks as prod_clicks,\n dev.clicks as dev_clicks,\n prod.impressions as prod_impressions,\n dev.impressions as dev_impressions,\n prod.spend as prod_spend,\n dev.spend as dev_spend\n prod.conversions as prod_conversions,\n dev.conversions as dev_conversions,\n prod.conversions_value as prod_conversions_value,\n dev.conversions_value as dev_conversions_value\n from prod\n full outer join dev \n on dev.ad_id = prod.ad_id\n)\n\nselect *\nfrom final\nwhere\n abs(prod_clicks - dev_clicks) >= .01\n or abs(prod_impressions - dev_impressions) >= .01\n or abs(prod_spend - dev_spend) >= .01\n or abs(prod_conversions - dev_conversions) >= .01\n or abs(prod_conversions_value - dev_conversions_value) >= .01", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.consistency_account_report": [{"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "consistency_account_report", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "consistency/consistency_account_report.sql", "original_file_path": "tests/consistency/consistency_account_report.sql", "unique_id": "test.ad_reporting_integration_tests.consistency_account_report", "fqn": ["ad_reporting_integration_tests", "consistency", "consistency_account_report"], "alias": "consistency_account_report", "checksum": {"name": "sha256", "checksum": "05edafc1147a3bf4173f40f05c386a2edbb6946f084e116ea8a4fe6034103738"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1734462181.5929332, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n account_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_prod.ad_reporting__account_report\n group by 1\n),\n\ndev as (\n select\n account_id,\n sum(coalesce(clicks, 0)) as clicks, \n sum(coalesce(impressions, 0)) as impressions,\n sum(coalesce(spend, 0)) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__account_report\n group by 1\n),\n\nfinal as (\n select \n prod.account_id,\n prod.clicks as prod_clicks,\n dev.clicks as dev_clicks,\n prod.impressions as prod_impressions,\n dev.impressions as dev_impressions,\n prod.spend as prod_spend,\n dev.spend as dev_spend\n {# prod.conversions as prod_conversions,\n dev.conversions as dev_conversions,\n prod.conversions_value as prod_conversions_value,\n dev.conversions_value as dev_conversions_value #}\n from prod\n full outer join dev \n on dev.account_id = prod.account_id\n)\n\nselect *\nfrom final\nwhere\n abs(prod_clicks - dev_clicks) >= .01\n or abs(prod_impressions - dev_impressions) >= .01\n or abs(prod_spend - dev_spend) >= .01\n {# or abs(prod_conversions - dev_conversions) >= .01\n or abs(prod_conversions_value - dev_conversions_value) >= .01 #}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.consistency_search_report": [{"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "consistency_search_report", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "consistency/consistency_search_report.sql", "original_file_path": "tests/consistency/consistency_search_report.sql", "unique_id": "test.ad_reporting_integration_tests.consistency_search_report", "fqn": ["ad_reporting_integration_tests", "consistency", "consistency_search_report"], "alias": "consistency_search_report", "checksum": {"name": "sha256", "checksum": "482173c9f3ad21d25c03d52e2eb1f8a818db6b7312970b44ad917ee91b1547df"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1734462181.615792, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n search_query,\n keyword_id,\n sum(clicks) as clicks, \n sum(impressions) as impressions,\n sum(spend) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_prod.ad_reporting__search_report\n group by 1,2\n),\n\ndev as (\n select\n search_query,\n keyword_id,\n sum(clicks) as clicks, \n sum(impressions) as impressions,\n sum(spend) as spend\n {# sum(coalesce(conversions, 0)) as conversions,\n sum(coalesce(conversions_value, 0)) as conversions_value #}\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__search_report\n group by 1,2\n),\n\nfinal as (\n select \n prod.search_query,\n prod.keyword_id,\n prod.clicks as prod_clicks,\n dev.clicks as dev_clicks,\n prod.impressions as prod_impressions,\n dev.impressions as dev_impressions,\n prod.spend as prod_spend,\n dev.spend as dev_spend\n {# prod.conversions as prod_conversions,\n dev.conversions as dev_conversions,\n prod.conversions_value as prod_conversions_value,\n dev.conversions_value as dev_conversions_value #}\n from prod\n full outer join dev \n on dev.search_query = prod.search_query\n and dev.keyword_id = prod.keyword_id\n\n)\n\nselect *\nfrom final\nwhere\n abs(prod_clicks - dev_clicks) >= .01\n or abs(prod_impressions - dev_impressions) >= .01\n or abs(prod_spend - dev_spend) >= .01\n {# or abs(prod_conversions - dev_conversions) >= .01\n or abs(prod_conversions_value - dev_conversions_value) >= .01 #}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.vertical_keyword_conversion_comparison": [{"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "vertical_keyword_conversion_comparison", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "integrity/vertical_keyword_conversion_comparison.sql", "original_file_path": "tests/integrity/vertical_keyword_conversion_comparison.sql", "unique_id": "test.ad_reporting_integration_tests.vertical_keyword_conversion_comparison", "fqn": ["ad_reporting_integration_tests", "integrity", "vertical_keyword_conversion_comparison"], "alias": "vertical_keyword_conversion_comparison", "checksum": {"name": "sha256", "checksum": "bc0ff953564ed7cb181759c8a353c52373643912ececc8bfe4617a1375418f98"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1734462181.6193202, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith keyword_report as (\n\n select \n platform,\n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__keyword_report\n group by 1\n),\n\namazon_ads as (\n\n select \n sum(coalesce(purchases_30_d,0)) as conversions,\n sum(coalesce(sales_30_d,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.amazon_ads__keyword_report\n),\n\napple_search_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(0) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.apple_search_ads__keyword_report\n),\n\npinterest_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.pinterest_ads__keyword_report\n),\n\n{% if var('twitter_ads__using_keywords', true ) %}\ntwitter_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_sale_amount,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.twitter_ads__keyword_report\n),\n{% endif %}\n\ngoogle_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.google_ads__keyword_report\n),\n\nmicrosoft_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.microsoft_ads__keyword_report\n)\n\nselect \n 'amazon_ads' as platform\nfrom keyword_report\njoin amazon_ads\n on keyword_report.platform = 'amazon_ads'\nwhere abs(amazon_ads.conversions - keyword_report.conversions) >= .01\n or abs(amazon_ads.conversions_value - keyword_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'apple_search_ads' as platform\nfrom keyword_report\njoin apple_search_ads\n on keyword_report.platform = 'apple_search_ads'\nwhere abs(apple_search_ads.conversions - keyword_report.conversions) >= .01\n or abs(apple_search_ads.conversions_value - keyword_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'pinterest_ads' as platform\nfrom keyword_report\njoin pinterest_ads\n on keyword_report.platform = 'pinterest_ads'\nwhere abs(pinterest_ads.conversions - keyword_report.conversions) >= .01\n or abs(pinterest_ads.conversions_value - keyword_report.conversions_value) >= .01\n\nunion all \n\n{% if var('twitter_ads__using_keywords', true ) %}\nselect \n 'twitter_ads' as platform\nfrom keyword_report\njoin twitter_ads\n on keyword_report.platform = 'twitter_ads'\nwhere abs(twitter_ads.conversions - keyword_report.conversions) >= .01\n or abs(twitter_ads.conversions_value - keyword_report.conversions_value) >= .01\n\nunion all \n{% endif %}\n\nselect \n 'google_ads' as platform\nfrom keyword_report\njoin google_ads\n on keyword_report.platform = 'google_ads'\nwhere abs(google_ads.conversions - keyword_report.conversions) >= .01\n or abs(google_ads.conversions_value - keyword_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'microsoft_ads' as platform\nfrom keyword_report\njoin microsoft_ads\n on keyword_report.platform = 'microsoft_ads'\nwhere abs(microsoft_ads.conversions - keyword_report.conversions) >= .01\n or abs(microsoft_ads.conversions_value - keyword_report.conversions_value) >= .01", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.vertical_account_conversion_comparison": [{"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "vertical_account_conversion_comparison", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "integrity/vertical_account_conversion_comparison.sql", "original_file_path": "tests/integrity/vertical_account_conversion_comparison.sql", "unique_id": "test.ad_reporting_integration_tests.vertical_account_conversion_comparison", "fqn": ["ad_reporting_integration_tests", "integrity", "vertical_account_conversion_comparison"], "alias": "vertical_account_conversion_comparison", "checksum": {"name": "sha256", "checksum": "57b9bb083ae74c65396e514010d4ff7b4b7d3dfda42f201745c084ac4a471ff5"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1734462181.629568, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith account_report as (\n\n select \n platform,\n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__account_report\n group by 1\n),\n\namazon_ads as (\n\n select \n sum(coalesce(purchases_30_d,0)) as conversions,\n sum(coalesce(sales_30_d,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.amazon_ads__account_report\n),\n\napple_search_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(0) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.apple_search_ads__organization_report\n),\n\nlinkedin_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_value_in_local_currency,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.linkedin_ads__account_report\n),\n\npinterest_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.pinterest_ads__advertiser_report\n),\n\nsnapchat_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_purchases_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.snapchat_ads__account_report\n),\n\ntiktok_ads as (\n\n select \n sum(coalesce(conversion,0)) as conversions,\n sum(coalesce(total_conversion_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.tiktok_ads__advertiser_report\n),\n\ntwitter_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_sale_amount,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.twitter_ads__account_report\n),\n\ngoogle_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.google_ads__account_report\n),\n\nfacebook_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.facebook_ads__account_report\n),\n\nmicrosoft_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.microsoft_ads__account_report\n),\n\nreddit_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(total_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.reddit_ads__account_report\n)\n\nselect \n 'amazon_ads' as platform\nfrom account_report\njoin amazon_ads\n on account_report.platform = 'amazon_ads'\nwhere abs(amazon_ads.conversions - account_report.conversions) >= .01\n or abs(amazon_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'apple_search_ads' as platform\nfrom account_report\njoin apple_search_ads\n on account_report.platform = 'apple_search_ads'\nwhere abs(apple_search_ads.conversions - account_report.conversions) >= .01\n or abs(apple_search_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'linkedin_ads' as platform\nfrom account_report\njoin linkedin_ads\n on account_report.platform = 'linkedin_ads'\nwhere abs(linkedin_ads.conversions - account_report.conversions) >= .01\n or abs(linkedin_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'pinterest_ads' as platform\nfrom account_report\njoin pinterest_ads\n on account_report.platform = 'pinterest_ads'\nwhere abs(pinterest_ads.conversions - account_report.conversions) >= .01\n or abs(pinterest_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'snapchat_ads' as platform\nfrom account_report\njoin snapchat_ads\n on account_report.platform = 'snapchat_ads'\nwhere abs(snapchat_ads.conversions - account_report.conversions) >= .01\n or abs(snapchat_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'tiktok_ads' as platform\nfrom account_report\njoin tiktok_ads\n on account_report.platform = 'tiktok_ads'\nwhere abs(tiktok_ads.conversions - account_report.conversions) >= .01\n or abs(tiktok_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'twitter_ads' as platform\nfrom account_report\njoin twitter_ads\n on account_report.platform = 'twitter_ads'\nwhere abs(twitter_ads.conversions - account_report.conversions) >= .01\n or abs(twitter_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'google_ads' as platform\nfrom account_report\njoin google_ads\n on account_report.platform = 'google_ads'\nwhere abs(google_ads.conversions - account_report.conversions) >= .01\n or abs(google_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'facebook_ads' as platform\nfrom account_report\njoin facebook_ads\n on account_report.platform = 'facebook_ads'\nwhere abs(facebook_ads.conversions - account_report.conversions) >= .01\n or abs(facebook_ads.conversions_value - account_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'microsoft_ads' as platform\nfrom account_report\njoin microsoft_ads\n on account_report.platform = 'microsoft_ads'\nwhere abs(microsoft_ads.conversions - account_report.conversions) >= .01\n or abs(microsoft_ads.conversions_value - account_report.conversions_value) >= .01\nunion all \n\nselect \n 'reddit_ads' as platform\nfrom account_report\njoin reddit_ads\n on account_report.platform = 'reddit_ads'\nwhere abs(reddit_ads.conversions - account_report.conversions) >= .01\n or abs(reddit_ads.conversions_value - account_report.conversions_value) >= .01", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.vertical_ad_group_conversion_comparison": [{"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "vertical_ad_group_conversion_comparison", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "integrity/vertical_ad_group_conversion_comparison.sql", "original_file_path": "tests/integrity/vertical_ad_group_conversion_comparison.sql", "unique_id": "test.ad_reporting_integration_tests.vertical_ad_group_conversion_comparison", "fqn": ["ad_reporting_integration_tests", "integrity", "vertical_ad_group_conversion_comparison"], "alias": "vertical_ad_group_conversion_comparison", "checksum": {"name": "sha256", "checksum": "2c9ebd9e3c28fa0b98399ce898ccb4f5ac5075e45607a882f1d08e037a7458e4"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1734462181.634288, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith ad_group_report as (\n\n select \n platform,\n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__ad_group_report\n group by 1\n),\n\namazon_ads as (\n\n select \n sum(coalesce(purchases_30_d,0)) as conversions,\n sum(coalesce(sales_30_d,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.amazon_ads__ad_group_report\n),\n\napple_search_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(0) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.apple_search_ads__ad_group_report\n),\n\nlinkedin_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_value_in_local_currency,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.linkedin_ads__campaign_report\n),\n\npinterest_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.pinterest_ads__ad_group_report\n),\n\nsnapchat_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_purchases_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.snapchat_ads__ad_squad_report\n),\n\ntiktok_ads as (\n\n select \n sum(coalesce(conversion,0)) as conversions,\n sum(coalesce(total_conversion_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.tiktok_ads__ad_group_report\n),\n\ntwitter_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_sale_amount,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.twitter_ads__line_item_report\n),\n\ngoogle_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.google_ads__ad_group_report\n),\n\nfacebook_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.facebook_ads__ad_set_report\n),\n\nmicrosoft_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.microsoft_ads__ad_group_report\n),\n\nreddit_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(total_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.reddit_ads__ad_group_report\n)\n\nselect \n 'amazon_ads' as platform\nfrom ad_group_report\njoin amazon_ads\n on ad_group_report.platform = 'amazon_ads'\nwhere abs(amazon_ads.conversions - ad_group_report.conversions) >= .01\n or abs(amazon_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'apple_search_ads' as platform\nfrom ad_group_report\njoin apple_search_ads\n on ad_group_report.platform = 'apple_search_ads'\nwhere abs(apple_search_ads.conversions - ad_group_report.conversions) >= .01\n or abs(apple_search_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'linkedin_ads' as platform\nfrom ad_group_report\njoin linkedin_ads\n on ad_group_report.platform = 'linkedin_ads'\nwhere abs(linkedin_ads.conversions - ad_group_report.conversions) >= .01\n or abs(linkedin_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'pinterest_ads' as platform\nfrom ad_group_report\njoin pinterest_ads\n on ad_group_report.platform = 'pinterest_ads'\nwhere abs(pinterest_ads.conversions - ad_group_report.conversions) >= .01\n or abs(pinterest_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'snapchat_ads' as platform\nfrom ad_group_report\njoin snapchat_ads\n on ad_group_report.platform = 'snapchat_ads'\nwhere abs(snapchat_ads.conversions - ad_group_report.conversions) >= .01\n or abs(snapchat_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'tiktok_ads' as platform\nfrom ad_group_report\njoin tiktok_ads\n on ad_group_report.platform = 'tiktok_ads'\nwhere abs(tiktok_ads.conversions - ad_group_report.conversions) >= .01\n or abs(tiktok_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'twitter_ads' as platform\nfrom ad_group_report\njoin twitter_ads\n on ad_group_report.platform = 'twitter_ads'\nwhere abs(twitter_ads.conversions - ad_group_report.conversions) >= .01\n or abs(twitter_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'google_ads' as platform\nfrom ad_group_report\njoin google_ads\n on ad_group_report.platform = 'google_ads'\nwhere abs(google_ads.conversions - ad_group_report.conversions) >= .01\n or abs(google_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'facebook_ads' as platform\nfrom ad_group_report\njoin facebook_ads\n on ad_group_report.platform = 'facebook_ads'\nwhere abs(facebook_ads.conversions - ad_group_report.conversions) >= .01\n or abs(facebook_ads.conversions_value - ad_group_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'microsoft_ads' as platform\nfrom ad_group_report\njoin microsoft_ads\n on ad_group_report.platform = 'microsoft_ads'\nwhere abs(microsoft_ads.conversions - ad_group_report.conversions) >= .01\n or abs(microsoft_ads.conversions_value - ad_group_report.conversions_value) >= .01\nunion all \n\nselect \n 'reddit_ads' as platform\nfrom ad_group_report\njoin reddit_ads\n on ad_group_report.platform = 'reddit_ads'\nwhere abs(reddit_ads.conversions - ad_group_report.conversions) >= .01\n or abs(reddit_ads.conversions_value - ad_group_report.conversions_value) >= .01", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.vertical_search_conversion_comparison": [{"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "vertical_search_conversion_comparison", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "integrity/vertical_search_conversion_comparison.sql", "original_file_path": "tests/integrity/vertical_search_conversion_comparison.sql", "unique_id": "test.ad_reporting_integration_tests.vertical_search_conversion_comparison", "fqn": ["ad_reporting_integration_tests", "integrity", "vertical_search_conversion_comparison"], "alias": "vertical_search_conversion_comparison", "checksum": {"name": "sha256", "checksum": "b7caeaa664b63b20bbdc1cb2a36dcfe968f2b491abd702714026ce2524aab63f"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1734462181.643462, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith search_report as (\n\n select \n platform,\n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__search_report\n group by 1\n),\n\namazon_ads as (\n\n select \n sum(coalesce(purchases_30_d,0)) as conversions,\n sum(coalesce(sales_30_d,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.amazon_ads__search_report\n),\n\n{% if var('apple_search_ads__using_search_terms', true ) %}\napple_search_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(0) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.apple_search_ads__search_term_report\n),\n{% endif %}\n\nmicrosoft_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.microsoft_ads__search_report\n)\n\nselect \n 'amazon_ads' as platform\nfrom search_report\njoin amazon_ads\n on search_report.platform = 'amazon_ads'\nwhere abs(amazon_ads.conversions - search_report.conversions) >= .01\n or abs(amazon_ads.conversions_value - search_report.conversions_value) >= .01\n\nunion all \n\n{% if var('apple_search_ads__using_search_terms', true ) %}\nselect \n 'apple_search_ads' as platform\nfrom search_report\njoin apple_search_ads\n on search_report.platform = 'apple_search_ads'\nwhere abs(apple_search_ads.conversions - search_report.conversions) >= .01\n or abs(apple_search_ads.conversions_value - search_report.conversions_value) >= .01\n\nunion all \n{% endif %}\n\nselect \n 'microsoft_ads' as platform\nfrom search_report\njoin microsoft_ads\n on search_report.platform = 'microsoft_ads'\nwhere abs(microsoft_ads.conversions - search_report.conversions) >= .01\n or abs(microsoft_ads.conversions_value - search_report.conversions_value) >= .01", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.vertical_campaign_conversion_comparison": [{"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "vertical_campaign_conversion_comparison", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "integrity/vertical_campaign_conversion_comparison.sql", "original_file_path": "tests/integrity/vertical_campaign_conversion_comparison.sql", "unique_id": "test.ad_reporting_integration_tests.vertical_campaign_conversion_comparison", "fqn": ["ad_reporting_integration_tests", "integrity", "vertical_campaign_conversion_comparison"], "alias": "vertical_campaign_conversion_comparison", "checksum": {"name": "sha256", "checksum": "bf3ee3807ad294a3727806fd3ae81194d3ddb74a5c7f42e7917343179c0ef9a0"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1734462181.651617, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith campaign_report as (\n\n select \n platform,\n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__campaign_report\n group by 1\n),\n\namazon_ads as (\n\n select \n sum(coalesce(purchases_30_d,0)) as conversions,\n sum(coalesce(sales_30_d,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.amazon_ads__campaign_report\n),\n\napple_search_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(0) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.apple_search_ads__campaign_report\n),\n\nlinkedin_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_value_in_local_currency,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.linkedin_ads__campaign_group_report\n),\n\npinterest_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.pinterest_ads__advertiser_report\n),\n\nsnapchat_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_purchases_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.snapchat_ads__campaign_report\n),\n\ntiktok_ads as (\n\n select \n sum(coalesce(conversion,0)) as conversions,\n sum(coalesce(total_conversion_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.tiktok_ads__campaign_report\n),\n\ntwitter_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_sale_amount,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.twitter_ads__campaign_report\n),\n\ngoogle_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.google_ads__campaign_report\n),\n\nfacebook_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.facebook_ads__campaign_report\n),\n\nmicrosoft_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.microsoft_ads__campaign_report\n),\n\nreddit_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(total_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.reddit_ads__campaign_report\n)\n\nselect \n 'amazon_ads' as platform\nfrom campaign_report\njoin amazon_ads\n on campaign_report.platform = 'amazon_ads'\nwhere abs(amazon_ads.conversions - campaign_report.conversions) >= .01\n or abs(amazon_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'apple_search_ads' as platform\nfrom campaign_report\njoin apple_search_ads\n on campaign_report.platform = 'apple_search_ads'\nwhere abs(apple_search_ads.conversions - campaign_report.conversions) >= .01\n or abs(apple_search_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'linkedin_ads' as platform\nfrom campaign_report\njoin linkedin_ads\n on campaign_report.platform = 'linkedin_ads'\nwhere abs(linkedin_ads.conversions - campaign_report.conversions) >= .01\n or abs(linkedin_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'pinterest_ads' as platform\nfrom campaign_report\njoin pinterest_ads\n on campaign_report.platform = 'pinterest_ads'\nwhere abs(pinterest_ads.conversions - campaign_report.conversions) >= .01\n or abs(pinterest_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'snapchat_ads' as platform\nfrom campaign_report\njoin snapchat_ads\n on campaign_report.platform = 'snapchat_ads'\nwhere abs(snapchat_ads.conversions - campaign_report.conversions) >= .01\n or abs(snapchat_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'tiktok_ads' as platform\nfrom campaign_report\njoin tiktok_ads\n on campaign_report.platform = 'tiktok_ads'\nwhere abs(tiktok_ads.conversions - campaign_report.conversions) >= .01\n or abs(tiktok_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'twitter_ads' as platform\nfrom campaign_report\njoin twitter_ads\n on campaign_report.platform = 'twitter_ads'\nwhere abs(twitter_ads.conversions - campaign_report.conversions) >= .01\n or abs(twitter_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'google_ads' as platform\nfrom campaign_report\njoin google_ads\n on campaign_report.platform = 'google_ads'\nwhere abs(google_ads.conversions - campaign_report.conversions) >= .01\n or abs(google_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'facebook_ads' as platform\nfrom campaign_report\njoin facebook_ads\n on campaign_report.platform = 'facebook_ads'\nwhere abs(facebook_ads.conversions - campaign_report.conversions) >= .01\n or abs(facebook_ads.conversions_value - campaign_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'microsoft_ads' as platform\nfrom campaign_report\njoin microsoft_ads\n on campaign_report.platform = 'microsoft_ads'\nwhere abs(microsoft_ads.conversions - campaign_report.conversions) >= .01\n or abs(microsoft_ads.conversions_value - campaign_report.conversions_value) >= .01\nunion all \n\nselect \n 'reddit_ads' as platform\nfrom campaign_report\njoin reddit_ads\n on campaign_report.platform = 'reddit_ads'\nwhere abs(reddit_ads.conversions - campaign_report.conversions) >= .01\n or abs(reddit_ads.conversions_value - campaign_report.conversions_value) >= .01", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.vertical_ad_conversion_comparison": [{"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "vertical_ad_conversion_comparison", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "integrity/vertical_ad_conversion_comparison.sql", "original_file_path": "tests/integrity/vertical_ad_conversion_comparison.sql", "unique_id": "test.ad_reporting_integration_tests.vertical_ad_conversion_comparison", "fqn": ["ad_reporting_integration_tests", "integrity", "vertical_ad_conversion_comparison"], "alias": "vertical_ad_conversion_comparison", "checksum": {"name": "sha256", "checksum": "7f8fd97c6322443922e9cb51443d95326effdcdbb4a8e7e479eb80154b6ec9d8"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1734462181.657919, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith ad_report as (\n\n select \n platform,\n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__ad_report\n group by 1\n),\n\namazon_ads as (\n\n select \n sum(coalesce(purchases_30_d,0)) as conversions,\n sum(coalesce(sales_30_d,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.amazon_ads__ad_report\n),\n\napple_search_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(0) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.apple_search_ads__ad_report\n),\n\nlinkedin_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_value_in_local_currency,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.linkedin_ads__creative_report\n),\n\npinterest_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.pinterest_ads__pin_promotion_report\n),\n\nsnapchat_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_purchases_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.snapchat_ads__ad_report\n),\n\ntiktok_ads as (\n\n select \n sum(coalesce(conversion,0)) as conversions,\n sum(coalesce(total_conversion_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.tiktok_ads__ad_report\n),\n\ntwitter_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_sale_amount,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.twitter_ads__promoted_tweet_report\n),\n\ngoogle_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.google_ads__ad_report\n),\n\nfacebook_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.facebook_ads__ad_report\n),\n\nmicrosoft_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.microsoft_ads__ad_report\n),\n\nreddit_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(total_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.reddit_ads__ad_report\n)\n\nselect \n 'amazon_ads' as platform\nfrom ad_report\njoin amazon_ads\n on ad_report.platform = 'amazon_ads'\nwhere abs(amazon_ads.conversions - ad_report.conversions) >= .01\n or abs(amazon_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'apple_search_ads' as platform\nfrom ad_report\njoin apple_search_ads\n on ad_report.platform = 'apple_search_ads'\nwhere abs(apple_search_ads.conversions - ad_report.conversions) >= .01\n or abs(apple_search_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'linkedin_ads' as platform\nfrom ad_report\njoin linkedin_ads\n on ad_report.platform = 'linkedin_ads'\nwhere abs(linkedin_ads.conversions - ad_report.conversions) >= .01\n or abs(linkedin_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'pinterest_ads' as platform\nfrom ad_report\njoin pinterest_ads\n on ad_report.platform = 'pinterest_ads'\nwhere abs(pinterest_ads.conversions - ad_report.conversions) >= .01\n or abs(pinterest_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'snapchat_ads' as platform\nfrom ad_report\njoin snapchat_ads\n on ad_report.platform = 'snapchat_ads'\nwhere abs(snapchat_ads.conversions - ad_report.conversions) >= .01\n or abs(snapchat_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'tiktok_ads' as platform\nfrom ad_report\njoin tiktok_ads\n on ad_report.platform = 'tiktok_ads'\nwhere abs(tiktok_ads.conversions - ad_report.conversions) >= .01\n or abs(tiktok_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'twitter_ads' as platform\nfrom ad_report\njoin twitter_ads\n on ad_report.platform = 'twitter_ads'\nwhere abs(twitter_ads.conversions - ad_report.conversions) >= .01\n or abs(twitter_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'google_ads' as platform\nfrom ad_report\njoin google_ads\n on ad_report.platform = 'google_ads'\nwhere abs(google_ads.conversions - ad_report.conversions) >= .01\n or abs(google_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'facebook_ads' as platform\nfrom ad_report\njoin facebook_ads\n on ad_report.platform = 'facebook_ads'\nwhere abs(facebook_ads.conversions - ad_report.conversions) >= .01\n or abs(facebook_ads.conversions_value - ad_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'microsoft_ads' as platform\nfrom ad_report\njoin microsoft_ads\n on ad_report.platform = 'microsoft_ads'\nwhere abs(microsoft_ads.conversions - ad_report.conversions) >= .01\n or abs(microsoft_ads.conversions_value - ad_report.conversions_value) >= .01\nunion all \n\nselect \n 'reddit_ads' as platform\nfrom ad_report\njoin reddit_ads\n on ad_report.platform = 'reddit_ads'\nwhere abs(reddit_ads.conversions - ad_report.conversions) >= .01\n or abs(reddit_ads.conversions_value - ad_report.conversions_value) >= .01", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.ad_reporting_integration_tests.vertical_url_conversion_comparison": [{"database": "postgres", "schema": "zz_ad_reporting_dbt_test__audit", "name": "vertical_url_conversion_comparison", "resource_type": "test", "package_name": "ad_reporting_integration_tests", "path": "integrity/vertical_url_conversion_comparison.sql", "original_file_path": "tests/integrity/vertical_url_conversion_comparison.sql", "unique_id": "test.ad_reporting_integration_tests.vertical_url_conversion_comparison", "fqn": ["ad_reporting_integration_tests", "integrity", "vertical_url_conversion_comparison"], "alias": "vertical_url_conversion_comparison", "checksum": {"name": "sha256", "checksum": "8e983eccee223b9bc9f4e614398ef59e6316834b962e35b4b3be07191d744655"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": ["fivetran_validations"], "enabled": false}, "created_at": 1734462181.665316, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith url_report as (\n\n select \n platform,\n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__url_report\n group by 1\n),\n\nlinkedin_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_value_in_local_currency,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.linkedin_ads__url_report\n),\n\npinterest_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.pinterest_ads__url_report\n),\n\nsnapchat_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(conversion_purchases_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.snapchat_ads__url_report\n),\n\ntiktok_ads as (\n\n select \n sum(coalesce(conversion,0)) as conversions,\n sum(coalesce(total_conversion_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.tiktok_ads__url_report\n),\n\ntwitter_ads as (\n\n select \n sum(coalesce(total_conversions,0)) as conversions,\n sum(coalesce(total_conversions_sale_amount,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.twitter_ads__url_report\n),\n\ngoogle_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.google_ads__url_report\n),\n\nfacebook_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.facebook_ads__url_report\n),\n\nmicrosoft_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(conversions_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.microsoft_ads__url_report\n),\n\nreddit_ads as (\n\n select \n sum(coalesce(conversions,0)) as conversions,\n sum(coalesce(total_value,0)) as conversions_value\n from {{ target.schema }}_ad_reporting_dev.reddit_ads__url_report\n)\n\nselect \n 'linkedin_ads' as platform\nfrom url_report\njoin linkedin_ads\n on url_report.platform = 'linkedin_ads'\nwhere abs(linkedin_ads.conversions - url_report.conversions) >= .01\n or abs(linkedin_ads.conversions_value - url_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'pinterest_ads' as platform\nfrom url_report\njoin pinterest_ads\n on url_report.platform = 'pinterest_ads'\nwhere abs(pinterest_ads.conversions - url_report.conversions) >= .01\n or abs(pinterest_ads.conversions_value - url_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'snapchat_ads' as platform\nfrom url_report\njoin snapchat_ads\n on url_report.platform = 'snapchat_ads'\nwhere abs(snapchat_ads.conversions - url_report.conversions) >= .01\n or abs(snapchat_ads.conversions_value - url_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'tiktok_ads' as platform\nfrom url_report\njoin tiktok_ads\n on url_report.platform = 'tiktok_ads'\nwhere abs(tiktok_ads.conversions - url_report.conversions) >= .01\n or abs(tiktok_ads.conversions_value - url_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'twitter_ads' as platform\nfrom url_report\njoin twitter_ads\n on url_report.platform = 'twitter_ads'\nwhere abs(twitter_ads.conversions - url_report.conversions) >= .01\n or abs(twitter_ads.conversions_value - url_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'google_ads' as platform\nfrom url_report\njoin google_ads\n on url_report.platform = 'google_ads'\nwhere abs(google_ads.conversions - url_report.conversions) >= .01\n or abs(google_ads.conversions_value - url_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'facebook_ads' as platform\nfrom url_report\njoin facebook_ads\n on url_report.platform = 'facebook_ads'\nwhere abs(facebook_ads.conversions - url_report.conversions) >= .01\n or abs(facebook_ads.conversions_value - url_report.conversions_value) >= .01\n\nunion all \n\nselect \n 'microsoft_ads' as platform\nfrom url_report\njoin microsoft_ads\n on url_report.platform = 'microsoft_ads'\nwhere abs(microsoft_ads.conversions - url_report.conversions) >= .01\n or abs(microsoft_ads.conversions_value - url_report.conversions_value) >= .01\nunion all \n\nselect \n 'reddit_ads' as platform\nfrom url_report\njoin reddit_ads\n on url_report.platform = 'reddit_ads'\nwhere abs(reddit_ads.conversions - url_report.conversions) >= .01\n or abs(reddit_ads.conversions_value - url_report.conversions_value) >= .01", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}]}, "parent_map": {"seed.ad_reporting_integration_tests.twitter_line_item_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data": [], "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": [], "seed.ad_reporting_integration_tests.pinterest_keyword_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_account_report_data": [], "seed.ad_reporting_integration_tests.twitter_line_item_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_conversions": [], "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data": [], "seed.ad_reporting_integration_tests.pinterest_ad_group_report_data": [], "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_campaign_conversions": [], "seed.ad_reporting_integration_tests.twitter_account_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_campaign_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data": [], "seed.ad_reporting_integration_tests.twitter_campaign_history_data": [], "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_action_values_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data": [], "seed.ad_reporting_integration_tests.pinterest_advertiser_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data": [], "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.tiktok_ad_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data": [], "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data": [], "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data": [], "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_group_conversions": [], "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data": [], "seed.ad_reporting_integration_tests.apple_search_organization_data": [], "seed.ad_reporting_integration_tests.tiktok_campaign_history_data": [], "seed.ad_reporting_integration_tests.tiktok_advertiser_data": [], "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_stats_data": [], "seed.ad_reporting_integration_tests.twitter_campaign_report_data": [], "seed.ad_reporting_integration_tests.google_ads_account_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_profile_data": [], "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.pinterest_campaign_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data": [], "seed.ad_reporting_integration_tests.twitter_tweet_url_data": [], "seed.ad_reporting_integration_tests.apple_search_keyword_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_group_data": [], "seed.ad_reporting_integration_tests.pinterest_pin_promotion_history_data": [], "seed.ad_reporting_integration_tests.pinterest_campaign_history_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.google_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_account_history_data": [], "seed.ad_reporting_integration_tests.apple_search_campaign_report_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.pinterest_ad_group_history_data": [], "seed.ad_reporting_integration_tests.snapchat_campaign_history_data": [], "seed.ad_reporting_integration_tests.pinterest_keyword_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data": [], "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.apple_search_search_term_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_account_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_group_report_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data": [], "seed.ad_reporting_integration_tests.twitter_account_history_data": [], "seed.ad_reporting_integration_tests.snapchat_creative_history_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data": [], "seed.ad_reporting_integration_tests.apple_search_keyword_report_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.twitter_tweet_data": [], "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_actions_data": [], "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data": [], "seed.ad_reporting_integration_tests.apple_search_ad_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_campaign_report_data": [], "seed.ad_reporting_integration_tests.google_ads_account_stats_data": [], "seed.ad_reporting_integration_tests.pinterest_advertiser_history_data": [], "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data": [], "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_report_data": [], "seed.ad_reporting_integration_tests.pinterest_pin_promotion_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_account_conversions": [], "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.apple_search_ad_history_data": [], "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data": [], "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__keyword_history": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__ad_history": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__account_history": ["model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__campaign_history": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp"], "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp": ["source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp": ["source.microsoft_ads_source.microsoft_ads.ad_group_history"], "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp": ["source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp": ["source.microsoft_ads_source.microsoft_ads.ad_history"], "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp": ["source.microsoft_ads_source.microsoft_ads.account_history"], "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp": ["source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp": ["source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp": ["source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp": ["source.microsoft_ads_source.microsoft_ads.keyword_history"], "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp": ["source.microsoft_ads_source.microsoft_ads.campaign_history"], "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp": ["source.microsoft_ads_source.microsoft_ads.account_performance_daily_report"], "model.tiktok_ads.tiktok_ads__ad_group_report": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"], "model.tiktok_ads.tiktok_ads__url_report": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"], "model.tiktok_ads.tiktok_ads__campaign_report": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history", "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"], "model.tiktok_ads.tiktok_ads__ad_report": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"], "model.tiktok_ads.tiktok_ads__advertiser_report": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__advertiser"], "model.twitter_ads.twitter_ads__account_report": ["model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"], "model.twitter_ads.twitter_ads__campaign_report": ["model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__campaign_report"], "model.twitter_ads.twitter_ads__url_report": ["model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "model.twitter_ads_source.stg_twitter_ads__tweet", "model.twitter_ads_source.stg_twitter_ads__tweet_url"], "model.twitter_ads.twitter_ads__promoted_tweet_report": ["model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "model.twitter_ads_source.stg_twitter_ads__tweet"], "model.twitter_ads.twitter_ads__line_item_report": ["model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__line_item_report"], "model.twitter_ads.twitter_ads__keyword_report": ["model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"], "model.reddit_ads.reddit_ads__campaign_report": ["model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__campaign", "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report", "model.reddit_ads_source.stg_reddit_ads__campaign_report"], "model.reddit_ads.reddit_ads__url_report": ["model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__ad", "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__ad_report", "model.reddit_ads_source.stg_reddit_ads__campaign"], "model.reddit_ads.reddit_ads__account_report": ["model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__account_conversions_report", "model.reddit_ads_source.stg_reddit_ads__account_report"], "model.reddit_ads.reddit_ads__ad_report": ["model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__ad", "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__ad_report", "model.reddit_ads_source.stg_reddit_ads__campaign"], "model.reddit_ads.reddit_ads__ad_group_report": ["model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report", "model.reddit_ads_source.stg_reddit_ads__ad_group_report", "model.reddit_ads_source.stg_reddit_ads__campaign"], "model.pinterest.pinterest_ads__url_report": ["model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "model.pinterest_source.stg_pinterest_ads__pin_promotion_report"], "model.pinterest.pinterest_ads__campaign_report": ["model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__campaign_report"], "model.pinterest.pinterest_ads__keyword_report": ["model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__keyword_history", "model.pinterest_source.stg_pinterest_ads__keyword_report"], "model.pinterest.pinterest_ads__advertiser_report": ["model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__advertiser_report"], "model.pinterest.pinterest_ads__pin_promotion_report": ["model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "model.pinterest_source.stg_pinterest_ads__pin_promotion_report"], "model.pinterest.pinterest_ads__ad_group_report": ["model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__ad_group_report", "model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history"], "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report": ["model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report": ["model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__account_conversions_report": ["model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__ad_group": ["model.reddit_ads_source.stg_reddit_ads__ad_group_tmp"], "model.reddit_ads_source.stg_reddit_ads__ad": ["model.reddit_ads_source.stg_reddit_ads__ad_tmp"], "model.reddit_ads_source.stg_reddit_ads__campaign_report": ["model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__account": ["model.reddit_ads_source.stg_reddit_ads__account_tmp"], "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report": ["model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__account_report": ["model.reddit_ads_source.stg_reddit_ads__account_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__ad_report": ["model.reddit_ads_source.stg_reddit_ads__ad_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__campaign": ["model.reddit_ads_source.stg_reddit_ads__campaign_tmp"], "model.reddit_ads_source.stg_reddit_ads__ad_group_report": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp": ["source.reddit_ads_source.reddit_ads.campaign_conversions_report"], "model.reddit_ads_source.stg_reddit_ads__campaign_tmp": ["source.reddit_ads_source.reddit_ads.campaign"], "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp": ["source.reddit_ads_source.reddit_ads.ad_group_report"], "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp": ["source.reddit_ads_source.reddit_ads.ad_group_conversions_report"], "model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp": ["source.reddit_ads_source.reddit_ads.account_conversions_report"], "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp": ["source.reddit_ads_source.reddit_ads.campaign_report"], "model.reddit_ads_source.stg_reddit_ads__account_report_tmp": ["source.reddit_ads_source.reddit_ads.account_report"], "model.reddit_ads_source.stg_reddit_ads__account_tmp": ["source.reddit_ads_source.reddit_ads.account"], "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp": ["source.reddit_ads_source.reddit_ads.ad_conversions_report"], "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp": ["source.reddit_ads_source.reddit_ads.ad_group"], "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp": ["source.reddit_ads_source.reddit_ads.ad_report"], "model.reddit_ads_source.stg_reddit_ads__ad_tmp": ["source.reddit_ads_source.reddit_ads.ad"], "model.google_ads.google_ads__keyword_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__ad_group_criterion_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__campaign_history", "model.google_ads_source.stg_google_ads__keyword_stats"], "model.google_ads.google_ads__campaign_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__campaign_history", "model.google_ads_source.stg_google_ads__campaign_stats"], "model.google_ads.google_ads__url_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__ad_history", "model.google_ads_source.stg_google_ads__ad_stats", "model.google_ads_source.stg_google_ads__campaign_history"], "model.google_ads.google_ads__ad_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__ad_history", "model.google_ads_source.stg_google_ads__ad_stats", "model.google_ads_source.stg_google_ads__campaign_history"], "model.google_ads.google_ads__ad_group_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__ad_group_stats", "model.google_ads_source.stg_google_ads__campaign_history"], "model.google_ads.google_ads__account_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__account_stats"], "model.amazon_ads_source.stg_amazon_ads__campaign_level_report": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__advertised_product_report": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__portfolio_history": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__campaign_history": ["model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__product_ad_history": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__profile": ["model.amazon_ads_source.stg_amazon_ads__profile_tmp"], "model.amazon_ads_source.stg_amazon_ads__keyword_history": ["model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__ad_group_history": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp": ["source.amazon_ads_source.amazon_ads.keyword_history"], "model.amazon_ads_source.stg_amazon_ads__profile_tmp": ["source.amazon_ads_source.amazon_ads.profile"], "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp": ["source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report"], "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp": ["source.amazon_ads_source.amazon_ads.product_ad_history"], "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp": ["source.amazon_ads_source.amazon_ads.ad_group_history"], "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp": ["source.amazon_ads_source.amazon_ads.campaign_level_report"], "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp": ["source.amazon_ads_source.amazon_ads.targeting_keyword_report"], "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp": ["source.amazon_ads_source.amazon_ads.portfolio_history"], "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp": ["source.amazon_ads_source.amazon_ads.campaign_history"], "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp": ["source.amazon_ads_source.amazon_ads.ad_group_level_report"], "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp": ["source.amazon_ads_source.amazon_ads.advertised_product_report"], "model.linkedin_source.stg_linkedin_ads__creative_history": ["model.linkedin_source.stg_linkedin_ads__creative_history_tmp"], "model.linkedin_source.stg_linkedin_ads__campaign_history": ["model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp"], "model.linkedin_source.stg_linkedin_ads__campaign_group_history": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"], "model.linkedin_source.stg_linkedin_ads__account_history": ["model.linkedin_source.stg_linkedin_ads__account_history_tmp"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp": ["source.linkedin_source.linkedin_ads.ad_analytics_by_creative"], "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp": ["source.linkedin_source.linkedin_ads.campaign_history"], "model.linkedin_source.stg_linkedin_ads__account_history_tmp": ["source.linkedin_source.linkedin_ads.account_history"], "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp": ["source.linkedin_source.linkedin_ads.campaign_group_history"], "model.linkedin_source.stg_linkedin_ads__creative_history_tmp": ["source.linkedin_source.linkedin_ads.creative_history"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp": ["source.linkedin_source.linkedin_ads.ad_analytics_by_campaign"], "model.amazon_ads.amazon_ads__portfolio_report": ["model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.amazon_ads__search_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"], "model.amazon_ads.amazon_ads__ad_group_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.amazon_ads__keyword_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"], "model.amazon_ads.amazon_ads__campaign_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.amazon_ads__account_report": ["model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.amazon_ads__ad_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__product_ad_history", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.int_amazon_ads__portfolio_history": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"], "model.facebook_ads.facebook_ads__url_report": ["model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads.int_facebook_ads__creative_history", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads.facebook_ads__url_tags": ["model.facebook_ads_source.stg_facebook_ads__creative_history"], "model.facebook_ads.facebook_ads__campaign_report": ["model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads.facebook_ads__account_report": ["model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad"], "model.facebook_ads.facebook_ads__ad_report": ["model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads.facebook_ads__ad_set_report": ["model.facebook_ads.int_facebook_ads__conversions", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads.int_facebook_ads__creative_history": ["model.facebook_ads.facebook_ads__url_tags", "model.facebook_ads_source.stg_facebook_ads__creative_history"], "model.facebook_ads.int_facebook_ads__conversions": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values", "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions"], "model.snapchat_ads.snapchat_ads__ad_report": ["model.snapchat_ads.snapchat_ads__creative_history_prep", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"], "model.snapchat_ads.snapchat_ads__url_report": ["model.snapchat_ads.snapchat_ads__creative_history_prep", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "model.snapchat_ads.snapchat_ads__account_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "model.snapchat_ads.snapchat_ads__ad_squad_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "model.snapchat_ads.snapchat_ads__campaign_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"], "model.snapchat_ads.snapchat_ads__creative_history_prep": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history", "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"], "model.google_ads_source.stg_google_ads__ad_group_stats": ["model.google_ads_source.stg_google_ads__ad_group_stats_tmp"], "model.google_ads_source.stg_google_ads__account_stats": ["model.google_ads_source.stg_google_ads__account_stats_tmp"], "model.google_ads_source.stg_google_ads__ad_group_history": ["model.google_ads_source.stg_google_ads__ad_group_history_tmp"], "model.google_ads_source.stg_google_ads__ad_history": ["model.google_ads_source.stg_google_ads__ad_history_tmp"], "model.google_ads_source.stg_google_ads__keyword_stats": ["model.google_ads_source.stg_google_ads__keyword_stats_tmp"], "model.google_ads_source.stg_google_ads__ad_stats": ["model.google_ads_source.stg_google_ads__ad_stats_tmp"], "model.google_ads_source.stg_google_ads__ad_group_criterion_history": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp"], "model.google_ads_source.stg_google_ads__campaign_stats": ["model.google_ads_source.stg_google_ads__campaign_stats_tmp"], "model.google_ads_source.stg_google_ads__campaign_history": ["model.google_ads_source.stg_google_ads__campaign_history_tmp"], "model.google_ads_source.stg_google_ads__account_history": ["model.google_ads_source.stg_google_ads__account_history_tmp"], "model.google_ads_source.stg_google_ads__account_stats_tmp": ["source.google_ads_source.google_ads.account_stats"], "model.google_ads_source.stg_google_ads__ad_group_history_tmp": ["source.google_ads_source.google_ads.ad_group_history"], "model.google_ads_source.stg_google_ads__campaign_stats_tmp": ["source.google_ads_source.google_ads.campaign_stats"], "model.google_ads_source.stg_google_ads__ad_stats_tmp": ["source.google_ads_source.google_ads.ad_stats"], "model.google_ads_source.stg_google_ads__campaign_history_tmp": ["source.google_ads_source.google_ads.campaign_history"], "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp": ["source.google_ads_source.google_ads.ad_group_criterion_history"], "model.google_ads_source.stg_google_ads__ad_group_stats_tmp": ["source.google_ads_source.google_ads.ad_group_stats"], "model.google_ads_source.stg_google_ads__keyword_stats_tmp": ["source.google_ads_source.google_ads.keyword_stats"], "model.google_ads_source.stg_google_ads__ad_history_tmp": ["source.google_ads_source.google_ads.ad_history"], "model.google_ads_source.stg_google_ads__account_history_tmp": ["source.google_ads_source.google_ads.account_history"], "model.apple_search_ads.apple_search_ads__ad_report": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "model.apple_search_ads_source.stg_apple_search_ads__ad_history", "model.apple_search_ads_source.stg_apple_search_ads__ad_report", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"], "model.apple_search_ads.apple_search_ads__ad_group_report": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"], "model.apple_search_ads.apple_search_ads__keyword_report": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__keyword_history", "model.apple_search_ads_source.stg_apple_search_ads__keyword_report", "model.apple_search_ads_source.stg_apple_search_ads__organization"], "model.apple_search_ads.apple_search_ads__search_term_report": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization", "model.apple_search_ads_source.stg_apple_search_ads__search_term_report"], "model.apple_search_ads.apple_search_ads__campaign_report": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "model.apple_search_ads_source.stg_apple_search_ads__organization"], "model.apple_search_ads.apple_search_ads__organization_report": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "model.apple_search_ads_source.stg_apple_search_ads__organization"], "model.ad_reporting.ad_reporting__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report"], "model.ad_reporting.ad_reporting__account_report": ["model.ad_reporting.int_ad_reporting__account_report"], "model.ad_reporting.ad_reporting__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report"], "model.ad_reporting.ad_reporting__search_report": ["model.ad_reporting.int_ad_reporting__search_report"], "model.ad_reporting.ad_reporting__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report"], "model.ad_reporting.ad_reporting__url_report": ["model.ad_reporting.int_ad_reporting__url_report"], "model.ad_reporting.ad_reporting__keyword_report": ["model.ad_reporting.int_ad_reporting__keyword_report"], "model.ad_reporting.metricflow_time_spine": [], "model.ad_reporting.int_ad_reporting__campaign_report": ["model.amazon_ads.amazon_ads__campaign_report", "model.apple_search_ads.apple_search_ads__campaign_report", "model.facebook_ads.facebook_ads__campaign_report", "model.google_ads.google_ads__campaign_report", "model.linkedin.linkedin_ads__campaign_group_report", "model.microsoft_ads.microsoft_ads__campaign_report", "model.pinterest.pinterest_ads__campaign_report", "model.reddit_ads.reddit_ads__campaign_report", "model.snapchat_ads.snapchat_ads__campaign_report", "model.tiktok_ads.tiktok_ads__campaign_report", "model.twitter_ads.twitter_ads__campaign_report"], "model.ad_reporting.int_ad_reporting__keyword_report": ["model.amazon_ads.amazon_ads__keyword_report", "model.apple_search_ads.apple_search_ads__keyword_report", "model.google_ads.google_ads__keyword_report", "model.microsoft_ads.microsoft_ads__keyword_report", "model.pinterest.pinterest_ads__keyword_report", "model.twitter_ads.twitter_ads__keyword_report"], "model.ad_reporting.int_ad_reporting__ad_report": ["model.amazon_ads.amazon_ads__ad_report", "model.apple_search_ads.apple_search_ads__ad_report", "model.facebook_ads.facebook_ads__ad_report", "model.google_ads.google_ads__ad_report", "model.linkedin.linkedin_ads__creative_report", "model.microsoft_ads.microsoft_ads__ad_report", "model.pinterest.pinterest_ads__pin_promotion_report", "model.reddit_ads.reddit_ads__ad_report", "model.snapchat_ads.snapchat_ads__ad_report", "model.tiktok_ads.tiktok_ads__ad_report", "model.twitter_ads.twitter_ads__promoted_tweet_report"], "model.ad_reporting.int_ad_reporting__account_report": ["model.amazon_ads.amazon_ads__account_report", "model.apple_search_ads.apple_search_ads__organization_report", "model.facebook_ads.facebook_ads__account_report", "model.google_ads.google_ads__account_report", "model.linkedin.linkedin_ads__account_report", "model.microsoft_ads.microsoft_ads__account_report", "model.pinterest.pinterest_ads__advertiser_report", "model.reddit_ads.reddit_ads__account_report", "model.snapchat_ads.snapchat_ads__account_report", "model.tiktok_ads.tiktok_ads__advertiser_report", "model.twitter_ads.twitter_ads__account_report"], "model.ad_reporting.int_ad_reporting__url_report": ["model.facebook_ads.facebook_ads__url_report", "model.google_ads.google_ads__url_report", "model.linkedin.linkedin_ads__url_report", "model.microsoft_ads.microsoft_ads__url_report", "model.pinterest.pinterest_ads__url_report", "model.reddit_ads.reddit_ads__url_report", "model.snapchat_ads.snapchat_ads__url_report", "model.tiktok_ads.tiktok_ads__url_report", "model.twitter_ads.twitter_ads__url_report"], "model.ad_reporting.int_ad_reporting__search_report": ["model.amazon_ads.amazon_ads__search_report", "model.apple_search_ads.apple_search_ads__search_term_report", "model.microsoft_ads.microsoft_ads__search_report"], "model.ad_reporting.int_ad_reporting__ad_group_report": ["model.amazon_ads.amazon_ads__ad_group_report", "model.apple_search_ads.apple_search_ads__ad_group_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.google_ads.google_ads__ad_group_report", "model.linkedin.linkedin_ads__campaign_report", "model.microsoft_ads.microsoft_ads__ad_group_report", "model.pinterest.pinterest_ads__ad_group_report", "model.reddit_ads.reddit_ads__ad_group_report", "model.snapchat_ads.snapchat_ads__ad_squad_report", "model.tiktok_ads.tiktok_ads__ad_group_report", "model.twitter_ads.twitter_ads__line_item_report"], "model.apple_search_ads_source.stg_apple_search_ads__campaign_history": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__ad_report": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__campaign_report": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__organization": ["model.apple_search_ads_source.stg_apple_search_ads__organization_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__keyword_report": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__keyword_history": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__search_term_report": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__ad_history": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp"], "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp": ["source.apple_search_ads_source.apple_search_ads.search_term_report"], "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp": ["source.apple_search_ads_source.apple_search_ads.campaign_history"], "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp": ["source.apple_search_ads_source.apple_search_ads.keyword_history"], "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp": ["source.apple_search_ads_source.apple_search_ads.ad_group_history"], "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp": ["source.apple_search_ads_source.apple_search_ads.ad_group_report"], "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp": ["source.apple_search_ads_source.apple_search_ads.ad_history"], "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp": ["source.apple_search_ads_source.apple_search_ads.campaign_report"], "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp": ["source.apple_search_ads_source.apple_search_ads.organization"], "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp": ["source.apple_search_ads_source.apple_search_ads.keyword_report"], "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp": ["source.apple_search_ads_source.apple_search_ads.ad_level_report"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_history": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp"], "model.pinterest_source.stg_pinterest_ads__keyword_report": ["model.pinterest_source.stg_pinterest_ads__keyword_report_tmp"], "model.pinterest_source.stg_pinterest_ads__ad_group_report": ["model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp"], "model.pinterest_source.stg_pinterest_ads__campaign_history": ["model.pinterest_source.stg_pinterest_ads__campaign_history_tmp"], "model.pinterest_source.stg_pinterest_ads__advertiser_report": ["model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp"], "model.pinterest_source.stg_pinterest_ads__advertiser_history": ["model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp"], "model.pinterest_source.stg_pinterest_ads__campaign_report": ["model.pinterest_source.stg_pinterest_ads__campaign_report_tmp"], "model.pinterest_source.stg_pinterest_ads__keyword_history": ["model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_report": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp"], "model.pinterest_source.stg_pinterest_ads__ad_group_history": ["model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp"], "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp": ["source.pinterest_source.pinterest_ads.advertiser_history"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp": ["source.pinterest_source.pinterest_ads.pin_promotion_report"], "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp": ["source.pinterest_source.pinterest_ads.campaign_report"], "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp": ["source.pinterest_source.pinterest_ads.advertiser_report"], "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp": ["source.pinterest_source.pinterest_ads.keyword_report"], "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp": ["source.pinterest_source.pinterest_ads.ad_group_report"], "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp": ["source.pinterest_source.pinterest_ads.keyword_history"], "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp": ["source.pinterest_source.pinterest_ads.campaign_history"], "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp": ["source.pinterest_source.pinterest_ads.ad_group_history"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp": ["source.pinterest_source.pinterest_ads.pin_promotion_history"], "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp"], "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp"], "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp"], "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp"], "model.tiktok_ads_source.stg_tiktok_ads__advertiser": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp"], "model.tiktok_ads_source.stg_tiktok_ads__ad_history": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp"], "model.tiktok_ads_source.stg_tiktok_ads__campaign_history": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp"], "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp": ["source.tiktok_ads_source.tiktok_ads.ad_report_hourly"], "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp": ["source.tiktok_ads_source.tiktok_ads.ad_history"], "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp": ["source.tiktok_ads_source.tiktok_ads.adgroup_history"], "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp": ["source.tiktok_ads_source.tiktok_ads.campaign_report_hourly"], "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp": ["source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly"], "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp": ["source.tiktok_ads_source.tiktok_ads.campaign_history"], "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp": ["source.tiktok_ads_source.tiktok_ads.advertiser"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp"], "model.facebook_ads_source.stg_facebook_ads__basic_ad": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp"], "model.facebook_ads_source.stg_facebook_ads__creative_history": ["model.facebook_ads_source.stg_facebook_ads__creative_history_tmp"], "model.facebook_ads_source.stg_facebook_ads__campaign_history": ["model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp"], "model.facebook_ads_source.stg_facebook_ads__account_history": ["model.facebook_ads_source.stg_facebook_ads__account_history_tmp"], "model.facebook_ads_source.stg_facebook_ads__ad_history": ["model.facebook_ads_source.stg_facebook_ads__ad_history_tmp"], "model.facebook_ads_source.stg_facebook_ads__ad_set_history": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp"], "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp": ["source.facebook_ads_source.facebook_ads.ad_set_history"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp": ["source.facebook_ads_source.facebook_ads.basic_ad"], "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp": ["source.facebook_ads_source.facebook_ads.ad_history"], "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp": ["source.facebook_ads_source.facebook_ads.campaign_history"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp": ["source.facebook_ads_source.facebook_ads.basic_ad_actions"], "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp": ["source.facebook_ads_source.facebook_ads.creative_history"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp": ["source.facebook_ads_source.facebook_ads.basic_ad_action_values"], "model.facebook_ads_source.stg_facebook_ads__account_history_tmp": ["source.facebook_ads_source.facebook_ads.account_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__ad_history": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__creative_history": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__campaign_history": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp"], "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp": ["source.snapchat_ads_source.snapchat_ads.creative_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp": ["source.snapchat_ads_source.snapchat_ads.ad_account_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp": ["source.snapchat_ads_source.snapchat_ads.ad_hourly_report"], "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp": ["source.snapchat_ads_source.snapchat_ads.creative_url_tag_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp": ["source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report"], "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp": ["source.snapchat_ads_source.snapchat_ads.campaign_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp": ["source.snapchat_ads_source.snapchat_ads.ad_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp": ["source.snapchat_ads_source.snapchat_ads.ad_squad_history"], "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp": ["source.snapchat_ads_source.snapchat_ads.campaign_hourly_report"], "model.microsoft_ads.microsoft_ads__ad_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history"], "model.microsoft_ads.microsoft_ads__ad_group_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history"], "model.microsoft_ads.microsoft_ads__keyword_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__keyword_history"], "model.microsoft_ads.microsoft_ads__url_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history"], "model.microsoft_ads.microsoft_ads__account_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__account_history"], "model.microsoft_ads.microsoft_ads__search_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__keyword_history", "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"], "model.microsoft_ads.microsoft_ads__campaign_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history"], "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp"], "model.twitter_ads_source.stg_twitter_ads__campaign_report": ["model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp"], "model.twitter_ads_source.stg_twitter_ads__line_item_history": ["model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp"], "model.twitter_ads_source.stg_twitter_ads__line_item_report": ["model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp"], "model.twitter_ads_source.stg_twitter_ads__campaign_history": ["model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp"], "model.twitter_ads_source.stg_twitter_ads__tweet": ["model.twitter_ads_source.stg_twitter_ads__tweet_tmp"], "model.twitter_ads_source.stg_twitter_ads__account_history": ["model.twitter_ads_source.stg_twitter_ads__account_history_tmp"], "model.twitter_ads_source.stg_twitter_ads__tweet_url": ["model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp"], "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp": ["source.twitter_ads_source.twitter_ads.tweet_url"], "model.twitter_ads_source.stg_twitter_ads__tweet_tmp": ["source.twitter_ads_source.twitter_ads.tweet"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp": ["source.twitter_ads_source.twitter_ads.promoted_tweet_report"], "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp": ["source.twitter_ads_source.twitter_ads.line_item_history"], "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp": ["source.twitter_ads_source.twitter_ads.campaign_report"], "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp": ["source.twitter_ads_source.twitter_ads.campaign_history"], "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp": ["source.twitter_ads_source.twitter_ads.line_item_keywords_report"], "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp": ["source.twitter_ads_source.twitter_ads.line_item_report"], "model.twitter_ads_source.stg_twitter_ads__account_history_tmp": ["source.twitter_ads_source.twitter_ads.account_history"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp": ["source.twitter_ads_source.twitter_ads.promoted_tweet_history"], "model.linkedin.linkedin_ads__campaign_group_report": ["model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__campaign_history"], "model.linkedin.linkedin_ads__creative_report": ["model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__campaign_history", "model.linkedin_source.stg_linkedin_ads__creative_history"], "model.linkedin.linkedin_ads__campaign_report": ["model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__campaign_history"], "model.linkedin.linkedin_ads__account_report": ["model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "model.linkedin_source.stg_linkedin_ads__campaign_history"], "model.linkedin.linkedin_ads__url_report": ["model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__campaign_history", "model.linkedin_source.stg_linkedin_ads__creative_history"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e": ["model.microsoft_ads_source.stg_microsoft_ads__account_history"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_source_relation__account_id__modified_at.c32440cfcf": ["model.microsoft_ads_source.stg_microsoft_ads__account_history"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.38a7aa3e12": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_source_relation__ad_group_id__modified_at.f2ed2b82b0": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.3e03e6eff7": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.3825c46fa1": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_source_relation__ad_id__modified_at.2eb6255160": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.b6f971641a": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_source_relation__campaign_id__modified_at.56da51b12d": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other__budget_association_status__budget_name__budget_status.f7a5fd8430": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_source_relation__keyword_id__modified_at.5b0ba5f522": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.e55a075940": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__language__bid_match_type__delivered_match_type__top_vs_other.97d894068e": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"], "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99": ["model.tiktok_ads.tiktok_ads__advertiser_report"], "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce": ["model.tiktok_ads.tiktok_ads__advertiser_report"], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_source_relation__advertiser_id__date_day.1797053b3d": ["model.tiktok_ads.tiktok_ads__advertiser_report"], "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed": ["model.tiktok_ads.tiktok_ads__ad_report"], "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707": ["model.tiktok_ads.tiktok_ads__ad_report"], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.c260f4392a": ["model.tiktok_ads.tiktok_ads__ad_report"], "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e": ["model.tiktok_ads.tiktok_ads__ad_group_report"], "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4": ["model.tiktok_ads.tiktok_ads__ad_group_report"], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_source_relation__ad_group_id__campaign_id__advertiser_id__date_day.e3850c1634": ["model.tiktok_ads.tiktok_ads__ad_group_report"], "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836": ["model.tiktok_ads.tiktok_ads__campaign_report"], "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8": ["model.tiktok_ads.tiktok_ads__campaign_report"], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.98200e9b0f": ["model.tiktok_ads.tiktok_ads__campaign_report"], "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff": ["model.tiktok_ads.tiktok_ads__url_report"], "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0": ["model.tiktok_ads.tiktok_ads__url_report"], "test.tiktok_ads.not_null_tiktok_ads__url_report_base_url.37afef2e1b": ["model.tiktok_ads.tiktok_ads__url_report"], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.98153764a3": ["model.tiktok_ads.tiktok_ads__url_report"], "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8": ["model.twitter_ads.twitter_ads__campaign_report"], "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0": ["model.twitter_ads.twitter_ads__campaign_report"], "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82": ["model.twitter_ads.twitter_ads__campaign_report"], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement__account_id.f449ef6d6e": ["model.twitter_ads.twitter_ads__campaign_report"], "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce": ["model.twitter_ads.twitter_ads__line_item_report"], "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211": ["model.twitter_ads.twitter_ads__line_item_report"], "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312": ["model.twitter_ads.twitter_ads__line_item_report"], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement__campaign_id__account_id.f8d7069cba": ["model.twitter_ads.twitter_ads__line_item_report"], "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846": ["model.twitter_ads.twitter_ads__account_report"], "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194": ["model.twitter_ads.twitter_ads__account_report"], "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908": ["model.twitter_ads.twitter_ads__account_report"], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_source_relation__date_day__account_id__placement.e6a884489c": ["model.twitter_ads.twitter_ads__account_report"], "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec": ["model.twitter_ads.twitter_ads__keyword_report"], "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword_id.91efa0a538": ["model.twitter_ads.twitter_ads__keyword_report"], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_source_relation__date_day__keyword_id__campaign_id.c51ddef475": ["model.twitter_ads.twitter_ads__keyword_report"], "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5": ["model.twitter_ads.twitter_ads__promoted_tweet_report"], "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e": ["model.twitter_ads.twitter_ads__promoted_tweet_report"], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f6814a1cc6": ["model.twitter_ads.twitter_ads__promoted_tweet_report"], "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b": ["model.twitter_ads.twitter_ads__url_report"], "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e": ["model.twitter_ads.twitter_ads__url_report"], "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143": ["model.twitter_ads.twitter_ads__url_report"], "test.twitter_ads.not_null_twitter_ads__url_report_base_url.dfd7ab549e": ["model.twitter_ads.twitter_ads__url_report"], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f44851c31f": ["model.twitter_ads.twitter_ads__url_report"], "test.reddit_ads.not_null_reddit_ads__account_report_date_day.7b43e6cb90": ["model.reddit_ads.reddit_ads__account_report"], "test.reddit_ads.not_null_reddit_ads__account_report_account_id.16f11188c5": ["model.reddit_ads.reddit_ads__account_report"], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__account_report_source_relation__date_day__account_id__attribution_type__currency__status__time_zone_id.7260e1923b": ["model.reddit_ads.reddit_ads__account_report"], "test.reddit_ads.not_null_reddit_ads__ad_group_report_date_day.6463e6f6f7": ["model.reddit_ads.reddit_ads__ad_group_report"], "test.reddit_ads.not_null_reddit_ads__ad_group_report_ad_group_id.057bd60604": ["model.reddit_ads.reddit_ads__ad_group_report"], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_source_relation__date_day__account_id__ad_group_id__campaign_id__currency.bd33f1f46d": ["model.reddit_ads.reddit_ads__ad_group_report"], "test.reddit_ads.not_null_reddit_ads__ad_report_date_day.608b21c69a": ["model.reddit_ads.reddit_ads__ad_report"], "test.reddit_ads.not_null_reddit_ads__ad_report_ad_id.1da054a14e": ["model.reddit_ads.reddit_ads__ad_report"], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_source_relation__date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency.8735416c38": ["model.reddit_ads.reddit_ads__ad_report"], "test.reddit_ads.not_null_reddit_ads__campaign_report_date_day.f79cca4131": ["model.reddit_ads.reddit_ads__campaign_report"], "test.reddit_ads.not_null_reddit_ads__campaign_report_campaign_id.f5491a0b49": ["model.reddit_ads.reddit_ads__campaign_report"], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_source_relation__date_day__account_id__campaign_id__currency.6e74c22669": ["model.reddit_ads.reddit_ads__campaign_report"], "test.reddit_ads.not_null_reddit_ads__url_report_date_day.4b0f6363da": ["model.reddit_ads.reddit_ads__url_report"], "test.reddit_ads.not_null_reddit_ads__url_report_ad_id.8ff83da2b0": ["model.reddit_ads.reddit_ads__url_report"], "test.reddit_ads.not_null_reddit_ads__url_report_base_url.2f585bebcb": ["model.reddit_ads.reddit_ads__url_report"], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__url_report_source_relation__date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency.a85ab9beee": ["model.reddit_ads.reddit_ads__url_report"], "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e": ["model.pinterest.pinterest_ads__url_report"], "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502": ["model.pinterest.pinterest_ads__url_report"], "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a": ["model.pinterest.pinterest_ads__url_report"], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.688d8bd291": ["model.pinterest.pinterest_ads__url_report"], "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7": ["model.pinterest.pinterest_ads__ad_group_report"], "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2": ["model.pinterest.pinterest_ads__ad_group_report"], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_source_relation__ad_group_id__advertiser_id__campaign_id__date_day.1fb5fb3f2f": ["model.pinterest.pinterest_ads__ad_group_report"], "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf": ["model.pinterest.pinterest_ads__campaign_report"], "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2": ["model.pinterest.pinterest_ads__campaign_report"], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.4da70e098b": ["model.pinterest.pinterest_ads__campaign_report"], "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca": ["model.pinterest.pinterest_ads__advertiser_report"], "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672": ["model.pinterest.pinterest_ads__advertiser_report"], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_source_relation__advertiser_id__date_day.f9cd6d6ce2": ["model.pinterest.pinterest_ads__advertiser_report"], "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba": ["model.pinterest.pinterest_ads__keyword_report"], "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198": ["model.pinterest.pinterest_ads__keyword_report"], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_source_relation__keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.a9ce89d1db": ["model.pinterest.pinterest_ads__keyword_report"], "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd": ["model.pinterest.pinterest_ads__pin_promotion_report"], "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561": ["model.pinterest.pinterest_ads__pin_promotion_report"], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.9d2f1ea810": ["model.pinterest.pinterest_ads__pin_promotion_report"], "test.reddit_ads_source.not_null_stg_reddit_ads__account_account_id.512f0b8078": ["model.reddit_ads_source.stg_reddit_ads__account"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_source_relation__account_id.49d95e2890": ["model.reddit_ads_source.stg_reddit_ads__account"], "test.reddit_ads_source.not_null_stg_reddit_ads__account_report_account_id.1f2a0195de": ["model.reddit_ads_source.stg_reddit_ads__account_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_source_relation__account_id__date_day.580653f488": ["model.reddit_ads_source.stg_reddit_ads__account_report"], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_ad_id.40188b63dd": ["model.reddit_ads_source.stg_reddit_ads__ad"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_source_relation__ad_id.fc4d1b788b": ["model.reddit_ads_source.stg_reddit_ads__ad"], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_report_ad_id.c4af84b857": ["model.reddit_ads_source.stg_reddit_ads__ad_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_source_relation__ad_id__date_day.395db62865": ["model.reddit_ads_source.stg_reddit_ads__ad_report"], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_ad_group_id.65795d8dc2": ["model.reddit_ads_source.stg_reddit_ads__ad_group"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_source_relation__ad_group_id.942cb72fcc": ["model.reddit_ads_source.stg_reddit_ads__ad_group"], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_report_ad_group_id.9836cd084d": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_source_relation__ad_group_id__date_day.4aa1f776b5": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report"], "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_campaign_id.f3f24e4682": ["model.reddit_ads_source.stg_reddit_ads__campaign"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_source_relation__campaign_id.066d3b93f4": ["model.reddit_ads_source.stg_reddit_ads__campaign"], "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_report_campaign_id.c717612b4f": ["model.reddit_ads_source.stg_reddit_ads__campaign_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_source_relation__campaign_id__date_day.5e87d9d722": ["model.reddit_ads_source.stg_reddit_ads__campaign_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_conversions_report_source_relation__account_id__date_day__event_name.bc323b3bbb": ["model.reddit_ads_source.stg_reddit_ads__account_conversions_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_conversions_report_source_relation__ad_group_id__date_day__event_name.acd1ea8c2b": ["model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_conversions_report_source_relation__ad_id__date_day__event_name.49a6eee2ad": ["model.reddit_ads_source.stg_reddit_ads__ad_conversions_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_conversions_report_source_relation__campaign_id__date_day__event_name.2ed971ff1b": ["model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report"], "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72": ["model.google_ads.google_ads__url_report"], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_source_relation__ad_id__ad_group_id__date_day.e11b928273": ["model.google_ads.google_ads__url_report"], "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422": ["model.google_ads.google_ads__account_report"], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_source_relation__account_id__date_day.8480aa9317": ["model.google_ads.google_ads__account_report"], "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c": ["model.google_ads.google_ads__ad_group_report"], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_source_relation__ad_group_id__date_day.41d73a32f3": ["model.google_ads.google_ads__ad_group_report"], "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad": ["model.google_ads.google_ads__ad_report"], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_report_source_relation__ad_id__ad_group_id__date_day.0e82f7e99a": ["model.google_ads.google_ads__ad_report"], "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e": ["model.google_ads.google_ads__campaign_report"], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__campaign_report_source_relation__campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.29077cbd5e": ["model.google_ads.google_ads__campaign_report"], "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055": ["model.google_ads.google_ads__keyword_report"], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_source_relation__ad_group_id__criterion_id__date_day.82605f3acd": ["model.google_ads.google_ads__keyword_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_source_relation__ad_group_id__last_updated_date.5873194717": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_source_relation__ad_group_id__date_day.180ec0225e": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_source_relation__ad_id__date_day.e170148d6c": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c": ["model.amazon_ads_source.stg_amazon_ads__campaign_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_source_relation__campaign_id__last_updated_date.f58b6293d6": ["model.amazon_ads_source.stg_amazon_ads__campaign_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_source_relation__campaign_id__date_day.f6bb472aa5": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e": ["model.amazon_ads_source.stg_amazon_ads__keyword_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_source_relation__keyword_id__last_updated_date.611a8411e0": ["model.amazon_ads_source.stg_amazon_ads__keyword_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_source_relation__portfolio_id__last_updated_date.e0bb6ee3e0": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_source_relation__ad_id__last_updated_date.90fb8d59e6": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b": ["model.amazon_ads_source.stg_amazon_ads__profile"], "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_source_relation__keyword_id__date_day.4190f2a661": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_source_relation__search_term__keyword_id__date_day.00ccbc3eda": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_source_relation__date_day__creative_id.7b7d839d38": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_source_relation__date_day__campaign_id.41aa0d6322": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"], "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474": ["model.linkedin_source.stg_linkedin_ads__creative_history"], "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2": ["model.linkedin_source.stg_linkedin_ads__campaign_history"], "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469": ["model.linkedin_source.stg_linkedin_ads__campaign_history"], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_source_relation__version_tag__campaign_id.65ed9cedae": ["model.linkedin_source.stg_linkedin_ads__campaign_history"], "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"], "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_source_relation__last_modified_at__campaign_group_id.4c9f328639": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"], "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0": ["model.linkedin_source.stg_linkedin_ads__account_history"], "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81": ["model.linkedin_source.stg_linkedin_ads__account_history"], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_source_relation__account_id__version_tag.c7a0383d8c": ["model.linkedin_source.stg_linkedin_ads__account_history"], "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66": ["model.amazon_ads.amazon_ads__account_report"], "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061": ["model.amazon_ads.amazon_ads__account_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_source_relation__date_day__profile_id.5ff488055c": ["model.amazon_ads.amazon_ads__account_report"], "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a": ["model.amazon_ads.amazon_ads__ad_group_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_source_relation__date_day__ad_group_id.9f5387d4e0": ["model.amazon_ads.amazon_ads__ad_group_report"], "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3": ["model.amazon_ads.amazon_ads__ad_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_source_relation__date_day__ad_id.5c0ccedb91": ["model.amazon_ads.amazon_ads__ad_report"], "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c": ["model.amazon_ads.amazon_ads__campaign_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_source_relation__date_day__campaign_id.0fcead4f41": ["model.amazon_ads.amazon_ads__campaign_report"], "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6": ["model.amazon_ads.amazon_ads__portfolio_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_source_relation__date_day__portfolio_id.b3bfe4fce4": ["model.amazon_ads.amazon_ads__portfolio_report"], "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a": ["model.amazon_ads.amazon_ads__keyword_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_source_relation__date_day__keyword_id.34f042afc1": ["model.amazon_ads.amazon_ads__keyword_report"], "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a": ["model.amazon_ads.amazon_ads__search_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_source_relation__date_day__search_term__keyword_id.21a027f105": ["model.amazon_ads.amazon_ads__search_report"], "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be": ["model.facebook_ads.facebook_ads__url_report"], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.ef8d3469d4": ["model.facebook_ads.facebook_ads__url_report"], "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238": ["model.facebook_ads.facebook_ads__ad_report"], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.c866a344f6": ["model.facebook_ads.facebook_ads__ad_report"], "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4": ["model.facebook_ads.facebook_ads__ad_set_report"], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_source_relation__date_day__account_id__campaign_id__ad_set_id.8707f6bd30": ["model.facebook_ads.facebook_ads__ad_set_report"], "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21": ["model.facebook_ads.facebook_ads__campaign_report"], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_source_relation__date_day__account_id__campaign_id.f97e1afff3": ["model.facebook_ads.facebook_ads__campaign_report"], "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024": ["model.facebook_ads.facebook_ads__account_report"], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_source_relation__date_day__account_id.bf8a017de1": ["model.facebook_ads.facebook_ads__account_report"], "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3": ["model.facebook_ads.facebook_ads__url_tags"], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags_source_relation___fivetran_id__key__type.c65de59dec": ["model.facebook_ads.facebook_ads__url_tags"], "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260": ["model.snapchat_ads.snapchat_ads__account_report"], "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b": ["model.snapchat_ads.snapchat_ads__account_report"], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_source_relation__ad_account_id__date_day.654a687cf1": ["model.snapchat_ads.snapchat_ads__account_report"], "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe": ["model.snapchat_ads.snapchat_ads__ad_report"], "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744": ["model.snapchat_ads.snapchat_ads__ad_report"], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_source_relation__ad_id__date_day.9116e93fba": ["model.snapchat_ads.snapchat_ads__ad_report"], "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b": ["model.snapchat_ads.snapchat_ads__campaign_report"], "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac": ["model.snapchat_ads.snapchat_ads__campaign_report"], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_source_relation__campaign_id__date_day.557487ad6a": ["model.snapchat_ads.snapchat_ads__campaign_report"], "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639": ["model.snapchat_ads.snapchat_ads__ad_squad_report"], "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe": ["model.snapchat_ads.snapchat_ads__ad_squad_report"], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_source_relation__ad_squad_id__date_day.b1a26a5bb4": ["model.snapchat_ads.snapchat_ads__ad_squad_report"], "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6": ["model.snapchat_ads.snapchat_ads__url_report"], "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78": ["model.snapchat_ads.snapchat_ads__url_report"], "test.snapchat_ads.not_null_snapchat_ads__url_report_base_url.15676dc1de": ["model.snapchat_ads.snapchat_ads__url_report"], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_source_relation__ad_id__date_day.86e3504c07": ["model.snapchat_ads.snapchat_ads__url_report"], "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f": ["model.google_ads_source.stg_google_ads__account_history"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_source_relation__account_id__updated_at.0a4d931c44": ["model.google_ads_source.stg_google_ads__account_history"], "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be": ["model.google_ads_source.stg_google_ads__ad_group_history"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_source_relation__ad_group_id__updated_at.94eb3f93a4": ["model.google_ads_source.stg_google_ads__ad_group_history"], "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248": ["model.google_ads_source.stg_google_ads__ad_history"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_source_relation__ad_id__ad_group_id__updated_at.edca86664e": ["model.google_ads_source.stg_google_ads__ad_history"], "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4": ["model.google_ads_source.stg_google_ads__ad_stats"], "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8": ["model.google_ads_source.stg_google_ads__ad_stats"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_source_relation__ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.222a7d9413": ["model.google_ads_source.stg_google_ads__ad_stats"], "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75": ["model.google_ads_source.stg_google_ads__campaign_history"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_source_relation__campaign_id__updated_at.008fea6b77": ["model.google_ads_source.stg_google_ads__campaign_history"], "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_source_relation__criterion_id__ad_group_id__updated_at.8d37dd2fa0": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history"], "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786": ["model.google_ads_source.stg_google_ads__ad_group_stats"], "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077": ["model.google_ads_source.stg_google_ads__ad_group_stats"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_source_relation__ad_group_id__device__ad_network_type__date_day.0755df524f": ["model.google_ads_source.stg_google_ads__ad_group_stats"], "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b": ["model.google_ads_source.stg_google_ads__campaign_stats"], "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f": ["model.google_ads_source.stg_google_ads__campaign_stats"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_source_relation__campaign_id__ad_network_type__device__date_day.fea3ecfe6f": ["model.google_ads_source.stg_google_ads__campaign_stats"], "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d": ["model.google_ads_source.stg_google_ads__keyword_stats"], "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0": ["model.google_ads_source.stg_google_ads__keyword_stats"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_source_relation__keyword_id__date_day.4ecf84a32f": ["model.google_ads_source.stg_google_ads__keyword_stats"], "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b": ["model.google_ads_source.stg_google_ads__account_stats"], "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5": ["model.google_ads_source.stg_google_ads__account_stats"], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_source_relation__account_id__device__ad_network_type__date_day.7d4d5e9ce2": ["model.google_ads_source.stg_google_ads__account_stats"], "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5": ["model.apple_search_ads.apple_search_ads__ad_group_report"], "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c": ["model.apple_search_ads.apple_search_ads__ad_group_report"], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_source_relation__organization_id__campaign_id__ad_group_id__date_day.3c4191e648": ["model.apple_search_ads.apple_search_ads__ad_group_report"], "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c": ["model.apple_search_ads.apple_search_ads__ad_report"], "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17": ["model.apple_search_ads.apple_search_ads__ad_report"], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_source_relation__organization_id__campaign_id__ad_group_id__ad_id__date_day.6d5d406b55": ["model.apple_search_ads.apple_search_ads__ad_report"], "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146": ["model.apple_search_ads.apple_search_ads__campaign_report"], "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a": ["model.apple_search_ads.apple_search_ads__campaign_report"], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_source_relation__organization_id__campaign_id__date_day.0fdb29354b": ["model.apple_search_ads.apple_search_ads__campaign_report"], "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db": ["model.apple_search_ads.apple_search_ads__keyword_report"], "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82": ["model.apple_search_ads.apple_search_ads__keyword_report"], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_source_relation__organization_id__campaign_id__ad_group_id__keyword_id__date_day.974556d271": ["model.apple_search_ads.apple_search_ads__keyword_report"], "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8": ["model.apple_search_ads.apple_search_ads__organization_report"], "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523": ["model.apple_search_ads.apple_search_ads__organization_report"], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_source_relation__organization_id__date_day.8a9d834203": ["model.apple_search_ads.apple_search_ads__organization_report"], "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c": ["model.apple_search_ads.apple_search_ads__search_term_report"], "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7": ["model.apple_search_ads.apple_search_ads__search_term_report"], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_source_relation__search_term_text__match_type__date_day__keyword_id__ad_group_id__campaign_id__organization_id.82f7464f67": ["model.apple_search_ads.apple_search_ads__search_term_report"], "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022": ["model.ad_reporting.ad_reporting__account_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_source_relation__platform__date_day__account_id.4cb64b5631": ["model.ad_reporting.ad_reporting__account_report"], "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842": ["model.ad_reporting.ad_reporting__ad_group_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id.629300a679": ["model.ad_reporting.ad_reporting__ad_group_report"], "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152": ["model.ad_reporting.ad_reporting__ad_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_source_relation__platform__date_day__ad_id__ad_group_id__campaign_id__account_id.2e26485f58": ["model.ad_reporting.ad_reporting__ad_report"], "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b": ["model.ad_reporting.ad_reporting__campaign_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_source_relation__platform__date_day__campaign_id__account_id.0cad44418b": ["model.ad_reporting.ad_reporting__campaign_report"], "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334": ["model.ad_reporting.ad_reporting__keyword_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_source_relation__platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id.62e073f236": ["model.ad_reporting.ad_reporting__keyword_report"], "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb": ["model.ad_reporting.ad_reporting__search_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__search_report_source_relation__platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.ee233ddb9e": ["model.ad_reporting.ad_reporting__search_report"], "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6": ["model.ad_reporting.ad_reporting__url_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__url_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id__base_url__url_host__url_path__utm_campaign__utm_content__utm_medium__utm_source__utm_term.2e59004ca0": ["model.ad_reporting.ad_reporting__url_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_modified_at.e5d65fa28f": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_ad_group_id.dc128eecb7": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_source_relation__ad_group_id__modified_at.a6db663569": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_ad_group_id.a115f9cfc1": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_date_day.4dfd46a43b": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_source_relation__ad_group_id__date_day.dc4ccb902d": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_source_relation__ad_id__modified_at.45dfca7ca5": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_group_id.a397755e9f": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_source_relation__ad_id__date_day__ad_group_id.f9bc5ff292": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_source_relation__campaign_id__modified_at.2e9f11582c": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_source_relation__campaign_id__date_day.87b6206f82": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_source_relation__keyword_id__modified_at.635c0ce086": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_source_relation__keyword_id__date_day.855ae5524a": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb": ["model.apple_search_ads_source.stg_apple_search_ads__organization"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_source_relation__organization_id.b5c488cb77": ["model.apple_search_ads_source.stg_apple_search_ads__organization"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report__fivetran_id.aa430d1dad": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report"], "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report_date_day.fd93df3302": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report"], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report_source_relation___fivetran_id__date_day.ef07562d98": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report"], "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be": ["model.pinterest_source.stg_pinterest_ads__ad_group_history"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_source_relation__ad_group_id___fivetran_synced.ef2b22b2ca": ["model.pinterest_source.stg_pinterest_ads__ad_group_history"], "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341": ["model.pinterest_source.stg_pinterest_ads__campaign_history"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_source_relation__campaign_id___fivetran_synced.84df0386bc": ["model.pinterest_source.stg_pinterest_ads__campaign_history"], "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history_source_relation___fivetran_synced__pin_promotion_id.8064d48c11": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history"], "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"], "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_source_relation__date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.8b358e3946": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"], "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"], "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_source_relation__date_day__ad_group_id__campaign_id__advertiser_id.83246fd43c": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"], "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb": ["model.pinterest_source.stg_pinterest_ads__advertiser_history"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_source_relation__updated_at__advertiser_id.8308a26e9f": ["model.pinterest_source.stg_pinterest_ads__advertiser_history"], "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"], "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_source_relation__date_day__advertiser_id.cadbd5fae2": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"], "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238": ["model.pinterest_source.stg_pinterest_ads__campaign_report"], "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc": ["model.pinterest_source.stg_pinterest_ads__campaign_report"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_source_relation__date_day__campaign_id__advertiser_id.6dd9b7bce6": ["model.pinterest_source.stg_pinterest_ads__campaign_report"], "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a": ["model.pinterest_source.stg_pinterest_ads__keyword_history"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_source_relation__keyword_id__ad_group_id___fivetran_synced.2cd3b85ca9": ["model.pinterest_source.stg_pinterest_ads__keyword_history"], "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300": ["model.pinterest_source.stg_pinterest_ads__keyword_report"], "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48": ["model.pinterest_source.stg_pinterest_ads__keyword_report"], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_source_relation__date_day__keyword_id__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.f43dda0239": ["model.pinterest_source.stg_pinterest_ads__keyword_report"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__advertiser_source_relation__advertiser_id.4b39eb0db8": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_source_relation__ad_group_id__updated_at.94fc2240d4": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history"], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_source_relation__ad_id__updated_at.64ebc5aea6": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history"], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_source_relation__campaign_id__updated_at.52babc6036": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_source_relation__ad_id__stat_time_hour.1f7d670427": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.8da17119f1": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.ca4b495127": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_source_relation__ad_group_id__stat_time_hour.f0681f097c": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"], "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_source_relation__campaign_id__stat_time_hour.91b84f3ede": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"], "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f": ["model.facebook_ads_source.stg_facebook_ads__account_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f": ["model.facebook_ads_source.stg_facebook_ads__account_history"], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_source_relation__account_id___fivetran_synced.f81aca1247": ["model.facebook_ads_source.stg_facebook_ads__account_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064": ["model.facebook_ads_source.stg_facebook_ads__ad_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4": ["model.facebook_ads_source.stg_facebook_ads__ad_history"], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_source_relation__ad_id__updated_at.664b870e6c": ["model.facebook_ads_source.stg_facebook_ads__ad_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_source_relation__ad_set_id__updated_at.ff1d43114a": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_source_relation__campaign_id__updated_at.82c4f9a2a1": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f": ["model.facebook_ads_source.stg_facebook_ads__creative_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261": ["model.facebook_ads_source.stg_facebook_ads__creative_history"], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_source_relation___fivetran_id.2466dae947": ["model.facebook_ads_source.stg_facebook_ads__creative_history"], "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"], "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_source_relation__date_day__ad_id__account_id.9c647961f0": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_actions_source_relation__date_day__ad_id__action_type.3f1bea13d9": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_actions"], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_action_values_source_relation__date_day__ad_id__action_type.3c32585825": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_source_relation__ad_account_id___fivetran_synced.b8a4da92d1": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_source_relation__ad_id___fivetran_synced.630e3ffee4": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_source_relation__ad_id__date_hour.f2d4b9252f": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_source_relation__ad_squad_id___fivetran_synced.5d97ae5ee3": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.ab16aa72c9": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_source_relation__ad_squad_id__date_hour.25afb4f9ae": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_source_relation__campaign_id___fivetran_synced.e003c1a660": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_source_relation__campaign_id__date_hour.3998b6bf9d": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_source_relation__creative_id___fivetran_synced.1d4efdd418": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"], "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_source_relation__creative_id__param_key__updated_at.6ed98c175a": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"], "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e": ["model.microsoft_ads.microsoft_ads__account_report"], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code.42178a7c9b": ["model.microsoft_ads.microsoft_ads__account_report"], "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9": ["model.microsoft_ads.microsoft_ads__ad_group_report"], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.da08ee00a5": ["model.microsoft_ads.microsoft_ads__ad_group_report"], "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125": ["model.microsoft_ads.microsoft_ads__ad_report"], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.e13fd60438": ["model.microsoft_ads.microsoft_ads__ad_report"], "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8": ["model.microsoft_ads.microsoft_ads__campaign_report"], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code.00fc594532": ["model.microsoft_ads.microsoft_ads__campaign_report"], "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b": ["model.microsoft_ads.microsoft_ads__keyword_report"], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.e4af52a80b": ["model.microsoft_ads.microsoft_ads__keyword_report"], "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d": ["model.microsoft_ads.microsoft_ads__search_report"], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__match_type.6753357660": ["model.microsoft_ads.microsoft_ads__search_report"], "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a": ["model.microsoft_ads.microsoft_ads__url_report"], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.0ea4732dff": ["model.microsoft_ads.microsoft_ads__url_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2": ["model.twitter_ads_source.stg_twitter_ads__account_history"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_source_relation__account_id__updated_timestamp.3492933c38": ["model.twitter_ads_source.stg_twitter_ads__account_history"], "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce": ["model.twitter_ads_source.stg_twitter_ads__campaign_history"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_source_relation__campaign_id__updated_timestamp.9b0c16487d": ["model.twitter_ads_source.stg_twitter_ads__campaign_history"], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809": ["model.twitter_ads_source.stg_twitter_ads__line_item_history"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_source_relation__line_item_id__updated_timestamp.646fa5270f": ["model.twitter_ads_source.stg_twitter_ads__line_item_history"], "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_source_relation__promoted_tweet_id__updated_timestamp.7016099e0a": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"], "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement.9d96bf07d3": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"], "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_source_relation__index__tweet_id.ce1a2b4a87": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"], "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement.9d5717ee54": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement.6c8686e61c": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.e5f015e9ec": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_source_relation__date_day__keyword_id.579bdc1f1c": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd": ["model.twitter_ads_source.stg_twitter_ads__tweet"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_source_relation__tweet_id.70de7f05f5": ["model.twitter_ads_source.stg_twitter_ads__tweet"], "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842": ["model.linkedin.linkedin_ads__account_report"], "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53": ["model.linkedin.linkedin_ads__account_report"], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_source_relation__date_day__account_id.da7ea6faeb": ["model.linkedin.linkedin_ads__account_report"], "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1": ["model.linkedin.linkedin_ads__campaign_report"], "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15": ["model.linkedin.linkedin_ads__campaign_report"], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_source_relation__date_day__campaign_id__account_id__campaign_group_id.89a0d4ba0b": ["model.linkedin.linkedin_ads__campaign_report"], "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b": ["model.linkedin.linkedin_ads__campaign_group_report"], "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf": ["model.linkedin.linkedin_ads__campaign_group_report"], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_source_relation__date_day__campaign_group_id__account_id.36e7743abc": ["model.linkedin.linkedin_ads__campaign_group_report"], "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020": ["model.linkedin.linkedin_ads__creative_report"], "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889": ["model.linkedin.linkedin_ads__creative_report"], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.f9e5f8f610": ["model.linkedin.linkedin_ads__creative_report"], "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315": ["model.linkedin.linkedin_ads__url_report"], "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2": ["model.linkedin.linkedin_ads__url_report"], "test.linkedin.not_null_linkedin_ads__url_report_click_uri.81534087cb": ["model.linkedin.linkedin_ads__url_report"], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.0ff865de89": ["model.linkedin.linkedin_ads__url_report"], "source.microsoft_ads_source.microsoft_ads.account_history": [], "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report": [], "source.microsoft_ads_source.microsoft_ads.ad_group_history": [], "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": [], "source.microsoft_ads_source.microsoft_ads.ad_history": [], "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report": [], "source.microsoft_ads_source.microsoft_ads.campaign_history": [], "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": [], "source.microsoft_ads_source.microsoft_ads.keyword_history": [], "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": [], "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": [], "source.reddit_ads_source.reddit_ads.account": [], "source.reddit_ads_source.reddit_ads.account_report": [], "source.reddit_ads_source.reddit_ads.ad": [], "source.reddit_ads_source.reddit_ads.ad_report": [], "source.reddit_ads_source.reddit_ads.ad_group": [], "source.reddit_ads_source.reddit_ads.ad_group_report": [], "source.reddit_ads_source.reddit_ads.campaign": [], "source.reddit_ads_source.reddit_ads.campaign_report": [], "source.reddit_ads_source.reddit_ads.account_conversions_report": [], "source.reddit_ads_source.reddit_ads.ad_group_conversions_report": [], "source.reddit_ads_source.reddit_ads.ad_conversions_report": [], "source.reddit_ads_source.reddit_ads.campaign_conversions_report": [], "source.amazon_ads_source.amazon_ads.ad_group_history": [], "source.amazon_ads_source.amazon_ads.ad_group_level_report": [], "source.amazon_ads_source.amazon_ads.advertised_product_report": [], "source.amazon_ads_source.amazon_ads.campaign_history": [], "source.amazon_ads_source.amazon_ads.campaign_level_report": [], "source.amazon_ads_source.amazon_ads.keyword_history": [], "source.amazon_ads_source.amazon_ads.portfolio_history": [], "source.amazon_ads_source.amazon_ads.product_ad_history": [], "source.amazon_ads_source.amazon_ads.profile": [], "source.amazon_ads_source.amazon_ads.targeting_keyword_report": [], "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report": [], "source.linkedin_source.linkedin_ads.ad_analytics_by_creative": [], "source.linkedin_source.linkedin_ads.creative_history": [], "source.linkedin_source.linkedin_ads.campaign_history": [], "source.linkedin_source.linkedin_ads.campaign_group_history": [], "source.linkedin_source.linkedin_ads.account_history": [], "source.linkedin_source.linkedin_ads.ad_analytics_by_campaign": [], "source.google_ads_source.google_ads.ad_stats": [], "source.google_ads_source.google_ads.ad_history": [], "source.google_ads_source.google_ads.ad_group_history": [], "source.google_ads_source.google_ads.campaign_history": [], "source.google_ads_source.google_ads.account_history": [], "source.google_ads_source.google_ads.ad_group_criterion_history": [], "source.google_ads_source.google_ads.ad_group_stats": [], "source.google_ads_source.google_ads.campaign_stats": [], "source.google_ads_source.google_ads.keyword_stats": [], "source.google_ads_source.google_ads.account_stats": [], "source.apple_search_ads_source.apple_search_ads.ad_group_history": [], "source.apple_search_ads_source.apple_search_ads.ad_group_report": [], "source.apple_search_ads_source.apple_search_ads.ad_history": [], "source.apple_search_ads_source.apple_search_ads.ad_level_report": [], "source.apple_search_ads_source.apple_search_ads.campaign_history": [], "source.apple_search_ads_source.apple_search_ads.campaign_report": [], "source.apple_search_ads_source.apple_search_ads.keyword_history": [], "source.apple_search_ads_source.apple_search_ads.keyword_report": [], "source.apple_search_ads_source.apple_search_ads.organization": [], "source.apple_search_ads_source.apple_search_ads.search_term_report": [], "source.pinterest_source.pinterest_ads.pin_promotion_report": [], "source.pinterest_source.pinterest_ads.pin_promotion_history": [], "source.pinterest_source.pinterest_ads.campaign_history": [], "source.pinterest_source.pinterest_ads.ad_group_history": [], "source.pinterest_source.pinterest_ads.ad_group_report": [], "source.pinterest_source.pinterest_ads.advertiser_history": [], "source.pinterest_source.pinterest_ads.advertiser_report": [], "source.pinterest_source.pinterest_ads.campaign_report": [], "source.pinterest_source.pinterest_ads.keyword_history": [], "source.pinterest_source.pinterest_ads.keyword_report": [], "source.tiktok_ads_source.tiktok_ads.advertiser": [], "source.tiktok_ads_source.tiktok_ads.campaign_history": [], "source.tiktok_ads_source.tiktok_ads.adgroup_history": [], "source.tiktok_ads_source.tiktok_ads.ad_history": [], "source.tiktok_ads_source.tiktok_ads.ad_report_hourly": [], "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly": [], "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": [], "source.facebook_ads_source.facebook_ads.account_history": [], "source.facebook_ads_source.facebook_ads.ad_history": [], "source.facebook_ads_source.facebook_ads.ad_set_history": [], "source.facebook_ads_source.facebook_ads.basic_ad": [], "source.facebook_ads_source.facebook_ads.basic_ad_actions": [], "source.facebook_ads_source.facebook_ads.basic_ad_action_values": [], "source.facebook_ads_source.facebook_ads.campaign_history": [], "source.facebook_ads_source.facebook_ads.creative_history": [], "source.snapchat_ads_source.snapchat_ads.ad_account_history": [], "source.snapchat_ads_source.snapchat_ads.ad_history": [], "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": [], "source.snapchat_ads_source.snapchat_ads.ad_squad_history": [], "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": [], "source.snapchat_ads_source.snapchat_ads.campaign_history": [], "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": [], "source.snapchat_ads_source.snapchat_ads.creative_history": [], "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": [], "source.twitter_ads_source.twitter_ads.account_history": [], "source.twitter_ads_source.twitter_ads.campaign_history": [], "source.twitter_ads_source.twitter_ads.line_item_history": [], "source.twitter_ads_source.twitter_ads.promoted_tweet_history": [], "source.twitter_ads_source.twitter_ads.tweet_url": [], "source.twitter_ads_source.twitter_ads.promoted_tweet_report": [], "source.twitter_ads_source.twitter_ads.tweet": [], "source.twitter_ads_source.twitter_ads.campaign_report": [], "source.twitter_ads_source.twitter_ads.line_item_report": [], "source.twitter_ads_source.twitter_ads.line_item_keywords_report": [], "metric.ad_reporting.active_ads": ["semantic_model.ad_reporting.ad_report"], "metric.ad_reporting.avg_spend_nonzero": ["semantic_model.ad_reporting.ad_report"], "metric.ad_reporting.avg_spend": ["semantic_model.ad_reporting.ad_report"], "metric.ad_reporting.clicks": ["semantic_model.ad_reporting.ad_report"], "metric.ad_reporting.impressions": ["semantic_model.ad_reporting.ad_report"], "metric.ad_reporting.spend": ["semantic_model.ad_reporting.ad_report"], "metric.ad_reporting.clickthrough_rate": ["metric.ad_reporting.clicks", "metric.ad_reporting.impressions"], "metric.ad_reporting.cost_per_click": ["metric.ad_reporting.clicks", "metric.ad_reporting.spend"], "metric.ad_reporting.bounce_rate": ["metric.ad_reporting.clicks", "metric.ad_reporting.impressions"], "semantic_model.ad_reporting.ad_report": ["model.ad_reporting.ad_reporting__ad_report"]}, "child_map": {"seed.ad_reporting_integration_tests.twitter_line_item_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data": [], "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": [], "seed.ad_reporting_integration_tests.pinterest_keyword_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_account_report_data": [], "seed.ad_reporting_integration_tests.twitter_line_item_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_conversions": [], "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data": [], "seed.ad_reporting_integration_tests.pinterest_ad_group_report_data": [], "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_campaign_conversions": [], "seed.ad_reporting_integration_tests.twitter_account_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_campaign_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data": [], "seed.ad_reporting_integration_tests.twitter_campaign_history_data": [], "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_action_values_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data": [], "seed.ad_reporting_integration_tests.pinterest_advertiser_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data": [], "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.tiktok_ad_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data": [], "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data": [], "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data": [], "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_group_conversions": [], "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data": [], "seed.ad_reporting_integration_tests.apple_search_organization_data": [], "seed.ad_reporting_integration_tests.tiktok_campaign_history_data": [], "seed.ad_reporting_integration_tests.tiktok_advertiser_data": [], "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_stats_data": [], "seed.ad_reporting_integration_tests.twitter_campaign_report_data": [], "seed.ad_reporting_integration_tests.google_ads_account_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_profile_data": [], "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.pinterest_campaign_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data": [], "seed.ad_reporting_integration_tests.twitter_tweet_url_data": [], "seed.ad_reporting_integration_tests.apple_search_keyword_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_group_data": [], "seed.ad_reporting_integration_tests.pinterest_pin_promotion_history_data": [], "seed.ad_reporting_integration_tests.pinterest_campaign_history_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.google_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_account_history_data": [], "seed.ad_reporting_integration_tests.apple_search_campaign_report_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.pinterest_ad_group_history_data": [], "seed.ad_reporting_integration_tests.snapchat_campaign_history_data": [], "seed.ad_reporting_integration_tests.pinterest_keyword_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data": [], "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.apple_search_search_term_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_account_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_group_report_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data": [], "seed.ad_reporting_integration_tests.twitter_account_history_data": [], "seed.ad_reporting_integration_tests.snapchat_creative_history_data": [], "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data": [], "seed.ad_reporting_integration_tests.apple_search_keyword_report_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.twitter_tweet_data": [], "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_actions_data": [], "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data": [], "seed.ad_reporting_integration_tests.apple_search_ad_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_campaign_report_data": [], "seed.ad_reporting_integration_tests.google_ads_account_stats_data": [], "seed.ad_reporting_integration_tests.pinterest_advertiser_history_data": [], "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data": [], "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.reddit_ads_ad_report_data": [], "seed.ad_reporting_integration_tests.pinterest_pin_promotion_report_data": [], "seed.ad_reporting_integration_tests.reddit_ads_account_conversions": [], "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.apple_search_ad_history_data": [], "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data": [], "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report": ["model.microsoft_ads.microsoft_ads__account_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.38a7aa3e12", "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79"], "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report": ["model.microsoft_ads.microsoft_ads__search_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__language__bid_match_type__delivered_match_type__top_vs_other.97d894068e", "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc"], "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report": ["model.microsoft_ads.microsoft_ads__keyword_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.e55a075940", "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047"], "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report": ["model.microsoft_ads.microsoft_ads__campaign_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other__budget_association_status__budget_name__budget_status.f7a5fd8430", "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84"], "model.microsoft_ads_source.stg_microsoft_ads__keyword_history": ["model.microsoft_ads.microsoft_ads__keyword_report", "model.microsoft_ads.microsoft_ads__search_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_source_relation__keyword_id__modified_at.5b0ba5f522", "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209"], "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report": ["model.microsoft_ads.microsoft_ads__ad_group_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.3825c46fa1", "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.3e03e6eff7"], "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history": ["model.microsoft_ads.microsoft_ads__ad_group_report", "model.microsoft_ads.microsoft_ads__ad_report", "model.microsoft_ads.microsoft_ads__keyword_report", "model.microsoft_ads.microsoft_ads__search_report", "model.microsoft_ads.microsoft_ads__url_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_source_relation__ad_group_id__modified_at.f2ed2b82b0", "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7"], "model.microsoft_ads_source.stg_microsoft_ads__ad_history": ["model.microsoft_ads.microsoft_ads__ad_report", "model.microsoft_ads.microsoft_ads__keyword_report", "model.microsoft_ads.microsoft_ads__search_report", "model.microsoft_ads.microsoft_ads__url_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_source_relation__ad_id__modified_at.2eb6255160", "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574"], "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report": ["model.microsoft_ads.microsoft_ads__ad_report", "model.microsoft_ads.microsoft_ads__url_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.b6f971641a", "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8"], "model.microsoft_ads_source.stg_microsoft_ads__account_history": ["model.microsoft_ads.microsoft_ads__account_report", "model.microsoft_ads.microsoft_ads__ad_group_report", "model.microsoft_ads.microsoft_ads__ad_report", "model.microsoft_ads.microsoft_ads__campaign_report", "model.microsoft_ads.microsoft_ads__keyword_report", "model.microsoft_ads.microsoft_ads__search_report", "model.microsoft_ads.microsoft_ads__url_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_source_relation__account_id__modified_at.c32440cfcf", "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e"], "model.microsoft_ads_source.stg_microsoft_ads__campaign_history": ["model.microsoft_ads.microsoft_ads__ad_group_report", "model.microsoft_ads.microsoft_ads__ad_report", "model.microsoft_ads.microsoft_ads__campaign_report", "model.microsoft_ads.microsoft_ads__keyword_report", "model.microsoft_ads.microsoft_ads__search_report", "model.microsoft_ads.microsoft_ads__url_report", "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_source_relation__campaign_id__modified_at.56da51b12d", "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122"], "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"], "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history"], "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__account_history"], "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"], "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history"], "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history"], "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"], "model.tiktok_ads.tiktok_ads__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_source_relation__ad_group_id__campaign_id__advertiser_id__date_day.e3850c1634", "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4", "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e"], "model.tiktok_ads.tiktok_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.98153764a3", "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0", "test.tiktok_ads.not_null_tiktok_ads__url_report_base_url.37afef2e1b", "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff"], "model.tiktok_ads.tiktok_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.98200e9b0f", "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8", "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836"], "model.tiktok_ads.tiktok_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.c260f4392a", "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707", "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed"], "model.tiktok_ads.tiktok_ads__advertiser_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_source_relation__advertiser_id__date_day.1797053b3d", "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce", "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99"], "model.twitter_ads.twitter_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_source_relation__date_day__account_id__placement.e6a884489c", "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908", "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846", "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194"], "model.twitter_ads.twitter_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement__account_id.f449ef6d6e", "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8", "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0", "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82"], "model.twitter_ads.twitter_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f44851c31f", "test.twitter_ads.not_null_twitter_ads__url_report_base_url.dfd7ab549e", "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b", "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e", "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143"], "model.twitter_ads.twitter_ads__promoted_tweet_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f6814a1cc6", "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5", "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e"], "model.twitter_ads.twitter_ads__line_item_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement__campaign_id__account_id.f8d7069cba", "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce", "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211", "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312"], "model.twitter_ads.twitter_ads__keyword_report": ["model.ad_reporting.int_ad_reporting__keyword_report", "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_source_relation__date_day__keyword_id__campaign_id.c51ddef475", "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec", "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword_id.91efa0a538"], "model.reddit_ads.reddit_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_source_relation__date_day__account_id__campaign_id__currency.6e74c22669", "test.reddit_ads.not_null_reddit_ads__campaign_report_campaign_id.f5491a0b49", "test.reddit_ads.not_null_reddit_ads__campaign_report_date_day.f79cca4131"], "model.reddit_ads.reddit_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__url_report_source_relation__date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency.a85ab9beee", "test.reddit_ads.not_null_reddit_ads__url_report_ad_id.8ff83da2b0", "test.reddit_ads.not_null_reddit_ads__url_report_base_url.2f585bebcb", "test.reddit_ads.not_null_reddit_ads__url_report_date_day.4b0f6363da"], "model.reddit_ads.reddit_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__account_report_source_relation__date_day__account_id__attribution_type__currency__status__time_zone_id.7260e1923b", "test.reddit_ads.not_null_reddit_ads__account_report_account_id.16f11188c5", "test.reddit_ads.not_null_reddit_ads__account_report_date_day.7b43e6cb90"], "model.reddit_ads.reddit_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_source_relation__date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency.8735416c38", "test.reddit_ads.not_null_reddit_ads__ad_report_ad_id.1da054a14e", "test.reddit_ads.not_null_reddit_ads__ad_report_date_day.608b21c69a"], "model.reddit_ads.reddit_ads__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_source_relation__date_day__account_id__ad_group_id__campaign_id__currency.bd33f1f46d", "test.reddit_ads.not_null_reddit_ads__ad_group_report_ad_group_id.057bd60604", "test.reddit_ads.not_null_reddit_ads__ad_group_report_date_day.6463e6f6f7"], "model.pinterest.pinterest_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.688d8bd291", "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e", "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502", "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a"], "model.pinterest.pinterest_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.4da70e098b", "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2", "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf"], "model.pinterest.pinterest_ads__keyword_report": ["model.ad_reporting.int_ad_reporting__keyword_report", "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_source_relation__keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.a9ce89d1db", "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba", "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198"], "model.pinterest.pinterest_ads__advertiser_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_source_relation__advertiser_id__date_day.f9cd6d6ce2", "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672", "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca"], "model.pinterest.pinterest_ads__pin_promotion_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.9d2f1ea810", "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd", "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561"], "model.pinterest.pinterest_ads__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_source_relation__ad_group_id__advertiser_id__campaign_id__date_day.1fb5fb3f2f", "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2", "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7"], "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report": ["model.reddit_ads.reddit_ads__ad_report", "model.reddit_ads.reddit_ads__url_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_conversions_report_source_relation__ad_id__date_day__event_name.49a6eee2ad"], "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report": ["model.reddit_ads.reddit_ads__ad_group_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_conversions_report_source_relation__ad_group_id__date_day__event_name.acd1ea8c2b"], "model.reddit_ads_source.stg_reddit_ads__account_conversions_report": ["model.reddit_ads.reddit_ads__account_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_conversions_report_source_relation__account_id__date_day__event_name.bc323b3bbb"], "model.reddit_ads_source.stg_reddit_ads__ad_group": ["model.reddit_ads.reddit_ads__ad_group_report", "model.reddit_ads.reddit_ads__ad_report", "model.reddit_ads.reddit_ads__url_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_source_relation__ad_group_id.942cb72fcc", "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_ad_group_id.65795d8dc2"], "model.reddit_ads_source.stg_reddit_ads__ad": ["model.reddit_ads.reddit_ads__ad_report", "model.reddit_ads.reddit_ads__url_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_source_relation__ad_id.fc4d1b788b", "test.reddit_ads_source.not_null_stg_reddit_ads__ad_ad_id.40188b63dd"], "model.reddit_ads_source.stg_reddit_ads__campaign_report": ["model.reddit_ads.reddit_ads__campaign_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_source_relation__campaign_id__date_day.5e87d9d722", "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_report_campaign_id.c717612b4f"], "model.reddit_ads_source.stg_reddit_ads__account": ["model.reddit_ads.reddit_ads__account_report", "model.reddit_ads.reddit_ads__ad_group_report", "model.reddit_ads.reddit_ads__ad_report", "model.reddit_ads.reddit_ads__campaign_report", "model.reddit_ads.reddit_ads__url_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_source_relation__account_id.49d95e2890", "test.reddit_ads_source.not_null_stg_reddit_ads__account_account_id.512f0b8078"], "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report": ["model.reddit_ads.reddit_ads__campaign_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_conversions_report_source_relation__campaign_id__date_day__event_name.2ed971ff1b"], "model.reddit_ads_source.stg_reddit_ads__account_report": ["model.reddit_ads.reddit_ads__account_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_source_relation__account_id__date_day.580653f488", "test.reddit_ads_source.not_null_stg_reddit_ads__account_report_account_id.1f2a0195de"], "model.reddit_ads_source.stg_reddit_ads__ad_report": ["model.reddit_ads.reddit_ads__ad_report", "model.reddit_ads.reddit_ads__url_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_source_relation__ad_id__date_day.395db62865", "test.reddit_ads_source.not_null_stg_reddit_ads__ad_report_ad_id.c4af84b857"], "model.reddit_ads_source.stg_reddit_ads__campaign": ["model.reddit_ads.reddit_ads__ad_group_report", "model.reddit_ads.reddit_ads__ad_report", "model.reddit_ads.reddit_ads__campaign_report", "model.reddit_ads.reddit_ads__url_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_source_relation__campaign_id.066d3b93f4", "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_campaign_id.f3f24e4682"], "model.reddit_ads_source.stg_reddit_ads__ad_group_report": ["model.reddit_ads.reddit_ads__ad_group_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_source_relation__ad_group_id__date_day.4aa1f776b5", "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_report_ad_group_id.9836cd084d"], "model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report"], "model.reddit_ads_source.stg_reddit_ads__campaign_tmp": ["model.reddit_ads_source.stg_reddit_ads__campaign"], "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report"], "model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report"], "model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__account_conversions_report"], "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__campaign_report"], "model.reddit_ads_source.stg_reddit_ads__account_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__account_report"], "model.reddit_ads_source.stg_reddit_ads__account_tmp": ["model.reddit_ads_source.stg_reddit_ads__account"], "model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__ad_conversions_report"], "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp": ["model.reddit_ads_source.stg_reddit_ads__ad_group"], "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__ad_report"], "model.reddit_ads_source.stg_reddit_ads__ad_tmp": ["model.reddit_ads_source.stg_reddit_ads__ad"], "model.google_ads.google_ads__keyword_report": ["model.ad_reporting.int_ad_reporting__keyword_report", "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_source_relation__ad_group_id__criterion_id__date_day.82605f3acd", "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055"], "model.google_ads.google_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__campaign_report_source_relation__campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.29077cbd5e", "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e"], "model.google_ads.google_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_source_relation__ad_id__ad_group_id__date_day.e11b928273", "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72"], "model.google_ads.google_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_report_source_relation__ad_id__ad_group_id__date_day.0e82f7e99a", "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad"], "model.google_ads.google_ads__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_source_relation__ad_group_id__date_day.41d73a32f3", "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c"], "model.google_ads.google_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_source_relation__account_id__date_day.8480aa9317", "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422"], "model.amazon_ads_source.stg_amazon_ads__campaign_level_report": ["model.amazon_ads.amazon_ads__account_report", "model.amazon_ads.amazon_ads__campaign_report", "model.amazon_ads.amazon_ads__portfolio_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_source_relation__campaign_id__date_day.f6bb472aa5", "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194"], "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report": ["model.amazon_ads.amazon_ads__ad_group_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_source_relation__ad_group_id__date_day.180ec0225e", "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3"], "model.amazon_ads_source.stg_amazon_ads__advertised_product_report": ["model.amazon_ads.amazon_ads__ad_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_source_relation__ad_id__date_day.e170148d6c", "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4"], "model.amazon_ads_source.stg_amazon_ads__portfolio_history": ["model.amazon_ads.amazon_ads__portfolio_report", "model.amazon_ads.int_amazon_ads__portfolio_history", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_source_relation__portfolio_id__last_updated_date.e0bb6ee3e0", "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02"], "model.amazon_ads_source.stg_amazon_ads__campaign_history": ["model.amazon_ads.amazon_ads__account_report", "model.amazon_ads.amazon_ads__ad_group_report", "model.amazon_ads.amazon_ads__ad_report", "model.amazon_ads.amazon_ads__campaign_report", "model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__portfolio_report", "model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_source_relation__campaign_id__last_updated_date.f58b6293d6", "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c"], "model.amazon_ads_source.stg_amazon_ads__product_ad_history": ["model.amazon_ads.amazon_ads__ad_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_source_relation__ad_id__last_updated_date.90fb8d59e6", "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8"], "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report": ["model.amazon_ads.amazon_ads__keyword_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_source_relation__keyword_id__date_day.4190f2a661", "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7"], "model.amazon_ads_source.stg_amazon_ads__profile": ["model.amazon_ads.amazon_ads__account_report", "model.amazon_ads.amazon_ads__ad_group_report", "model.amazon_ads.amazon_ads__ad_report", "model.amazon_ads.amazon_ads__campaign_report", "model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__portfolio_report", "model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b"], "model.amazon_ads_source.stg_amazon_ads__keyword_history": ["model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_source_relation__keyword_id__last_updated_date.611a8411e0", "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e"], "model.amazon_ads_source.stg_amazon_ads__ad_group_history": ["model.amazon_ads.amazon_ads__ad_group_report", "model.amazon_ads.amazon_ads__ad_report", "model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_source_relation__ad_group_id__last_updated_date.5873194717", "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b"], "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report": ["model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_source_relation__search_term__keyword_id__date_day.00ccbc3eda", "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06"], "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__keyword_history"], "model.amazon_ads_source.stg_amazon_ads__profile_tmp": ["model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"], "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history"], "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history"], "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report"], "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"], "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"], "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__campaign_history"], "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"], "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report"], "model.linkedin_source.stg_linkedin_ads__creative_history": ["model.linkedin.linkedin_ads__creative_report", "model.linkedin.linkedin_ads__url_report", "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474"], "model.linkedin_source.stg_linkedin_ads__campaign_history": ["model.linkedin.linkedin_ads__account_report", "model.linkedin.linkedin_ads__campaign_group_report", "model.linkedin.linkedin_ads__campaign_report", "model.linkedin.linkedin_ads__creative_report", "model.linkedin.linkedin_ads__url_report", "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_source_relation__version_tag__campaign_id.65ed9cedae", "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2", "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign": ["model.linkedin.linkedin_ads__account_report", "model.linkedin.linkedin_ads__campaign_group_report", "model.linkedin.linkedin_ads__campaign_report", "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_source_relation__date_day__campaign_id.41aa0d6322", "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a", "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766"], "model.linkedin_source.stg_linkedin_ads__campaign_group_history": ["model.linkedin.linkedin_ads__campaign_group_report", "model.linkedin.linkedin_ads__campaign_report", "model.linkedin.linkedin_ads__creative_report", "model.linkedin.linkedin_ads__url_report", "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_source_relation__last_modified_at__campaign_group_id.4c9f328639", "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d", "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea"], "model.linkedin_source.stg_linkedin_ads__account_history": ["model.linkedin.linkedin_ads__account_report", "model.linkedin.linkedin_ads__campaign_group_report", "model.linkedin.linkedin_ads__campaign_report", "model.linkedin.linkedin_ads__creative_report", "model.linkedin.linkedin_ads__url_report", "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_source_relation__account_id__version_tag.c7a0383d8c", "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0", "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative": ["model.linkedin.linkedin_ads__creative_report", "model.linkedin.linkedin_ads__url_report", "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_source_relation__date_day__creative_id.7b7d839d38", "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b", "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"], "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp": ["model.linkedin_source.stg_linkedin_ads__campaign_history"], "model.linkedin_source.stg_linkedin_ads__account_history_tmp": ["model.linkedin_source.stg_linkedin_ads__account_history"], "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"], "model.linkedin_source.stg_linkedin_ads__creative_history_tmp": ["model.linkedin_source.stg_linkedin_ads__creative_history"], "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"], "model.amazon_ads.amazon_ads__portfolio_report": ["test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_source_relation__date_day__portfolio_id.b3bfe4fce4", "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6"], "model.amazon_ads.amazon_ads__search_report": ["model.ad_reporting.int_ad_reporting__search_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_source_relation__date_day__search_term__keyword_id.21a027f105", "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a"], "model.amazon_ads.amazon_ads__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_source_relation__date_day__ad_group_id.9f5387d4e0", "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a"], "model.amazon_ads.amazon_ads__keyword_report": ["model.ad_reporting.int_ad_reporting__keyword_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_source_relation__date_day__keyword_id.34f042afc1", "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a"], "model.amazon_ads.amazon_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_source_relation__date_day__campaign_id.0fcead4f41", "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c"], "model.amazon_ads.amazon_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_source_relation__date_day__profile_id.5ff488055c", "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061", "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66"], "model.amazon_ads.amazon_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_source_relation__date_day__ad_id.5c0ccedb91", "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3"], "model.amazon_ads.int_amazon_ads__portfolio_history": ["model.amazon_ads.amazon_ads__ad_group_report", "model.amazon_ads.amazon_ads__ad_report", "model.amazon_ads.amazon_ads__campaign_report", "model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__search_report"], "model.facebook_ads.facebook_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.ef8d3469d4", "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be"], "model.facebook_ads.facebook_ads__url_tags": ["model.facebook_ads.int_facebook_ads__creative_history", "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags_source_relation___fivetran_id__key__type.c65de59dec", "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3"], "model.facebook_ads.facebook_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_source_relation__date_day__account_id__campaign_id.f97e1afff3", "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21"], "model.facebook_ads.facebook_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_source_relation__date_day__account_id.bf8a017de1", "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024"], "model.facebook_ads.facebook_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.c866a344f6", "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238"], "model.facebook_ads.facebook_ads__ad_set_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_source_relation__date_day__account_id__campaign_id__ad_set_id.8707f6bd30", "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4"], "model.facebook_ads.int_facebook_ads__creative_history": ["model.facebook_ads.facebook_ads__url_report"], "model.facebook_ads.int_facebook_ads__conversions": ["model.facebook_ads.facebook_ads__account_report", "model.facebook_ads.facebook_ads__ad_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.facebook_ads.facebook_ads__campaign_report", "model.facebook_ads.facebook_ads__url_report"], "model.snapchat_ads.snapchat_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_source_relation__ad_id__date_day.9116e93fba", "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744", "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe"], "model.snapchat_ads.snapchat_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_source_relation__ad_id__date_day.86e3504c07", "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78", "test.snapchat_ads.not_null_snapchat_ads__url_report_base_url.15676dc1de", "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6"], "model.snapchat_ads.snapchat_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_source_relation__ad_account_id__date_day.654a687cf1", "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b", "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260"], "model.snapchat_ads.snapchat_ads__ad_squad_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_source_relation__ad_squad_id__date_day.b1a26a5bb4", "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe", "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639"], "model.snapchat_ads.snapchat_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_source_relation__campaign_id__date_day.557487ad6a", "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac", "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b"], "model.snapchat_ads.snapchat_ads__creative_history_prep": ["model.snapchat_ads.snapchat_ads__ad_report", "model.snapchat_ads.snapchat_ads__url_report"], "model.google_ads_source.stg_google_ads__ad_group_stats": ["model.google_ads.google_ads__ad_group_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_source_relation__ad_group_id__device__ad_network_type__date_day.0755df524f", "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077", "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786"], "model.google_ads_source.stg_google_ads__account_stats": ["model.google_ads.google_ads__account_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_source_relation__account_id__device__ad_network_type__date_day.7d4d5e9ce2", "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b", "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5"], "model.google_ads_source.stg_google_ads__ad_group_history": ["model.google_ads.google_ads__ad_group_report", "model.google_ads.google_ads__ad_report", "model.google_ads.google_ads__keyword_report", "model.google_ads.google_ads__url_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_source_relation__ad_group_id__updated_at.94eb3f93a4", "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be"], "model.google_ads_source.stg_google_ads__ad_history": ["model.google_ads.google_ads__ad_report", "model.google_ads.google_ads__url_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_source_relation__ad_id__ad_group_id__updated_at.edca86664e", "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248"], "model.google_ads_source.stg_google_ads__keyword_stats": ["model.google_ads.google_ads__keyword_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_source_relation__keyword_id__date_day.4ecf84a32f", "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d", "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0"], "model.google_ads_source.stg_google_ads__ad_stats": ["model.google_ads.google_ads__ad_report", "model.google_ads.google_ads__url_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_source_relation__ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.222a7d9413", "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8", "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4"], "model.google_ads_source.stg_google_ads__ad_group_criterion_history": ["model.google_ads.google_ads__keyword_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_source_relation__criterion_id__ad_group_id__updated_at.8d37dd2fa0", "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476"], "model.google_ads_source.stg_google_ads__campaign_stats": ["model.google_ads.google_ads__campaign_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_source_relation__campaign_id__ad_network_type__device__date_day.fea3ecfe6f", "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f", "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b"], "model.google_ads_source.stg_google_ads__campaign_history": ["model.google_ads.google_ads__ad_group_report", "model.google_ads.google_ads__ad_report", "model.google_ads.google_ads__campaign_report", "model.google_ads.google_ads__keyword_report", "model.google_ads.google_ads__url_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_source_relation__campaign_id__updated_at.008fea6b77", "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75"], "model.google_ads_source.stg_google_ads__account_history": ["model.google_ads.google_ads__account_report", "model.google_ads.google_ads__ad_group_report", "model.google_ads.google_ads__ad_report", "model.google_ads.google_ads__campaign_report", "model.google_ads.google_ads__keyword_report", "model.google_ads.google_ads__url_report", "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_source_relation__account_id__updated_at.0a4d931c44", "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f"], "model.google_ads_source.stg_google_ads__account_stats_tmp": ["model.google_ads_source.stg_google_ads__account_stats"], "model.google_ads_source.stg_google_ads__ad_group_history_tmp": ["model.google_ads_source.stg_google_ads__ad_group_history"], "model.google_ads_source.stg_google_ads__campaign_stats_tmp": ["model.google_ads_source.stg_google_ads__campaign_stats"], "model.google_ads_source.stg_google_ads__ad_stats_tmp": ["model.google_ads_source.stg_google_ads__ad_stats"], "model.google_ads_source.stg_google_ads__campaign_history_tmp": ["model.google_ads_source.stg_google_ads__campaign_history"], "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history"], "model.google_ads_source.stg_google_ads__ad_group_stats_tmp": ["model.google_ads_source.stg_google_ads__ad_group_stats"], "model.google_ads_source.stg_google_ads__keyword_stats_tmp": ["model.google_ads_source.stg_google_ads__keyword_stats"], "model.google_ads_source.stg_google_ads__ad_history_tmp": ["model.google_ads_source.stg_google_ads__ad_history"], "model.google_ads_source.stg_google_ads__account_history_tmp": ["model.google_ads_source.stg_google_ads__account_history"], "model.apple_search_ads.apple_search_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_source_relation__organization_id__campaign_id__ad_group_id__ad_id__date_day.6d5d406b55", "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c", "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17"], "model.apple_search_ads.apple_search_ads__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_source_relation__organization_id__campaign_id__ad_group_id__date_day.3c4191e648", "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5", "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c"], "model.apple_search_ads.apple_search_ads__keyword_report": ["model.ad_reporting.int_ad_reporting__keyword_report", "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_source_relation__organization_id__campaign_id__ad_group_id__keyword_id__date_day.974556d271", "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82", "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db"], "model.apple_search_ads.apple_search_ads__search_term_report": ["model.ad_reporting.int_ad_reporting__search_report", "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_source_relation__search_term_text__match_type__date_day__keyword_id__ad_group_id__campaign_id__organization_id.82f7464f67", "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c", "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7"], "model.apple_search_ads.apple_search_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_source_relation__organization_id__campaign_id__date_day.0fdb29354b", "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146", "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a"], "model.apple_search_ads.apple_search_ads__organization_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_source_relation__organization_id__date_day.8a9d834203", "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523", "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8"], "model.ad_reporting.ad_reporting__campaign_report": ["test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_source_relation__platform__date_day__campaign_id__account_id.0cad44418b", "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b"], "model.ad_reporting.ad_reporting__account_report": ["test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_source_relation__platform__date_day__account_id.4cb64b5631", "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022"], "model.ad_reporting.ad_reporting__ad_group_report": ["test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id.629300a679", "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842"], "model.ad_reporting.ad_reporting__search_report": ["test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__search_report_source_relation__platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.ee233ddb9e", "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb"], "model.ad_reporting.ad_reporting__ad_report": ["semantic_model.ad_reporting.ad_report", "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_source_relation__platform__date_day__ad_id__ad_group_id__campaign_id__account_id.2e26485f58", "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152"], "model.ad_reporting.ad_reporting__url_report": ["test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__url_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id__base_url__url_host__url_path__utm_campaign__utm_content__utm_medium__utm_source__utm_term.2e59004ca0", "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6"], "model.ad_reporting.ad_reporting__keyword_report": ["test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_source_relation__platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id.62e073f236", "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334"], "model.ad_reporting.metricflow_time_spine": [], "model.ad_reporting.int_ad_reporting__campaign_report": ["model.ad_reporting.ad_reporting__campaign_report"], "model.ad_reporting.int_ad_reporting__keyword_report": ["model.ad_reporting.ad_reporting__keyword_report"], "model.ad_reporting.int_ad_reporting__ad_report": ["model.ad_reporting.ad_reporting__ad_report"], "model.ad_reporting.int_ad_reporting__account_report": ["model.ad_reporting.ad_reporting__account_report"], "model.ad_reporting.int_ad_reporting__url_report": ["model.ad_reporting.ad_reporting__url_report"], "model.ad_reporting.int_ad_reporting__search_report": ["model.ad_reporting.ad_reporting__search_report"], "model.ad_reporting.int_ad_reporting__ad_group_report": ["model.ad_reporting.ad_reporting__ad_group_report"], "model.apple_search_ads_source.stg_apple_search_ads__campaign_history": ["model.apple_search_ads.apple_search_ads__ad_group_report", "model.apple_search_ads.apple_search_ads__ad_report", "model.apple_search_ads.apple_search_ads__campaign_report", "model.apple_search_ads.apple_search_ads__keyword_report", "model.apple_search_ads.apple_search_ads__organization_report", "model.apple_search_ads.apple_search_ads__search_term_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_source_relation__campaign_id__modified_at.2e9f11582c", "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8", "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9"], "model.apple_search_ads_source.stg_apple_search_ads__ad_report": ["model.apple_search_ads.apple_search_ads__ad_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_source_relation__ad_id__date_day__ad_group_id.f9bc5ff292", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_group_id.a397755e9f", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8"], "model.apple_search_ads_source.stg_apple_search_ads__campaign_report": ["model.apple_search_ads.apple_search_ads__campaign_report", "model.apple_search_ads.apple_search_ads__organization_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_source_relation__campaign_id__date_day.87b6206f82", "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728", "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3"], "model.apple_search_ads_source.stg_apple_search_ads__organization": ["model.apple_search_ads.apple_search_ads__ad_group_report", "model.apple_search_ads.apple_search_ads__ad_report", "model.apple_search_ads.apple_search_ads__campaign_report", "model.apple_search_ads.apple_search_ads__keyword_report", "model.apple_search_ads.apple_search_ads__organization_report", "model.apple_search_ads.apple_search_ads__search_term_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_source_relation__organization_id.b5c488cb77", "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb"], "model.apple_search_ads_source.stg_apple_search_ads__keyword_report": ["model.apple_search_ads.apple_search_ads__keyword_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_source_relation__keyword_id__date_day.855ae5524a", "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928", "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e"], "model.apple_search_ads_source.stg_apple_search_ads__keyword_history": ["model.apple_search_ads.apple_search_ads__keyword_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_source_relation__keyword_id__modified_at.635c0ce086", "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2", "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287"], "model.apple_search_ads_source.stg_apple_search_ads__search_term_report": ["model.apple_search_ads.apple_search_ads__search_term_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report_source_relation___fivetran_id__date_day.ef07562d98", "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report__fivetran_id.aa430d1dad", "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report_date_day.fd93df3302"], "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history": ["model.apple_search_ads.apple_search_ads__ad_group_report", "model.apple_search_ads.apple_search_ads__ad_report", "model.apple_search_ads.apple_search_ads__keyword_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_source_relation__ad_group_id__modified_at.a6db663569", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_ad_group_id.dc128eecb7", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_modified_at.e5d65fa28f"], "model.apple_search_ads_source.stg_apple_search_ads__ad_history": ["model.apple_search_ads.apple_search_ads__ad_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_source_relation__ad_id__modified_at.45dfca7ca5", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d"], "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report": ["model.apple_search_ads.apple_search_ads__ad_group_report", "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_source_relation__ad_group_id__date_day.dc4ccb902d", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_ad_group_id.a115f9cfc1", "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_date_day.4dfd46a43b"], "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report"], "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history"], "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history"], "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"], "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"], "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history"], "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report"], "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__organization"], "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report"], "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_history": ["model.pinterest.pinterest_ads__pin_promotion_report", "model.pinterest.pinterest_ads__url_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history_source_relation___fivetran_synced__pin_promotion_id.8064d48c11", "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34"], "model.pinterest_source.stg_pinterest_ads__keyword_report": ["model.pinterest.pinterest_ads__keyword_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_source_relation__date_day__keyword_id__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.f43dda0239", "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300", "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48"], "model.pinterest_source.stg_pinterest_ads__ad_group_report": ["model.pinterest.pinterest_ads__ad_group_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_source_relation__date_day__ad_group_id__campaign_id__advertiser_id.83246fd43c", "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471", "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c"], "model.pinterest_source.stg_pinterest_ads__campaign_history": ["model.pinterest.pinterest_ads__ad_group_report", "model.pinterest.pinterest_ads__campaign_report", "model.pinterest.pinterest_ads__keyword_report", "model.pinterest.pinterest_ads__pin_promotion_report", "model.pinterest.pinterest_ads__url_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_source_relation__campaign_id___fivetran_synced.84df0386bc", "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341"], "model.pinterest_source.stg_pinterest_ads__advertiser_report": ["model.pinterest.pinterest_ads__advertiser_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_source_relation__date_day__advertiser_id.cadbd5fae2", "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff", "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95"], "model.pinterest_source.stg_pinterest_ads__advertiser_history": ["model.pinterest.pinterest_ads__ad_group_report", "model.pinterest.pinterest_ads__advertiser_report", "model.pinterest.pinterest_ads__campaign_report", "model.pinterest.pinterest_ads__keyword_report", "model.pinterest.pinterest_ads__pin_promotion_report", "model.pinterest.pinterest_ads__url_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_source_relation__updated_at__advertiser_id.8308a26e9f", "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb"], "model.pinterest_source.stg_pinterest_ads__campaign_report": ["model.pinterest.pinterest_ads__campaign_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_source_relation__date_day__campaign_id__advertiser_id.6dd9b7bce6", "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc", "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238"], "model.pinterest_source.stg_pinterest_ads__keyword_history": ["model.pinterest.pinterest_ads__keyword_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_source_relation__keyword_id__ad_group_id___fivetran_synced.2cd3b85ca9", "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_report": ["model.pinterest.pinterest_ads__pin_promotion_report", "model.pinterest.pinterest_ads__url_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_source_relation__date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.8b358e3946", "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1", "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab"], "model.pinterest_source.stg_pinterest_ads__ad_group_history": ["model.pinterest.pinterest_ads__ad_group_report", "model.pinterest.pinterest_ads__keyword_report", "model.pinterest.pinterest_ads__pin_promotion_report", "model.pinterest.pinterest_ads__url_report", "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_source_relation__ad_group_id___fivetran_synced.ef2b22b2ca", "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be"], "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp": ["model.pinterest_source.stg_pinterest_ads__advertiser_history"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"], "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp": ["model.pinterest_source.stg_pinterest_ads__campaign_report"], "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"], "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp": ["model.pinterest_source.stg_pinterest_ads__keyword_report"], "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"], "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp": ["model.pinterest_source.stg_pinterest_ads__keyword_history"], "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp": ["model.pinterest_source.stg_pinterest_ads__campaign_history"], "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp": ["model.pinterest_source.stg_pinterest_ads__ad_group_history"], "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history"], "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly": ["model.tiktok_ads.tiktok_ads__campaign_report", "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_source_relation__campaign_id__stat_time_hour.91b84f3ede", "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb", "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c"], "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly": ["model.tiktok_ads.tiktok_ads__ad_group_report", "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_source_relation__ad_group_id__stat_time_hour.f0681f097c", "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.8da17119f1", "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.ca4b495127"], "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history": ["model.tiktok_ads.tiktok_ads__ad_group_report", "model.tiktok_ads.tiktok_ads__ad_report", "model.tiktok_ads.tiktok_ads__url_report", "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_source_relation__ad_group_id__updated_at.94fc2240d4", "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad"], "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly": ["model.tiktok_ads.tiktok_ads__ad_report", "model.tiktok_ads.tiktok_ads__advertiser_report", "model.tiktok_ads.tiktok_ads__url_report", "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_source_relation__ad_id__stat_time_hour.1f7d670427", "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed", "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81"], "model.tiktok_ads_source.stg_tiktok_ads__advertiser": ["model.tiktok_ads.tiktok_ads__ad_group_report", "model.tiktok_ads.tiktok_ads__ad_report", "model.tiktok_ads.tiktok_ads__advertiser_report", "model.tiktok_ads.tiktok_ads__campaign_report", "model.tiktok_ads.tiktok_ads__url_report", "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__advertiser_source_relation__advertiser_id.4b39eb0db8", "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def"], "model.tiktok_ads_source.stg_tiktok_ads__ad_history": ["model.tiktok_ads.tiktok_ads__ad_report", "model.tiktok_ads.tiktok_ads__advertiser_report", "model.tiktok_ads.tiktok_ads__url_report", "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_source_relation__ad_id__updated_at.64ebc5aea6", "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a"], "model.tiktok_ads_source.stg_tiktok_ads__campaign_history": ["model.tiktok_ads.tiktok_ads__ad_group_report", "model.tiktok_ads.tiktok_ads__ad_report", "model.tiktok_ads.tiktok_ads__campaign_report", "model.tiktok_ads.tiktok_ads__url_report", "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_source_relation__campaign_id__updated_at.52babc6036", "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1"], "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"], "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history"], "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"], "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"], "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"], "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history"], "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions": ["model.facebook_ads.int_facebook_ads__conversions", "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_actions_source_relation__date_day__ad_id__action_type.3f1bea13d9"], "model.facebook_ads_source.stg_facebook_ads__basic_ad": ["model.facebook_ads.facebook_ads__account_report", "model.facebook_ads.facebook_ads__ad_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.facebook_ads.facebook_ads__campaign_report", "model.facebook_ads.facebook_ads__url_report", "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_source_relation__date_day__ad_id__account_id.9c647961f0", "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b", "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values": ["model.facebook_ads.int_facebook_ads__conversions", "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_action_values_source_relation__date_day__ad_id__action_type.3c32585825"], "model.facebook_ads_source.stg_facebook_ads__creative_history": ["model.facebook_ads.facebook_ads__url_tags", "model.facebook_ads.int_facebook_ads__creative_history", "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_source_relation___fivetran_id.2466dae947", "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f", "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261"], "model.facebook_ads_source.stg_facebook_ads__campaign_history": ["model.facebook_ads.facebook_ads__ad_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.facebook_ads.facebook_ads__campaign_report", "model.facebook_ads.facebook_ads__url_report", "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_source_relation__campaign_id__updated_at.82c4f9a2a1", "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852", "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270"], "model.facebook_ads_source.stg_facebook_ads__account_history": ["model.facebook_ads.facebook_ads__account_report", "model.facebook_ads.facebook_ads__ad_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.facebook_ads.facebook_ads__campaign_report", "model.facebook_ads.facebook_ads__url_report", "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_source_relation__account_id___fivetran_synced.f81aca1247", "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f", "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f"], "model.facebook_ads_source.stg_facebook_ads__ad_history": ["model.facebook_ads.facebook_ads__ad_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.facebook_ads.facebook_ads__campaign_report", "model.facebook_ads.facebook_ads__url_report", "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_source_relation__ad_id__updated_at.664b870e6c", "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064", "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4"], "model.facebook_ads_source.stg_facebook_ads__ad_set_history": ["model.facebook_ads.facebook_ads__ad_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.facebook_ads.facebook_ads__url_report", "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_source_relation__ad_set_id__updated_at.ff1d43114a", "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb", "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa"], "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"], "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp": ["model.facebook_ads_source.stg_facebook_ads__ad_history"], "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_actions"], "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp": ["model.facebook_ads_source.stg_facebook_ads__creative_history"], "model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values"], "model.facebook_ads_source.stg_facebook_ads__account_history_tmp": ["model.facebook_ads_source.stg_facebook_ads__account_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report": ["model.snapchat_ads.snapchat_ads__ad_squad_report", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_source_relation__ad_squad_id__date_hour.25afb4f9ae", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.ab16aa72c9", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb"], "model.snapchat_ads_source.stg_snapchat_ads__ad_history": ["model.snapchat_ads.snapchat_ads__account_report", "model.snapchat_ads.snapchat_ads__ad_report", "model.snapchat_ads.snapchat_ads__url_report", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_source_relation__ad_id___fivetran_synced.630e3ffee4", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15"], "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history": ["model.snapchat_ads.snapchat_ads__account_report", "model.snapchat_ads.snapchat_ads__ad_squad_report", "model.snapchat_ads.snapchat_ads__url_report", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_source_relation__ad_squad_id___fivetran_synced.5d97ae5ee3", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278"], "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report": ["model.snapchat_ads.snapchat_ads__account_report", "model.snapchat_ads.snapchat_ads__ad_report", "model.snapchat_ads.snapchat_ads__url_report", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_source_relation__ad_id__date_hour.f2d4b9252f", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7"], "model.snapchat_ads_source.stg_snapchat_ads__creative_history": ["model.snapchat_ads.snapchat_ads__creative_history_prep", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_source_relation__creative_id___fivetran_synced.1d4efdd418", "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380", "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4"], "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history": ["model.snapchat_ads.snapchat_ads__creative_history_prep", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_source_relation__creative_id__param_key__updated_at.6ed98c175a", "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b"], "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history": ["model.snapchat_ads.snapchat_ads__account_report", "model.snapchat_ads.snapchat_ads__ad_report", "model.snapchat_ads.snapchat_ads__ad_squad_report", "model.snapchat_ads.snapchat_ads__campaign_report", "model.snapchat_ads.snapchat_ads__url_report", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_source_relation__ad_account_id___fivetran_synced.b8a4da92d1", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824", "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605"], "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report": ["model.snapchat_ads.snapchat_ads__campaign_report", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_source_relation__campaign_id__date_hour.3998b6bf9d", "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e", "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8"], "model.snapchat_ads_source.stg_snapchat_ads__campaign_history": ["model.snapchat_ads.snapchat_ads__account_report", "model.snapchat_ads.snapchat_ads__ad_squad_report", "model.snapchat_ads.snapchat_ads__campaign_report", "model.snapchat_ads.snapchat_ads__url_report", "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_source_relation__campaign_id___fivetran_synced.e003c1a660", "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec", "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0"], "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"], "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"], "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"], "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"], "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"], "model.microsoft_ads.microsoft_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.e13fd60438", "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125"], "model.microsoft_ads.microsoft_ads__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.da08ee00a5", "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9"], "model.microsoft_ads.microsoft_ads__keyword_report": ["model.ad_reporting.int_ad_reporting__keyword_report", "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.e4af52a80b", "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b"], "model.microsoft_ads.microsoft_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.0ea4732dff", "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a"], "model.microsoft_ads.microsoft_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code.42178a7c9b", "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e"], "model.microsoft_ads.microsoft_ads__search_report": ["model.ad_reporting.int_ad_reporting__search_report", "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__match_type.6753357660", "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d"], "model.microsoft_ads.microsoft_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code.00fc594532", "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8"], "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report": ["model.twitter_ads.twitter_ads__keyword_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_source_relation__date_day__keyword_id.579bdc1f1c", "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13", "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.e5f015e9ec"], "model.twitter_ads_source.stg_twitter_ads__campaign_report": ["model.twitter_ads.twitter_ads__campaign_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement.9d5717ee54", "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f", "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c", "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4"], "model.twitter_ads_source.stg_twitter_ads__line_item_history": ["model.twitter_ads.twitter_ads__keyword_report", "model.twitter_ads.twitter_ads__line_item_report", "model.twitter_ads.twitter_ads__promoted_tweet_report", "model.twitter_ads.twitter_ads__url_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_source_relation__line_item_id__updated_timestamp.646fa5270f", "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809"], "model.twitter_ads_source.stg_twitter_ads__line_item_report": ["model.twitter_ads.twitter_ads__line_item_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement.6c8686e61c", "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe", "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7", "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb"], "model.twitter_ads_source.stg_twitter_ads__campaign_history": ["model.twitter_ads.twitter_ads__campaign_report", "model.twitter_ads.twitter_ads__keyword_report", "model.twitter_ads.twitter_ads__line_item_report", "model.twitter_ads.twitter_ads__promoted_tweet_report", "model.twitter_ads.twitter_ads__url_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_source_relation__campaign_id__updated_timestamp.9b0c16487d", "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report": ["model.twitter_ads.twitter_ads__account_report", "model.twitter_ads.twitter_ads__promoted_tweet_report", "model.twitter_ads.twitter_ads__url_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement.9d96bf07d3", "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894", "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3", "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598"], "model.twitter_ads_source.stg_twitter_ads__tweet": ["model.twitter_ads.twitter_ads__promoted_tweet_report", "model.twitter_ads.twitter_ads__url_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_source_relation__tweet_id.70de7f05f5", "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd"], "model.twitter_ads_source.stg_twitter_ads__account_history": ["model.twitter_ads.twitter_ads__account_report", "model.twitter_ads.twitter_ads__campaign_report", "model.twitter_ads.twitter_ads__keyword_report", "model.twitter_ads.twitter_ads__line_item_report", "model.twitter_ads.twitter_ads__promoted_tweet_report", "model.twitter_ads.twitter_ads__url_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_source_relation__account_id__updated_timestamp.3492933c38", "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2"], "model.twitter_ads_source.stg_twitter_ads__tweet_url": ["model.twitter_ads.twitter_ads__url_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_source_relation__index__tweet_id.ce1a2b4a87", "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be", "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history": ["model.twitter_ads.twitter_ads__promoted_tweet_report", "model.twitter_ads.twitter_ads__url_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_source_relation__promoted_tweet_id__updated_timestamp.7016099e0a", "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09"], "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"], "model.twitter_ads_source.stg_twitter_ads__tweet_tmp": ["model.twitter_ads_source.stg_twitter_ads__tweet"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"], "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp": ["model.twitter_ads_source.stg_twitter_ads__line_item_history"], "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"], "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp": ["model.twitter_ads_source.stg_twitter_ads__campaign_history"], "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"], "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"], "model.twitter_ads_source.stg_twitter_ads__account_history_tmp": ["model.twitter_ads_source.stg_twitter_ads__account_history"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"], "model.linkedin.linkedin_ads__campaign_group_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_source_relation__date_day__campaign_group_id__account_id.36e7743abc", "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf", "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b"], "model.linkedin.linkedin_ads__creative_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.f9e5f8f610", "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889", "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020"], "model.linkedin.linkedin_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_source_relation__date_day__campaign_id__account_id__campaign_group_id.89a0d4ba0b", "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15", "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1"], "model.linkedin.linkedin_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_source_relation__date_day__account_id.da7ea6faeb", "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842", "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53"], "model.linkedin.linkedin_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.0ff865de89", "test.linkedin.not_null_linkedin_ads__url_report_click_uri.81534087cb", "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2", "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_source_relation__account_id__modified_at.c32440cfcf": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.38a7aa3e12": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_source_relation__ad_group_id__modified_at.f2ed2b82b0": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.3e03e6eff7": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.3825c46fa1": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_source_relation__ad_id__modified_at.2eb6255160": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.b6f971641a": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_source_relation__campaign_id__modified_at.56da51b12d": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other__budget_association_status__budget_name__budget_status.f7a5fd8430": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_source_relation__keyword_id__modified_at.5b0ba5f522": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__language__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.e55a075940": [], "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__language__bid_match_type__delivered_match_type__top_vs_other.97d894068e": [], "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99": [], "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce": [], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_source_relation__advertiser_id__date_day.1797053b3d": [], "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed": [], "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707": [], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.c260f4392a": [], "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e": [], "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4": [], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_source_relation__ad_group_id__campaign_id__advertiser_id__date_day.e3850c1634": [], "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836": [], "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8": [], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.98200e9b0f": [], "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff": [], "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0": [], "test.tiktok_ads.not_null_tiktok_ads__url_report_base_url.37afef2e1b": [], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_source_relation__ad_id__ad_group_id__campaign_id__advertiser_id__date_day.98153764a3": [], "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8": [], "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0": [], "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement__account_id.f449ef6d6e": [], "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce": [], "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211": [], "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement__campaign_id__account_id.f8d7069cba": [], "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846": [], "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194": [], "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_source_relation__date_day__account_id__placement.e6a884489c": [], "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec": [], "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword_id.91efa0a538": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_source_relation__date_day__keyword_id__campaign_id.c51ddef475": [], "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5": [], "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f6814a1cc6": [], "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b": [], "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e": [], "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143": [], "test.twitter_ads.not_null_twitter_ads__url_report_base_url.dfd7ab549e": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_source_relation__date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.f44851c31f": [], "test.reddit_ads.not_null_reddit_ads__account_report_date_day.7b43e6cb90": [], "test.reddit_ads.not_null_reddit_ads__account_report_account_id.16f11188c5": [], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__account_report_source_relation__date_day__account_id__attribution_type__currency__status__time_zone_id.7260e1923b": [], "test.reddit_ads.not_null_reddit_ads__ad_group_report_date_day.6463e6f6f7": [], "test.reddit_ads.not_null_reddit_ads__ad_group_report_ad_group_id.057bd60604": [], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_source_relation__date_day__account_id__ad_group_id__campaign_id__currency.bd33f1f46d": [], "test.reddit_ads.not_null_reddit_ads__ad_report_date_day.608b21c69a": [], "test.reddit_ads.not_null_reddit_ads__ad_report_ad_id.1da054a14e": [], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_source_relation__date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency.8735416c38": [], "test.reddit_ads.not_null_reddit_ads__campaign_report_date_day.f79cca4131": [], "test.reddit_ads.not_null_reddit_ads__campaign_report_campaign_id.f5491a0b49": [], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_source_relation__date_day__account_id__campaign_id__currency.6e74c22669": [], "test.reddit_ads.not_null_reddit_ads__url_report_date_day.4b0f6363da": [], "test.reddit_ads.not_null_reddit_ads__url_report_ad_id.8ff83da2b0": [], "test.reddit_ads.not_null_reddit_ads__url_report_base_url.2f585bebcb": [], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__url_report_source_relation__date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency.a85ab9beee": [], "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e": [], "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502": [], "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a": [], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.688d8bd291": [], "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7": [], "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2": [], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_source_relation__ad_group_id__advertiser_id__campaign_id__date_day.1fb5fb3f2f": [], "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf": [], "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2": [], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.4da70e098b": [], "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca": [], "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672": [], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_source_relation__advertiser_id__date_day.f9cd6d6ce2": [], "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba": [], "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198": [], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_source_relation__keyword_id__ad_group_id__campaign_id__advertiser_id__date_day.a9ce89d1db": [], "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd": [], "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561": [], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_source_relation__pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day.9d2f1ea810": [], "test.reddit_ads_source.not_null_stg_reddit_ads__account_account_id.512f0b8078": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_source_relation__account_id.49d95e2890": [], "test.reddit_ads_source.not_null_stg_reddit_ads__account_report_account_id.1f2a0195de": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_source_relation__account_id__date_day.580653f488": [], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_ad_id.40188b63dd": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_source_relation__ad_id.fc4d1b788b": [], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_report_ad_id.c4af84b857": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_source_relation__ad_id__date_day.395db62865": [], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_ad_group_id.65795d8dc2": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_source_relation__ad_group_id.942cb72fcc": [], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_report_ad_group_id.9836cd084d": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_source_relation__ad_group_id__date_day.4aa1f776b5": [], "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_campaign_id.f3f24e4682": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_source_relation__campaign_id.066d3b93f4": [], "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_report_campaign_id.c717612b4f": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_source_relation__campaign_id__date_day.5e87d9d722": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_conversions_report_source_relation__account_id__date_day__event_name.bc323b3bbb": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_conversions_report_source_relation__ad_group_id__date_day__event_name.acd1ea8c2b": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_conversions_report_source_relation__ad_id__date_day__event_name.49a6eee2ad": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_conversions_report_source_relation__campaign_id__date_day__event_name.2ed971ff1b": [], "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72": [], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_source_relation__ad_id__ad_group_id__date_day.e11b928273": [], "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422": [], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_source_relation__account_id__date_day.8480aa9317": [], "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c": [], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_source_relation__ad_group_id__date_day.41d73a32f3": [], "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad": [], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_report_source_relation__ad_id__ad_group_id__date_day.0e82f7e99a": [], "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e": [], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__campaign_report_source_relation__campaign_id__advertising_channel_type__advertising_channel_subtype__date_day.29077cbd5e": [], "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055": [], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_source_relation__ad_group_id__criterion_id__date_day.82605f3acd": [], "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_source_relation__ad_group_id__last_updated_date.5873194717": [], "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_source_relation__ad_group_id__date_day.180ec0225e": [], "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_source_relation__ad_id__date_day.e170148d6c": [], "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_source_relation__campaign_id__last_updated_date.f58b6293d6": [], "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_source_relation__campaign_id__date_day.f6bb472aa5": [], "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_source_relation__keyword_id__last_updated_date.611a8411e0": [], "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_source_relation__portfolio_id__last_updated_date.e0bb6ee3e0": [], "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_source_relation__ad_id__last_updated_date.90fb8d59e6": [], "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b": [], "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_source_relation__keyword_id__date_day.4190f2a661": [], "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_source_relation__search_term__keyword_id__date_day.00ccbc3eda": [], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b": [], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766": [], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_source_relation__date_day__creative_id.7b7d839d38": [], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a": [], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766": [], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_source_relation__date_day__campaign_id.41aa0d6322": [], "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474": [], "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2": [], "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469": [], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_source_relation__version_tag__campaign_id.65ed9cedae": [], "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d": [], "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea": [], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_source_relation__last_modified_at__campaign_group_id.4c9f328639": [], "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0": [], "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81": [], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_source_relation__account_id__version_tag.c7a0383d8c": [], "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66": [], "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_source_relation__date_day__profile_id.5ff488055c": [], "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_source_relation__date_day__ad_group_id.9f5387d4e0": [], "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_source_relation__date_day__ad_id.5c0ccedb91": [], "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_source_relation__date_day__campaign_id.0fcead4f41": [], "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_source_relation__date_day__portfolio_id.b3bfe4fce4": [], "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_source_relation__date_day__keyword_id.34f042afc1": [], "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_source_relation__date_day__search_term__keyword_id.21a027f105": [], "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be": [], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.ef8d3469d4": [], "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238": [], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_set_id__ad_id.c866a344f6": [], "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4": [], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_source_relation__date_day__account_id__campaign_id__ad_set_id.8707f6bd30": [], "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21": [], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_source_relation__date_day__account_id__campaign_id.f97e1afff3": [], "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024": [], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_source_relation__date_day__account_id.bf8a017de1": [], "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3": [], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags_source_relation___fivetran_id__key__type.c65de59dec": [], "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260": [], "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b": [], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_source_relation__ad_account_id__date_day.654a687cf1": [], "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe": [], "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744": [], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_source_relation__ad_id__date_day.9116e93fba": [], "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b": [], "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac": [], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_source_relation__campaign_id__date_day.557487ad6a": [], "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639": [], "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe": [], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_source_relation__ad_squad_id__date_day.b1a26a5bb4": [], "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6": [], "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78": [], "test.snapchat_ads.not_null_snapchat_ads__url_report_base_url.15676dc1de": [], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_source_relation__ad_id__date_day.86e3504c07": [], "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_source_relation__account_id__updated_at.0a4d931c44": [], "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_source_relation__ad_group_id__updated_at.94eb3f93a4": [], "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_source_relation__ad_id__ad_group_id__updated_at.edca86664e": [], "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4": [], "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_source_relation__ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.222a7d9413": [], "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_source_relation__campaign_id__updated_at.008fea6b77": [], "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_source_relation__criterion_id__ad_group_id__updated_at.8d37dd2fa0": [], "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786": [], "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_source_relation__ad_group_id__device__ad_network_type__date_day.0755df524f": [], "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b": [], "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_source_relation__campaign_id__ad_network_type__device__date_day.fea3ecfe6f": [], "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d": [], "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_source_relation__keyword_id__date_day.4ecf84a32f": [], "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b": [], "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5": [], "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_source_relation__account_id__device__ad_network_type__date_day.7d4d5e9ce2": [], "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5": [], "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c": [], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_source_relation__organization_id__campaign_id__ad_group_id__date_day.3c4191e648": [], "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c": [], "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17": [], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_source_relation__organization_id__campaign_id__ad_group_id__ad_id__date_day.6d5d406b55": [], "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146": [], "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a": [], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_source_relation__organization_id__campaign_id__date_day.0fdb29354b": [], "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db": [], "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82": [], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_source_relation__organization_id__campaign_id__ad_group_id__keyword_id__date_day.974556d271": [], "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8": [], "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523": [], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_source_relation__organization_id__date_day.8a9d834203": [], "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c": [], "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7": [], "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_source_relation__search_term_text__match_type__date_day__keyword_id__ad_group_id__campaign_id__organization_id.82f7464f67": [], "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_source_relation__platform__date_day__account_id.4cb64b5631": [], "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id.629300a679": [], "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_source_relation__platform__date_day__ad_id__ad_group_id__campaign_id__account_id.2e26485f58": [], "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_source_relation__platform__date_day__campaign_id__account_id.0cad44418b": [], "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_source_relation__platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id.62e073f236": [], "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__search_report_source_relation__platform__date_day__search_query__search_match_type__keyword_id__ad_group_id__campaign_id__account_id.ee233ddb9e": [], "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__url_report_source_relation__platform__date_day__ad_group_id__campaign_id__account_id__base_url__url_host__url_path__utm_campaign__utm_content__utm_medium__utm_source__utm_term.2e59004ca0": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_modified_at.e5d65fa28f": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_ad_group_id.dc128eecb7": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_source_relation__ad_group_id__modified_at.a6db663569": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_ad_group_id.a115f9cfc1": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_date_day.4dfd46a43b": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_source_relation__ad_group_id__date_day.dc4ccb902d": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_source_relation__ad_id__modified_at.45dfca7ca5": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_group_id.a397755e9f": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_source_relation__ad_id__date_day__ad_group_id.f9bc5ff292": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_source_relation__campaign_id__modified_at.2e9f11582c": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_source_relation__campaign_id__date_day.87b6206f82": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_source_relation__keyword_id__modified_at.635c0ce086": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_source_relation__keyword_id__date_day.855ae5524a": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_source_relation__organization_id.b5c488cb77": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report__fivetran_id.aa430d1dad": [], "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report_date_day.fd93df3302": [], "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report_source_relation___fivetran_id__date_day.ef07562d98": [], "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_source_relation__ad_group_id___fivetran_synced.ef2b22b2ca": [], "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_source_relation__campaign_id___fivetran_synced.84df0386bc": [], "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history_source_relation___fivetran_synced__pin_promotion_id.8064d48c11": [], "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1": [], "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_source_relation__date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.8b358e3946": [], "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c": [], "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_source_relation__date_day__ad_group_id__campaign_id__advertiser_id.83246fd43c": [], "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_source_relation__updated_at__advertiser_id.8308a26e9f": [], "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95": [], "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_source_relation__date_day__advertiser_id.cadbd5fae2": [], "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238": [], "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_source_relation__date_day__campaign_id__advertiser_id.6dd9b7bce6": [], "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_source_relation__keyword_id__ad_group_id___fivetran_synced.2cd3b85ca9": [], "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300": [], "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48": [], "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_source_relation__date_day__keyword_id__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.f43dda0239": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def": [], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__advertiser_source_relation__advertiser_id.4b39eb0db8": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad": [], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_source_relation__ad_group_id__updated_at.94fc2240d4": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a": [], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_source_relation__ad_id__updated_at.64ebc5aea6": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1": [], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_source_relation__campaign_id__updated_at.52babc6036": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81": [], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_source_relation__ad_id__stat_time_hour.1f7d670427": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.8da17119f1": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.ca4b495127": [], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_source_relation__ad_group_id__stat_time_hour.f0681f097c": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb": [], "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c": [], "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_source_relation__campaign_id__stat_time_hour.91b84f3ede": [], "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f": [], "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f": [], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_source_relation__account_id___fivetran_synced.f81aca1247": [], "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064": [], "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4": [], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_source_relation__ad_id__updated_at.664b870e6c": [], "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb": [], "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa": [], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_source_relation__ad_set_id__updated_at.ff1d43114a": [], "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852": [], "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270": [], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_source_relation__campaign_id__updated_at.82c4f9a2a1": [], "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f": [], "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261": [], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_source_relation___fivetran_id.2466dae947": [], "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc": [], "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b": [], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_source_relation__date_day__ad_id__account_id.9c647961f0": [], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_actions_source_relation__date_day__ad_id__action_type.3f1bea13d9": [], "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_action_values_source_relation__date_day__ad_id__action_type.3c32585825": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_source_relation__ad_account_id___fivetran_synced.b8a4da92d1": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_source_relation__ad_id___fivetran_synced.630e3ffee4": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_source_relation__ad_id__date_hour.f2d4b9252f": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_source_relation__ad_squad_id___fivetran_synced.5d97ae5ee3": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.ab16aa72c9": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_source_relation__ad_squad_id__date_hour.25afb4f9ae": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_source_relation__campaign_id___fivetran_synced.e003c1a660": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_source_relation__campaign_id__date_hour.3998b6bf9d": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_source_relation__creative_id___fivetran_synced.1d4efdd418": [], "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b": [], "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_source_relation__creative_id__param_key__updated_at.6ed98c175a": [], "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e": [], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_source_relation__date_day__account_id__device_os__device_type__network__currency_code.42178a7c9b": [], "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9": [], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_group_report_source_relation__date_day__account_id__campaign_id__ad_group_id__device_os__device_type__network__currency_code.da08ee00a5": [], "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125": [], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__ad_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__ad_type__device_os__device_type__network__currency_code.e13fd60438": [], "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8": [], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_source_relation__date_day__account_id__campaign_id__device_os__device_type__network__currency_code.00fc594532": [], "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b": [], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__keyword_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__device_os__device_type__network__currency_code.e4af52a80b": [], "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d": [], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__search_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__keyword_id__search_query__device_os__device_type__network__match_type.6753357660": [], "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a": [], "test.microsoft_ads.dbt_utils_unique_combination_of_columns_microsoft_ads__url_report_source_relation__date_day__account_id__campaign_id__ad_group_id__ad_id__device_os__device_type__network__currency_code.0ea4732dff": [], "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_source_relation__account_id__updated_timestamp.3492933c38": [], "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_source_relation__campaign_id__updated_timestamp.9b0c16487d": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_source_relation__line_item_id__updated_timestamp.646fa5270f": [], "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_source_relation__promoted_tweet_id__updated_timestamp.7016099e0a": [], "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894": [], "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598": [], "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_source_relation__date_day__promoted_tweet_id__placement.9d96bf07d3": [], "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be": [], "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_source_relation__index__tweet_id.ce1a2b4a87": [], "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c": [], "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f": [], "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_source_relation__date_day__campaign_id__placement.9d5717ee54": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_source_relation__date_day__line_item_id__placement.6c8686e61c": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.e5f015e9ec": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_source_relation__date_day__keyword_id.579bdc1f1c": [], "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_source_relation__tweet_id.70de7f05f5": [], "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842": [], "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53": [], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_source_relation__date_day__account_id.da7ea6faeb": [], "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1": [], "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15": [], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_source_relation__date_day__campaign_id__account_id__campaign_group_id.89a0d4ba0b": [], "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b": [], "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf": [], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_source_relation__date_day__campaign_group_id__account_id.36e7743abc": [], "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020": [], "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889": [], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.f9e5f8f610": [], "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315": [], "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2": [], "test.linkedin.not_null_linkedin_ads__url_report_click_uri.81534087cb": [], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_source_relation__date_day__creative_id__campaign_id__campaign_group_id__account_id.0ff865de89": [], "source.microsoft_ads_source.microsoft_ads.account_history": ["model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp"], "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp"], "source.microsoft_ads_source.microsoft_ads.ad_group_history": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp"], "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp"], "source.microsoft_ads_source.microsoft_ads.ad_history": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp"], "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp"], "source.microsoft_ads_source.microsoft_ads.campaign_history": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp"], "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp"], "source.microsoft_ads_source.microsoft_ads.keyword_history": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp"], "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp"], "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp"], "source.reddit_ads_source.reddit_ads.account": ["model.reddit_ads_source.stg_reddit_ads__account_tmp"], "source.reddit_ads_source.reddit_ads.account_report": ["model.reddit_ads_source.stg_reddit_ads__account_report_tmp"], "source.reddit_ads_source.reddit_ads.ad": ["model.reddit_ads_source.stg_reddit_ads__ad_tmp"], "source.reddit_ads_source.reddit_ads.ad_report": ["model.reddit_ads_source.stg_reddit_ads__ad_report_tmp"], "source.reddit_ads_source.reddit_ads.ad_group": ["model.reddit_ads_source.stg_reddit_ads__ad_group_tmp"], "source.reddit_ads_source.reddit_ads.ad_group_report": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp"], "source.reddit_ads_source.reddit_ads.campaign": ["model.reddit_ads_source.stg_reddit_ads__campaign_tmp"], "source.reddit_ads_source.reddit_ads.campaign_report": ["model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp"], "source.reddit_ads_source.reddit_ads.account_conversions_report": ["model.reddit_ads_source.stg_reddit_ads__account_conversions_report_tmp"], "source.reddit_ads_source.reddit_ads.ad_group_conversions_report": ["model.reddit_ads_source.stg_reddit_ads__ad_group_conversions_report_tmp"], "source.reddit_ads_source.reddit_ads.ad_conversions_report": ["model.reddit_ads_source.stg_reddit_ads__ad_conversions_report_tmp"], "source.reddit_ads_source.reddit_ads.campaign_conversions_report": ["model.reddit_ads_source.stg_reddit_ads__campaign_conversions_report_tmp"], "source.amazon_ads_source.amazon_ads.ad_group_history": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp"], "source.amazon_ads_source.amazon_ads.ad_group_level_report": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp"], "source.amazon_ads_source.amazon_ads.advertised_product_report": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp"], "source.amazon_ads_source.amazon_ads.campaign_history": ["model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp"], "source.amazon_ads_source.amazon_ads.campaign_level_report": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp"], "source.amazon_ads_source.amazon_ads.keyword_history": ["model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp"], "source.amazon_ads_source.amazon_ads.portfolio_history": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp"], "source.amazon_ads_source.amazon_ads.product_ad_history": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp"], "source.amazon_ads_source.amazon_ads.profile": ["model.amazon_ads_source.stg_amazon_ads__profile_tmp"], "source.amazon_ads_source.amazon_ads.targeting_keyword_report": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp"], "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp"], "source.linkedin_source.linkedin_ads.ad_analytics_by_creative": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp"], "source.linkedin_source.linkedin_ads.creative_history": ["model.linkedin_source.stg_linkedin_ads__creative_history_tmp"], "source.linkedin_source.linkedin_ads.campaign_history": ["model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"], "source.linkedin_source.linkedin_ads.campaign_group_history": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"], "source.linkedin_source.linkedin_ads.account_history": ["model.linkedin_source.stg_linkedin_ads__account_history_tmp"], "source.linkedin_source.linkedin_ads.ad_analytics_by_campaign": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp"], "source.google_ads_source.google_ads.ad_stats": ["model.google_ads_source.stg_google_ads__ad_stats_tmp"], "source.google_ads_source.google_ads.ad_history": ["model.google_ads_source.stg_google_ads__ad_history_tmp"], "source.google_ads_source.google_ads.ad_group_history": ["model.google_ads_source.stg_google_ads__ad_group_history_tmp"], "source.google_ads_source.google_ads.campaign_history": ["model.google_ads_source.stg_google_ads__campaign_history_tmp"], "source.google_ads_source.google_ads.account_history": ["model.google_ads_source.stg_google_ads__account_history_tmp"], "source.google_ads_source.google_ads.ad_group_criterion_history": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp"], "source.google_ads_source.google_ads.ad_group_stats": ["model.google_ads_source.stg_google_ads__ad_group_stats_tmp"], "source.google_ads_source.google_ads.campaign_stats": ["model.google_ads_source.stg_google_ads__campaign_stats_tmp"], "source.google_ads_source.google_ads.keyword_stats": ["model.google_ads_source.stg_google_ads__keyword_stats_tmp"], "source.google_ads_source.google_ads.account_stats": ["model.google_ads_source.stg_google_ads__account_stats_tmp"], "source.apple_search_ads_source.apple_search_ads.ad_group_history": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp"], "source.apple_search_ads_source.apple_search_ads.ad_group_report": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp"], "source.apple_search_ads_source.apple_search_ads.ad_history": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp"], "source.apple_search_ads_source.apple_search_ads.ad_level_report": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp"], "source.apple_search_ads_source.apple_search_ads.campaign_history": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp"], "source.apple_search_ads_source.apple_search_ads.campaign_report": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp"], "source.apple_search_ads_source.apple_search_ads.keyword_history": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp"], "source.apple_search_ads_source.apple_search_ads.keyword_report": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp"], "source.apple_search_ads_source.apple_search_ads.organization": ["model.apple_search_ads_source.stg_apple_search_ads__organization_tmp"], "source.apple_search_ads_source.apple_search_ads.search_term_report": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp"], "source.pinterest_source.pinterest_ads.pin_promotion_report": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp"], "source.pinterest_source.pinterest_ads.pin_promotion_history": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp"], "source.pinterest_source.pinterest_ads.campaign_history": ["model.pinterest_source.stg_pinterest_ads__campaign_history_tmp"], "source.pinterest_source.pinterest_ads.ad_group_history": ["model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp"], "source.pinterest_source.pinterest_ads.ad_group_report": ["model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp"], "source.pinterest_source.pinterest_ads.advertiser_history": ["model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp"], "source.pinterest_source.pinterest_ads.advertiser_report": ["model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp"], "source.pinterest_source.pinterest_ads.campaign_report": ["model.pinterest_source.stg_pinterest_ads__campaign_report_tmp"], "source.pinterest_source.pinterest_ads.keyword_history": ["model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"], "source.pinterest_source.pinterest_ads.keyword_report": ["model.pinterest_source.stg_pinterest_ads__keyword_report_tmp"], "source.tiktok_ads_source.tiktok_ads.advertiser": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp"], "source.tiktok_ads_source.tiktok_ads.campaign_history": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp"], "source.tiktok_ads_source.tiktok_ads.adgroup_history": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp"], "source.tiktok_ads_source.tiktok_ads.ad_history": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp"], "source.tiktok_ads_source.tiktok_ads.ad_report_hourly": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp"], "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp"], "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp"], "source.facebook_ads_source.facebook_ads.account_history": ["model.facebook_ads_source.stg_facebook_ads__account_history_tmp"], "source.facebook_ads_source.facebook_ads.ad_history": ["model.facebook_ads_source.stg_facebook_ads__ad_history_tmp"], "source.facebook_ads_source.facebook_ads.ad_set_history": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp"], "source.facebook_ads_source.facebook_ads.basic_ad": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp"], "source.facebook_ads_source.facebook_ads.basic_ad_actions": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_actions_tmp"], "source.facebook_ads_source.facebook_ads.basic_ad_action_values": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_action_values_tmp"], "source.facebook_ads_source.facebook_ads.campaign_history": ["model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp"], "source.facebook_ads_source.facebook_ads.creative_history": ["model.facebook_ads_source.stg_facebook_ads__creative_history_tmp"], "source.snapchat_ads_source.snapchat_ads.ad_account_history": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp"], "source.snapchat_ads_source.snapchat_ads.ad_history": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp"], "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp"], "source.snapchat_ads_source.snapchat_ads.ad_squad_history": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp"], "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp"], "source.snapchat_ads_source.snapchat_ads.campaign_history": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp"], "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp"], "source.snapchat_ads_source.snapchat_ads.creative_history": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp"], "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp"], "source.twitter_ads_source.twitter_ads.account_history": ["model.twitter_ads_source.stg_twitter_ads__account_history_tmp"], "source.twitter_ads_source.twitter_ads.campaign_history": ["model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp"], "source.twitter_ads_source.twitter_ads.line_item_history": ["model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp"], "source.twitter_ads_source.twitter_ads.promoted_tweet_history": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp"], "source.twitter_ads_source.twitter_ads.tweet_url": ["model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp"], "source.twitter_ads_source.twitter_ads.promoted_tweet_report": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp"], "source.twitter_ads_source.twitter_ads.tweet": ["model.twitter_ads_source.stg_twitter_ads__tweet_tmp"], "source.twitter_ads_source.twitter_ads.campaign_report": ["model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp"], "source.twitter_ads_source.twitter_ads.line_item_report": ["model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp"], "source.twitter_ads_source.twitter_ads.line_item_keywords_report": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp"], "metric.ad_reporting.active_ads": [], "metric.ad_reporting.avg_spend_nonzero": [], "metric.ad_reporting.avg_spend": [], "metric.ad_reporting.clicks": ["metric.ad_reporting.bounce_rate", "metric.ad_reporting.clickthrough_rate", "metric.ad_reporting.cost_per_click"], "metric.ad_reporting.impressions": ["metric.ad_reporting.bounce_rate", "metric.ad_reporting.clickthrough_rate"], "metric.ad_reporting.spend": ["metric.ad_reporting.cost_per_click"], "metric.ad_reporting.clickthrough_rate": [], "metric.ad_reporting.cost_per_click": [], "metric.ad_reporting.bounce_rate": [], "semantic_model.ad_reporting.ad_report": ["metric.ad_reporting.active_ads", "metric.ad_reporting.avg_spend", "metric.ad_reporting.avg_spend_nonzero", "metric.ad_reporting.clicks", "metric.ad_reporting.impressions", "metric.ad_reporting.spend"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {"semantic_model.ad_reporting.ad_report": {"name": "ad_report", "resource_type": "semantic_model", "package_name": "ad_reporting", "path": "semantic_models/ad_reporting__ad_report.yml", "original_file_path": "models/semantic_models/ad_reporting__ad_report.yml", "unique_id": "semantic_model.ad_reporting.ad_report", "fqn": ["ad_reporting", "semantic_models", "ad_report"], "model": "ref('ad_reporting__ad_report')", "node_relation": {"alias": "ad_reporting__ad_report", "schema_name": "zz_ad_reporting_ad_reporting_dev", "database": "postgres", "relation_name": "\"postgres\".\"zz_ad_reporting_ad_reporting_dev\".\"ad_reporting__ad_report\""}, "description": "Each record represents daily metrics by ad, ad group, campaign and account.", "label": null, "defaults": null, "entities": [], "measures": [{"name": "ad_spend", "agg": "sum", "description": null, "label": null, "create_metric": false, "expr": "spend", "agg_params": null, "non_additive_dimension": null, "agg_time_dimension": "date_day"}, {"name": "impressions", "agg": "sum", "description": null, "label": null, "create_metric": false, "expr": "impressions", "agg_params": null, "non_additive_dimension": null, "agg_time_dimension": "date_day"}, {"name": "avg_spend", "agg": "average", "description": null, "label": null, "create_metric": false, "expr": "spend", "agg_params": null, "non_additive_dimension": null, "agg_time_dimension": "date_day"}, {"name": "clicks", "agg": "sum", "description": null, "label": null, "create_metric": false, "expr": "clicks", "agg_params": null, "non_additive_dimension": null, "agg_time_dimension": "date_day"}, {"name": "active_ads", "agg": "count_distinct", "description": null, "label": null, "create_metric": false, "expr": "ad_id", "agg_params": null, "non_additive_dimension": null, "agg_time_dimension": "date_day"}, {"name": "avg_spend_nonzero", "agg": "average", "description": null, "label": null, "create_metric": false, "expr": "spend", "agg_params": null, "non_additive_dimension": null, "agg_time_dimension": "date_day"}], "dimensions": [{"name": "spend", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "account_name", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "ad_name", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "date_day", "type": "time", "description": null, "label": null, "is_partition": false, "type_params": {"time_granularity": "day", "validity_params": null}, "expr": null, "metadata": null}, {"name": "campaign_name", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "campaign_id", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "account_id", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "ad_id", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "platform", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "ad_group_id", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}, {"name": "ad_group_name", "type": "categorical", "description": null, "label": null, "is_partition": false, "type_params": null, "expr": null, "metadata": null}], "metadata": null, "depends_on": {"macros": [], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "refs": [{"name": "ad_reporting__ad_report", "package": null, "version": null}], "created_at": 1734462186.227436, "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "primary_entity": "ad", "group": null}}, "unit_tests": {}}
\ No newline at end of file
diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml
index 4717f31..d317dec 100644
--- a/integration_tests/ci/sample.profiles.yml
+++ b/integration_tests/ci/sample.profiles.yml
@@ -16,13 +16,13 @@ integration_tests:
pass: "{{ env_var('CI_REDSHIFT_DBT_PASS') }}"
dbname: "{{ env_var('CI_REDSHIFT_DBT_DBNAME') }}"
port: 5439
- schema: ad_reporting_integration_tests_7
+ schema: ad_reporting_integration_tests_8
threads: 8
bigquery:
type: bigquery
method: service-account-json
project: 'dbt-package-testing'
- schema: ad_reporting_integration_tests_7
+ schema: ad_reporting_integration_tests_8
threads: 8
keyfile_json: "{{ env_var('GCLOUD_SERVICE_KEY') | as_native }}"
snowflake:
@@ -33,7 +33,7 @@ integration_tests:
role: "{{ env_var('CI_SNOWFLAKE_DBT_ROLE') }}"
database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}"
warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}"
- schema: ad_reporting_integration_tests_7
+ schema: ad_reporting_integration_tests_8
threads: 8
postgres:
type: postgres
@@ -42,13 +42,13 @@ integration_tests:
pass: "{{ env_var('CI_POSTGRES_DBT_PASS') }}"
dbname: "{{ env_var('CI_POSTGRES_DBT_DBNAME') }}"
port: 5432
- schema: ad_reporting_integration_tests_7
+ schema: ad_reporting_integration_tests_8
threads: 8
databricks:
catalog: "{{ env_var('CI_DATABRICKS_DBT_CATALOG') }}"
host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}"
http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}"
- schema: ad_reporting_integration_tests_7
+ schema: ad_reporting_integration_tests_8
threads: 8
token: "{{ env_var('CI_DATABRICKS_DBT_TOKEN') }}"
type: databricks
\ No newline at end of file
diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml
index 1cb7011..b36e90a 100644
--- a/integration_tests/dbt_project.yml
+++ b/integration_tests/dbt_project.yml
@@ -1,5 +1,5 @@
name: 'ad_reporting_integration_tests'
-version: '1.10.0'
+version: '1.11.0'
profile: 'integration_tests'
config-version: 2
@@ -13,11 +13,9 @@ dispatch:
models:
+schema: "ad_reporting_{{ var('directed_schema','dev') }}"
-vars:
-
- apple_search_ads__using_search_terms: True
- twitter_ads__using_keywords: False
-
+vars:
+ # Comment out passthroughs when generating docs!!!
+ ############################ START PASSTHROUGHS ############################
ad_reporting__ad_passthrough_metrics:
- name: conversions
- name: videos
@@ -37,19 +35,46 @@ vars:
- name: conversions
- name: videos
- apple_search_ads_source:
- apple_search_ads_schema: ad_reporting_integration_tests_7
- apple_search_ads_organization_identifier: "apple_search_organization_data"
- apple_search_ads_campaign_history_identifier: "apple_search_campaign_history_data"
- apple_search_ads_campaign_report_identifier: "apple_search_campaign_report_data"
- apple_search_ads_ad_group_history_identifier: "apple_search_ad_group_history_data"
- apple_search_ads_ad_group_report_identifier: "apple_search_ad_group_report_data"
- apple_search_ads_ad_history_identifier: "apple_search_ad_history_data"
- apple_search_ads_ad_level_report_identifier: "apple_search_ad_report_data"
- apple_search_ads_keyword_history_identifier: "apple_search_keyword_history_data"
- apple_search_ads_keyword_report_identifier: "apple_search_keyword_report_data"
- apple_search_ads_search_term_report_identifier: "apple_search_search_term_report_data"
- apple_search_ads__using_search_terms: True
+ amazon_ads__advertised_product_passthrough_metrics:
+ - name: purchases_30_d
+ alias: conversions
+ - name: sales_30_d
+ alias: sales_30_d_alias
+ - name: installs
+ tranform_sql: "null"
+ - name: videos
+ tranform_sql: "null"
+ amazon_ads__campaign_passthrough_metrics:
+ - name: purchases_30_d
+ alias: conversions
+ - name: sales_30_d
+ alias: sales_30_d_alias
+ - name: installs
+ tranform_sql: "null"
+ - name: videos
+ tranform_sql: "null"
+ amazon_ads__ad_group_passthrough_metrics:
+ - name: purchases_30_d
+ alias: conversions
+ - name: installs
+ tranform_sql: "null"
+ - name: videos
+ tranform_sql: "null"
+ amazon_ads__targeting_keyword_passthrough_metrics:
+ - name: purchases_30_d
+ alias: conversions
+ - name: installs
+ tranform_sql: "null"
+ - name: videos
+ tranform_sql: "null"
+ amazon_ads__search_term_ad_keyword_passthrough_metrics:
+ - name: purchases_30_d
+ alias: conversions
+ - name: installs
+ tranform_sql: "null"
+ - name: videos
+ tranform_sql: "null"
+
apple_search_ads__ad_group_passthrough_metrics:
- name: conversions
- name: lat_off_installs
@@ -81,18 +106,24 @@ vars:
- name: videos
transform_sql: "null"
- google_ads_source:
- google_ads_schema: ad_reporting_integration_tests_7
- google_ads_ad_stats_identifier: "google_ads_ad_stats_data"
- google_ads_ad_history_identifier: "google_ads_ad_history_data"
- google_ads_ad_group_history_identifier: "google_ads_ad_group_history_data"
- google_ads_campaign_history_identifier: "google_ads_campaign_history_data"
- google_ads_account_history_identifier: "google_ads_account_history_data"
- google_ads_keyword_stats_identifier: "google_ads_keyword_stats_data"
- google_ads_account_stats_identifier: "google_ads_account_stats_data"
- google_ads_ad_group_stats_identifier: "google_ads_ad_group_stats_data"
- google_ads_campaign_stats_identifier: "google_ads_campaign_stats_data"
- google_ads_ad_group_criterion_history_identifier: "google_ads_ad_group_criterion_history_data"
+ facebook_ads__basic_ad_passthrough_metrics:
+ - name: 'reach'
+ transform_sql: 3333
+ - name: conversions
+ - name: 'frequency'
+ alias: 'fake_freq_name'
+ transform_sql: 78910
+ facebook_ads__basic_ad_actions_passthrough_metrics:
+ - name: 'inline'
+ alias: 'conversion_value_inline'
+ transform_sql: 1234
+ - name: installs
+ transform_sql: "null"
+ - name: videos
+ transform_sql: "null"
+ facebook_ads__basic_ad_action_values_passthrough_metrics:
+ - name: '_7_d_click'
+
google_ads__account_stats_passthrough_metrics:
- name: conversions
- name: view_through_conversions
@@ -130,19 +161,23 @@ vars:
- name: videos
transform_sql: "null"
- microsoft_ads_source:
- microsoft_ads_schema: ad_reporting_integration_tests_7
- microsoft_ads_account_history_identifier: "microsoft_ads_account_history_data"
- microsoft_ads_account_performance_daily_report_identifier: "microsoft_ads_account_performance_daily_report_data"
- microsoft_ads_ad_group_history_identifier: "microsoft_ads_ad_group_history_data"
- microsoft_ads_ad_group_performance_daily_report_identifier: "microsoft_ads_ad_group_performance_daily_report_data"
- microsoft_ads_ad_history_identifier: "microsoft_ads_ad_history_data"
- microsoft_ads_ad_performance_daily_report_identifier: "microsoft_ads_ad_performance_daily_report_data"
- microsoft_ads_campaign_history_identifier: "microsoft_ads_campaign_history_data"
- microsoft_ads_campaign_performance_daily_report_identifier: "microsoft_ads_campaign_performance_daily_report_data"
- microsoft_ads_keyword_history_identifier: "microsoft_ads_keyword_history_data"
- microsoft_ads_keyword_performance_daily_report_identifier: "microsoft_ads_keyword_performance_daily_report_data"
- microsoft_ads_search_query_performance_daily_report_identifier: "microsoft_ads_search_performance_daily_report_data"
+ linkedin_ads__creative_passthrough_metrics:
+ - name: 'external_website_conversions'
+ - name: 'one_click_leads'
+ alias: conversions
+ transform_sql: conversions + external_website_conversions
+ - name: 'conversion_value_in_local_currency'
+ - name: video_views
+ alias: videos
+ linkedin_ads__campaign_passthrough_metrics:
+ - name: 'external_website_conversions'
+ - name: 'one_click_leads'
+ alias: conversions
+ transform_sql: conversions + external_website_conversions
+ - name: 'conversion_value_in_local_currency'
+ - name: video_views
+ alias: videos
+
microsoft_ads__account_passthrough_metrics:
- name: "conversions_qualified"
alias: "conversions"
@@ -193,89 +228,6 @@ vars:
- name: videos
transform_sql: "null"
- linkedin_source:
- linkedin_ads_schema: ad_reporting_integration_tests_7
- linkedin_ads_account_history_identifier: "linkedin_ad_account_history_data"
- linkedin_ads_ad_analytics_by_creative_identifier: "linkedin_ad_analytics_by_creative_data"
- linkedin_ads_campaign_group_history_identifier: "linkedin_ad_campaign_group_history_data"
- linkedin_ads_campaign_history_identifier: "linkedin_ad_campaign_history_data"
- linkedin_ads_creative_history_identifier: "linkedin_ad_creative_history_data"
- linkedin_ads_ad_analytics_by_campaign_identifier: "linkedin_ad_analytics_by_campaign_data"
- linkedin_ads__creative_passthrough_metrics:
- - name: 'external_website_conversions'
- - name: 'one_click_leads'
- alias: conversions
- transform_sql: conversions + external_website_conversions
- - name: 'conversion_value_in_local_currency'
- - name: video_views
- alias: videos
- linkedin_ads__campaign_passthrough_metrics:
- - name: 'external_website_conversions'
- - name: 'one_click_leads'
- alias: conversions
- transform_sql: conversions + external_website_conversions
- - name: 'conversion_value_in_local_currency'
- - name: video_views
- alias: videos
-
- twitter_ads_source:
- twitter_ads_schema: ad_reporting_integration_tests_7
- twitter_ads_account_history_identifier: "twitter_account_history_data"
- twitter_ads_campaign_history_identifier: "twitter_campaign_history_data"
- twitter_ads_line_item_history_identifier: "twitter_line_item_history_data"
- twitter_ads_promoted_tweet_history_identifier: "twitter_promoted_tweet_history_data"
- twitter_ads_promoted_tweet_report_identifier: "twitter_promoted_tweet_report_data"
- twitter_ads_tweet_url_identifier: "twitter_tweet_url_data"
- twitter_ads_tweet_identifier: "twitter_tweet_data"
- twitter_ads_campaign_report_identifier: "twitter_campaign_report_data"
- twitter_ads_line_item_report_identifier: "twitter_line_item_report_data"
- twitter_ads_account_report_identifier: "twitter_account_report_data"
- twitter_ads_line_item_keywords_report_identifier: "twitter_line_item_keywords_report_data"
- twitter_ads__conversion_sale_amount_fields:
- - conversion_purchases_sale_amount
- - conversion_custom_sale_amount
- - conversion_sign_ups_sale_amount
- twitter_ads__promoted_tweet_report_passthrough_metrics:
- - name: "conversion_purchases_metric"
- alias: conversions
- - name: installs
- transform_sql: "null"
- - name: videos
- transform_sql: "null"
- twitter_ads__campaign_report_passthrough_metrics:
- - name: "conversion_purchases_metric"
- alias: conversions
- - name: installs
- transform_sql: "null"
- - name: videos
- transform_sql: "null"
- twitter_ads__line_item_report_passthrough_metrics:
- - name: "conversion_purchases_metric"
- alias: conversions
- - name: installs
- transform_sql: "null"
- - name: videos
- transform_sql: "null"
- twitter_ads__line_item_keywords_report_passthrough_metrics:
- - name: "conversion_purchases_metric"
- alias: conversions
- - name: installs
- transform_sql: "null"
- - name: videos
- transform_sql: "null"
-
- pinterest_source:
- pinterest_schema: ad_reporting_integration_tests_7
- pinterest_ads_ad_group_history_identifier: "pinterest_ad_group_history_data"
- pinterest_ads_campaign_history_identifier: "pinterest_campaign_history_data"
- pinterest_ads_pin_promotion_history_identifier: "pinterest_pin_promotion_history_data"
- pinterest_ads_pin_promotion_report_identifier: "pinterest_pin_promotion_report_data"
- pinterest_ads_keyword_history_identifier: "pinterest_keyword_history_data"
- pinterest_ads_keyword_report_identifier: "pinterest_keyword_report_data"
- pinterest_ads_ad_group_report_identifier: "pinterest_ad_group_report_data"
- pinterest_ads_campaign_report_identifier: "pinterest_campaign_report_data"
- pinterest_ads_advertiser_history_identifier: "pinterest_advertiser_history_data"
- pinterest_ads_advertiser_report_identifier: "pinterest_advertiser_report_data"
pinterest__campaign_report_passthrough_metrics:
- name: "total_conversions_value_in_micro_dollar"
alias: total_conversions_value
@@ -318,45 +270,31 @@ vars:
- name: videos
transform_sql: "null"
- facebook_ads_source:
- facebook_ads_schema: ad_reporting_integration_tests_7
- facebook_ads_account_history_identifier: "facebook_ads_account_history_data"
- facebook_ads_ad_history_identifier: "facebook_ads_ad_history_data"
- facebook_ads_ad_set_history_identifier: "facebook_ads_ad_set_history_data"
- facebook_ads_basic_ad_identifier: "facebook_ads_basic_ad_data"
- facebook_ads_basic_ad_actions_identifier: "facebook_ads_basic_ad_actions_data"
- facebook_ads_basic_ad_action_values_identifier: "facebook_ads_basic_ad_action_values_data"
- facebook_ads_campaign_history_identifier: "facebook_ads_campaign_history_data"
- facebook_ads_creative_history_identifier: "facebook_ads_creative_history_data"
- facebook_ads__basic_ad_passthrough_metrics:
- - name: 'reach'
- transform_sql: 3333
+ reddit_ads__account_passthrough_metrics:
- name: conversions
- - name: 'frequency'
- alias: 'fake_freq_name'
- transform_sql: 78910
- facebook_ads__basic_ad_actions_passthrough_metrics:
- - name: 'inline'
- alias: 'conversion_value_inline'
- transform_sql: 1234
- - name: installs
- transform_sql: "null"
- - name: videos
- transform_sql: "null"
- facebook_ads__basic_ad_action_values_passthrough_metrics:
- - name: '_7_d_click'
+ - name: app_install_metrics_install
+ alias: installs
+ - name: video_started
+ alias: videos
+ reddit_ads__campaign_passthrough_metrics:
+ - name: conversions
+ - name: app_install_metrics_install
+ alias: installs
+ - name: video_started
+ alias: videos
+ reddit_ads__ad_group_passthrough_metrics:
+ - name: conversions
+ - name: app_install_metrics_install
+ alias: installs
+ - name: video_started
+ alias: videos
+ reddit_ads__ad_passthrough_metrics:
+ - name: conversions
+ - name: app_install_metrics_install
+ alias: installs
+ - name: video_started
+ alias: videos
- snapchat_ads_source:
- snapchat_ads_schema: ad_reporting_integration_tests_7
- snapchat_ads_ad_account_history_identifier: "snapchat_ad_account_history_data"
- snapchat_ads_ad_history_identifier: "snapchat_ad_history_data"
- snapchat_ads_ad_hourly_report_identifier: "snapchat_ad_hourly_report_data"
- snapchat_ads_ad_squad_history_identifier: "snapchat_ad_squad_history_data"
- snapchat_ads_ad_squad_hourly_report_identifier: "snapchat_ad_squad_hourly_report_data"
- snapchat_ads_campaign_history_identifier: "snapchat_campaign_history_data"
- snapchat_ads_campaign_hourly_report_identifier: "snapchat_campaign_hourly_report_data"
- snapchat_ads_creative_history_identifier: "snapchat_creative_history_data"
- snapchat_ads_creative_url_tag_history_identifier: "snapchat_creative_url_tag_history_data"
snapchat_ads__campaign_hourly_report_passthrough_metrics:
- name: conversion_add_billing
alias: conversion_add_billing_alias
@@ -385,15 +323,6 @@ vars:
- name: video_views
alias: videos
- tiktok_ads_source:
- tiktok_ads_schema: ad_reporting_integration_tests_7
- tiktok_ads_adgroup_history_identifier: "tiktok_adgroup_history_data"
- tiktok_ads_ad_history_identifier: "tiktok_ad_history_data"
- tiktok_ads_advertiser_identifier: "tiktok_advertiser_data"
- tiktok_ads_campaign_history_identifier: "tiktok_campaign_history_data"
- tiktok_ads_ad_report_hourly_identifier: "tiktok_ad_report_hourly_data"
- tiktok_ads_adgroup_report_hourly_identifier: "tiktok_adgroup_report_hourly_data"
- tiktok_ads_campaign_report_hourly_identifier: "tiktok_campaign_report_hourly_data"
tiktok_ads__ad_hourly_passthrough_metrics:
- name: real_time_conversions
- name: conversion
@@ -419,8 +348,43 @@ vars:
- name: video_views_p_100
alias: videos
+ twitter_ads__conversion_sale_amount_fields:
+ - conversion_purchases_sale_amount
+ - conversion_custom_sale_amount
+ - conversion_sign_ups_sale_amount
+ twitter_ads__promoted_tweet_report_passthrough_metrics:
+ - name: "conversion_purchases_metric"
+ alias: conversions
+ - name: installs
+ transform_sql: "null"
+ - name: videos
+ transform_sql: "null"
+ twitter_ads__campaign_report_passthrough_metrics:
+ - name: "conversion_purchases_metric"
+ alias: conversions
+ - name: installs
+ transform_sql: "null"
+ - name: videos
+ transform_sql: "null"
+ twitter_ads__line_item_report_passthrough_metrics:
+ - name: "conversion_purchases_metric"
+ alias: conversions
+ - name: installs
+ transform_sql: "null"
+ - name: videos
+ transform_sql: "null"
+ twitter_ads__line_item_keywords_report_passthrough_metrics:
+ - name: "conversion_purchases_metric"
+ alias: conversions
+ - name: installs
+ transform_sql: "null"
+ - name: videos
+ transform_sql: "null"
+
+ ############################ END PASSTHROUGHS ############################
+
amazon_ads_source:
- amazon_ads_schema: ad_reporting_integration_tests_7
+ amazon_ads_schema: ad_reporting_integration_tests_8
amazon_ads_ad_group_history_identifier: "amazon_ads_ad_group_history_data"
amazon_ads_ad_group_level_report_identifier: "amazon_ads_ad_group_level_report_data"
amazon_ads_advertised_product_report_identifier: "amazon_ads_advertised_product_report_data"
@@ -432,48 +396,82 @@ vars:
amazon_ads_keyword_history_identifier: "amazon_ads_keyword_history_data"
amazon_ads_targeting_keyword_report_identifier: "amazon_ads_targeting_keyword_report_data"
amazon_ads_search_term_ad_keyword_report_identifier: "amazon_ads_search_term_ad_keyword_report_data"
- amazon_ads__advertised_product_passthrough_metrics:
- - name: purchases_30_d
- alias: conversions
- - name: sales_30_d
- alias: sales_30_d_alias
- - name: installs
- tranform_sql: "null"
- - name: videos
- tranform_sql: "null"
- amazon_ads__campaign_passthrough_metrics:
- - name: purchases_30_d
- alias: conversions
- - name: sales_30_d
- alias: sales_30_d_alias
- - name: installs
- tranform_sql: "null"
- - name: videos
- tranform_sql: "null"
- amazon_ads__ad_group_passthrough_metrics:
- - name: purchases_30_d
- alias: conversions
- - name: installs
- tranform_sql: "null"
- - name: videos
- tranform_sql: "null"
- amazon_ads__targeting_keyword_passthrough_metrics:
- - name: purchases_30_d
- alias: conversions
- - name: installs
- tranform_sql: "null"
- - name: videos
- tranform_sql: "null"
- amazon_ads__search_term_ad_keyword_passthrough_metrics:
- - name: purchases_30_d
- alias: conversions
- - name: installs
- tranform_sql: "null"
- - name: videos
- tranform_sql: "null"
+
+ apple_search_ads_source:
+ apple_search_ads_schema: ad_reporting_integration_tests_8
+ apple_search_ads_organization_identifier: "apple_search_organization_data"
+ apple_search_ads_campaign_history_identifier: "apple_search_campaign_history_data"
+ apple_search_ads_campaign_report_identifier: "apple_search_campaign_report_data"
+ apple_search_ads_ad_group_history_identifier: "apple_search_ad_group_history_data"
+ apple_search_ads_ad_group_report_identifier: "apple_search_ad_group_report_data"
+ apple_search_ads_ad_history_identifier: "apple_search_ad_history_data"
+ apple_search_ads_ad_level_report_identifier: "apple_search_ad_report_data"
+ apple_search_ads_keyword_history_identifier: "apple_search_keyword_history_data"
+ apple_search_ads_keyword_report_identifier: "apple_search_keyword_report_data"
+ apple_search_ads_search_term_report_identifier: "apple_search_search_term_report_data"
+
+ facebook_ads_source:
+ facebook_ads_schema: ad_reporting_integration_tests_8
+ facebook_ads_account_history_identifier: "facebook_ads_account_history_data"
+ facebook_ads_ad_history_identifier: "facebook_ads_ad_history_data"
+ facebook_ads_ad_set_history_identifier: "facebook_ads_ad_set_history_data"
+ facebook_ads_basic_ad_identifier: "facebook_ads_basic_ad_data"
+ facebook_ads_basic_ad_actions_identifier: "facebook_ads_basic_ad_actions_data"
+ facebook_ads_basic_ad_action_values_identifier: "facebook_ads_basic_ad_action_values_data"
+ facebook_ads_campaign_history_identifier: "facebook_ads_campaign_history_data"
+ facebook_ads_creative_history_identifier: "facebook_ads_creative_history_data"
+
+ google_ads_source:
+ google_ads_schema: ad_reporting_integration_tests_8
+ google_ads_ad_stats_identifier: "google_ads_ad_stats_data"
+ google_ads_ad_history_identifier: "google_ads_ad_history_data"
+ google_ads_ad_group_history_identifier: "google_ads_ad_group_history_data"
+ google_ads_campaign_history_identifier: "google_ads_campaign_history_data"
+ google_ads_account_history_identifier: "google_ads_account_history_data"
+ google_ads_keyword_stats_identifier: "google_ads_keyword_stats_data"
+ google_ads_account_stats_identifier: "google_ads_account_stats_data"
+ google_ads_ad_group_stats_identifier: "google_ads_ad_group_stats_data"
+ google_ads_campaign_stats_identifier: "google_ads_campaign_stats_data"
+ google_ads_ad_group_criterion_history_identifier: "google_ads_ad_group_criterion_history_data"
+
+ linkedin_source:
+ linkedin_ads_schema: ad_reporting_integration_tests_8
+ linkedin_ads_account_history_identifier: "linkedin_ad_account_history_data"
+ linkedin_ads_ad_analytics_by_creative_identifier: "linkedin_ad_analytics_by_creative_data"
+ linkedin_ads_campaign_group_history_identifier: "linkedin_ad_campaign_group_history_data"
+ linkedin_ads_campaign_history_identifier: "linkedin_ad_campaign_history_data"
+ linkedin_ads_creative_history_identifier: "linkedin_ad_creative_history_data"
+ linkedin_ads_ad_analytics_by_campaign_identifier: "linkedin_ad_analytics_by_campaign_data"
+
+ microsoft_ads_source:
+ microsoft_ads_schema: ad_reporting_integration_tests_8
+ microsoft_ads_account_history_identifier: "microsoft_ads_account_history_data"
+ microsoft_ads_account_performance_daily_report_identifier: "microsoft_ads_account_performance_daily_report_data"
+ microsoft_ads_ad_group_history_identifier: "microsoft_ads_ad_group_history_data"
+ microsoft_ads_ad_group_performance_daily_report_identifier: "microsoft_ads_ad_group_performance_daily_report_data"
+ microsoft_ads_ad_history_identifier: "microsoft_ads_ad_history_data"
+ microsoft_ads_ad_performance_daily_report_identifier: "microsoft_ads_ad_performance_daily_report_data"
+ microsoft_ads_campaign_history_identifier: "microsoft_ads_campaign_history_data"
+ microsoft_ads_campaign_performance_daily_report_identifier: "microsoft_ads_campaign_performance_daily_report_data"
+ microsoft_ads_keyword_history_identifier: "microsoft_ads_keyword_history_data"
+ microsoft_ads_keyword_performance_daily_report_identifier: "microsoft_ads_keyword_performance_daily_report_data"
+ microsoft_ads_search_query_performance_daily_report_identifier: "microsoft_ads_search_performance_daily_report_data"
+
+ pinterest_source:
+ pinterest_schema: ad_reporting_integration_tests_8
+ pinterest_ads_ad_group_history_identifier: "pinterest_ad_group_history_data"
+ pinterest_ads_campaign_history_identifier: "pinterest_campaign_history_data"
+ pinterest_ads_pin_promotion_history_identifier: "pinterest_pin_promotion_history_data"
+ pinterest_ads_pin_promotion_report_identifier: "pinterest_pin_promotion_report_data"
+ pinterest_ads_keyword_history_identifier: "pinterest_keyword_history_data"
+ pinterest_ads_keyword_report_identifier: "pinterest_keyword_report_data"
+ pinterest_ads_ad_group_report_identifier: "pinterest_ad_group_report_data"
+ pinterest_ads_campaign_report_identifier: "pinterest_campaign_report_data"
+ pinterest_ads_advertiser_history_identifier: "pinterest_advertiser_history_data"
+ pinterest_ads_advertiser_report_identifier: "pinterest_advertiser_report_data"
reddit_ads_source:
- reddit_ads_schema: ad_reporting_integration_tests_7
+ reddit_ads_schema: ad_reporting_integration_tests_8
reddit_ads_account_identifier: "reddit_ads_account_data"
reddit_ads_account_report_identifier: "reddit_ads_account_report_data"
reddit_ads_ad_identifier: "reddit_ads_ad_data"
@@ -486,30 +484,42 @@ vars:
reddit_ads_ad_conversions_report_identifier: "reddit_ads_ad_conversions"
reddit_ads_ad_group_conversions_report_identifier: "reddit_ads_ad_group_conversions"
reddit_ads_campaign_conversions_report_identifier: "reddit_ads_campaign_conversions"
- reddit_ads__account_passthrough_metrics:
- - name: conversions
- - name: app_install_metrics_install
- alias: installs
- - name: video_started
- alias: videos
- reddit_ads__campaign_passthrough_metrics:
- - name: conversions
- - name: app_install_metrics_install
- alias: installs
- - name: video_started
- alias: videos
- reddit_ads__ad_group_passthrough_metrics:
- - name: conversions
- - name: app_install_metrics_install
- alias: installs
- - name: video_started
- alias: videos
- reddit_ads__ad_passthrough_metrics:
- - name: conversions
- - name: app_install_metrics_install
- alias: installs
- - name: video_started
- alias: videos
+
+ snapchat_ads_source:
+ snapchat_ads_schema: ad_reporting_integration_tests_8
+ snapchat_ads_ad_account_history_identifier: "snapchat_ad_account_history_data"
+ snapchat_ads_ad_history_identifier: "snapchat_ad_history_data"
+ snapchat_ads_ad_hourly_report_identifier: "snapchat_ad_hourly_report_data"
+ snapchat_ads_ad_squad_history_identifier: "snapchat_ad_squad_history_data"
+ snapchat_ads_ad_squad_hourly_report_identifier: "snapchat_ad_squad_hourly_report_data"
+ snapchat_ads_campaign_history_identifier: "snapchat_campaign_history_data"
+ snapchat_ads_campaign_hourly_report_identifier: "snapchat_campaign_hourly_report_data"
+ snapchat_ads_creative_history_identifier: "snapchat_creative_history_data"
+ snapchat_ads_creative_url_tag_history_identifier: "snapchat_creative_url_tag_history_data"
+
+ tiktok_ads_source:
+ tiktok_ads_schema: ad_reporting_integration_tests_8
+ tiktok_ads_adgroup_history_identifier: "tiktok_adgroup_history_data"
+ tiktok_ads_ad_history_identifier: "tiktok_ad_history_data"
+ tiktok_ads_advertiser_identifier: "tiktok_advertiser_data"
+ tiktok_ads_campaign_history_identifier: "tiktok_campaign_history_data"
+ tiktok_ads_ad_report_hourly_identifier: "tiktok_ad_report_hourly_data"
+ tiktok_ads_adgroup_report_hourly_identifier: "tiktok_adgroup_report_hourly_data"
+ tiktok_ads_campaign_report_hourly_identifier: "tiktok_campaign_report_hourly_data"
+
+ twitter_ads_source:
+ twitter_ads_schema: ad_reporting_integration_tests_8
+ twitter_ads_account_history_identifier: "twitter_account_history_data"
+ twitter_ads_campaign_history_identifier: "twitter_campaign_history_data"
+ twitter_ads_line_item_history_identifier: "twitter_line_item_history_data"
+ twitter_ads_promoted_tweet_history_identifier: "twitter_promoted_tweet_history_data"
+ twitter_ads_promoted_tweet_report_identifier: "twitter_promoted_tweet_report_data"
+ twitter_ads_tweet_url_identifier: "twitter_tweet_url_data"
+ twitter_ads_tweet_identifier: "twitter_tweet_data"
+ twitter_ads_campaign_report_identifier: "twitter_campaign_report_data"
+ twitter_ads_line_item_report_identifier: "twitter_line_item_report_data"
+ twitter_ads_account_report_identifier: "twitter_account_report_data"
+ twitter_ads_line_item_keywords_report_identifier: "twitter_line_item_keywords_report_data"
seeds:
ad_reporting_integration_tests:
@@ -613,6 +623,10 @@ seeds:
+column_types:
created_time: timestamp
last_modified_time: timestamp
+ status: "{{ 'string' if target.type in ['bigquery','spark','databricks'] else 'varchar' }}"
+ intended_status: "{{ 'string' if target.type in ['bigquery','spark','databricks'] else 'varchar' }}"
+ last_modified_at: timestamp
+ created_at: timestamp
linkedin_ad_analytics_by_campaign_data:
+column_types:
day: timestamp
diff --git a/integration_tests/seeds/linkedin_ad_creative_history_data.csv b/integration_tests/seeds/linkedin_ad_creative_history_data.csv
index 437f20e..1a05491 100644
--- a/integration_tests/seeds/linkedin_ad_creative_history_data.csv
+++ b/integration_tests/seeds/linkedin_ad_creative_history_data.csv
@@ -1,101 +1,101 @@
-id,last_modified_time,created_time,campaign_id,type,version_tag,status,click_uri
-112590914,2020-07-01 00:32:56,2018-05-24 00:38:47,131580446,SPONSORED_INMAILS,40,CANCELED,https://google.com
-95761876,2020-07-01 00:32:56,2018-05-18 01:04:02,131454616,SPONSORED_INMAILS,36,CANCELED,
-102318493,2020-09-10 18:29:16,2020-09-10 18:08:57,167276694,SPONSORED_INMAILS,15,ACTIVE,
-95761676,2020-07-27 15:19:33,2020-07-22 19:28:31,165867684,SPONSORED_INMAILS,21,ACTIVE,
-104230363,2020-07-22 19:28:31,2020-07-22 19:28:31,165867684,SPONSORED_INMAILS,1,DRAFT,
-112600554,2020-05-08 11:37:43,2020-05-08 09:34:15,162464924,SPONSORED_INMAILS,23,ACTIVE,
-95763356,2020-05-12 15:39:25,2020-05-12 14:08:40,162557074,SPONSORED_INMAILS,23,ACTIVE,
-70668606,2020-07-01 00:32:56,2018-05-18 01:09:08,131454826,SPONSORED_INMAILS,36,CANCELED,
-69776656,2020-03-23 14:52:29,2020-03-20 18:55:40,148633856,SPONSORED_INMAILS,31,ACTIVE,
-70668676,2020-07-01 00:32:56,2018-05-24 00:47:40,131580546,SPONSORED_INMAILS,38,CANCELED,
-44900346,2020-03-24 18:05:27,2020-03-24 17:56:49,148711996,SPONSORED_INMAILS,27,ACTIVE,
-81968486,2018-02-12 10:09:41,2017-06-08 21:46:06,125600246,SPONSORED_STATUS_UPDATE,20,ACTIVE,
-70668676,2018-02-12 10:09:19,2017-06-08 21:46:06,125600246,SPONSORED_STATUS_UPDATE,40,ACTIVE,
-81968486,2018-02-12 10:09:56,2017-06-08 21:46:06,125600246,SPONSORED_STATUS_UPDATE,40,ACTIVE,
-82056746,2018-02-12 10:09:27,2017-06-08 21:46:06,125600246,SPONSORED_STATUS_UPDATE,40,ACTIVE,
-44900356,2020-07-23 17:22:59,2017-08-04 22:45:09,133160324,SPONSORED_STATUS_UPDATE,37,PAUSED,
-70669876,2018-05-11 12:38:59,2017-08-04 22:45:09,133160324,SPONSORED_STATUS_UPDATE,20,ACTIVE,
-84578906,2018-02-12 10:22:30,2017-06-08 22:29:09,125599426,SPONSORED_STATUS_UPDATE,39,ACTIVE,
-80494806,2018-02-12 10:22:34,2017-06-08 22:29:09,125599426,SPONSORED_STATUS_UPDATE,39,ACTIVE,
-84909276,2018-05-11 12:38:59,2017-08-04 22:45:09,133160324,SPONSORED_STATUS_UPDATE,37,ACTIVE,
-76339806,2018-02-12 10:22:39,2017-06-08 22:29:09,125599426,SPONSORED_STATUS_UPDATE,39,ACTIVE,
-82056546,2018-05-11 12:38:59,2017-08-04 22:45:09,133160324,SPONSORED_STATUS_UPDATE,37,ACTIVE,
-44901886,2018-05-11 12:38:59,2017-08-04 22:45:09,133160324,SPONSORED_STATUS_UPDATE,37,ACTIVE,
-70668856,2018-02-12 10:22:43,2017-06-08 22:29:09,125599426,SPONSORED_STATUS_UPDATE,40,ACTIVE,
-84594916,2018-08-07 15:13:09,2017-10-10 16:49:38,127624356,SPONSORED_STATUS_UPDATE,41,PAUSED,
-70668676,2018-08-31 20:21:58,2017-10-10 16:49:38,127624356,SPONSORED_STATUS_UPDATE,41,PAUSED,
-44900366,2018-08-31 20:21:56,2017-10-10 16:49:38,127624356,SPONSORED_STATUS_UPDATE,43,PAUSED,
-80494706,2018-04-19 01:01:41,2017-12-22 17:38:12,128806186,SPONSORED_STATUS_UPDATE,38,ACTIVE,
-44901876,2018-04-20 16:09:25,2017-12-22 17:27:45,128806016,SPONSORED_STATUS_UPDATE,40,ACTIVE,
-81968566,2018-04-20 20:54:43,2017-12-22 17:38:12,128806186,SPONSORED_STATUS_UPDATE,38,ACTIVE,
-44900356,2018-04-20 20:54:36,2017-12-22 17:27:45,128806016,SPONSORED_STATUS_UPDATE,40,ACTIVE,
-84897806,2018-07-28 18:42:52,2018-07-25 15:04:05,132822186,SPONSORED_STATUS_UPDATE,33,PAUSED,
-70669876,2018-07-28 18:57:01,2018-07-28 18:48:26,132870856,SPONSORED_STATUS_UPDATE,34,ACTIVE,
-44900336,2018-07-28 18:44:22,2018-07-28 18:38:10,132866546,SPONSORED_STATUS_UPDATE,34,ARCHIVED,
-44900356,2018-09-10 23:06:50,2018-09-06 16:59:15,133672706,SPONSORED_STATUS_UPDATE,36,ACTIVE,
-102326993,2018-09-10 17:55:24,2018-09-10 17:52:28,133728466,SPONSORED_STATUS_UPDATE,34,ACTIVE,
-111449024,2018-09-10 23:18:06,2018-09-10 23:16:13,133736786,SPONSORED_STATUS_UPDATE,34,ACTIVE,
-109754844,2018-09-13 18:01:26,2018-09-13 17:59:19,133822116,SPONSORED_STATUS_UPDATE,34,ACTIVE,
-111024974,2018-10-08 17:51:55,2018-10-08 17:49:29,134383046,SPONSORED_STATUS_UPDATE,34,ACTIVE,
-103117663,2018-10-08 17:55:09,2018-10-08 17:54:17,134383176,SPONSORED_STATUS_UPDATE,34,ACTIVE,
-107328744,2018-11-14 21:16:03,2018-10-31 17:30:40,134988516,SPONSORED_STATUS_UPDATE,34,ACTIVE,
-95763826,2018-11-23 12:57:25,2018-11-21 17:08:53,135583676,SPONSORED_STATUS_UPDATE,33,ACTIVE,
-94954376,2018-12-10 18:03:37,2018-12-10 18:01:42,136022286,SPONSORED_STATUS_UPDATE,31,ACTIVE,
-95762316,2019-01-08 17:52:12,2019-01-08 17:27:32,136508426,SPONSORED_STATUS_UPDATE,32,ACTIVE,
-44900366,2019-01-08 18:00:10,2019-01-08 17:57:44,136509566,SPONSORED_STATUS_UPDATE,31,ACTIVE,
-83878136,2019-01-11 21:06:51,2019-01-11 21:00:57,136598756,SPONSORED_STATUS_UPDATE,29,ACTIVE,
-70668606,2019-01-17 22:39:37,2019-01-17 19:19:05,136746346,SPONSORED_STATUS_UPDATE,30,ACTIVE,
-44900336,2019-02-20 23:02:25,2019-02-20 17:23:30,137527956,SPONSORED_STATUS_UPDATE,30,ACTIVE,
-84092676,2019-02-21 17:53:26,2019-02-21 17:46:17,137559956,SPONSORED_STATUS_UPDATE,29,ACTIVE,
-70668856,2019-03-04 19:37:29,2019-03-04 19:12:56,137824786,SPONSORED_STATUS_UPDATE,29,ACTIVE,
-70668306,2019-04-29 17:21:39,2019-04-29 17:20:56,139304236,SPONSORED_STATUS_UPDATE,29,ACTIVE,
-69775486,2019-04-29 17:45:59,2019-04-29 17:32:14,139304466,SPONSORED_STATUS_UPDATE,29,ACTIVE,
-69776656,2019-05-08 18:31:04,2019-05-08 17:34:16,139548496,SPONSORED_STATUS_UPDATE,28,ACTIVE,
-48046336,2019-05-09 15:47:39,2019-05-09 15:19:05,139581266,SPONSORED_STATUS_UPDATE,26,ACTIVE,
-55220314,2019-05-10 19:24:18,2019-05-10 16:05:30,139619466,SPONSORED_STATUS_UPDATE,27,ACTIVE,
-44900356,2019-05-17 16:53:00,2019-05-17 14:50:20,139812856,SPONSORED_STATUS_UPDATE,26,ACTIVE,
-82056656,2019-06-03 20:44:36,2019-06-03 19:34:54,140203726,SPONSORED_STATUS_UPDATE,26,ACTIVE,
-44900356,2019-06-03 20:59:59,2019-06-03 20:59:46,140206956,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-44901856,2019-06-14 17:17:25,2019-06-14 17:17:18,140506806,SPONSORED_STATUS_UPDATE,30,ACTIVE,
-70668676,2019-07-01 20:07:24,2019-06-21 18:33:19,140715576,SPONSORED_STATUS_UPDATE,27,PAUSED,
-48046326,2019-07-08 15:39:00,2019-07-08 15:16:08,141092076,SPONSORED_STATUS_UPDATE,28,ACTIVE,
-70668606,2019-07-29 15:16:22,2019-07-08 15:13:19,141091746,SPONSORED_STATUS_UPDATE,34,ACTIVE,
-70669236,2019-07-08 15:24:28,2019-07-08 15:24:18,141092526,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-81968586,2019-07-08 15:29:26,2019-07-08 15:29:15,141092656,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-55220334,2019-07-18 15:40:35,2019-07-18 15:40:03,141360566,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-70669876,2019-07-29 18:33:07,2019-07-29 18:33:05,141360566,SPONSORED_STATUS_UPDATE,12,ACTIVE,
-48046336,2019-07-29 18:36:00,2019-07-29 18:35:50,141360566,SPONSORED_STATUS_UPDATE,21,ACTIVE,
-44901866,2019-07-29 18:45:38,2019-07-29 18:37:21,141360566,SPONSORED_STATUS_UPDATE,26,ACTIVE,
-55220314,2019-09-02 12:50:44,2019-07-29 18:40:24,141091746,SPONSORED_STATUS_UPDATE,30,ACTIVE,
-70668606,2019-07-29 18:41:56,2019-07-29 18:41:41,141091746,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-69776656,2019-07-29 18:43:33,2019-07-29 18:43:04,141091746,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-44901866,2019-07-29 18:46:44,2019-07-29 18:46:41,141092526,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-48046336,2019-07-29 18:48:14,2019-07-29 18:48:12,141092526,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-76339806,2019-07-29 18:52:40,2019-07-29 18:52:24,141092526,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-107427114,2019-07-29 18:53:31,2019-07-29 18:53:27,141092656,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-107780874,2019-07-29 18:55:06,2019-07-29 18:54:42,141092656,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-103860724,2019-07-29 19:08:42,2019-07-29 19:08:28,141092656,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-94336026,2019-09-06 17:06:44,2019-09-06 16:54:36,142718926,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-109331754,2019-09-07 01:31:08,2019-09-06 18:47:11,142723626,SPONSORED_STATUS_UPDATE,26,ACTIVE,
-107328014,2019-09-12 16:49:10,2019-09-12 16:48:25,142886156,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-107426034,2019-10-30 17:48:33,2019-10-30 17:47:59,144266096,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-107426034,2019-10-30 18:28:54,2019-10-30 18:28:17,144267636,SPONSORED_STATUS_UPDATE,21,ACTIVE,
-104229493,2019-11-06 18:15:13,2019-11-06 18:14:42,144486446,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-104230513,2019-11-14 15:59:08,2019-11-14 15:58:40,144730056,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-109947744,2019-12-18 17:06:17,2019-12-18 16:13:57,146251416,SPONSORED_STATUS_UPDATE,26,ACTIVE,
-104229703,2019-12-19 16:59:51,2019-12-19 15:42:00,146251626,SPONSORED_STATUS_UPDATE,26,ACTIVE,
-112487464,2020-01-07 19:05:55,2020-01-07 19:05:17,146537336,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-70669876,2020-02-03 20:11:30,2020-02-03 20:10:59,147221246,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-44901856,2020-03-26 20:37:26,2020-03-26 20:37:02,148790486,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-44901886,2020-03-26 20:38:13,2020-03-26 20:37:44,148790536,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-80494736,2020-03-26 20:38:58,2020-03-26 20:38:25,148790586,SPONSORED_STATUS_UPDATE,25,ACTIVE,
-44901866,2020-04-07 15:12:31,2020-04-07 15:10:41,149101206,SPONSORED_STATUS_UPDATE,24,ACTIVE,
-44901856,2020-04-07 18:49:47,2020-04-07 15:24:12,149101696,SPONSORED_STATUS_UPDATE,24,ACTIVE,
-81708396,2020-04-07 15:32:09,2020-04-07 15:31:39,149102126,SPONSORED_STATUS_UPDATE,23,ACTIVE,
-60400066,2020-06-01 15:53:04,2020-04-28 15:27:36,149834446,SPONSORED_STATUS_UPDATE,24,PAUSED,
-44901866,2020-05-26 11:11:58,2020-05-26 11:09:20,162905364,SPONSORED_STATUS_UPDATE,23,ACTIVE,
-44900346,2020-08-21 21:15:10,2020-08-21 21:14:46,166816004,SPONSORED_STATUS_UPDATE,17,ACTIVE,
-70669196,2020-08-21 21:15:47,2020-08-21 21:15:23,166816034,SPONSORED_STATUS_UPDATE,17,ACTIVE,
-55220314,2020-08-21 21:16:11,2020-08-21 21:15:59,166816044,SPONSORED_STATUS_UPDATE,17,ACTIVE,
-48046336,2020-08-21 21:17:17,2020-08-21 21:17:13,166816094,SPONSORED_STATUS_UPDATE,17,ACTIVE,
+id,campaign_id,intended_status,click_uri,last_modified_at,created_time,text_ad_landing_page,spotlight_landing_page
+125339904,174942134,,,,2021-03-08 23:42:20,,"http://www.linkedin.com"
+186286604,202434464,,,,2022-09-16 02:46:54,,"http://www.linkedin.com"
+54106906,131454616,,,,2018-05-18 01:04:02,,"http://www.linkedin.com"
+54106976,131454826,,,,2018-05-18 01:09:08,,"http://www.linkedin.com"
+54299976,131580446,,,,2018-05-24 00:38:47,,"http://www.linkedin.com"
+54300176,131580546,,,,2018-05-24 00:47:40,,"http://www.linkedin.com"
+82332766,148633856,,,,2020-03-20 18:55:40,,"http://www.linkedin.com"
+82460426,148711996,,,,2020-03-24 17:56:49,,"http://www.linkedin.com"
+102541764,162464924,,,,2020-05-08 09:34:15,,"http://www.linkedin.com"
+102694624,162557074,,,,2020-05-12 14:08:40,,"http://www.linkedin.com"
+107943663,165867684,,,,2020-07-22 19:28:31,,"http://www.linkedin.com"
+110663234,167276694,,,,2020-09-10 18:08:57,,"http://www.linkedin.com"
+44900356,125600246,,,,2017-06-08 21:46:06,,"http://www.linkedin.com"
+44900356,125600246,,,,2017-06-08 21:46:06,,"http://www.linkedin.com"
+44900356,125600246,,,,2017-06-08 21:46:06,,"http://www.linkedin.com"
+44900356,125600246,,,,2017-06-08 21:46:06,,"http://www.linkedin.com"
+44900336,125600246,,,,2017-06-08 21:46:06,,"http://www.linkedin.com"
+44900336,125600246,,,,2017-06-08 21:46:06,,"http://www.linkedin.com"
+44900336,125600246,,,,2017-06-08 21:46:06,,"http://www.linkedin.com"
+44900336,125600246,,,,2017-06-08 21:46:06,,"http://www.linkedin.com"
+44900366,125600246,,,,2017-06-08 21:46:06,,"http://www.linkedin.com"
+44900366,125600246,,,,2017-06-08 21:46:06,,"http://www.linkedin.com"
+44900366,125600246,,,,2017-06-08 21:46:06,,"http://www.linkedin.com"
+44900366,125600246,,,,2017-06-08 21:46:06,,"http://www.linkedin.com"
+44900346,125600246,,,,2017-06-08 21:46:06,,"http://www.linkedin.com"
+44900346,125600246,,,,2017-06-08 21:46:06,,"http://www.linkedin.com"
+44900346,125600246,,,,2017-06-08 21:46:06,,"http://www.linkedin.com"
+44900346,125600246,,,,2017-06-08 21:46:06,,"http://www.linkedin.com"
+55220334,133160324,,,,2017-08-04 22:45:09,,"http://www.linkedin.com"
+55220334,133160324,,,,2017-08-04 22:45:09,,"http://www.linkedin.com"
+44901856,125599426,,,,2017-06-08 22:29:09,,"http://www.linkedin.com"
+55220334,133160324,,,,2017-08-04 22:45:09,,"http://www.linkedin.com"
+44901856,125599426,,,,2017-06-08 22:29:09,,"http://www.linkedin.com"
+44901856,125599426,,,,2017-06-08 22:29:09,,"http://www.linkedin.com"
+44901866,125599426,,,,2017-06-08 22:29:09,"http://www.google.com",
+44901866,125599426,,,,2017-06-08 22:29:09,"http://www.google.com",
+44901866,125599426,,,,2017-06-08 22:29:09,"http://www.google.com",
+55220324,133160324,,,,2017-08-04 22:45:09,"http://www.google.com",
+55220324,133160324,,,,2017-08-04 22:45:09,"http://www.google.com",
+55220324,133160324,,,,2017-08-04 22:45:09,"http://www.google.com",
+44901876,125599426,,,,2017-06-08 22:29:09,"http://www.google.com",
+55220314,133160324,,,,2017-08-04 22:45:09,"http://www.google.com",
+44901876,125599426,,,,2017-06-08 22:29:09,"http://www.google.com",
+55220314,133160324,,,,2017-08-04 22:45:09,"http://www.google.com",
+55220314,133160324,,,,2017-08-04 22:45:09,"http://www.google.com",
+44901876,125599426,,,,2017-06-08 22:29:09,"http://www.google.com",
+44901876,125599426,,,,2017-06-08 22:29:09,"http://www.google.com",
+55220314,133160324,,,,2017-08-04 22:45:09,"http://www.google.com",
+55220304,133160324,,,,2017-08-04 22:45:09,"http://www.google.com",
+44901886,125599426,,,,2017-06-08 22:29:09,"http://www.google.com",
+44901886,125599426,,,,2017-06-08 22:29:09,"http://www.google.com",
+44901886,125599426,,,,2017-06-08 22:29:09,"http://www.google.com",
+55220304,133160324,,,,2017-08-04 22:45:09,"http://www.google.com",
+55220304,133160324,,,,2017-08-04 22:45:09,"http://www.google.com",
+55220304,133160324,,,,2017-08-04 22:45:09,"http://www.google.com",
+44901886,125599426,,,,2017-06-08 22:29:09,"http://www.google.com",
+48046336,127624356,,,,2017-10-10 16:49:38,"http://www.google.com",
+48046326,127624356,,,,2017-10-10 16:49:38,"http://www.google.com",
+48046346,127624356,,,,2017-10-10 16:49:38,"http://www.google.com",
+50036216,128806186,,,,2017-12-22 17:38:12,"http://www.google.com",
+50035816,128806016,,,,2017-12-22 17:27:45,"http://www.google.com",
+50036226,128806186,,,,2017-12-22 17:38:12,"http://www.google.com",
+50035806,128806016,,,,2017-12-22 17:27:45,"http://www.google.com",
+56166306,132822186,,,,2018-07-25 15:04:05,"http://www.google.com",
+56166306,132822186,,,,2018-07-25 15:04:05,"http://www.google.com",
+56166306,132822186,,,,2018-07-25 15:04:05,"http://www.google.com",
+56237466,132870856,,,,2018-07-28 18:48:26,"http://www.google.com",
+56237376,132866546,,,,2018-07-28 18:38:10,"http://www.google.com",
+57434376,133672706,,,,2018-09-06 16:59:15,"http://www.google.com",
+57527536,133728466,,,,2018-09-10 17:52:28,"http://www.google.com",
+57542836,133736786,,,,2018-09-10 23:16:13,"http://www.google.com",
+57675346,133822116,,"http://www.github.com",,2018-09-13 17:59:19,,
+58503736,134383046,,"http://www.github.com",,2018-10-08 17:49:29,,
+58503856,134383176,,"http://www.github.com",,2018-10-08 17:54:17,,
+59428846,134988516,,"http://www.github.com",,2018-10-31 17:30:40,,
+60400066,135583676,,"http://www.github.com",,2018-11-21 17:08:53,,
+61088626,136022286,,"http://www.github.com",,2018-12-10 18:01:42,,
+61884186,136508426,,"http://www.github.com",,2019-01-08 17:27:32,,
+61885366,136509566,,"http://www.github.com",,2019-01-08 17:57:44,,
+62024726,136598756,,"http://www.github.com",,2019-01-11 21:00:57,,
+62257986,136746346,,"http://www.github.com",,2019-01-17 19:19:05,,
+63506906,137527956,,"http://www.github.com",,2019-02-20 17:23:30,,
+63556186,137559956,,"http://www.github.com",,2019-02-21 17:46:17,,
+64024086,137824786,,"http://www.github.com",,2019-03-04 19:12:56,,
+66558706,139304236,,"http://www.github.com",,2019-04-29 17:20:56,,
+66559306,139304466,,"http://www.github.com",,2019-04-29 17:32:14,,
+66980846,139548496,,"http://www.github.com",,2019-05-08 17:34:16,,
+67039296,139581266,,"http://www.github.com",,2019-05-09 15:19:05,,
+67131396,139619466,,"http://www.github.com",,2019-05-10 16:05:30,,
+67495816,139812856,,"http://www.github.com",,2019-05-17 14:50:20,,
+68192386,140203726,,"http://www.github.com",,2019-06-03 19:34:54,,
+68197356,140206956,,"http://www.github.com",,2019-06-03 20:59:46,,
+68755776,140506806,,"http://www.github.com",,2019-06-14 17:17:18,,
+69108056,140715576,,"http://www.github.com",,2019-06-21 18:33:19,,
+69775776,141092076,,"http://www.github.com",,2019-07-08 15:16:08,,
+69775486,141091746,,"http://www.github.com",,2019-07-08 15:13:19,,
+69776656,141092526,,"http://www.github.com",,2019-07-08 15:24:18,,
+69777076,141092656,,"http://www.github.com",,2019-07-08 15:29:15,,
+70247496,141360566,,"http://www.github.com",,2019-07-18 15:40:03,,
+70668196,141360566,,"http://www.github.com",,2019-07-29 18:33:05,,
\ No newline at end of file
diff --git a/integration_tests/tests/consistency/consistency_ad_report.sql b/integration_tests/tests/consistency/consistency_ad_report.sql
index a82a6e2..d992439 100644
--- a/integration_tests/tests/consistency/consistency_ad_report.sql
+++ b/integration_tests/tests/consistency/consistency_ad_report.sql
@@ -9,8 +9,8 @@ with prod as (
sum(coalesce(clicks, 0)) as clicks,
sum(coalesce(impressions, 0)) as impressions,
sum(coalesce(spend, 0)) as spend
- {# sum(coalesce(conversions, 0)) as conversions,
- sum(coalesce(conversions_value, 0)) as conversions_value #}
+ sum(coalesce(conversions, 0)) as conversions,
+ sum(coalesce(conversions_value, 0)) as conversions_value
from {{ target.schema }}_ad_reporting_prod.ad_reporting__ad_report
group by 1
),
@@ -21,8 +21,8 @@ dev as (
sum(coalesce(clicks, 0)) as clicks,
sum(coalesce(impressions, 0)) as impressions,
sum(coalesce(spend, 0)) as spend
- {# sum(coalesce(conversions, 0)) as conversions,
- sum(coalesce(conversions_value, 0)) as conversions_value #}
+ sum(coalesce(conversions, 0)) as conversions,
+ sum(coalesce(conversions_value, 0)) as conversions_value
from {{ target.schema }}_ad_reporting_dev.ad_reporting__ad_report
group by 1
),
@@ -36,10 +36,10 @@ final as (
dev.impressions as dev_impressions,
prod.spend as prod_spend,
dev.spend as dev_spend
- {# prod.conversions as prod_conversions,
+ prod.conversions as prod_conversions,
dev.conversions as dev_conversions,
prod.conversions_value as prod_conversions_value,
- dev.conversions_value as dev_conversions_value #}
+ dev.conversions_value as dev_conversions_value
from prod
full outer join dev
on dev.ad_id = prod.ad_id
@@ -51,5 +51,5 @@ where
abs(prod_clicks - dev_clicks) >= .01
or abs(prod_impressions - dev_impressions) >= .01
or abs(prod_spend - dev_spend) >= .01
- {# or abs(prod_conversions - dev_conversions) >= .01
- or abs(prod_conversions_value - dev_conversions_value) >= .01 #}
\ No newline at end of file
+ or abs(prod_conversions - dev_conversions) >= .01
+ or abs(prod_conversions_value - dev_conversions_value) >= .01
diff --git a/integration_tests/tests/consistency/consistency_url_report.sql b/integration_tests/tests/consistency/consistency_url_report.sql
index def8188..bdbbb20 100644
--- a/integration_tests/tests/consistency/consistency_url_report.sql
+++ b/integration_tests/tests/consistency/consistency_url_report.sql
@@ -9,8 +9,8 @@ with prod as (
sum(coalesce(clicks, 0)) as clicks,
sum(coalesce(impressions, 0)) as impressions,
sum(coalesce(spend, 0)) as spend
- {# sum(coalesce(conversions, 0)) as conversions,
- sum(coalesce(conversions_value, 0)) as conversions_value #}
+ sum(coalesce(conversions, 0)) as conversions,
+ sum(coalesce(conversions_value, 0)) as conversions_value
from {{ target.schema }}_ad_reporting_prod.ad_reporting__url_report
group by 1
),
@@ -21,8 +21,8 @@ dev as (
sum(coalesce(clicks, 0)) as clicks,
sum(coalesce(impressions, 0)) as impressions,
sum(coalesce(spend, 0)) as spend
- {# sum(coalesce(conversions, 0)) as conversions,
- sum(coalesce(conversions_value, 0)) as conversions_value #}
+ sum(coalesce(conversions, 0)) as conversions,
+ sum(coalesce(conversions_value, 0)) as conversions_value
from {{ target.schema }}_ad_reporting_dev.ad_reporting__url_report
group by 1
),
@@ -36,10 +36,10 @@ final as (
dev.impressions as dev_impressions,
prod.spend as prod_spend,
dev.spend as dev_spend
- {# prod.conversions as prod_conversions,
+ prod.conversions as prod_conversions,
dev.conversions as dev_conversions,
prod.conversions_value as prod_conversions_value,
- dev.conversions_value as dev_conversions_value #}
+ dev.conversions_value as dev_conversions_value
from prod
full outer join dev
on dev.base_url = prod.base_url
@@ -51,5 +51,5 @@ where
abs(prod_clicks - dev_clicks) >= .01
or abs(prod_impressions - dev_impressions) >= .01
or abs(prod_spend - dev_spend) >= .01
- {# or abs(prod_conversions - dev_conversions) >= .01
- or abs(prod_conversions_value - dev_conversions_value) >= .01 #}
\ No newline at end of file
+ or abs(prod_conversions - dev_conversions) >= .01
+ or abs(prod_conversions_value - dev_conversions_value) >= .01
diff --git a/packages.yml b/packages.yml
index eeb03c7..7446fdf 100644
--- a/packages.yml
+++ b/packages.yml
@@ -11,7 +11,7 @@ packages:
version: [">=0.11.0", "<0.12.0"]
- package: fivetran/linkedin
- version: [">=0.9.0", "<0.10.0"]
+ version: [">=0.10.0", "<0.11.0"]
- package: fivetran/microsoft_ads
version: [">=0.9.0", "<0.10.0"]
@@ -26,7 +26,7 @@ packages:
version: [">=0.7.0", "<0.8.0"]
- package: fivetran/tiktok_ads
- version: [">=0.6.0", "<0.7.0"]
+ version: [">=0.7.0", "<0.8.0"]
- package: fivetran/twitter_ads
version: [">=0.8.0", "<0.9.0"]